]> 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)
commitb88368fb625a02816422c8a7336a2de1a6efbb82
treec0ffd5aeb01579b66c60fb81365abf26213a0146
parentddf2356f096be3a50c66e2c65299542675824178
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