]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitade2c9be7eb71f3dd422b72f198e18c9621e6bec
treec619c15ad9a1231a1b9c2dbfeb997bd3d47dce18
parent4f17135fd9df0a8e8816a626c1ec9da41d49d4c4
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