octeontx2-af: refactor function npc_install_flow for default entry
This patch refactors npc_install_flow function to install AF installed default MCAM entries similar to other MCAM entries installed by PF/VF. As a result the code would be more readable and easy to maintain. Modified npc_verify_entry and npc_verify_channel to properly check MCAM rules installed by AF. Signed-off-by:Naveen Mamindlapalli <naveenm@marvell.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/marvell/octeontx2/af/npc.h 5 additions, 0 deletionsdrivers/net/ethernet/marvell/octeontx2/af/npc.h
- drivers/net/ethernet/marvell/octeontx2/af/rvu.h 11 additions, 3 deletionsdrivers/net/ethernet/marvell/octeontx2/af/rvu.h
- drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c 1 addition, 1 deletiondrivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
- drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c 15 additions, 32 deletionsdrivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
- drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c 19 additions, 26 deletionsdrivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
Loading
Please register or sign in to comment