summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/sample_ret0.bpf.c
blob: 1df5ca98bb6507dbdcb180e08fb93687eadbcb2c (plain)
1
2
3
4
5
6
7
8
9
10
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) */

#define SEC(name) __attribute__((section(name), used))

/* Sample program which should always load for testing control paths. */
SEC("xdp")
int func()
{
	return 0;
}