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)
commit22303f790d8b00f274ebdac30ae6b0cc481ed57c
tree7b1a5446506e83f6966b92fde11ce54026107ddd
parent552db7bca568a8efbd0883f0597fbc42333cf094
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