Skip to content

Commit 6b10371

Browse files
pmachatakuba-moo
authored andcommitted
mlxsw: reg: Add to SFMR register the fields related to CFF flood mode
Add the field cff_mid_base, which specifies at which point in PGT the per-FID flood table is stored. Add cff_prf_id, the profile ID, which determines on which row of the flood table a flood vector can be found for a given traffic type. Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Amit Cohen <amcohen@nvidia.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://lore.kernel.org/r/3ad7ae38cf6534bedcd876f16090d109a814b3e3.1700503644.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 446bc1e commit 6b10371

File tree

1 file changed

+20
-0
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+20
-0
lines changed

drivers/net/ethernet/mellanox/mlxsw/reg.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,6 +1944,26 @@ MLXSW_ITEM32(reg, sfmr, irif_v, 0x14, 24, 1);
19441944
*/
19451945
MLXSW_ITEM32(reg, sfmr, irif, 0x14, 0, 16);
19461946

1947+
/* reg_sfmr_cff_mid_base
1948+
* Pointer to PGT table.
1949+
* Range: 0..(cap_max_pgt-1)
1950+
* Access: RW
1951+
*
1952+
* Note: Reserved when SwitchX/-2 and Spectrum-1.
1953+
* Supported when CONFIG_PROFILE.flood_mode = CFF.
1954+
*/
1955+
MLXSW_ITEM32(reg, sfmr, cff_mid_base, 0x20, 0, 16);
1956+
1957+
/* reg_sfmr_cff_prf_id
1958+
* Compressed Fid Flooding profile_id
1959+
* Range 0..(max_cap_nve_flood_prf-1)
1960+
* Access: RW
1961+
*
1962+
* Note: Reserved when SwitchX/-2 and Spectrum-1
1963+
* Supported only when CONFIG_PROFLE.flood_mode = CFF.
1964+
*/
1965+
MLXSW_ITEM32(reg, sfmr, cff_prf_id, 0x24, 0, 2);
1966+
19471967
/* reg_sfmr_smpe_valid
19481968
* SMPE is valid.
19491969
* Access: RW

0 commit comments

Comments
 (0)