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)
commit5d0bb3bac4b9f6c22280b04545626fdfd99edc6b
tree91cb443d81aae65d4f1c928e887affaae86a548f
parent484c1ada0bd2bdcb76f849ae77983e24320a2d1d
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: 86994156c736 ("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