]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc39b3ff28edcfecd69694c72165b6e17485c6d94
tree97a0bb90dd8d5cc585fd14b08b86bb88bc9b30cf
parent9a7146b4eb638e1ccfbb86e7fe39564167b67cbb
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