]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix inline header size for small packets
authorMoshe Shemesh <moshe@mellanox.com>
Tue, 8 Aug 2017 12:56:37 +0000 (15:56 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 30 Aug 2017 18:20:43 +0000 (21:20 +0300)
commit1e696cbf1c72d66544252bc413cd6c4601a45817
treeb48f81b9492882c33445d3a338658eb6b399dd6b
parentd8c306874407242b8779fc730df61cb46aeaafc8
net/mlx5e: Fix inline header size for small packets

Fix inline header size, make sure it is not greater than skb len.
This bug effects small packets, for example L2 packets with size < 18.

Fixes: 69f8b08b34cd ("net/mlx5e: Check the minimum inline header mode before xmit")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c