]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Replace multiplication by stride size with a shift
authorTariq Toukan <tariqt@mellanox.com>
Sun, 2 Jul 2017 16:02:05 +0000 (19:02 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 3 Sep 2017 03:34:08 +0000 (06:34 +0300)
commitdf7c2d695958839aa7aeddf52b25177f69b45891
tree5eeacc061436a1b2f06e09fadc2e75656e4f7b33
parent2bd8f2e51ee4af571b180c041b236f69aeecf422
net/mlx5e: Replace multiplication by stride size with a shift

In RX data-path, use shift operations instead of a regular multiplication
by stride size, as it is a power of two.

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