diff options
author | Brenden Blanco <bblanco@plumgrid.com> | 2016-07-19 21:16:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-20 06:46:32 +0200 |
commit | 47a38e155037f417c5740e24ccae6482aedf4b68 (patch) | |
tree | c615b0df2ff096b528d723dc2aa029172fc31ac3 /samples/bpf/bpf_load.c | |
parent | rtnl: add option for setting link xdp prog (diff) | |
download | linux-47a38e155037f417c5740e24ccae6482aedf4b68.tar.xz linux-47a38e155037f417c5740e24ccae6482aedf4b68.zip |
net/mlx4_en: add support for fast rx drop bpf program
Add support for the BPF_PROG_TYPE_XDP hook in mlx4 driver.
In tc/socket bpf programs, helpers linearize skb fragments as needed
when the program touches the packet data. However, in the pursuit of
speed, XDP programs will not be allowed to use these slower functions,
especially if it involves allocating an skb.
Therefore, disallow MTU settings that would produce a multi-fragment
packet that XDP programs would fail to access. Future enhancements could
be done to increase the allowable MTU.
The xdp program is present as a per-ring data structure, but as of yet
it is not possible to set at that granularity through any ndo.
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/bpf_load.c')
0 files changed, 0 insertions, 0 deletions