]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Save MTU in channels params
authorTariq Toukan <tariqt@mellanox.com>
Mon, 12 Mar 2018 12:24:41 +0000 (14:24 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 30 Mar 2018 23:16:17 +0000 (16:16 -0700)
commit85155296d8fbc972b0f249ef1afa9c848fed09b2
tree73c04a6fc171473e6156941d2d0d004d16b79d8e
parenta1aec59e5ac1c5b81a2236ae0e05ff1a760e06e2
net/mlx5e: Save MTU in channels params

Knowing the MTU is required for RQ creation flow.
By our design, channels creation flow is totally isolated
from priv/netdev, and can be completed with access to
channels params and mdev.
Adding the MTU to the channels params helps preserving that.
In addition, we save it in RQ to make its access faster in
datapath checks.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c