]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Max mtu comparison fix
authorDoron Tsur <doront@mellanox.com>
Thu, 12 Nov 2015 17:35:27 +0000 (19:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Nov 2015 23:43:40 +0000 (18:43 -0500)
commitf20f0dc5f0b5fca1fe97c9a3e34d78ba1b2cc333
treedd6235f80557fefdd0a79051413f04afdca622d6
parent09b067645931e2c9622b7f88ae9e3046c160ed80
net/mlx5e: Max mtu comparison fix

On change mtu the driver compares between hardware queried mtu and
software requested mtu. We need to compare between software
representation of the queried mtu and the requested mtu.

Fixes: d1ef29969955 ('net/mlx5e: Fix HW MTU settings')
Signed-off-by: Doron Tsur <doront@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c