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)
commit89e89f7a9fded02b81f4ee21e30c64892116cf34
tree5eeacc061436a1b2f06e09fadc2e75656e4f7b33
parentb45d8b50b8264cac7b2f1245ca04a2f009038ac7
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