All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v3 0/7] tc-flower based cloud filters in i40e
@ 2017-09-13  9:59 ` Amritha Nambiar
  0 siblings, 0 replies; 30+ messages in thread
From: Amritha Nambiar @ 2017-09-13  9:59 UTC (permalink / raw)
  To: intel-wired-lan, jeffrey.t.kirsher
  Cc: alexander.h.duyck, netdev, amritha.nambiar

This patch series enables configuring cloud filters in i40e
using the tc-flower classifier. The only tc-filter action
supported is to redirect packets to a traffic class on the
same device. The mirror/redirect action is extended to
accept a traffic class to achieve this.

The cloud filters are added for a VSI and are cleaned up when
the VSI is deleted. The filters that match on L4 ports needs
enhanced admin queue functions with big buffer support for
extended fields in cloud filter commands.

Example:
# tc qdisc add dev eth0 ingress

# ethtool -K eth0 hw-tc-offload on

# tc filter add dev eth0 protocol ip parent ffff: prio 1 flower\
  dst_ip 192.168.1.1/32 ip_proto udp dst_port 22\
  skip_sw action mirred ingress redirect dev eth0 tclass 1

# tc filter show dev eth0 parent ffff:
filter protocol ip pref 1 flower chain 0
filter protocol ip pref 1 flower chain 0 handle 0x1
  eth_type ipv4
  ip_proto udp
  dst_ip 192.168.1.1
  dst_port 22
  skip_sw
  in_hw
        action order 1: mirred (Ingress Redirect to device eth0) stolen tclass 1
        index 7 ref 1 bind 1

v3: Added an extra patch to clean up white-space noise. Cleaned up
some lengthy function names. Used __be32 array for ipv6 address.
Used macro for IP version. Minor formatting changes.

---

Amritha Nambiar (7):
      tc_mirred: Clean up white-space noise
      sched: act_mirred: Traffic class option for mirror/redirect action
      i40e: Map TCs with the VSI seids
      i40e: Cloud filter mode for set_switch_config command
      i40e: Admin queue definitions for cloud filters
      i40e: Clean up of cloud filters
      i40e: Enable cloud filters via tc-flower


 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c  |    2 
 drivers/net/ethernet/intel/i40e/i40e.h             |   59 +
 drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h  |  143 +++
 drivers/net/ethernet/intel/i40e/i40e_common.c      |  193 ++++
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c     |    2 
 drivers/net/ethernet/intel/i40e/i40e_main.c        |  999 +++++++++++++++++++-
 drivers/net/ethernet/intel/i40e/i40e_prototype.h   |   18 
 drivers/net/ethernet/intel/i40e/i40e_type.h        |   10 
 .../net/ethernet/intel/i40evf/i40e_adminq_cmd.h    |  113 ++
 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     |    3 
 .../net/ethernet/mellanox/mlxsw/spectrum_flower.c  |    3 
 drivers/net/ethernet/netronome/nfp/bpf/offload.c   |    1 
 drivers/net/ethernet/netronome/nfp/flower/action.c |    4 
 include/net/tc_act/tc_mirred.h                     |   16 
 include/uapi/linux/tc_act/tc_mirred.h              |    9 
 net/dsa/slave.c                                    |    3 
 net/sched/act_mirred.c                             |   15 
 19 files changed, 1547 insertions(+), 50 deletions(-)

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2017-09-29  6:20 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-13  9:59 [RFC PATCH v3 0/7] tc-flower based cloud filters in i40e Amritha Nambiar
2017-09-13  9:59 ` [Intel-wired-lan] " Amritha Nambiar
2017-09-13  9:59 ` [RFC PATCH v3 1/7] tc_mirred: Clean up white-space noise Amritha Nambiar
2017-09-13  9:59   ` [Intel-wired-lan] " Amritha Nambiar
2017-09-13  9:59 ` [RFC PATCH v3 2/7] sched: act_mirred: Traffic class option for mirror/redirect action Amritha Nambiar
2017-09-13  9:59   ` [Intel-wired-lan] " Amritha Nambiar
2017-09-13 13:18   ` Jiri Pirko
2017-09-13 13:18     ` [Intel-wired-lan] " Jiri Pirko
2017-09-14  7:58     ` Nambiar, Amritha
2017-09-14  7:58       ` [Intel-wired-lan] " Nambiar, Amritha
2017-09-13  9:59 ` [RFC PATCH v3 3/7] i40e: Map TCs with the VSI seids Amritha Nambiar
2017-09-13  9:59   ` [Intel-wired-lan] " Amritha Nambiar
2017-09-13  9:59 ` [RFC PATCH v3 4/7] i40e: Cloud filter mode for set_switch_config command Amritha Nambiar
2017-09-13  9:59   ` [Intel-wired-lan] " Amritha Nambiar
2017-09-13  9:59 ` [RFC PATCH v3 5/7] i40e: Admin queue definitions for cloud filters Amritha Nambiar
2017-09-13  9:59   ` [Intel-wired-lan] " Amritha Nambiar
2017-09-13  9:59 ` [RFC PATCH v3 6/7] i40e: Clean up of " Amritha Nambiar
2017-09-13  9:59   ` [Intel-wired-lan] " Amritha Nambiar
2017-09-13  9:59 ` [RFC PATCH v3 7/7] i40e: Enable cloud filters via tc-flower Amritha Nambiar
2017-09-13  9:59   ` [Intel-wired-lan] " Amritha Nambiar
2017-09-13 13:26   ` Jiri Pirko
2017-09-13 13:26     ` [Intel-wired-lan] " Jiri Pirko
2017-09-14  8:00     ` Nambiar, Amritha
2017-09-14  8:00       ` [Intel-wired-lan] " Nambiar, Amritha
2017-09-28 19:22       ` Nambiar, Amritha
2017-09-28 19:22         ` [Intel-wired-lan] " Nambiar, Amritha
2017-09-29  6:20         ` Jiri Pirko
2017-09-29  6:20           ` [Intel-wired-lan] " Jiri Pirko
2017-09-13 10:12 ` [RFC PATCH v3 0/7] tc-flower based cloud filters in i40e Jiri Pirko
2017-09-13 10:12   ` [Intel-wired-lan] " Jiri Pirko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.