All of lore.kernel.org
 help / color / mirror / Atom feed
* [jkirsher/next-queue PATCH v4 0/6] tc-flower based cloud filters in i40e
@ 2017-10-11  0:24 ` Amritha Nambiar
  0 siblings, 0 replies; 52+ messages in thread
From: Amritha Nambiar @ 2017-10-11  0:24 UTC (permalink / raw)
  To: intel-wired-lan, jeffrey.t.kirsher
  Cc: alexander.h.duyck, jiri, amritha.nambiar, netdev, jhs,
	alexander.duyck, xiyou.wangcong

This patch series enables configuring cloud filters in i40e
using the tc-flower classifier. The classification function
of the filter is to match a packet to a class. cls_flower is
extended to offload classid to hardware. The offloaded classid
is used direct matched packets to a traffic class on the device. 
The approach here is similar to the tc 'prio' qdisc which uses
the classid for band selection. The ingress qdisc is called ffff:0,
so traffic classes are ffff:1 to ffff:8 (i40e has max of 8 TCs).
TC0 is minor number 1, TC1 is minor number 2 etc.

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

Match Dst IPv4,Dst Port and route to TC1:
# 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 classid ffff:2

# tc filter show dev eth0 parent ffff:
filter pref 1 flower chain 0
filter pref 1 flower chain 0 handle 0x1 classid ffff:2
  eth_type ipv4
  ip_proto udp
  dst_ip 192.168.1.1
  dst_port 22
  skip_sw
  in_hw

v4: classid based approach to set traffic class for matched packets.

Authors:
Amritha Nambiar <amritha.nambiar@intel.com>
Kiran Patil <kiran.patil@intel.com>
Anjali Singhai Jain <anjali.singhai@intel.com>
Jingjing Wu <jingjing.wu@intel.com>
---

Amritha Nambiar (6):
      cls_flower: Offload classid to hardware
      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/intel/i40e/i40e.h             |   55 +
 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        |  941 +++++++++++++++++++-
 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 ++
 include/net/pkt_cls.h                              |    1 
 net/sched/cls_flower.c                             |    2 
 10 files changed, 1439 insertions(+), 39 deletions(-)

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

end of thread, other threads:[~2017-10-26 21:47 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-11  0:24 [jkirsher/next-queue PATCH v4 0/6] tc-flower based cloud filters in i40e Amritha Nambiar
2017-10-11  0:24 ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11  0:24 ` [jkirsher/next-queue PATCH v4 1/6] cls_flower: Offload classid to hardware Amritha Nambiar
2017-10-11  0:24   ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11  0:24 ` [jkirsher/next-queue PATCH v4 2/6] i40e: Map TCs with the VSI seids Amritha Nambiar
2017-10-11  0:24   ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11  0:24 ` [jkirsher/next-queue PATCH v4 3/6] i40e: Cloud filter mode for set_switch_config command Amritha Nambiar
2017-10-11  0:24   ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11 23:30   ` Shannon Nelson
2017-10-11 23:30     ` Shannon Nelson
2017-10-26 21:10     ` Nambiar, Amritha
2017-10-26 21:10       ` Nambiar, Amritha
2017-10-11  0:24 ` [jkirsher/next-queue PATCH v4 4/6] i40e: Admin queue definitions for cloud filters Amritha Nambiar
2017-10-11  0:24   ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11 23:30   ` Shannon Nelson
2017-10-11 23:30     ` Shannon Nelson
2017-10-11  0:24 ` [jkirsher/next-queue PATCH v4 5/6] i40e: Clean up of " Amritha Nambiar
2017-10-11  0:24   ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11 23:30   ` Shannon Nelson
2017-10-11 23:30     ` Shannon Nelson
2017-10-11  0:24 ` [jkirsher/next-queue PATCH v4 6/6] i40e: Enable cloud filters via tc-flower Amritha Nambiar
2017-10-11  0:24   ` [Intel-wired-lan] " Amritha Nambiar
2017-10-11 23:30   ` Shannon Nelson
2017-10-11 23:30     ` Shannon Nelson
2017-10-26 21:29     ` Nambiar, Amritha
2017-10-26 21:29       ` Nambiar, Amritha
2017-10-26 21:35       ` Shannon Nelson
2017-10-26 21:35         ` Shannon Nelson
2017-10-26 21:47         ` Nambiar, Amritha
2017-10-26 21:47           ` Nambiar, Amritha
2017-10-11 12:42 ` [jkirsher/next-queue PATCH v4 0/6] tc-flower based cloud filters in i40e Jamal Hadi Salim
2017-10-11 12:42   ` [Intel-wired-lan] " Jamal Hadi Salim
2017-10-11 22:41   ` Nambiar, Amritha
2017-10-11 22:41     ` [Intel-wired-lan] " Nambiar, Amritha
2017-10-11 12:56 ` Jiri Pirko
2017-10-11 12:56   ` [Intel-wired-lan] " Jiri Pirko
2017-10-11 17:46   ` Alexander Duyck
2017-10-11 17:46     ` [Intel-wired-lan] " Alexander Duyck
2017-10-11 20:38     ` Jiri Pirko
2017-10-11 20:38       ` [Intel-wired-lan] " Jiri Pirko
2017-10-11 20:46       ` David Miller
2017-10-11 20:46         ` [Intel-wired-lan] " David Miller
2017-10-11 20:58         ` Jiri Pirko
2017-10-11 20:58           ` [Intel-wired-lan] " Jiri Pirko
2017-10-11 21:19           ` David Miller
2017-10-11 21:19             ` [Intel-wired-lan] " David Miller
2017-10-11 21:28             ` Jiri Pirko
2017-10-11 21:28               ` [Intel-wired-lan] " Jiri Pirko
2017-10-12  7:05           ` Alexander Duyck
2017-10-12  7:05             ` [Intel-wired-lan] " Alexander Duyck
2017-10-12  7:30             ` Jiri Pirko
2017-10-12  7:30               ` [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.