Skip to content

Commit aeeea02

Browse files
osidi-nvidiagregkh
authored andcommitted
net/mlx5: Add IFC bits and enums for buf_ownership
[ Upstream commit 6f09ee0 ] Extend structure layouts and defines buf_ownership. buf_ownership indicates whether the buffer is managed by SW or FW. Signed-off-by: Oren Sidi <osidi@nvidia.com> Reviewed-by: Alex Lazar <alazar@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/1752734895-257735-3-git-send-email-tariqt@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org> Stable-dep-of: 451d284 ("net/mlx5e: Query FW for buffer ownership") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 285ed9a commit aeeea02

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
@@ -10460,8 +10460,16 @@ struct mlx5_ifc_pifr_reg_bits {
1046010460
u8 port_filter_update_en[8][0x20];
1046110461
};
1046210462

10463+
enum {
10464+
MLX5_BUF_OWNERSHIP_UNKNOWN = 0x0,
10465+
MLX5_BUF_OWNERSHIP_FW_OWNED = 0x1,
10466+
MLX5_BUF_OWNERSHIP_SW_OWNED = 0x2,
10467+
};
10468+
1046310469
struct mlx5_ifc_pfcc_reg_bits {
10464-
u8 reserved_at_0[0x8];
10470+
u8 reserved_at_0[0x4];
10471+
u8 buf_ownership[0x2];
10472+
u8 reserved_at_6[0x2];
1046510473
u8 local_port[0x8];
1046610474
u8 reserved_at_10[0xb];
1046710475
u8 ppan_mask_n[0x1];
@@ -10597,7 +10605,9 @@ struct mlx5_ifc_pcam_enhanced_features_bits {
1059710605
u8 fec_200G_per_lane_in_pplm[0x1];
1059810606
u8 reserved_at_1e[0x2a];
1059910607
u8 fec_100G_per_lane_in_pplm[0x1];
10600-
u8 reserved_at_49[0x1f];
10608+
u8 reserved_at_49[0xa];
10609+
u8 buffer_ownership[0x1];
10610+
u8 resereved_at_54[0x14];
1060110611
u8 fec_50G_per_lane_in_pplm[0x1];
1060210612
u8 reserved_at_69[0x4];
1060310613
u8 rx_icrc_encapsulated_counter[0x1];

0 commit comments

Comments
 (0)