net/mlx4_en: Check the enabling mtu flag in SET_PORT wrapper flow
authorShaker Daibes <shakerd@mellanox.com>
Sun, 29 Jan 2017 16:56:19 +0000 (18:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2017 20:26:43 +0000 (15:26 -0500)
commitbf1f9396831ca7a4f527a326f1438f1bf85e2239
tree9a657271f0444579fcfa7567fa4383be00cf531b
parent40fb4fc1e18bc641a0d0887ac21943fd194c1fa9
net/mlx4_en: Check the enabling mtu flag in SET_PORT wrapper flow

Make sure MTU mask flag is set using new field upon set port
request. In addition, move this code into a helper function for better
code readability.

Signed-off-by: Shaker Daibes <shakerd@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/port.c