]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Use function to map aRFS into traffic type
authorTariq Toukan <tariqt@mellanox.com>
Sun, 21 May 2017 08:08:18 +0000 (11:08 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 15 Jun 2017 21:12:41 +0000 (00:12 +0300)
commit2434724955828b1ee0334006b912667a26503c36
tree7b1a5446506e83f6966b92fde11ce54026107ddd
parent822172308bb519bebdfbbacd443f91120f9be36c
net/mlx5e: Use function to map aRFS into traffic type

For a better code reuse and readability, use the existing
function arfs_get_tt() to map arfs_type into mlx5e_traffic_types,
instead of duplicating the switch-case logic.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c