Skip to contentSkip to conversation

net/ark: poll-mode driver for AtomicRules Arkville

PATCH Superseded Ed Czeck 3 participants 4 messages Mar 17, 2017 – Mar 21, 2017 Network drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Ed Czeck

author
#0 lore raw

PATCH 1/1 net/ark: poll-mode driver for AtomicRules Arkville

This is the PMD for Atomic Rules's Arkville ARK family of devices. See doc/guides/nics/ark.rst for detailed description.

---
 MAINTAINERS                                 |   8 +
 config/common_base                          |  10 +
 config/defconfig_arm-armv7a-linuxapp-gcc    |   1 +
 config/defconfig_ppc_64-power8-linuxapp-gcc |   1 +
 doc/guides/nics/ark.rst                     | 238 +++++++
 doc/guides/nics/features/ark.ini            |  15 +
 doc/guides/nics/index.rst                   |   1 +
 drivers/net/Makefile                        |   1 +
 drivers/net/ark/Makefile                    |  73 +++
 drivers/net/ark/ark_ddm.c                   | 150 +++++
 drivers/net/ark/ark_ddm.h                   | 154 +++++
 drivers/net/ark/ark_debug.h                 |  72 ++
 drivers/net/ark/ark_ethdev.c                | 982 ++++++++++++++++++++++++++++
 drivers/net/ark/ark_ethdev.h                |  75 +++
 drivers/net/ark/ark_ethdev.o.pmd.c          |   2 +
 drivers/net/ark/ark_ethdev_rx.c             | 671 +++++++++++++++++++
 drivers/net/ark/ark_ethdev_tx.c             | 479 ++++++++++++++
 drivers/net/ark/ark_ext.h                   |  71 ++
 drivers/net/ark/ark_global.h                | 164 +++++
 drivers/net/ark/ark_mpu.c                   | 168 +++++
 drivers/net/ark/ark_mpu.h                   | 143 ++++
 drivers/net/ark/ark_pktchkr.c               | 445 +++++++++++++
 drivers/net/ark/ark_pktchkr.h               | 114 ++++
 drivers/net/ark/ark_pktdir.c                |  79 +++
 drivers/net/ark/ark_pktdir.h                |  68 ++
 drivers/net/ark/ark_pktgen.c                | 477 ++++++++++++++
 drivers/net/ark/ark_pktgen.h                | 106 +++
 drivers/net/ark/ark_rqp.c                   |  93 +++
 drivers/net/ark/ark_rqp.h                   |  75 +++
 drivers/net/ark/ark_udm.c                   | 221 +++++++
 drivers/net/ark/ark_udm.h                   | 175 +++++
 drivers/net/ark/rte_pmd_ark_version.map     |   4 +
 mk/rte.app.mk                               |   1 +
 33 files changed, 5337 insertions(+)
 create mode 100644 doc/guides/nics/ark.rst
 create mode 100644 doc/guides/nics/features/ark.ini
 create mode 100644 drivers/net/ark/Makefile
 create mode 100644 drivers/net/ark/ark_ddm.c
 create mode 100644 drivers/net/ark/ark_ddm.h
 create mode 100644 drivers/net/ark/ark_debug.h
 create mode 100644 drivers/net/ark/ark_ethdev.c
 create mode 100644 drivers/net/ark/ark_ethdev.h
 create mode 100644 drivers/net/ark/ark_ethdev.o.pmd.c
 create mode 100644 drivers/net/ark/ark_ethdev_rx.c
 create mode 100644 drivers/net/ark/ark_ethdev_tx.c
 create mode 100644 drivers/net/ark/ark_ext.h
 create mode 100644 drivers/net/ark/ark_global.h
 create mode 100644 drivers/net/ark/ark_mpu.c
 create mode 100644 drivers/net/ark/ark_mpu.h
 create mode 100644 drivers/net/ark/ark_pktchkr.c
 create mode 100644 drivers/net/ark/ark_pktchkr.h
 create mode 100644 drivers/net/ark/ark_pktdir.c
 create mode 100644 drivers/net/ark/ark_pktdir.h
 create mode 100644 drivers/net/ark/ark_pktgen.c
 create mode 100644 drivers/net/ark/ark_pktgen.h
 create mode 100644 drivers/net/ark/ark_rqp.c
 create mode 100644 drivers/net/ark/ark_rqp.h
 create mode 100644 drivers/net/ark/ark_udm.c
 create mode 100644 drivers/net/ark/ark_udm.h
 create mode 100644 drivers/net/ark/rte_pmd_ark_version.map
MAINTAINERS +8 -0
index 39bc78e..6f6136a 100644
@@ -280,6 +280,14 @@ M: Evgeny Schemeilin <[email protected]>
 F: drivers/net/ena/
 F: doc/guides/nics/ena.rst
 
+Atomic Rules ark
+M: Shepard Siegel <[email protected]>
+M: Ed Czeck       <[email protected]>
+M: John Miller    <[email protected]>
+F: /drivers/net/ark/
+F: doc/guides/nics/ark.rst
+F: doc/guides/nics/features/ark.ini
+
 Broadcom bnxt
 M: Stephen Hurd <[email protected]>
 M: Ajit Khaparde <[email protected]>
config/common_base +10 -0
index aeee13e..e64cd83 100644
@@ -348,6 +348,16 @@ CONFIG_RTE_LIBRTE_QEDE_FW=""
 CONFIG_RTE_LIBRTE_PMD_AF_PACKET=n
 
 #
+# Compile ARK PMD
+#
+CONFIG_RTE_LIBRTE_ARK_PMD=y
+CONFIG_RTE_LIBRTE_ARK_DEBUG_RX=n
+CONFIG_RTE_LIBRTE_ARK_DEBUG_TX=n
+CONFIG_RTE_LIBRTE_ARK_DEBUG_STATS=n
+CONFIG_RTE_LIBRTE_ARK_DEBUG_TRACE=n
+
+
+#
 # Compile the TAP PMD
 # It is enabled by default for Linux only.
 #
config/defconfig_arm-armv7a-linuxapp-gcc +1 -0
index d9bd2a8..6d2b5e0 100644
@@ -61,6 +61,7 @@ CONFIG_RTE_SCHED_VECTOR=n
 
 # cannot use those on ARM
 CONFIG_RTE_KNI_KMOD=n
+CONFIG_RTE_LIBRTE_ARK_PMD=n
 CONFIG_RTE_LIBRTE_EM_PMD=n
 CONFIG_RTE_LIBRTE_IGB_PMD=n
 CONFIG_RTE_LIBRTE_CXGBE_PMD=n
config/defconfig_ppc_64-power8-linuxapp-gcc +1 -0
index 35f7fb6..89bc396 100644
@@ -48,6 +48,7 @@ CONFIG_RTE_LIBRTE_EAL_VMWARE_TSC_MAP_SUPPORT=n
 
 # Note: Initially, all of the PMD drivers compilation are turned off on Power
 # Will turn on them only after the successful testing on Power
+CONFIG_RTE_LIBRTE_ARK_PMD=n
 CONFIG_RTE_LIBRTE_IXGBE_PMD=n
 CONFIG_RTE_LIBRTE_I40E_PMD=n
 CONFIG_RTE_LIBRTE_VIRTIO_PMD=y
doc/guides/nics/ark.rst new file +238 -0

238 lines not on this page · raw message

doc/guides/nics/features/ark.ini new file +15 -0
new file mode 100644
index 0000000..dc8a0e2
@@ -0,0 +1,15 @@
+;
+; Supported features of the 'ark' poll mode driver.
+;
+; Refer to default.ini for the full list of available PMD features.
+;
+[Features]
+Queue start/stop     = Y
+Jumbo frame          = Y
+Scattered Rx         = Y
+Basic stats          = Y
+Stats per queue      = Y
+FW version           = Y
+Linux UIO            = Y
+x86-64               = Y
+Usage doc            = Y
doc/guides/nics/index.rst +1 -0
index 87f9334..381d82c 100644
@@ -36,6 +36,7 @@ Network Interface Controller Drivers
     :numbered:
 
     overview
+    ark
     bnx2x
     bnxt
     cxgbe
drivers/net/Makefile +1 -0
index a16f25e..ea9868b 100644
@@ -32,6 +32,7 @@
 include $(RTE_SDK)/mk/rte.vars.mk
 
 DIRS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += af_packet
+DIRS-$(CONFIG_RTE_LIBRTE_ARK_PMD) += ark
 DIRS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x
 DIRS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += bonding
 DIRS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += cxgbe
drivers/net/ark/Makefile new file +73 -0

73 lines not on this page · raw message

drivers/net/ark/ark_ddm.c new file +150 -0

150 lines not on this page · raw message

drivers/net/ark/ark_ddm.h new file +154 -0

154 lines not on this page · raw message

drivers/net/ark/ark_debug.h new file +72 -0

72 lines not on this page · raw message

drivers/net/ark/ark_ethdev.c new file +982 -0

982 lines not on this page · raw message

drivers/net/ark/ark_ethdev.h new file +75 -0

75 lines not on this page · raw message

drivers/net/ark/ark_ethdev.o.pmd.c new file +2 -0
new file mode 100644
index 0000000..fb84d20
@@ -0,0 +1,2 @@
+const char net_ark_pmd_info[] __attribute__((used)) = "PMD_INFO_STRING= {\"name\" : \"net_ark\", \"kmod\" : \"* igb_uio | uio_pci_generic \", \"pci_ids\" : []}";
+const char eth_ark_pmd_info[] __attribute__((used)) = "PMD_INFO_STRING= {\"name\" : \"eth_ark\", \"pci_ids\" : [[7532, 4109, 65535, 65535],[7532, 4110, 65535, 65535] ]}";
drivers/net/ark/ark_ethdev_rx.c new file +671 -0

671 lines not on this page · raw message

drivers/net/ark/ark_ethdev_tx.c new file +479 -0

479 lines not on this page · raw message

drivers/net/ark/ark_ext.h new file +71 -0

31 lines not on this page · raw message

drivers/net/ark/ark_global.h new file +164 -0

164 lines not on this page · raw message

drivers/net/ark/ark_mpu.c new file +168 -0

168 lines not on this page · raw message

drivers/net/ark/ark_mpu.h new file +143 -0

143 lines not on this page · raw message

drivers/net/ark/ark_pktchkr.c new file +445 -0

445 lines not on this page · raw message

drivers/net/ark/ark_pktchkr.h new file +114 -0

114 lines not on this page · raw message

drivers/net/ark/ark_pktdir.c new file +79 -0

79 lines not on this page · raw message

drivers/net/ark/ark_pktdir.h new file +68 -0

68 lines not on this page · raw message

drivers/net/ark/ark_pktgen.c new file +477 -0

477 lines not on this page · raw message

drivers/net/ark/ark_pktgen.h new file +106 -0

106 lines not on this page · raw message

drivers/net/ark/ark_rqp.c new file +93 -0

93 lines not on this page · raw message

drivers/net/ark/ark_rqp.h new file +75 -0

75 lines not on this page · raw message

drivers/net/ark/ark_udm.c new file +221 -0

221 lines not on this page · raw message

drivers/net/ark/ark_udm.h new file +175 -0

175 lines not on this page · raw message

drivers/net/ark/rte_pmd_ark_version.map new file +4 -0
new file mode 100644
index 0000000..7f84780

Lines of this file are not shown. View the raw message.

mk/rte.app.mk +1 -0
index 0e0b600..da23898 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.9.1

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 7 lines · Ed Czeck

This is the PMD for Atomic Rules's Arkville ARK family of devices. See doc/guides/nics/ark.rst for detailed description.

Hi Shepard, John, Ed,

Thank you for the new PMD, it is great to see that DPDK coverage is expanding.

Intention to share this PMD was already communicated in previous release [1]. I hope PMD gets reviewed enough to be in this release.

And as a first thing, instead of one big patch, it helps a lot to get reviewed if the patch split into smaller functional patches. There are some good samples of it in the repo, or among the waiting PMDs..

Thanks,
ferruh

[1]
http://dpdk.org/ml/archives/dev/2016-December/051304.html

#2 lore raw

Thanks Ferruh,

Our team spent the weekend clearing the issues with last week's v1 submission, knocking down as many checkpatch issues as we can, cross compiling to both 32-bit and ARM targets, and of-course, testing on DTS and other hardware. We expect to follow Thomas' suggestion and re-send the whole patch as a v2, using -v2 and --in-reply-to options. We feel it would complicate things to pull the net/ark PMD into still-smaller pieces. Watch for the v2 patch as early as today; but certainly within a few days. We understand the integration deadline for 17.05 closes 3/30.

best,
-Shep for AR team

Quoted 31 lines · Ferruh Yigit
Quoted 7 lines · Ed Czeck

This is the PMD for Atomic Rules's Arkville ARK family of devices. See doc/guides/nics/ark.rst for detailed description.

Hi Shepard, John, Ed,

Thank you for the new PMD, it is great to see that DPDK coverage is expanding.

Intention to share this PMD was already communicated in previous release [1]. I hope PMD gets reviewed enough to be in this release.

And as a first thing, instead of one big patch, it helps a lot to get reviewed if the patch split into smaller functional patches. There are some good samples of it in the repo, or among the waiting PMDs..

Thanks,
ferruh

[1]
http://dpdk.org/ml/archives/dev/2016-December/051304.html

#3 lore raw

On 3/20/2017 1:18 PM, Shepard Siegel wrote:

Hi Shepard,

Quoted 2 lines

We feel it would complicate things to pull the net/ark PMD into still-smaller pieces.

Why do you think smaller patches would complicate things?

I agree that will require some effort, but I believe that can help others to understand, review, maintain, improve the PMD. It may not be easy to spot any issue in 5K+ lines of patch.

Thanks,
ferruh