diff options
author | Amit Cohen <amcohen@nvidia.com> | 2022-06-19 13:29:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-06-20 10:03:33 +0100 |
commit | 48bca94fff12b869c4e124b1201fb908c7c16e29 (patch) | |
tree | a1b23f1763b51ab722a089af4cd7eda355bc0ed1 /net/unix/af_unix.c | |
parent | 94536249b8d8e7434d79e5a8373986818d7d512b (diff) |
mlxsw: reg: Replace MID related fields in SFGC register
SFGC register maps {packet type, bridge type} -> {MID base, table type}.
As preparation for unified bridge model, remove 'mid' field and add
'mid_base' field.
The MID index (index to PGT table which maps MID to local port list and
SMPE index) is a result of 'mid_base' + 'fid_offset'. Using the legacy
bridge model, firmware configures 'mid_base'. However, using the new model,
software is responsible to configure it via SFGC register.
The 'mid_base' is configured per {packet type, bridge type}, for
example, for {Unicast, .1Q}, {Broadcast, .1D}.
Add the field 'mid_base' to SFGC register and increase the length of the
register accordingly.
Remove the field 'mid' as currently it is ignored by the device, its use
is an old leftover.
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions