mlx4: Fixing Ethernet unicast packet steering
Subsystems (3)
PATCH 1/1 mlx4: Fixing Ethernet unicast packet steering
For older FW versions, fixing the usage of per port Mac table. For each port we must define the base QP number, which is passed to the HW.
Setting the correct value in SET_PORT FW command to enable the steering.
--- drivers/net/mlx4/en_port.c | 2 +- drivers/net/mlx4/main.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-)
drivers/net/mlx4/en_port.c +1 -1
@@ -128,7 +128,7 @@ int mlx4_SET_PORT_qpn_calc(struct mlx4_dev *dev, u8 port, u32 base_qpn,memset (context,0 ,sizeof *context); context->base_qpn =cpu_to_be32 (base_qpn); - context->n_mac =0x7 ; + context->n_mac =0x2 ; context->promisc =cpu_to_be32 (promisc <<SET_PORT_PROMISC_SHIFT | base_qpn); context->mcast = cpu_to_be32(m_promisc << SET_PORT_MC_PROMISC_SHIFT |
drivers/net/mlx4/main.c +2 -0
@@ -1117,6 +1117,8 @@ static int mlx4_init_port_info(struct mlx4_dev *dev, int port) info->port = port;mlx4_init_mac_table (dev, &info->mac_table);mlx4_init_vlan_table (dev, &info->vlan_table); + info->base_qpn = dev->caps.reserved_qps_base[MLX4_QP_REGION_ETH_ADDR ] + + (port -1 ) * (1 << log_num_mac);sprintf (info->dev_name,"mlx4_port%d" , port); info->port_attr.attr.name = info->dev_name;
Signature · 6 lines
1.6.0.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 6 lines
For older FW versions, fixing the usage of per port Mac table. For each port we must define the base QP number, which is passed to the HW.
Setting the correct value inSET_PORTFW command to enable the steering.Reported-by Roland Dreier <[email protected]>
Thanks, testing this now.
A message that is not in the archive (sent off-list or not yet received): CAL1RGDU+=wX40J_uktWxMiHNx5Sed-d3b2J4_4JTg=tyqbKsEg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 6 lines · Roland Dreier
Quoted 4 lines
For older FW versions, fixing the usage of per port Mac table. For each port we must define the base QP number, which is passed to the HW.
Setting the correct value inSET_PORTFW command to enable the steering.Thanks, testing this now.
Yep, works well on my backrev FW boards. Dave, you want to merge this or should I?
- R.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): CAL1RGDVHnd2x2pWgaYG2vKKJk-qYfQp3T5pgJ-48HeaMA=9_EA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
From: Roland Dreier <[email protected]>
Date: Wed, 3 Aug 2011 12:06:56 -0700
Quoted 10 lines · Roland Dreier
Quoted 6 lines
Quoted 4 lines
For older FW versions, fixing the usage of per port Mac table. For each port we must define the base QP number, which is passed to the HW.
Setting the correct value inSET_PORTFW command to enable the steering.Thanks, testing this now.
Yep, works well on my backrev FW boards. Dave, you want to merge this or should I?
I'll take it, thanks for testing.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 4E39594C.4090808-VPRAkNaXOzVS1MOuV/[email protected]
From: Yevgeny Petrilin <yevgenyp-VPRAkNaXOzVS1MOuV/[email protected]>
Date: Wed, 3 Aug 2011 17:21:00 +0300
Quoted 8 lines
For older FW versions, fixing the usage of per port Mac table. For each port we must define the base QP number, which is passed to the HW.
Setting the correct value inSET_PORTFW command to enable the steering.Reported-by Roland Dreier <[email protected]>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html