Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <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>

authored by

Oren Sidi and committed by
Leon Romanovsky
6f09ee0b 438794e9

+12 -2
+12 -2
include/linux/mlx5/mlx5_ifc.h
··· 10474 10474 u8 port_filter_update_en[8][0x20]; 10475 10475 }; 10476 10476 10477 + enum { 10478 + MLX5_BUF_OWNERSHIP_UNKNOWN = 0x0, 10479 + MLX5_BUF_OWNERSHIP_FW_OWNED = 0x1, 10480 + MLX5_BUF_OWNERSHIP_SW_OWNED = 0x2, 10481 + }; 10482 + 10477 10483 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]; 10479 10487 u8 local_port[0x8]; 10480 10488 u8 reserved_at_10[0xb]; 10481 10489 u8 ppan_mask_n[0x1]; ··· 10619 10611 u8 fec_200G_per_lane_in_pplm[0x1]; 10620 10612 u8 reserved_at_1e[0x2a]; 10621 10613 u8 fec_100G_per_lane_in_pplm[0x1]; 10622 - u8 reserved_at_49[0x1f]; 10614 + u8 reserved_at_49[0xa]; 10615 + u8 buffer_ownership[0x1]; 10616 + u8 resereved_at_54[0x14]; 10623 10617 u8 fec_50G_per_lane_in_pplm[0x1]; 10624 10618 u8 reserved_at_69[0x4]; 10625 10619 u8 rx_icrc_encapsulated_counter[0x1];