mlxsw: reg: Add FDB action to forward to router
authorIdo Schimmel <idosch@mellanox.com>
Sat, 2 Jul 2016 09:00:17 +0000 (11:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 19:21:17 +0000 (15:21 -0400)
Incoming packets are directed to the router when they match an FDB
entry with action forward to IP router.

Add this action, which was mistakenly named "TRAP".

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h

index 7f74eb71824b8134e7e4ddd363c10bcae4920e97..ea05e832d77629bd0c45706d9032d8d1d17004a8 100644 (file)
@@ -386,7 +386,9 @@ enum mlxsw_reg_sfd_rec_action {
        /* forward and trap, trap_id is FDB_TRAP */
        MLXSW_REG_SFD_REC_ACTION_MIRROR_TO_CPU = 1,
        /* trap and do not forward, trap_id is FDB_TRAP */
-       MLXSW_REG_SFD_REC_ACTION_TRAP = 3,
+       MLXSW_REG_SFD_REC_ACTION_TRAP = 2,
+       /* forward to IP router */
+       MLXSW_REG_SFD_REC_ACTION_FORWARD_IP_ROUTER = 3,
        MLXSW_REG_SFD_REC_ACTION_DISCARD_ERROR = 15,
 };