-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples/bpf: Add support for SKB_MODE to set_link_xdp_fd
Based on upstream: 3993f2cb983b ("samples/bpf: Add support for SKB_MODE to xdp1 and xdp_tx_iptunnel") From: David Ahern <dsa@cumulusnetworks.com> Adjusted to use __u32 instead of signed int, as kernel commit: 6387d0111ca4 ("samples/bpf: fix SKB_MODE flag to be a 32-bit unsigned int") Adjust users of set_link_xdp_fd() which now takes a flag. The --skb-mode flag XDP_FLAGS_SKB_MODE allow enabling the network stack generic XDP mode, even on NIC that support XDP inside the driver. This is practical for testing the overhead associated with invoking the normal network stack. As described in: kernel/Documentation/blogposts/xdp25_eval_generic_xdp_tx.rst http://prototype-kernel.readthedocs.io/en/latest/blogposts/xdp25_eval_generic_xdp_tx.html The Generic XDP for normal net_device's were introduced in kernel commit b5cdae3291f7 ("net: Generic XDP") Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
- Loading branch information
1 parent
9f3c159
commit a0dfbbc
Showing
6 changed files
with
56 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters