diff options
author | Maxim Mikityanskiy | 2019-04-08 14:12:45 +0200 |
---|---|---|
committer | Saeed Mahameed | 2019-04-19 22:55:36 +0200 |
commit | d460c2718906252a2a69bc6f89b537071f792e6e (patch) | |
tree | 88ee3d0bdc99c9033c62356721a4635631f49838 /drivers/net/wireless | |
parent | net/mlx5e: Fix use-after-free after xdp_return_frame (diff) | |
download | kernel-qcow2-linux-d460c2718906252a2a69bc6f89b537071f792e6e.tar.gz kernel-qcow2-linux-d460c2718906252a2a69bc6f89b537071f792e6e.tar.xz kernel-qcow2-linux-d460c2718906252a2a69bc6f89b537071f792e6e.zip |
net/mlx5e: Fix the max MTU check in case of XDP
MLX5E_XDP_MAX_MTU was calculated incorrectly. It didn't account for
NET_IP_ALIGN and MLX5E_HW2SW_MTU, and it also misused MLX5_SKB_FRAG_SZ.
This commit fixes the calculations and adds a brief explanation for the
formula used.
Fixes: a26a5bdf3ee2d ("net/mlx5e: Restrict the combination of large MTU and XDP")
Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/wireless')
0 files changed, 0 insertions, 0 deletions