]> 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)
commit14b9fbd5ded43c11a12637c9aad9456437d4dc94
tree5eeacc061436a1b2f06e09fadc2e75656e4f7b33
parentee3090c061b3ff5c8caea7faaad2753350f57fdf
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