]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
mlxsw: reg: Extend FDB flush types for NVE
authorIdo Schimmel <idosch@mellanox.com>
Thu, 11 Oct 2018 07:47:56 +0000 (07:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 17:08:22 +0000 (10:08 -0700)
The device has the ability to flush all the FDB records that perform NVE
encapsulation or only a subset of these with a specific filtering
identifier (FID).

Expose these types so that they could be used by subsequent patches
where we need to flush the FDB records when an NVE device is unlinked
from a bridge (FID).

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h

index df81e0a1eb648561b3cf3881337f221b05e507cb..a0441f3d4284eda47bbd0b8541aef50568141864 100644 (file)
@@ -1069,6 +1069,8 @@ enum mlxsw_reg_sfdf_flush_type {
        MLXSW_REG_SFDF_FLUSH_PER_PORT_AND_FID,
        MLXSW_REG_SFDF_FLUSH_PER_LAG,
        MLXSW_REG_SFDF_FLUSH_PER_LAG_AND_FID,
+       MLXSW_REG_SFDF_FLUSH_PER_NVE,
+       MLXSW_REG_SFDF_FLUSH_PER_NVE_AND_FID,
 };
 
 /* reg_sfdf_flush_type
@@ -1079,6 +1081,10 @@ enum mlxsw_reg_sfdf_flush_type {
  * 3 - All FID dynamic entries pointing to port are flushed.
  * 4 - All dynamic entries pointing to LAG are flushed.
  * 5 - All FID dynamic entries pointing to LAG are flushed.
+ * 6 - All entries of type "Unicast Tunnel" or "Multicast Tunnel" are
+ *     flushed.
+ * 7 - All entries of type "Unicast Tunnel" or "Multicast Tunnel" are
+ *     flushed, per FID.
  * Access: RW
  */
 MLXSW_ITEM32(reg, sfdf, flush_type, 0x04, 28, 4);