]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: XDP, Avoid checksum complete when XDP prog is loaded
authorSaeed Mahameed <saeedm@mellanox.com>
Fri, 22 Mar 2019 02:07:20 +0000 (19:07 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 9 Apr 2019 19:33:50 +0000 (12:33 -0700)
commitd4559eafc8d42db784ec917cb1df73f37ef9585f
tree91cb443d81aae65d4f1c928e887affaae86a548f
parentcc7b62bbe1a9b25b0f37bf9363fb03221080f938
net/mlx5e: XDP, Avoid checksum complete when XDP prog is loaded

XDP programs might change packets data contents which will make the
reported skb checksum (checksum complete) invalid.

When XDP programs are loaded/unloaded set/clear rx RQs
MLX5E_RQ_STATE_NO_CSUM_COMPLETE flag.

Fixes: 93dd83112f0a ("net/mlx5e: XDP fast RX drop bpf programs support")
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c