net/mlx5e: Optimize the common case condition in mlx5e_select_queue
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Tue, 25 Jan 2022 10:53:00 +0000 (12:53 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 15 Feb 2022 06:30:52 +0000 (22:30 -0800)
commit71753b8ec103fd71d6ee90e522d797ccf978e4ed
tree30aa7887b97ddaaa6dc511f7f86db9fbeb32b120
parent3a9e5fff2ab0d6f4af701757d35b9453dc563b78
net/mlx5e: Optimize the common case condition in mlx5e_select_queue

Check all booleans for special queues at once, when deciding whether to
go to the fast path in mlx5e_select_queue. Pack them into bitfields to
have some room for extensibility.

Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c