From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shmulik Ladkani Subject: [PATCH v3 net-next 0/4] act_mirred: Ingress actions support Date: Thu, 29 Sep 2016 14:03:28 +0300 Message-ID: <1475147012-15538-1-git-send-email-shmulik.ladkani@gmail.com> Cc: Jamal Hadi Salim , WANG Cong , Eric Dumazet , Daniel Borkmann , netdev@vger.kernel.org, Shmulik Ladkani To: David Miller Return-path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:33143 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752549AbcI2LDw (ORCPT ); Thu, 29 Sep 2016 07:03:52 -0400 Received: by mail-wm0-f68.google.com with SMTP id w84so10129568wmg.0 for ; Thu, 29 Sep 2016 04:03:51 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: This patch series implements action mirred 'ingress' actions TCA_INGRESS_REDIR and TCA_INGRESS_MIRROR. This allows attaching filters whose target is to hand matching skbs into the rx processing of a specified device. v3: in 4/4, addressed non coherency due to reading m->tcfm_eaction multiple times, as spotted by Eric Dumazet v2: in 1/4, declare tcfm_mac_header_xmit as bool instead of int Shmulik Ladkani (4): net/sched: act_mirred: Rename tcfm_ok_push to tcfm_mac_header_xmit and make it a bool net/sched: act_mirred: Refactor detection whether dev needs xmit at mac header net/sched: tc_mirred: Rename public predicates 'is_tcf_mirred_redirect' and 'is_tcf_mirred_mirror' net/sched: act_mirred: Implement ingress actions drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 2 +- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 4 +- .../net/ethernet/netronome/nfp/nfp_net_offload.c | 2 +- include/net/tc_act/tc_mirred.h | 6 +- net/sched/act_mirred.c | 84 ++++++++++++++++------ 7 files changed, 73 insertions(+), 29 deletions(-) -- 2.7.4