File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
drivers/net/ethernet/mellanox/mlx5/core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4670,9 +4670,10 @@ static bool is_flow_rule_duplicate_allowed(struct net_device *dev,
4670
4670
struct mlx5e_rep_priv * rpriv )
4671
4671
{
4672
4672
/* Offloaded flow rule is allowed to duplicate on non-uplink representor
4673
- * sharing tc block with other slaves of a lag device.
4673
+ * sharing tc block with other slaves of a lag device. Rpriv can be NULL if this
4674
+ * function is called from NIC mode.
4674
4675
*/
4675
- return netif_is_lag_port (dev ) && rpriv -> rep -> vport != MLX5_VPORT_UPLINK ;
4676
+ return netif_is_lag_port (dev ) && rpriv && rpriv -> rep -> vport != MLX5_VPORT_UPLINK ;
4676
4677
}
4677
4678
4678
4679
int mlx5e_configure_flower (struct net_device * dev , struct mlx5e_priv * priv ,
You can’t perform that action at this time.
0 commit comments