commit | facc9699f0fe7d65a92cc09e175662659306066d | [log] [tgz] |
---|---|---|
author | Saeed Mahameed <saeedm@mellanox.com> | Thu Jun 11 14:47:27 2015 +0300 |
committer | David S. Miller <davem@davemloft.net> | Thu Jun 11 15:55:25 2015 -0700 |
tree | 3a0bf16d0f4dcafcd2ab881e1cbf68d783e1f8a9 | |
parent | 7ec0bb227aa6fb8c622bec91933e865b37dc58f2 [diff] |
net/mlx5e: Fix HW MTU settings Previously we configured HW MTU to be netdev->mtu, actually we need to configure netdev->mtu + (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN). Also, query MTU can not fail, hence make the relevant helper a void functionm, add mlx5e_set_dev_port_mtu, helper function to handle MTU setting. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>