mlxsw: Fix typo inside enumeration
authorIdo Schimmel <idosch@mellanox.com>
Sun, 4 Jun 2017 14:53:39 +0000 (16:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jun 2017 03:49:48 +0000 (23:49 -0400)
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@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
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c

index 182150afd5ad5e224fbe036c52e38c5cc62b2666..157b9b6f8485690206a6e6b2b1c61b48c61b19c1 100644 (file)
@@ -958,7 +958,7 @@ enum mlxsw_flood_table_type {
        MLXSW_REG_SFGC_TABLE_TYPE_VID = 1,
        MLXSW_REG_SFGC_TABLE_TYPE_SINGLE = 2,
        MLXSW_REG_SFGC_TABLE_TYPE_ANY = 0,
-       MLXSW_REG_SFGC_TABLE_TYPE_FID_OFFEST = 3,
+       MLXSW_REG_SFGC_TABLE_TYPE_FID_OFFSET = 3,
        MLXSW_REG_SFGC_TABLE_TYPE_FID = 4,
 };
 
index c7590aea1aeea6bd1faed498e95ac722e6849170..6afbe9ec64e2dd5fafd7bd2bf53694ca6ce822b4 100644 (file)
@@ -373,19 +373,19 @@ static const struct mlxsw_sp_flood_table mlxsw_sp_fid_8021q_flood_tables[] = {
        {
                .packet_type    = MLXSW_SP_FLOOD_TYPE_UC,
                .bridge_type    = MLXSW_REG_SFGC_BRIDGE_TYPE_1Q_FID,
-               .table_type     = MLXSW_REG_SFGC_TABLE_TYPE_FID_OFFEST,
+               .table_type     = MLXSW_REG_SFGC_TABLE_TYPE_FID_OFFSET,
                .table_index    = 0,
        },
        {
                .packet_type    = MLXSW_SP_FLOOD_TYPE_MC,
                .bridge_type    = MLXSW_REG_SFGC_BRIDGE_TYPE_1Q_FID,
-               .table_type     = MLXSW_REG_SFGC_TABLE_TYPE_FID_OFFEST,
+               .table_type     = MLXSW_REG_SFGC_TABLE_TYPE_FID_OFFSET,
                .table_index    = 1,
        },
        {
                .packet_type    = MLXSW_SP_FLOOD_TYPE_BC,
                .bridge_type    = MLXSW_REG_SFGC_BRIDGE_TYPE_1Q_FID,
-               .table_type     = MLXSW_REG_SFGC_TABLE_TYPE_FID_OFFEST,
+               .table_type     = MLXSW_REG_SFGC_TABLE_TYPE_FID_OFFSET,
                .table_index    = 2,
        },
 };