All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next RFC 0/6] Configure cloud filters in i40e via tc/flower classifier
@ 2017-08-01  0:36 ` Amritha Nambiar
  0 siblings, 0 replies; 58+ messages in thread
From: Amritha Nambiar @ 2017-08-01  0:36 UTC (permalink / raw)
  To: intel-wired-lan, jeffrey.t.kirsher
  Cc: alexander.h.duyck, kiran.patil, amritha.nambiar, netdev,
	mitch.a.williams, alexander.duyck, neerav.parikh,
	sridhar.samudrala, carolyn.wyborny

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 tc/mirred: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 general fields in Add/Remove Cloud filters command.

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 indev eth0 action mirred ingress redirect dev eth0 tc 1

# tc filter show dev eth0 parent ffff:
filter protocol ip pref 1 flower
filter protocol ip pref 1 flower handle 0x1
  indev eth0
  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 tc 1
        index 1 ref 1 bind 1
---

Amritha Nambiar (6):
      [net-next]net: sched: act_mirred: Extend redirect action to accept a traffic class
      [net-next]net: i40e: Maintain a mapping of TCs with the VSI seids
      [net-next]net: i40e: Extend set switch config command to accept cloud filter mode
      [net-next]net: i40e: Admin queue definitions for cloud filters
      [net-next]net: i40e: Clean up of cloud filters
      [net-next]net: i40e: Enable cloud filters in i40e via tc/flower classifier


 drivers/net/ethernet/intel/i40e/i40e.h            |   58 +
 drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h |  132 +++
 drivers/net/ethernet/intel/i40e/i40e_common.c     |  184 ++++
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c    |    2 
 drivers/net/ethernet/intel/i40e/i40e_main.c       |  983 +++++++++++++++++++++
 drivers/net/ethernet/intel/i40e/i40e_prototype.h  |   19 
 drivers/net/ethernet/intel/i40e/i40e_type.h       |    9 
 include/net/tc_act/tc_mirred.h                    |    7 
 include/uapi/linux/tc_act/tc_mirred.h             |    5 
 net/sched/act_mirred.c                            |   17 
 10 files changed, 1408 insertions(+), 8 deletions(-)

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

end of thread, other threads:[~2017-08-14 19:21 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-01  0:36 [PATCH net-next RFC 0/6] Configure cloud filters in i40e via tc/flower classifier Amritha Nambiar
2017-08-01  0:36 ` [Intel-wired-lan] " Amritha Nambiar
2017-08-01  0:37 ` [PATCH 1/6] [net-next]net: sched: act_mirred: Extend redirect action to accept a traffic class Amritha Nambiar
2017-08-01  0:37   ` [Intel-wired-lan] " Amritha Nambiar
2017-08-01 10:22   ` Jamal Hadi Salim
2017-08-01 10:22     ` [Intel-wired-lan] " Jamal Hadi Salim
2017-08-02  1:12     ` Nambiar, Amritha
2017-08-02  1:12       ` [Intel-wired-lan] " Nambiar, Amritha
2017-08-01 10:44   ` Jamal Hadi Salim
2017-08-01 10:44     ` [Intel-wired-lan] " Jamal Hadi Salim
2017-08-02  1:42     ` Nambiar, Amritha
2017-08-02  1:42       ` [Intel-wired-lan] " Nambiar, Amritha
2017-08-01 11:12   ` Jiri Pirko
2017-08-01 11:12     ` [Intel-wired-lan] " Jiri Pirko
2017-08-02  2:20     ` Nambiar, Amritha
2017-08-02  2:20       ` [Intel-wired-lan] " Nambiar, Amritha
2017-08-01  0:37 ` [PATCH 2/6] [net-next]net: i40e: Maintain a mapping of TCs with the VSI seids Amritha Nambiar
2017-08-01  0:37   ` [Intel-wired-lan] " Amritha Nambiar
2017-08-01  0:37 ` [PATCH 3/6] [net-next]net: i40e: Extend set switch config command to accept cloud filter mode Amritha Nambiar
2017-08-01  0:37   ` [Intel-wired-lan] " Amritha Nambiar
2017-08-01 10:48   ` Jamal Hadi Salim
2017-08-01 10:48     ` [Intel-wired-lan] " Jamal Hadi Salim
2017-08-01  0:37 ` [PATCH 4/6] [net-next]net: i40e: Admin queue definitions for cloud filters Amritha Nambiar
2017-08-01  0:37   ` [Intel-wired-lan] " Amritha Nambiar
2017-08-01 19:16   ` Shannon Nelson
2017-08-01 19:16     ` Shannon Nelson
2017-08-14 18:59     ` Nambiar, Amritha
2017-08-14 18:59       ` Nambiar, Amritha
2017-08-01  0:38 ` [PATCH 5/6] [net-next]net: i40e: Clean up of " Amritha Nambiar
2017-08-01  0:38   ` [Intel-wired-lan] " Amritha Nambiar
2017-08-01 19:16   ` Shannon Nelson
2017-08-01 19:16     ` Shannon Nelson
2017-08-14 19:06     ` Nambiar, Amritha
2017-08-14 19:06       ` Nambiar, Amritha
2017-08-01  0:38 ` [PATCH 6/6] [net-next]net: i40e: Enable cloud filters in i40e via tc/flower classifier Amritha Nambiar
2017-08-01  0:38   ` [Intel-wired-lan] " Amritha Nambiar
2017-08-01 10:56   ` Jamal Hadi Salim
2017-08-01 10:56     ` [Intel-wired-lan] " Jamal Hadi Salim
2017-08-02  2:13     ` Nambiar, Amritha
2017-08-02  2:13       ` [Intel-wired-lan] " Nambiar, Amritha
2017-08-02 12:02       ` Jamal Hadi Salim
2017-08-02 12:02         ` [Intel-wired-lan] " Jamal Hadi Salim
2017-08-02 18:20         ` Nambiar, Amritha
2017-08-02 18:20           ` [Intel-wired-lan] " Nambiar, Amritha
2017-08-01 19:16   ` Shannon Nelson
2017-08-01 19:16     ` Shannon Nelson
2017-08-14 19:21     ` Nambiar, Amritha
2017-08-14 19:21       ` Nambiar, Amritha
2017-08-01 10:15 ` [PATCH net-next RFC 0/6] Configure " Jamal Hadi Salim
2017-08-01 10:15   ` [Intel-wired-lan] " Jamal Hadi Salim
2017-08-02  0:57   ` Nambiar, Amritha
2017-08-02  0:57     ` [Intel-wired-lan] " Nambiar, Amritha
2017-08-02 12:01     ` Jamal Hadi Salim
2017-08-02 12:01       ` [Intel-wired-lan] " Jamal Hadi Salim
2017-08-02 18:17       ` Nambiar, Amritha
2017-08-02 18:17         ` [Intel-wired-lan] " Nambiar, Amritha
2017-08-01 19:16 ` Shannon Nelson
2017-08-01 19:16   ` Shannon Nelson

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.