]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_switchdev: Save MAC and FID as a key in 'struct mlxsw_sp_mdb_entry'
authorAmit Cohen <amcohen@nvidia.com>
Wed, 29 Jun 2022 09:40:01 +0000 (12:40 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2022 12:35:46 +0000 (13:35 +0100)
commit6bf304975cdf04aefa9337ae2f82b20cbf747b70
tree690d54a6d1c15fb78eb0ed0b6b1d7da08b84fac3
parentfab4239b487eeff9511fc26ce3ee85e67341dd8b
mlxsw: spectrum_switchdev: Save MAC and FID as a key in 'struct mlxsw_sp_mdb_entry'

The next patch will add support for storing all the MDB entries in a hash
table. As a preparation, save the MAC address and the FID in a
separate structure. This structure will be used later as a key for the
hash table.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c