From: David S. Miller Date: Tue, 17 Aug 2021 09:06:33 +0000 (+0100) Subject: Merge branch 'octeonx2-mcam-management-rework' X-Git-Tag: accepted/tizen/unified/20230118.172025~6527^2~187 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cb594240b7a28cb3badfb651351d8c9bfab228d;p=platform%2Fkernel%2Flinux-rpi.git Merge branch 'octeonx2-mcam-management-rework' Subbaraya Sundeep says: ==================== octeontx2: Rework MCAM flows management for VFs From Octeontx2 hardware point of view there is no difference between PFs and VFs. Hence with refactoring in driver the packet classification features or offloads can be supported by VFs also. This patchset unifies the mcam flows management so that VFs can also support ntuple filters. Since there are MCAM allocations by all PFs and VFs in the system it is required to have the ability to modify number of mcam rules count for a PF/VF in runtime. This is achieved by using devlink. Below is the summary of patches: Patch 1,2,3 are trivial patches which helps in debugging in case of errors by using custom error codes and displaying proper error messages. Patches 4,5 brings rx-all and ntuple support for CGX mapped VFs and LBK VFs. Patches 6,7,8 brings devlink support to PF netdev driver so that mcam entries count can be changed at runtime. To change mcam rule count at runtime where multiple rule allocations are done sorting is required. Also both ntuple and TC rules needs to be unified. Patch 9 is related to AF NPC where a PF allocated entries are allocated at bottom(low priority). On CN10K there is slight change in reading NPC counters which is handled by patch 10. Patch 11 is to allow packets from CPT for NPC parsing on CN10K. ==================== Signed-off-by: David S. Miller --- 2cb594240b7a28cb3badfb651351d8c9bfab228d