OSDN Git Service

net/mlx5e: IPoIB, Fix RX checksum statistics update
authorFeras Daoud <ferasda@mellanox.com>
Mon, 14 Jan 2019 15:34:28 +0000 (17:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:31 +0000 (14:50 +0100)
commit3e259009f597c042f00fe1a29f96d152c14593d9
tree4bc43edb912dbc7cdf0e3e4f88649193d9c9af4f
parentd6e970b198c9f37819d4cf2f1c4a53b8c47a4ad9
net/mlx5e: IPoIB, Fix RX checksum statistics update

[ Upstream commit 3d6f3cdf9bfe92c430674308db0f1c8655f2c11d ]

Update the RX checksum only if the feature is enabled.

Fixes: 9d6bd752c63c ("net/mlx5e: IPoIB, RX handler")
Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c