net/ark: poll-mode driver for AtomicRules Arkville
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -36,6 +36,7 @@ Network Interface Controller Drivers :numbered: overview + ark bnx2x bnxt cxgbe
drivers/net/Makefile +1 -0
@@ -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
@@ -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
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.
Quoted 7 lines · Ed Czeck
This is the PMD for Atomic Rules's Arkville ARK family of devices. See
doc/guides/nics/ark.rstfor detailed description.Signed-off-by Shepard Siegel <[email protected]>Signed-off-by John Miller <[email protected]>Signed-off-by Ed Czeck <[email protected]>
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
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.rstfor detailed description.Signed-off-by Shepard Siegel <[email protected]>Signed-off-by John Miller <[email protected]>Signed-off-by Ed Czeck <[email protected]>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
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