From: David S. Miller Date: Wed, 1 Jul 2020 01:34:34 +0000 (-0700) Subject: Merge branch 'cxgb4-add-mirror-action-support-for-TC-MATCHALL' X-Git-Tag: v5.15~3197^2~371 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b04a66156159592156a97553057e8c36de2ee70;p=platform%2Fkernel%2Flinux-starfive.git Merge branch 'cxgb4-add-mirror-action-support-for-TC-MATCHALL' Rahul Lakkireddy says: ==================== cxgb4: add mirror action support for TC-MATCHALL This series of patches add support to mirror all ingress traffic for TC-MATCHALL ingress offload. Patch 1 adds support to dynamically create a mirror Virtual Interface (VI) that accepts all mirror ingress traffic when mirror action is set in TC-MATCHALL offload. Patch 2 adds support to allocate mirror Rxqs and setup RSS for the mirror VI. Patch 3 adds support to replicate all the main VI configuration to mirror VI. This includes replicating MTU, promiscuous mode, all-multicast mode, and enabled netdev Rx feature offloads. v3: - Replace mirror VI refcount_t with normal u32 variable in all patches. - Add back calling cxgb4_port_mirror_start() in cxgb_open(), which was there in v1, but got missed in v2 during refactoring, in patch 3. v2: - Add mutex to protect all mirror VI data, instead of just mirror Rxqs, in patch 1 and 2. - Remove the un-needed mirror Rxq mutex in patch 2. - Simplify the replication code by refactoring t4_set_rxmode() to handle mirror VI, instead of duplicating the t4_set_rxmode() calls in multiple places in patch 3. ==================== Reviewed-by: Jakub Kicinski Signed-off-by: David S. Miller --- 2b04a66156159592156a97553057e8c36de2ee70