Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351675
b: refs/heads/master
c: 78fb2de
h: refs/heads/master
i:
  351673: aff8d17
  351671: 4301c64
v: v3
  • Loading branch information
Amir Vadai authored and David S. Miller committed Jan 28, 2013
1 parent 4a6f97f commit dcb732b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7225922558f04f25a22683ce08454dae8dd4b9f4
refs/heads/master: 78fb2de711ec28997bf38bcf3e48e108e907be77
8 changes: 5 additions & 3 deletions trunk/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1454,9 +1454,6 @@ int mlx4_en_alloc_resources(struct mlx4_en_priv *priv)
priv->dev->rx_cpu_rmap = alloc_irq_cpu_rmap(priv->rx_ring_num);
if (!priv->dev->rx_cpu_rmap)
goto err;

INIT_LIST_HEAD(&priv->filters);
spin_lock_init(&priv->filters_lock);
#endif

return 0;
Expand Down Expand Up @@ -1651,6 +1648,11 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
if (err)
goto out;

#ifdef CONFIG_RFS_ACCEL
INIT_LIST_HEAD(&priv->filters);
spin_lock_init(&priv->filters_lock);
#endif

/* Allocate page for receive rings */
err = mlx4_alloc_hwq_res(mdev->dev, &priv->res,
MLX4_EN_PAGE_SIZE, MLX4_EN_PAGE_SIZE);
Expand Down

0 comments on commit dcb732b

Please sign in to comment.