1f66919817
This patch removes the MCAM preallocation scheme. The free entry cache is removed and for every flow created, an MCAM allocation request is made to the kernel. Each priority level has a list of MCAM entries. For every flow rule added, the MCAM entry obtained from kernel is checked if it is at the correct user specified priority. If not, the existing rules are moved across MCAM entries so that the user specified priority is maintained. Signed-off-by: Satheesh Paul <psatheesh@marvell.com> Reviewed-by: Kiran Kumar K <kirankumark@marvell.com>