diff options
author | Ido Shamay <idos@mellanox.com> | 2014-02-21 12:39:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-24 18:38:01 -0500 |
commit | 02512482321c531df4abf73943529f8b44d869e2 (patch) | |
tree | 1dbbc602d3e6222489417c83b91ed8c5b080dc8a /drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | |
parent | 7a4ddcd92ea72fdc54ebf671f3d3fcc8ba3a1ea8 (diff) | |
download | lwn-02512482321c531df4abf73943529f8b44d869e2.tar.gz lwn-02512482321c531df4abf73943529f8b44d869e2.zip |
net/mlx4: Set number of RX rings in a utility function
mlx4_en_add() is too long.
Moving set number of RX rings to a utiltity function to improve
readability and modulization of the code.
Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4_en.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h index 9ca223bc90fc..3c25c7bf3dba 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h @@ -737,7 +737,7 @@ int mlx4_en_activate_tx_ring(struct mlx4_en_priv *priv, int cq, int user_prio); void mlx4_en_deactivate_tx_ring(struct mlx4_en_priv *priv, struct mlx4_en_tx_ring *ring); - +void mlx4_en_set_num_rx_rings(struct mlx4_en_dev *mdev); int mlx4_en_create_rx_ring(struct mlx4_en_priv *priv, struct mlx4_en_rx_ring **pring, u32 size, u16 stride, int node); |