net/mlx4: Set number of RX rings in a utility function
authorIdo Shamay <idos@mellanox.com>
Fri, 21 Feb 2014 10:39:17 +0000 (12:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2014 23:38:01 +0000 (18:38 -0500)
commit02512482321c531df4abf73943529f8b44d869e2
tree1dbbc602d3e6222489417c83b91ed8c5b080dc8a
parent7a4ddcd92ea72fdc54ebf671f3d3fcc8ba3a1ea8
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>
drivers/net/ethernet/mellanox/mlx4/en_main.c
drivers/net/ethernet/mellanox/mlx4/en_rx.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h