diff options
author | Amir Vadai <amirv@mellanox.com> | 2012-07-25 17:21:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-26 03:23:55 -0400 |
commit | ee64c0ee5180b3163b89e0d23b22126b5da088b1 (patch) | |
tree | a9626e07fc17368cb2c04b96309cc094c58a3eae /drivers/net | |
parent | 5243e7bd98b2dfecef3acd82661b541905a86e7f (diff) |
net/mlx4_en: Limit the RFS filter IDs to be < RPS_NO_FILTER
RFS filter id can't have the special value RPS_NO_FILTER,
need to skip it when allocating id's.
CC: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c index 8864d8b53737..edd9cb8d3e1d 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c | |||
@@ -201,7 +201,7 @@ mlx4_en_filter_alloc(struct mlx4_en_priv *priv, int rxq_index, __be32 src_ip, | |||
201 | 201 | ||
202 | filter->flow_id = flow_id; | 202 | filter->flow_id = flow_id; |
203 | 203 | ||
204 | filter->id = priv->last_filter_id++; | 204 | filter->id = priv->last_filter_id++ % RPS_NO_FILTER; |
205 | 205 | ||
206 | list_add_tail(&filter->next, &priv->filters); | 206 | list_add_tail(&filter->next, &priv->filters); |
207 | hlist_add_head(&filter->filter_chain, | 207 | hlist_add_head(&filter->filter_chain, |