net/mlx5: Correct comment for legacy fields
authorParav Pandit <parav@mellanox.com>
Mon, 28 Oct 2019 23:35:07 +0000 (23:35 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Nov 2019 21:40:26 +0000 (14:40 -0700)
fdb_table is used for both legacy and offloads mode.
It was incorrect to comment that fdb_table is legacy specific.
Hence, fix the comment to reflect that fdb_table is used in legacy and
offloads mode.

Fixes: 131ce7014043 ("net/mlx5: E-Switch, Remove redundant mc_promisc NULL check")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Vu Pham <vuhuong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h

index 75e69644d70ea5f3ac8d402584a565e34c14fe6f..a41d4aad9d28c747e5eb3a36cccb1b5ee6fe5f44 100644 (file)
@@ -217,8 +217,8 @@ enum {
 struct mlx5_eswitch {
        struct mlx5_core_dev    *dev;
        struct mlx5_nb          nb;
-       /* legacy data structures */
        struct mlx5_eswitch_fdb fdb_table;
+       /* legacy data structures */
        struct hlist_head       mc_table[MLX5_L2_ADDR_HASH_SIZE];
        struct esw_mc_addr mc_promisc;
        /* end of legacy */