1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox/mlx5/core/ipoib
Feras Daoud 8e1d162d8e net/mlx5e: IPoIB, Set the netdevice sw mtu in ipoib enhanced flow
After introduction of the cited commit, mlx5e_build_nic_params
receives the netdevice mtu in order to set the sw_mtu of mlx5e_params.
For enhanced IPoIB, the netdevice mtu is not set in this stage,
therefore, the initial sw_mtu equals zero. As a result, the hw_mtu
of the receive queue will be calculated incorrectly causing traffic
issues.

To fix this issue, query for port mtu before building the nic params.

Fixes: 472a1e44b3 ("net/mlx5e: Save MTU in channels params")
Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2018-07-31 12:58:45 -07:00
..
Makefile net/mlx5: Add Makefiles for subdirectories 2017-07-06 15:13:20 +03:00
ethtool.c net/mlx5e: IPoIB, Add ethtool support to get child time stamping parameters 2018-01-09 07:40:48 +02:00
ipoib.c net/mlx5e: IPoIB, Set the netdevice sw mtu in ipoib enhanced flow 2018-07-31 12:58:45 -07:00
ipoib.h net/mlx5i: Use compilation flag in IPOIB header 2018-05-25 14:11:00 -07:00
ipoib_vlan.c net/mlx5e: Derive Striding RQ size from MTU 2018-03-30 16:16:17 -07:00