net/mlx4_en: Check the enabling pptx/pprx flags in SET_PORT wrapper flow
authorShaker Daibes <shakerd@mellanox.com>
Sun, 29 Jan 2017 16:56:20 +0000 (18:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2017 20:26:43 +0000 (15:26 -0500)
commit1f8176f7352abfe1a424ac7eb845b4c2e7c31e5f
treec619c15ad9a1231a1b9c2dbfeb997bd3d47dce18
parentbf1f9396831ca7a4f527a326f1438f1bf85e2239
net/mlx4_en: Check the enabling pptx/pprx flags in SET_PORT wrapper flow

Make sure pptx/pprx mask flag is set using new fields 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/en_port.h
drivers/net/ethernet/mellanox/mlx4/mlx4.h
drivers/net/ethernet/mellanox/mlx4/port.c