aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2012-10-03 11:38:48 -0400
committerRoland Dreier <roland@purestorage.com>2012-10-03 17:11:20 -0400
commit60396683fe863b3bc3ec22e9243dc2e76de601dd (patch)
tree4ca2f8be7f069a9570c802bc81e7af21ad0bba64 /drivers/net/ethernet/mellanox/mlx4
parent7a9a2970b5c1c2ce73d4bb84edaa7ebf13e0c841 (diff)
mlx4_core: Adjust flow steering attach wrapper so that IB works on SR-IOV VFs
Currently, the InfiniBand stack does not support flow steering at the verbs level -- the only usage of flow steering in the IB driver is for L2 multicast attaches. We need to add the IB case to procedure mlx4_QP_FLOW_STEERING_ATTACH_wrapper() to allow IPoIB to work on VFs on ConnectX-3 when flow steering is enabled. Currently, the IB case in mlx4_QP_FLOW_STEERING_ATTACH_wrapper() is missing, so the procedure returns -EINVAL and IPoIB on VFs breaks. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/resource_tracker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
index ba6506ff4abb..926c911c0ac4 100644
--- a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
+++ b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
@@ -3094,6 +3094,8 @@ int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
3094 if (validate_eth_header_mac(slave, rule_header, rlist)) 3094 if (validate_eth_header_mac(slave, rule_header, rlist))
3095 return -EINVAL; 3095 return -EINVAL;
3096 break; 3096 break;
3097 case MLX4_NET_TRANS_RULE_ID_IB:
3098 break;
3097 case MLX4_NET_TRANS_RULE_ID_IPV4: 3099 case MLX4_NET_TRANS_RULE_ID_IPV4:
3098 case MLX4_NET_TRANS_RULE_ID_TCP: 3100 case MLX4_NET_TRANS_RULE_ID_TCP:
3099 case MLX4_NET_TRANS_RULE_ID_UDP: 3101 case MLX4_NET_TRANS_RULE_ID_UDP: