aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2020-05-14 12:50:18 +0200
committerAlexei Starovoitov <ast@kernel.org>2020-05-14 21:21:55 -0700
commitd201ea9ebc519fb34ad9ef1f49ab2ab31f5111ea (patch)
tree2e795958ceb00dd9477337388146931ad21e936f /drivers/net/tun.c
parentena: Add XDP frame size to amazon NIC driver (diff)
downloadwireguard-linux-d201ea9ebc519fb34ad9ef1f49ab2ab31f5111ea.tar.xz
wireguard-linux-d201ea9ebc519fb34ad9ef1f49ab2ab31f5111ea.zip
mlx4: Add XDP frame size and adjust max XDP MTU
The mlx4 drivers size of memory backing the RX packet is stored in frag_stride. For XDP mode this will be PAGE_SIZE (normally 4096). For normal mode frag_stride is 2048. Also adjust MLX4_EN_MAX_XDP_MTU to take tailroom into account. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Reviewed-by: Tariq Toukan <tariqt@mellanox.com> Cc: Saeed Mahameed <saeedm@mellanox.com> Link: https://lore.kernel.org/bpf/158945341893.97035.2688142527052329942.stgit@firesoul
Diffstat (limited to 'drivers/net/tun.c')
0 files changed, 0 insertions, 0 deletions