OSDN Git Service

net/mlx5e: Init ethtool steering for representors
authorVlad Buslov <vladbu@mellanox.com>
Fri, 10 May 2019 17:19:29 +0000 (20:19 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 9 Mar 2020 23:58:48 +0000 (16:58 -0700)
During transition to uplink representors the code responsible for
initializing ethtool steering functionality wasn't added to representor
init rx routine. This causes NULL pointer dereference during configuration
of network flow classification rule with ethtool (only possible to
reproduce with next commit in this series which registers necessary ethtool
callbacks).

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c

index 9ff0a8e..5a7de0e 100644 (file)
@@ -1685,6 +1685,8 @@ static int mlx5e_init_rep_rx(struct mlx5e_priv *priv)
        if (err)
                goto err_destroy_root_ft;
 
+       mlx5e_ethtool_init_steering(priv);
+
        return 0;
 
 err_destroy_root_ft: