OSDN Git Service

net/mlx4: Add SET_PORT opcode modifiers enumeration
authorIdo Shamay <idos@mellanox.com>
Thu, 2 Apr 2015 13:31:19 +0000 (16:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:25:03 +0000 (16:25 -0400)
commita130b59057320192b4b00ed0ba4bc8a38f66f289
treec2617fd4f1849e95744fac88cb9eea900cf2590d
parent38438f7c7e8cdbb0e9f55aae0e43da67c460639f
net/mlx4: Add SET_PORT opcode modifiers enumeration

The calls to SET_PORT used hard-code numbers, when supplying command's
opcode modifiers, fix that to use well defined constants.

Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/cmd.c
drivers/net/ethernet/mellanox/mlx4/port.c
include/linux/mlx4/cmd.h