Skip to content

ice: add Intel DCF mode support

Haiyue Wang intel-wired-lan netdev 8 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest5 patches 0 repliesNew
  2. v75 patches 2 repliesSuperseded
  3. v65 patches 0 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v55 patches0 repliesSuperseded
v45 patches0 repliesSuperseded
v35 patches0 repliesSuperseded
v25 patches0 repliesSuperseded
v15 patches0 repliesSuperseded

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ice: add the virtchnl handler for AdminQ commanddrivers/net/ethernet/intel/ice/Makefile drivers/net/ethernet/intel/ice/ice.h drivers/net/ethernet/intel/ice/ice_adminq_cmd.h +5 more+219 -12 replies
2/5ice: add DCF cap negotiation and state machinedrivers/net/ethernet/intel/ice/ice_dcf.c drivers/net/ethernet/intel/ice/ice_dcf.h drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c +1 more+194 -12 replies
3/5ice: support to get the VSI mappingdrivers/net/ethernet/intel/ice/ice_virtchnl_pf.c include/linux/avf/virtchnl.h+82 -02 replies
4/5ice: enable DDP package info queryingdrivers/net/ethernet/intel/ice/ice_dcf.h drivers/net/ethernet/intel/ice/ice_main.c drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c +1 more+83 -02 replies
5/5ice: add switch rule management for DCFdrivers/net/ethernet/intel/ice/ice_dcf.c drivers/net/ethernet/intel/ice/ice_dcf.h drivers/net/ethernet/intel/ice/ice_switch.c +3 more+815 -252 replies

Reviews trailers per patch

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

PatchNannan LuAndrew Bowers
1/5T-b T-b
2/5T-b T-b
3/5T-b T-b
4/5T-b T-b
5/5T-b T-b

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

Read the v8 thread

Cover letter [Intel-wired-lan] [net-next, v8 0/5] ice: add Intel DCF mode support

The iproute2 and ethtool are evolving to expose the NIC hardware capability. But these available orchestration methods in Linux kernel are limited in their capability to exercise advance functionality in the hardware, since different vendors may have different data programming method.

Intel Ethernet Adaptive Virtual Function (AVF) is the common hardware interface for SR-IOV, it has the defined message format to talks with the PF.

To make good use of the advanced functionality like Switch (Binary Classifier), The ice PF driver introduces a DCF (Device Config Function) mode to extend the AVF feature.

The DCF (Device Config Function) method wraps an raw flow admin queue command in a virthcnl message and sends it to the PF to be executed. This is required because it doesn't have the privilege level to issue the admin queue commands, so it acts as a proxy PF. So that the user can customize the AVF feature, and use their own programming language to translate the flow rule management data into ice raw flow, these raw flows then can be executed in PF's sandbox.

And the kernel PF driver fully controls the behavior of DCF for security, like only the trusted VF with ID zero can run into DCF mode, and also for being compatible with the common AVF feature, the VF needs to advertise and acquire DCF capability firstly.

v8: fix unaligned pointer use for packed/unaligned structure

v7: Remove the CONFIG_PCI_IOV for function 'ice_aq_sw_rules'.

v6: Rebase with the new commit for ice_switch.c/h.

v5: Update the prefix with 'net-next'.

v4: Mirror commit message update.

v3: Remove the unused function, and control the ice_aq_sw_rules scope by CONFIG_PCI_IOV.
Capitalize all abbreviations.

v2: Fix the macro ICE_DCF_VFID definition style issue.

Haiyue Wang (5):
ice: add the virtchnl handler for AdminQ command
ice: add DCF cap negotiation and state machine
ice: support to get the VSI mapping
ice: enable DDP package info querying
ice: add switch rule management for DCF

 drivers/net/ethernet/intel/ice/Makefile       |   2 +-
 drivers/net/ethernet/intel/ice/ice.h          |   2 +
 .../net/ethernet/intel/ice/ice_adminq_cmd.h   |   6 +
 drivers/net/ethernet/intel/ice/ice_dcf.c      | 833 ++++++++++++++++++
 drivers/net/ethernet/intel/ice/ice_dcf.h      |  91 ++
 drivers/net/ethernet/intel/ice/ice_main.c     |   2 +
 drivers/net/ethernet/intel/ice/ice_switch.c   |  16 +-
 drivers/net/ethernet/intel/ice/ice_switch.h   |  27 +-
 drivers/net/ethernet/intel/ice/ice_type.h     |   9 +
 .../net/ethernet/intel/ice/ice_virtchnl_pf.c  | 366 ++++++++
 .../net/ethernet/intel/ice/ice_virtchnl_pf.h  |   1 +
 include/linux/avf/virtchnl.h                  |  63 ++
 12 files changed, 1392 insertions(+), 26 deletions(-)
 create mode 100644 drivers/net/ethernet/intel/ice/ice_dcf.c
 create mode 100644 drivers/net/ethernet/intel/ice/ice_dcf.h
Signature · 1 line
2.27.0