]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: Sort the allocated MCAM entry indices
authorSunil Goutham <sgoutham@marvell.com>
Tue, 17 Aug 2021 04:44:48 +0000 (10:14 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Aug 2021 09:06:33 +0000 (10:06 +0100)
commitcd27773e934d4c5e9f09c6c5e27ec8a1aafea0b4
treec0ffd5aeb01579b66c60fb81365abf26213a0146
parent9605b4ddafcb048b2f7cfeae86ebb7c8cf5d8075
octeontx2-pf: Sort the allocated MCAM entry indices

Per single mailbox request a maximum of 256 MCAM entries
can be allocated. If more than 256 are being allocated, then
the mcam indices in the final list could get jumbled. Hence
sort the indices.

Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c