mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
IB/mlx5: Add support for multi underlay QP
Set underlay QPN as part of flow rule when it's applicable. There is one root flow table in the NIC RX namespace and all the underlay QPs steer the traffic to this flow table. In order to prevent QP to get traffic which is not target to its underlay QP, we need to set the underlay QP number as part of the steering matching. Note: When multicast traffic is sent the QPN filtering is done by the firmware as some early step. Adding the QPN match on the flow table entry is wrong as by that time the target QPN holds the multicast address (e.g. FF(s)) and it won't match. Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
7b4cdaae73
commit
a550ddfc54
2 changed files with 48 additions and 9 deletions
|
@ -295,8 +295,10 @@ struct mlx5_ifc_flow_table_fields_supported_bits {
|
|||
u8 inner_tcp_dport[0x1];
|
||||
u8 inner_tcp_flags[0x1];
|
||||
u8 reserved_at_37[0x9];
|
||||
u8 reserved_at_40[0x1a];
|
||||
u8 bth_dst_qp[0x1];
|
||||
|
||||
u8 reserved_at_40[0x40];
|
||||
u8 reserved_at_5b[0x25];
|
||||
};
|
||||
|
||||
struct mlx5_ifc_flow_table_prop_layout_bits {
|
||||
|
@ -432,7 +434,9 @@ struct mlx5_ifc_fte_match_set_misc_bits {
|
|||
u8 reserved_at_100[0xc];
|
||||
u8 inner_ipv6_flow_label[0x14];
|
||||
|
||||
u8 reserved_at_120[0xe0];
|
||||
u8 reserved_at_120[0x28];
|
||||
u8 bth_dst_qp[0x18];
|
||||
u8 reserved_at_160[0xa0];
|
||||
};
|
||||
|
||||
struct mlx5_ifc_cmd_pas_bits {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue