Jesper Dangaard Brouer
306da4e685
samples/bpf: xdp_redirect load XDP dummy prog on TX device
...
For supporting XDP_REDIRECT, a device driver must (obviously)
implement the "TX" function ndo_xdp_xmit(). An additional requirement
is you cannot TX out a device, unless it also have a xdp bpf program
attached. This dependency is caused by the driver code need to setup
XDP resources before it can ndo_xdp_xmit.
Update bpf samples xdp_redirect and xdp_redirect_map to automatically
attach a dummy XDP program to the configured ifindex_out device. Use
the XDP flag XDP_FLAGS_UPDATE_IF_NOEXIST on the dummy load, to avoid
overriding an existing XDP prog on the device.
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-29 10:51:29 -07:00
..
auxdisplay
samples: move auxdisplay example code from Documentation
2016-09-23 11:52:32 -06:00
blackfin
samples: move blackfin gptimers-example from Documentation
2016-10-10 07:12:02 -06:00
bpf
samples/bpf: xdp_redirect load XDP dummy prog on TX device
2017-08-29 10:51:29 -07:00
configfs
connector
make use of make variable CURDIR instead of calling pwd
2016-12-11 12:12:56 +01:00
hidraw
hw_breakpoint
kdb
kfifo
kfifo: clean up example to not use page_link
2017-07-12 16:26:01 -07:00
kobject
kprobes
samples/kretprobe: fix the wrong type
2016-08-04 08:50:07 -04:00
livepatch
livepatch: allow removal of a disabled patch
2017-03-08 09:38:43 +01:00
mei
mei: drop the TODO from samples
2017-04-26 11:38:56 +02:00
mic /mpssd
samples: move mic/mpssd example code from Documentation
2016-09-20 12:38:48 -06:00
pktgen
pktgen: Specify the index of first thread
2017-06-16 12:32:34 -04:00
rpmsg
rpmsg: Allow callback to return errors
2016-09-08 22:15:25 -07:00
seccomp
samples/seccomp: fix 64-bit comparison macros
2017-01-09 17:22:03 +11:00
sockmap
bpf: convert sockmap field attach_bpf_fd2 to type
2017-08-28 11:13:21 -07:00
statx
statx: Include a mask for stx_attributes in struct statx
2017-04-03 01:06:00 -04:00
timers
samples: move timers example code from Documentation
2016-09-23 11:51:58 -06:00
trace_events
sched/core: Remove the tsk_cpus_allowed() wrapper
2017-03-02 08:42:24 +01:00
trace_printk
tracing: Add trace_printk sample code
2016-06-20 09:54:21 -04:00
uhid
v4l
[media] vb2: replace void *alloc_ctxs by struct device *alloc_devs
2016-07-08 14:45:07 -03:00
vfio-mdev
vfio-mdev: remove some dead code
2017-01-11 12:12:37 -07:00
watchdog
samples: move watchdog example code from Documentation
2016-09-23 11:52:14 -06:00
Kconfig
statx: Add a system call to make enhanced file info available
2017-03-02 20:51:15 -05:00
Makefile
statx: Add a system call to make enhanced file info available
2017-03-02 20:51:15 -05:00