diff options
| author | Jesper Dangaard Brouer <[email protected]> | 2017-08-29 16:38:06 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-08-29 10:51:29 -0700 |
| commit | 306da4e685b415f5c875cef275001b5cdc182da9 (patch) | |
| tree | 76ba2be2cdb8d5a01fa43270a66fdbf758837f99 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 59a308967589f5b3f1f42793ab49bc2e18069769 (diff) | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions