Skip to content

Enable queue channel and cloud filter support on i40evf

Avinash Dayanand intel-wired-lan 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest12 patches 0 repliesNew
  2. v212 patches 0 repliesSuperseded
  3. v112 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12i40evf: Fix link up issue when queues are disableddrivers/net/ethernet/intel/i40evf/i40evf.h drivers/net/ethernet/intel/i40evf/i40evf_main.c drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c+22 -81 reply
2/12virtchnl: Add virtchl structures to support queue channelsinclude/linux/avf/virtchnl.h+40 -01 reply
3/12i40evf: add ndo_setup_tc callback to i40evfdrivers/net/ethernet/intel/i40evf/i40evf.h drivers/net/ethernet/intel/i40evf/i40evf_main.c drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c+257 -11 reply
4/12i40e: Enable ADq and create queue channel/s on VFdrivers/net/ethernet/intel/i40e/i40e_type.h drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h+379 -691 reply
5/12i40evf: Alloc queues for ADq on VFdrivers/net/ethernet/intel/i40evf/i40evf_ethtool.c drivers/net/ethernet/intel/i40evf/i40evf_main.c+20 -01 reply
6/12i40e: Delete queue channel for ADq on VFdrivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c+63 -01 reply
7/12i40evf: Add support to configure bw via tc tooldrivers/net/ethernet/intel/i40evf/i40evf.h drivers/net/ethernet/intel/i40evf/i40evf_main.c drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c+67 -31 reply
8/12i40e: Service request to configure bandwidth for ADq on a VFdrivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h+54 -31 reply
9/12virtchnl: Add a macro to check the size of a unioninclude/linux/avf/virtchnl.h+5 -31 reply
10/12virtchnl: Add filter data structuresinclude/linux/avf/virtchnl.h+59 -01 reply
11/12i40evf: Add support to apply cloud filtersdrivers/net/ethernet/intel/i40evf/i40evf.h drivers/net/ethernet/intel/i40evf/i40evf_main.c drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c+809 -41 reply
12/12i40e: Add and delete cloud filterdrivers/net/ethernet/intel/i40e/i40e.h drivers/net/ethernet/intel/i40e/i40e_main.c drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +1 more+470 -121 reply

Reviews trailers per patch

None of the 12 patches has a Reviewed-by or Acked-by.

PatchAndrew Bowers
1/12T-b
2/12T-b
3/12T-b
4/12T-b
5/12T-b
6/12T-b
7/12T-b
8/12T-b
9/12T-b
10/12T-b
11/12T-b
12/12T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Intel-wired-lan] [PATCH v3 next-queue 00/12] Enable queue channel and cloud filter support on i40evf

This patch series enables the new mqprio hardware offload mechanism creating traffic classes on VFs for XL710 devices. The parameters needed to configure these traffic classes/queue channels are provides by the user via the tc tool. A maximum of four traffic classes can be created on each VF. This patch series also enables application of cloud filters to each of these traffic classes. The cloud filters are applied using the tc-flower classifier.

Example:
1. tc qdisc add dev vf0 root mqprio num_tc 4 map 0 0 0 0 1 2 2 3\
queues 2 at 0 2 at 2 1 at 4 1 at 5 hw 1 mode channel
2. tc qdisc add dev vf0 ingress
3. ethtool -K vf0 hw-tc-offload on
4. ip link set eth0 vf 0 spoofchk off
5. tc filter add dev vf0 protocol ip parent ffff: prio 1 flower dst_ip\
192.168.3.5/32 ip_proto udp dst_port 25 skip_sw hw_tc 2

Avinash Dayanand (6):
i40evf: Fix link up issue when queues are disabled
i40e: Enable ADq and create queue channel/s on VF
i40evf: Alloc queues for ADq on VF
i40e: Delete queue channel for ADq on VF
i40e: Service request to configure bandwidth for ADq on a VF
i40e: Add and delete cloud filter

Harshitha Ramamurthy (6):
virtchnl: Add virtchl structures to support queue channels i40evf : add ndo_setup_tc callback to i40evf
i40evf: Add support to configure bw via tc tool
virtchnl: Add a macro to check the size of a union
virtchnl: Add filter data structures
i40evf: Add support to apply cloud filters

 drivers/net/ethernet/intel/i40e/i40e.h             |    6 +
 drivers/net/ethernet/intel/i40e/i40e_main.c        |   16 +-
 drivers/net/ethernet/intel/i40e/i40e_type.h        |    2 +-
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 1000 ++++++++++++++++++--
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h |   20 +
 drivers/net/ethernet/intel/i40evf/i40evf.h         |   72 ++
 drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c |    6 +
 drivers/net/ethernet/intel/i40evf/i40evf_main.c    |  797 +++++++++++++++-
 .../net/ethernet/intel/i40evf/i40evf_virtchnl.c    |  300 +++++-
 include/linux/avf/virtchnl.h                       |  107 ++-
 10 files changed, 2232 insertions(+), 94 deletions(-)
Signature · 1 line
2.9.4