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)
commitcc65fcab88be74ee592387e0df7e6d4407f3a339
treec0ffd5aeb01579b66c60fb81365abf26213a0146
parent3cffaed2136cd66ed4647ad7d718011c263f54af
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