diff options
author | Maxim Mikityanskiy <maximmi@mellanox.com> | 2019-04-08 15:12:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-02 11:02:57 +0300 |
commit | f9444b6aaa011c03a76d3486a18e270deb5f3501 (patch) | |
tree | cc99ccdd7607967df2eab7fc6d492a323c3a3508 /lib/test_overflow.c | |
parent | a7b71fc253e8fc2585e04800928651bc9164ae77 (diff) | |
download | linux-f9444b6aaa011c03a76d3486a18e270deb5f3501.tar.xz |
net/mlx5e: Fix the max MTU check in case of XDP
[ Upstream commit d460c2718906252a2a69bc6f89b537071f792e6e ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions