]> 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)
commit588b10f81e99a1a4c0b762d7e2b53cd9bb32a29f
tree53df43867ae3159005c1e8dcfc10c4a4146dc8aa
parent7ac1722d4185a67256c03c1db8ea9aa451b402fc
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