Skip to content

Add i40e PMD support

Helin Zhang dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest27 patches 7 repliesIn review
  2. v122 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/27i40e: add basic shared codelib/librte_pmd_i40e/i40e/i40e_adminq.c lib/librte_pmd_i40e/i40e/i40e_adminq.h lib/librte_pmd_i40e/i40e/i40e_adminq_cmd.h +17 more+29823 -00 replies
2/27i40e: add PMD source fileslib/librte_pmd_i40e/Makefile lib/librte_pmd_i40e/i40e/i40e_osdep.h lib/librte_pmd_i40e/i40e_ethdev.c +7 more+9455 -00 replies
3/27pci: add macros and pci device IDs to support i40elib/librte_eal/common/include/rte_pci_dev_ids.h+44 -00 replies
4/27igb_uio: add i40e supportlib/librte_eal/linuxapp/igb_uio/igb_uio.c+2 -00 replies
5/27mbuf: add new packet flags for i40elib/librte_mbuf/rte_mbuf.h+8 -02 replies
6/27ethdev: add i40e supportlib/librte_ether/rte_ethdev.c lib/librte_ether/rte_ethdev.h lib/librte_ether/rte_ether.h+175 -180 replies
7/27ethdev: support setting maximum packet length to less than 1518lib/librte_ether/rte_ethdev.c+7 -30 replies
8/27vmxnet3: enlarge the hash flags of RSS to 64 bitslib/librte_pmd_vmxnet3/vmxnet3_rxtx.c+12 -40 replies
9/27ixgbe: enlarge the hash flags of RSS to 64 bitslib/librte_pmd_ixgbe/ixgbe_rxtx.c+15 -70 replies
10/27igb: enlarge the hash flags of RSS to 64 bitslib/librte_pmd_e1000/igb_rxtx.c+16 -50 replies
11/27mk: add i40e supportlib/Makefile mk/rte.app.mk+5 -00 replies
12/27config: add configurations for i40econfig/common_bsdapp config/common_linuxapp+40 -00 replies
13/27app/test-pmd: support displaying 32 bytes RX descriptorsapp/test-pmd/config.c+33 -30 replies
14/27app/test-pmd: add command of 'tx_vlan set pvid port_id vlan_id (on|off)'app/test-pmd/cmdline.c app/test-pmd/config.c app/test-pmd/testpmd.h+71 -10 replies
15/27app/testpmd: enlarge the hash flags of RSS to 64 bitsapp/test-pmd/cmdline.c app/test-pmd/parameters.c app/test-pmd/testpmd.c +1 more+6 -70 replies
16/27app/test-pmd: add L3 packet type in offload flagsapp/test-pmd/csumonly.c+2 -00 replies
17/27examples/dpdk_qat: use ETH_RSS_IP to replace IP hash flags of RSSexamples/dpdk_qat/main.c+1 -10 replies
18/27examples/ip_reassembly: use ETH_RSS_IP to replace IP hash flags of RSSexamples/ip_reassembly/main.c+1 -10 replies
19/27examples/l3fwd-power: use ETH_RSS_IP to replace IP hash flags of RSSexamples/l3fwd-power/main.c+1 -10 replies
20/27examples/l3fwd-vf: use ETH_RSS_IP to replace IP hash flags of RSSexamples/l3fwd-vf/main.c+1 -10 replies
21/27examples/l3fwd: use ETH_RSS_IP to replace IP hash flags of RSSexamples/l3fwd/main.c+1 -10 replies
22/27examples/load_balancer: use ETH_RSS_IP to replace IP hash flags of RSSexamples/load_balancer/init.c+1 -10 replies
23/27examples/multi_process: use ETH_RSS_IP to replace IP hash flags of RSSexamples/multi_process/symmetric_mp/main.c+1 -10 replies
24/27examples/qos_meter: use ETH_RSS_IP to replace IP hash flags of RSSexamples/qos_meter/main.c+1 -10 replies
25/27igb_uio: add sys files to read/write specific bits in pci config spacelib/librte_eal/linuxapp/igb_uio/igb_uio.c+105 -00 replies
26/27pci: support reading/writing sys files of 'extended_tag' and 'max_read_request_size'lib/librte_eal/linuxapp/eal/eal_pci.c+99 -00 replies
27/27config: add configurations for enabling 'Extended Tag' or resetting 'Max Read Request Size'config/common_linuxapp+10 -00 replies

Reviews trailers per patch

All 27 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchCunming LiangJijiang LiuJingjing WuWaterman CaoHeqing Zhu
SeriesA-b A-b A-b A-b A-b A-b T-b T-b A-b
1/27A-b A-b A-b T-b
2/27A-b A-b A-b T-b
3/27A-b A-b A-b T-b
4/27A-b A-b A-b T-b
5/27A-b A-b A-b T-b
6/27A-b A-b A-b T-b
7/27A-b A-b A-b T-b
8/27A-b A-b A-b T-b
9/27A-b A-b A-b T-b
10/27A-b A-b A-b T-b
11/27A-b A-b A-b T-b
12/27A-b A-b A-b T-b
13/27A-b A-b A-b T-b
14/27A-b A-b A-b T-b
15/27A-b A-b A-b T-b
16/27A-b A-b A-b T-b
17/27A-b A-b A-b T-b
18/27A-b A-b A-b T-b
19/27A-b A-b A-b T-b
20/27A-b A-b A-b T-b
21/27A-b A-b A-b T-b
22/27A-b A-b A-b T-b
23/27A-b A-b A-b T-b
24/27A-b A-b A-b T-b
25/27A-b A-b A-b T-b
26/27A-b A-b A-b T-b
27/27A-b A-b A-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/27] Add i40e PMD support

Summary:
The 2nd version of series of patches are to add i40e PMD support. It contains the updated basic shared code, and some other enhancements. It adds the support of the latest version of firmware.
* Add new PMD driver of i40e in the folder of librte_pmd_i40e
* Add some neccessary definitions, changes in rte_mbuf.h and eth_dev
* Add new configurations for i40e
* Add or modifiy makefiles to support i40e compilation
* Add neccessary changes in ixgbe, e1000 and vmxnet3 PMD, as hash flags has been enlarged from 16 bits to 64 bits to support i40e
* Add neccessary changes in example applications and testpmd to use ETH_RSS_IP to replace all IP hash flags, as i40e introduced more hash flags.
* Add command in testpmd for port based vlan insertion offload testing
* Add neccessary changes in eth_dev to support configuring maximum packet length of less than 1518
* Add two sys files in igb_uio to support enabling/disabling 'Extended Tag' and resetting 'Max Read Request Size', as it has big impacts on i40e performance
* Add neccessary changes in pci to read/write the above two sys files during probing PCI

Features/enhancements to be implemented later:
* Set link speed, and physically up/down
* Double VLAN support, flow director, VMDq and DCB
* VLAN insertion/stripping, RSS in VF

Validation Summary:
This patch includes 27 files, and has been tested by Intel(R). Please see test environment information as the following:
* Fedora 20 x86_64
* Linux Kernel 3.11.10-301
* GCC 4.8.2
* Intel Xeon CPU E5-2680 v2 @ 2.80GHz
We verified this patch with two NICs (i40e 4x10 SFP+, i40e 2x40G), and performed basic function test on PF and VF.
All cases are passed.
Total cases Passed Failed

          138     138       0

---
Helin Zhang (27):
i40e: add basic shared code
i40e: add PMD source files
pci: add macros and pci device IDs to support i40e
igb_uio: add i40e support
mbuf: add new packet flags for i40e
ethdev: add i40e support
ethdev: support setting maximum packet length to less than 1518
vmxnet3: enlarge the hash flags of RSS to 64 bits
ixgbe: enlarge the hash flags of RSS to 64 bits
igb: enlarge the hash flags of RSS to 64 bits
mk: add i40e support
config: add configurations for i40e
app/test-pmd: support displaying 32 bytes RX descriptors app/test-pmd: add command of 'tx_vlan set pvid port_id vlan_id

    (on|off)'

app/testpmd: enlarge the hash flags of RSS to 64 bits app/test-pmd: add L3 packet type in offload flags examples/dpdk_qat: use ETH_RSS_IP to replace IP hash flags of RSS examples/ip_reassembly: use ETH_RSS_IP to replace IP hash flags of RSS examples/l3fwd-power: use ETH_RSS_IP to replace IP hash flags of RSS examples/l3fwd-vf: use ETH_RSS_IP to replace IP hash flags of RSS examples/l3fwd: use ETH_RSS_IP to replace IP hash flags of RSS examples/load_balancer: use ETH_RSS_IP to replace IP hash flags of RSS examples/multi_process: use ETH_RSS_IP to replace IP hash flags of RSS examples/qos_meter: use ETH_RSS_IP to replace IP hash flags of RSS
igb_uio: add sys files to read/write specific bits in pci config space
pci: support reading/writing sys files of 'extended_tag' and
'max_read_request_size'
config: add configurations for enabling 'Extended Tag' or resetting
'Max Read Request Size'

 app/test-pmd/cmdline.c                            |    65 +-
 app/test-pmd/config.c                             |    45 +-
 app/test-pmd/csumonly.c                           |     2 +
 app/test-pmd/parameters.c                         |     5 +-
 app/test-pmd/testpmd.c                            |     2 +-
 app/test-pmd/testpmd.h                            |     4 +-
 config/common_bsdapp                              |    20 +
 config/common_linuxapp                            |    30 +
 examples/dpdk_qat/main.c                          |     2 +-
 examples/ip_reassembly/main.c                     |     2 +-
 examples/l3fwd-power/main.c                       |     2 +-
 examples/l3fwd-vf/main.c                          |     2 +-
 examples/l3fwd/main.c                             |     2 +-
 examples/load_balancer/init.c                     |     2 +-
 examples/multi_process/symmetric_mp/main.c        |     2 +-
 examples/qos_meter/main.c                         |     2 +-
 lib/Makefile                                      |     1 +
 lib/librte_eal/common/include/rte_pci_dev_ids.h   |    44 +
 lib/librte_eal/linuxapp/eal/eal_pci.c             |    99 +
 lib/librte_eal/linuxapp/igb_uio/igb_uio.c         |   107 +
 lib/librte_ether/rte_ethdev.c                     |    25 +-
 lib/librte_ether/rte_ethdev.h                     |   154 +-
 lib/librte_ether/rte_ether.h                      |    24 +
 lib/librte_mbuf/rte_mbuf.h                        |     8 +
 lib/librte_pmd_e1000/igb_rxtx.c                   |    21 +-
 lib/librte_pmd_i40e/Makefile                      |    85 +
 lib/librte_pmd_i40e/i40e/i40e_adminq.c            |  1103 ++
 lib/librte_pmd_i40e/i40e/i40e_adminq.h            |   158 +
 lib/librte_pmd_i40e/i40e/i40e_adminq_cmd.h        |  2179 ++++
 lib/librte_pmd_i40e/i40e/i40e_alloc.h             |    65 +
 lib/librte_pmd_i40e/i40e/i40e_common.c            |  4846 +++++++++
 lib/librte_pmd_i40e/i40e/i40e_dcb.c               |  1104 ++
 lib/librte_pmd_i40e/i40e/i40e_dcb.h               |   264 +
 lib/librte_pmd_i40e/i40e/i40e_diag.c              |   188 +
 lib/librte_pmd_i40e/i40e/i40e_diag.h              |    61 +
 lib/librte_pmd_i40e/i40e/i40e_hmc.c               |   373 +
 lib/librte_pmd_i40e/i40e/i40e_hmc.h               |   244 +
 lib/librte_pmd_i40e/i40e/i40e_lan_hmc.c           |  1616 +++
 lib/librte_pmd_i40e/i40e/i40e_lan_hmc.h           |   214 +
 lib/librte_pmd_i40e/i40e/i40e_nvm.c               |   942 ++
 lib/librte_pmd_i40e/i40e/i40e_osdep.h             |   197 +
 lib/librte_pmd_i40e/i40e/i40e_prototype.h         |   435 +
 lib/librte_pmd_i40e/i40e/i40e_register.h          |  3377 ++++++
 lib/librte_pmd_i40e/i40e/i40e_register_x710_int.h | 10712 ++++++++++++++++++++
 lib/librte_pmd_i40e/i40e/i40e_status.h            |   107 +
 lib/librte_pmd_i40e/i40e/i40e_type.h              |  1462 +++
 lib/librte_pmd_i40e/i40e/i40e_virtchnl.h          |   373 +
 lib/librte_pmd_i40e/i40e_ethdev.c                 |  4019 ++++++++
 lib/librte_pmd_i40e/i40e_ethdev.h                 |   356 +
 lib/librte_pmd_i40e/i40e_ethdev_vf.c              |  1336 +++
 lib/librte_pmd_i40e/i40e_logs.h                   |    74 +
 lib/librte_pmd_i40e/i40e_pf.c                     |   928 ++
 lib/librte_pmd_i40e/i40e_pf.h                     |    67 +
 lib/librte_pmd_i40e/i40e_rxtx.c                   |  2204 ++++
 lib/librte_pmd_i40e/i40e_rxtx.h                   |   189 +
 lib/librte_pmd_ixgbe/ixgbe_rxtx.c                 |    22 +-
 lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c             |    16 +-
 mk/rte.app.mk                                     |     4 +
 58 files changed, 39936 insertions(+), 56 deletions(-)
 create mode 100644 lib/librte_pmd_i40e/Makefile
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_adminq.c
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_adminq.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_adminq_cmd.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_alloc.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_common.c
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_dcb.c
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_dcb.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_diag.c
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_diag.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_hmc.c
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_hmc.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_lan_hmc.c
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_lan_hmc.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_nvm.c
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_osdep.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_prototype.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_register.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_register_x710_int.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_status.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_type.h
 create mode 100644 lib/librte_pmd_i40e/i40e/i40e_virtchnl.h
 create mode 100644 lib/librte_pmd_i40e/i40e_ethdev.c
 create mode 100644 lib/librte_pmd_i40e/i40e_ethdev.h
 create mode 100644 lib/librte_pmd_i40e/i40e_ethdev_vf.c
 create mode 100644 lib/librte_pmd_i40e/i40e_logs.h
 create mode 100644 lib/librte_pmd_i40e/i40e_pf.c
 create mode 100644 lib/librte_pmd_i40e/i40e_pf.h
 create mode 100644 lib/librte_pmd_i40e/i40e_rxtx.c
 create mode 100644 lib/librte_pmd_i40e/i40e_rxtx.h
Signature · 1 line
1.8.1.4