net/mlx5e: Dynamic RQ type infrastructure
authorSaeed Mahameed <saeedm@mellanox.com>
Wed, 21 Sep 2016 09:19:45 +0000 (12:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 06:51:40 +0000 (02:51 -0400)
commit2fc4bfb7250d79ee4e58c1d5bca257687e9f5e53
tree97a0bb90dd8d5cc585fd14b08b86bb88bc9b30cf
parente4b85508072b32682ba84df32cac5cf6a4f6178e
net/mlx5e: Dynamic RQ type infrastructure

Add two helper functions to allow dynamic changes of RQ type.

mlx5e_set_rq_priv_params and mlx5e_set_rq_type_params will be
used on netdev creation to determine the default RQ type.

This will be needed later for downstream patches of XDP support.
When enabling XDP we will dynamically move from striding RQ to
linked list RQ type.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c