]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Do not count LLC/SNAP in MTU calculation
authorYishai Hadas <yishaih@mellanox.com>
Tue, 8 Jul 2014 08:25:23 +0000 (11:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jul 2014 02:58:44 +0000 (19:58 -0700)
commita811256c88804e5a979e96e6bc65ed0b00816d49
tree020e449a8e2223864a04d36aa3aeb0928ffb7359
parent2ff70aa51c4b7ce899c7a722de0c54563a8c4b76
net/mlx4_en: Do not count LLC/SNAP in MTU calculation

LLC/SNAP 8 bytes should not be added as part of header calculation.
If used, payload will be decreased accordingly. For MTU of 1500
we'll set 1522 instead of 1523.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Liran Liss <liranl@mellanox.com>
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h