]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Make RSS indirection table size a constant
authorAchiad Shochat <achiad@mellanox.com>
Sun, 16 Aug 2015 13:04:46 +0000 (16:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2015 22:51:35 +0000 (15:51 -0700)
commita7f75dd9f0f8dc2f1f0ff11707f78580764c4b75
treeed77fbf1a0b9ce023dac81c6ae330478f260371a
parent2da37765360cf73e4ba8eeb138a26a43544e8ef7
net/mlx5e: Make RSS indirection table size a constant

The indirection table size was defined by a variable that
was actually assigned a constant value.
Since we do not have any forseen intension to make it configurable
we simply made it a constant.

We also limit the number of channels such that the RSS indirection
table could always populate all RX rings.

Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c