]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Choose best nearest LRO timeout
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 25 Oct 2016 15:36:29 +0000 (18:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 16:00:39 +0000 (12:00 -0400)
commit85f527db3d144bcb88b7e1fed0ae6411ab74348d
tree9c55745877809676cfe4b9f8ab9e394c72ce13f5
parent7a27892338a46e5fa4d14fe440059a729725ca12
net/mlx5e: Choose best nearest LRO timeout

Instead of predicting the index of the wanted LRO timeout value from
hardware capabilities, look for the nearest LRO timeout value.

Fixes: 030220985db1 ('net/mlx5e: Light-weight netdev open/stop')
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c