net/mlx5e: Use vport MTU rather than physical port MTU
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 21 Apr 2016 21:33:05 +0000 (00:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Apr 2016 18:51:39 +0000 (14:51 -0400)
commitcd255efff9baadd654d6160e52d17ae7c568c9d3
treeab956fe1b8c62aca2483d02f95461fbe318c094a
parentd8edd2469ace550db707798180d1c84d81f93bca
net/mlx5e: Use vport MTU rather than physical port MTU

Set and report vport MTU rather than physical MTU,
Driver will set both vport and physical port mtu and will
rely on the query of vport mtu.

SRIOV VFs have to report their MTU to their vport manager (PF),
and this will allow them to work with any MTU they need
without failing the request.

Also for some cases where the PF is not a port owner, PF can
work with MTU less than the physical port mtu if set physical
port mtu didn't take effect.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/vport.c
include/linux/mlx5/vport.h