diff options
author | Ido Shamay <idos@mellanox.com> | 2015-04-02 09:31:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-02 16:25:03 -0400 |
commit | a130b59057320192b4b00ed0ba4bc8a38f66f289 (patch) | |
tree | c2617fd4f1849e95744fac88cb9eea900cf2590d /include/linux/mlx4 | |
parent | 38438f7c7e8cdbb0e9f55aae0e43da67c460639f (diff) |
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>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/cmd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/mlx4/cmd.h b/include/linux/mlx4/cmd.h index a788839f54bb..62c4d4def474 100644 --- a/include/linux/mlx4/cmd.h +++ b/include/linux/mlx4/cmd.h | |||
@@ -188,7 +188,13 @@ enum { | |||
188 | }; | 188 | }; |
189 | 189 | ||
190 | enum { | 190 | enum { |
191 | /* set port opcode modifiers */ | 191 | /* Set port opcode modifiers */ |
192 | MLX4_SET_PORT_IB_OPCODE = 0x0, | ||
193 | MLX4_SET_PORT_ETH_OPCODE = 0x1, | ||
194 | }; | ||
195 | |||
196 | enum { | ||
197 | /* Set port Ethernet input modifiers */ | ||
192 | MLX4_SET_PORT_GENERAL = 0x0, | 198 | MLX4_SET_PORT_GENERAL = 0x0, |
193 | MLX4_SET_PORT_RQP_CALC = 0x1, | 199 | MLX4_SET_PORT_RQP_CALC = 0x1, |
194 | MLX4_SET_PORT_MAC_TABLE = 0x2, | 200 | MLX4_SET_PORT_MAC_TABLE = 0x2, |