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 <kuba@kernel.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h 22 additions, 2 deletionsdrivers/net/ethernet/chelsio/cxgb4/cxgb4.h
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 64 additions, 2 deletionsdrivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 410 additions, 35 deletionsdrivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c 13 additions, 3 deletionsdrivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.h 2 additions, 1 deletiondrivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.h
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.c 55 additions, 2 deletionsdrivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.c
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.h 1 addition, 0 deletionsdrivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.h
- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 39 additions, 4 deletionsdrivers/net/ethernet/chelsio/cxgb4/t4_hw.c
Loading
Please register or sign in to comment