]> 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)
commit45514d447fbcd7d65582552260c8a8c77eb094bf
tree9c55745877809676cfe4b9f8ab9e394c72ce13f5
parente70e15510518351f3cc4e523468b613459c3db24
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: c35ae32560f2 ('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