]> git.baikalelectronics.ru Git - kernel.git/commit
net: marvell: mvpp2: Fix the computation of shared CPUs
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 29 Nov 2021 21:53:27 +0000 (22:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Nov 2021 12:05:16 +0000 (12:05 +0000)
commit68d2de65bf4393f492c5d7207395bf7adad9cc0e
treeb9557a2916abbaf7cde57ec034ab51dadaf6e5c7
parent9869139dd337a8082d31036f66e52715400290fb
net: marvell: mvpp2: Fix the computation of shared CPUs

'bitmap_fill()' fills a bitmap one 'long' at a time.
It is likely that an exact number of bits is expected.

Use 'bitmap_set()' instead in order not to set unexpected bits.

Fixes: bf2889aeeadc ("net: mvpp2: handle cases where more CPUs are available than s/w threads")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c