Skip to content

Commit 6f09ee0

Browse files
osidi-nvidiarleon
authored andcommitted
net/mlx5: Add IFC bits and enums for buf_ownership
Extend structure layouts and defines buf_ownership. buf_ownership indicates whether the buffer is managed by SW or FW. Signed-off-by: Oren Sidi <[email protected]> Reviewed-by: Alex Lazar <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 438794e commit 6f09ee0

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

include/linux/mlx5/mlx5_ifc.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10474,8 +10474,16 @@ struct mlx5_ifc_pifr_reg_bits {
1047410474
u8 port_filter_update_en[8][0x20];
1047510475
};
1047610476

10477+
enum {
10478+
MLX5_BUF_OWNERSHIP_UNKNOWN = 0x0,
10479+
MLX5_BUF_OWNERSHIP_FW_OWNED = 0x1,
10480+
MLX5_BUF_OWNERSHIP_SW_OWNED = 0x2,
10481+
};
10482+
1047710483
struct mlx5_ifc_pfcc_reg_bits {
10478-
u8 reserved_at_0[0x8];
10484+
u8 reserved_at_0[0x4];
10485+
u8 buf_ownership[0x2];
10486+
u8 reserved_at_6[0x2];
1047910487
u8 local_port[0x8];
1048010488
u8 reserved_at_10[0xb];
1048110489
u8 ppan_mask_n[0x1];
@@ -10611,7 +10619,9 @@ struct mlx5_ifc_pcam_enhanced_features_bits {
1061110619
u8 fec_200G_per_lane_in_pplm[0x1];
1061210620
u8 reserved_at_1e[0x2a];
1061310621
u8 fec_100G_per_lane_in_pplm[0x1];
10614-
u8 reserved_at_49[0x1f];
10622+
u8 reserved_at_49[0xa];
10623+
u8 buffer_ownership[0x1];
10624+
u8 resereved_at_54[0x14];
1061510625
u8 fec_50G_per_lane_in_pplm[0x1];
1061610626
u8 reserved_at_69[0x4];
1061710627
u8 rx_icrc_encapsulated_counter[0x1];

0 commit comments

Comments
 (0)