diff options
author | Moni Shoua <monis@mellanox.com> | 2015-02-03 09:48:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-04 19:14:24 -0500 |
commit | 59e14e325066be49b49b6c2503337c69a9ee29fc (patch) | |
tree | 4969e69e3ea30ed3f26a51b1729e715af1f69ddf /include/linux/mlx4/device.h | |
parent | 69e6113343cfe983511904ffca0d7a1466460b67 (diff) |
net/mlx4_core: Port aggregation low level interface
Implement the hardware interface required for port aggregation.
1. Disable RX port check on receive - don't perform a validity check
that matches to QP's port and the port where the packet is received.
2. Virtual to physical port remap - configure virtual to physical port
mapping. Port remap capability for virtual functions.
Signed-off-by: Moni Shoua <monis@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/device.h')
-rw-r--r-- | include/linux/mlx4/device.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index c95d659a39f2..d9afd99dde39 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
@@ -201,7 +201,8 @@ enum { | |||
201 | MLX4_DEV_CAP_FLAG2_SYS_EQS = 1LL << 17, | 201 | MLX4_DEV_CAP_FLAG2_SYS_EQS = 1LL << 17, |
202 | MLX4_DEV_CAP_FLAG2_80_VFS = 1LL << 18, | 202 | MLX4_DEV_CAP_FLAG2_80_VFS = 1LL << 18, |
203 | MLX4_DEV_CAP_FLAG2_FS_A0 = 1LL << 19, | 203 | MLX4_DEV_CAP_FLAG2_FS_A0 = 1LL << 19, |
204 | MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT = 1LL << 20 | 204 | MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT = 1LL << 20, |
205 | MLX4_DEV_CAP_FLAG2_PORT_REMAP = 1LL << 21 | ||
205 | }; | 206 | }; |
206 | 207 | ||
207 | enum { | 208 | enum { |
@@ -253,9 +254,14 @@ enum { | |||
253 | MLX4_BMME_FLAG_TYPE_2_WIN = 1 << 9, | 254 | MLX4_BMME_FLAG_TYPE_2_WIN = 1 << 9, |
254 | MLX4_BMME_FLAG_RESERVED_LKEY = 1 << 10, | 255 | MLX4_BMME_FLAG_RESERVED_LKEY = 1 << 10, |
255 | MLX4_BMME_FLAG_FAST_REG_WR = 1 << 11, | 256 | MLX4_BMME_FLAG_FAST_REG_WR = 1 << 11, |
257 | MLX4_BMME_FLAG_PORT_REMAP = 1 << 24, | ||
256 | MLX4_BMME_FLAG_VSD_INIT2RTR = 1 << 28, | 258 | MLX4_BMME_FLAG_VSD_INIT2RTR = 1 << 28, |
257 | }; | 259 | }; |
258 | 260 | ||
261 | enum { | ||
262 | MLX4_FLAG_PORT_REMAP = MLX4_BMME_FLAG_PORT_REMAP | ||
263 | }; | ||
264 | |||
259 | enum mlx4_event { | 265 | enum mlx4_event { |
260 | MLX4_EVENT_TYPE_COMP = 0x00, | 266 | MLX4_EVENT_TYPE_COMP = 0x00, |
261 | MLX4_EVENT_TYPE_PATH_MIG = 0x01, | 267 | MLX4_EVENT_TYPE_PATH_MIG = 0x01, |
@@ -1378,6 +1384,8 @@ int mlx4_phys_to_slave_port(struct mlx4_dev *dev, int slave, int port); | |||
1378 | int mlx4_get_base_gid_ix(struct mlx4_dev *dev, int slave, int port); | 1384 | int mlx4_get_base_gid_ix(struct mlx4_dev *dev, int slave, int port); |
1379 | 1385 | ||
1380 | int mlx4_config_vxlan_port(struct mlx4_dev *dev, __be16 udp_port); | 1386 | int mlx4_config_vxlan_port(struct mlx4_dev *dev, __be16 udp_port); |
1387 | int mlx4_disable_rx_port_check(struct mlx4_dev *dev, bool dis); | ||
1388 | int mlx4_virt2phy_port_map(struct mlx4_dev *dev, u32 port1, u32 port2); | ||
1381 | int mlx4_vf_smi_enabled(struct mlx4_dev *dev, int slave, int port); | 1389 | int mlx4_vf_smi_enabled(struct mlx4_dev *dev, int slave, int port); |
1382 | int mlx4_vf_get_enable_smi_admin(struct mlx4_dev *dev, int slave, int port); | 1390 | int mlx4_vf_get_enable_smi_admin(struct mlx4_dev *dev, int slave, int port); |
1383 | int mlx4_vf_set_enable_smi_admin(struct mlx4_dev *dev, int slave, int port, | 1391 | int mlx4_vf_set_enable_smi_admin(struct mlx4_dev *dev, int slave, int port, |