linux-brain/drivers/net/ethernet/marvell
Subbaraya Sundeep b3fe6d1921 octeontx2-af: Fix loop in free and unmap counter
[ Upstream commit 6537e96d743b89294b397b4865c6c061abae31b0 ]

When the given counter does not belong to the entry
then code ends up in infinite loop because the loop
cursor, entry is not getting updated further. This
patch fixes that by updating entry for every iteration.

Fixes: a958dd59f9 ("octeontx2-af: Map or unmap NPC MCAM entry and counter")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-15 09:47:38 +02:00
..
mvpp2 net: mvpp2: check return value after calling platform_get_resource() 2021-07-19 08:53:10 +02:00
octeontx2 octeontx2-af: Fix loop in free and unmap counter 2021-09-15 09:47:38 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile octeontx2-af: Add Marvell OcteonTX2 RVU AF driver 2018-10-10 10:06:01 -07:00
mv643xx_eth.c net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00
mvmdio.c drivers/net/ethernet/marvell/mvmdio.c: Fix non OF case 2019-08-05 13:30:48 -07:00
mvneta_bm.c net: mvneta: use devm_platform_ioremap_resource() to simplify code 2019-08-21 13:52:33 -07:00
mvneta_bm.h net: mvneta: make stub functions static inline 2019-10-25 16:21:48 -07:00
mvneta.c net: marvell: fix MVNETA_TX_IN_PRGRS bit number 2021-09-03 10:08:14 +02:00
pxa168_eth.c net: pxa168_eth: Fix a potential data race in pxa168_eth_remove 2021-04-10 13:34:30 +02:00
skge.c skge: fix checksum byte order 2019-09-24 16:53:19 +02:00
skge.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sky2.c net: sky2: initialize return of gm_phy_read 2020-07-29 10:18:27 +02:00
sky2.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00