mlx4: Managing SET_PORT for En port for multi-func
Subsystems (5)
PATCH 20/25 mlx4: Managing SET_PORT for En port for multi-func
MTU is set as max among all active functions. The base QP number is the base QP number of the port.
Signed-off-by Yevgeny Petrilin <[email protected]>
--- drivers/net/mlx4/mlx4.h | 2 + drivers/net/mlx4/port.c | 56 ++++++++++++++++++++++++++++++++++++++++++--- include/linux/mlx4/cmd.h | 1 + 3 files changed, 55 insertions(+), 4 deletions(-)
drivers/net/mlx4/mlx4.h +2 -0
@@ -221,6 +221,7 @@ struct mlx4_slave_state {u8 last_cmd;u8 init_port_mask;dma_addr_t vhcr_dma; +u16 mtu[MLX4_MAX_PORTS +1 ];__be32 ib_cap_mask[MLX4_MAX_PORTS +1 ];struct mlx4_slave_eqe eq[MLX4_MFUNC_MAX_EQES ];u16 eq_pi;
@@ -232,6 +233,7 @@ struct mlx4_slave_state {struct mlx4_mfunc_master_ctx {struct mlx4_slave_state *slave_state;int init_port_ref[MLX4_MAX_PORTS +1 ]; +u16 max_mtu[MLX4_MAX_PORTS +1 ]; };struct mlx4_vhcr {
drivers/net/mlx4/port.c +52 -4
80 lines not on this page · raw message
include/linux/mlx4/cmd.h +1 -0
@@ -151,6 +151,7 @@ enum {MLX4_SET_PORT_MAC_TABLE =0x2 ,MLX4_SET_PORT_VLAN_TABLE =0x3 ,MLX4_SET_PORT_PRIO_MAP =0x4 , + MLX4_SET_PORT_MODIFIERS };struct mlx4_dev ;
Signature · 1 line
1.6.1.3