]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: fix hardcoded number of rx queues
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Thu, 12 Jul 2018 11:54:15 +0000 (13:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jul 2018 00:30:48 +0000 (17:30 -0700)
commit15fd28c54447052b17758839bec0ab4ee74f5d68
tree53df43867ae3159005c1e8dcfc10c4a4146dc8aa
parent0e99b06de6e74294d342e925d6471d46074b2d91
net: mvpp2: fix hardcoded number of rx queues

There's a dedicated #define that indicates the number of rx queues per
port per cpu, this commit removes a harcoded use of that value

This doesn't fix any runtime bugs since the harcoded value matches the
expected value.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c