[dpdk-dev] [PATCH v9] drivers/net:new PMD using tun/tap host interface

2016-11-29 Thread Wiles, Keith
> On Nov 29, 2016, at 3:36 PM, Aws Ismail wrote: > > I have verified that adding just a single tap device works with testpmd. But > as soon as I try more than one tap device, I would get a coredump, e.g.: > > root@?localhost:~# testpmd -c f -n 4 --socket-mem 512 > --vdev=net_tap?,iface=tap0?

[dpdk-dev] [PATCH] doc: remove wrong document description

2016-11-29 Thread Thomas Monjalon
2016-11-29 12:54, Baruch Siach: > On Tue, Nov 29, 2016 at 09:54:58AM +, Mcnamara, John wrote: > > Acked-by: John McNamara > > Thanks. For some reason patchwork didn't get your ack. That's because you are not registered to the mailing list so your email was in a moderation queue while John

[dpdk-dev] [PATCH v3 2/7] vhost: get guest/host physical address mappings

2016-11-29 Thread linhaifeng
? 2016/10/9 15:27, Yuanhan Liu ??: > +static void > +add_guest_pages(struct virtio_net *dev, struct virtio_memory_region *reg, > + uint64_t page_size) > +{ > + uint64_t reg_size = reg->size; > + uint64_t host_user_addr = reg->host_user_addr; > + uint64_t guest_phys_addr =

[dpdk-dev] [PATCH] dpdk: Fix abort on double free.

2016-11-29 Thread Daniele Di Proietto
On 29/11/2016 07:57, "Aaron Conole" wrote: >Hi Ilya, > >Ilya Maximets writes: > >> On 28.11.2016 21:55, Aaron Conole wrote: >>> Ilya Maximets writes: >>> According to DPDK API (lib/librte_eal/common/include/rte_eal.h): "After the call to rte_eal_init(), all arguments

[dpdk-dev] [PATCH] doc: introduce PVP reference benchmark

2016-11-29 Thread Yuanhan Liu
On Thu, Nov 24, 2016 at 08:35:51AM +0100, Maxime Coquelin wrote: > > > On 11/24/2016 06:07 AM, Yuanhan Liu wrote: > >First of all, thanks for the doc! It's a great one. > Thanks. > I would be interested to know if you have other tuning I don't mention > in this doc. I was thinking we may need

[dpdk-dev] [PATCH 1/1] net/i40e: enable auto link update for XXV710

2016-11-29 Thread Ferruh Yigit
Hi Qi, On 11/24/2016 11:43 PM, Qi Zhang wrote: > This patch remove the limitation that XXV710 device does XXV710 is 25G device, and support added in 16.11 (please correct me if this is wrong.), but I can't find any DPDK documentation for this device. Can you please add some documentation, at

[dpdk-dev] [PATCH] doc: fix typos in code comments

2016-11-29 Thread Yong Wang
Signed-off-by: Yong Wang --- lib/librte_mempool/rte_mempool.h | 2 +- lib/librte_ring/rte_ring.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h index 440f3b1..c221333 100644 ---

[dpdk-dev] [PATCH v9] drivers/net:new PMD using tun/tap host interface

2016-11-29 Thread Aws Ismail
I have verified that adding just a single tap device works with testpmd. But as soon as I try more than one tap device, I would get a coredump, e.g.: root@ ?localhost :~# testpmd -c f -n 4 --socket-mem 512 --vdev=net_tap ?,iface=tap0? --vdev=net_tap ?,iface=tap1? -- -i EAL: Detected 16 lcore(s)

[dpdk-dev] [PATCH] i40evf: add set maximum frame size support

2016-11-29 Thread Ferruh Yigit
On 11/25/2016 8:47 PM, Michael Bieniek wrote: > This adds the ability to set maximum frame size for an i40e virtual > interface. This patch is based on the i40e physical function maximum > frame size implementation. This was tested on an system configured with > multiple i40e virtual functions.

[dpdk-dev] [PATCH v2 55/55] net/sfc: add callback to send bursts of packets

2016-11-29 Thread Andrew Rybchenko
From: Ivan Malov Reviewed-by: Andy Moreton Signed-off-by: Ivan Malov Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_ethdev.c | 2 + drivers/net/sfc/sfc_ev.c | 24 +++-- drivers/net/sfc/sfc_tweak.h | 7 +++ drivers/net/sfc/sfc_tx.c | 115

[dpdk-dev] [PATCH v2 54/55] net/sfc: implement transmit path start / stop

2016-11-29 Thread Andrew Rybchenko
From: Ivan Malov Reviewed-by: Andy Moreton Signed-off-by: Ivan Malov Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc.c| 8 ++ drivers/net/sfc/sfc_ev.c | 12 ++- drivers/net/sfc/sfc_tx.c | 237 +++

[dpdk-dev] [PATCH v2 53/55] net/sfc: add callbacks to set up and release Tx queues

2016-11-29 Thread Andrew Rybchenko
From: Ivan Malov Reviewed-by: Andy Moreton Signed-off-by: Ivan Malov Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_ethdev.c | 58 +++ drivers/net/sfc/sfc_ev.h | 2 + drivers/net/sfc/sfc_tx.c | 167

[dpdk-dev] [PATCH v2 52/55] net/sfc: add function to check configured Tx mode

2016-11-29 Thread Andrew Rybchenko
From: Ivan Malov Reviewed-by: Andy Moreton Signed-off-by: Ivan Malov Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_tx.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/drivers/net/sfc/sfc_tx.c

[dpdk-dev] [PATCH v2 51/55] net/sfc: provide basic stubs for Tx subsystem

2016-11-29 Thread Andrew Rybchenko
From: Ivan Malov Reviewed-by: Andy Moreton Signed-off-by: Ivan Malov Signed-off-by: Andrew Rybchenko --- doc/guides/nics/features/sfc_efx.ini | 2 + doc/guides/nics/sfc_efx.rst | 2 + drivers/net/sfc/Makefile | 1 + drivers/net/sfc/sfc.c

[dpdk-dev] [PATCH v2 50/55] net/sfc: discard scattered packet on Rx correctly

2016-11-29 Thread Andrew Rybchenko
Since Rx scatter is not supported, all scattered packets are discarded. It is not always possible to disable scatter on Huntington, so we should handle scattered packets correctly in any case. Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_ev.c | 22

[dpdk-dev] [PATCH v2 49/55] net/sfc: implement device callback to Rx burst of packets

2016-11-29 Thread Andrew Rybchenko
Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_ethdev.c | 2 ++ drivers/net/sfc/sfc_ev.c | 51 --- drivers/net/sfc/sfc_rx.c | 72 +++- drivers/net/sfc/sfc_rx.h | 7 + 4 files

[dpdk-dev] [PATCH v2 48/55] net/sfc: implement Rx queue start and stop operations

2016-11-29 Thread Andrew Rybchenko
These functions should set the queue state in dev->data->rx_queue_state array. Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc.c | 8 ++ drivers/net/sfc/sfc_ev.c| 23 +++- drivers/net/sfc/sfc_rx.c| 297

[dpdk-dev] [PATCH v2 47/55] net/sfc: validate Rx queue buffers setup

2016-11-29 Thread Andrew Rybchenko
Check that Rx mbuf pool, MTU and Rx scatter config are in sync. Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- doc/guides/nics/sfc_efx.rst | 10 ++ drivers/net/sfc/sfc_rx.c| 14 ++ 2 files changed, 24 insertions(+) diff --git

[dpdk-dev] [PATCH v2 46/55] net/sfc: calculate Rx buffer size which may be used

2016-11-29 Thread Andrew Rybchenko
Take Rx buffer start alignment and end-padding into account. Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_rx.c | 110 +-- drivers/net/sfc/sfc_rx.h | 1 + 2 files changed, 107 insertions(+), 4 deletions(-) diff

[dpdk-dev] [PATCH v2 45/55] net/sfc: implement Rx queue setup release operations

2016-11-29 Thread Andrew Rybchenko
Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_ethdev.c | 60 ++ drivers/net/sfc/sfc_ev.h | 2 + drivers/net/sfc/sfc_rx.c | 147 +++ drivers/net/sfc/sfc_rx.h | 64 +++ 4

[dpdk-dev] [PATCH v2 44/55] net/sfc: check configured rxmode

2016-11-29 Thread Andrew Rybchenko
Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- doc/guides/nics/sfc_efx.rst | 12 + drivers/net/sfc/sfc_rx.c| 61 + 2 files changed, 73 insertions(+) diff --git a/doc/guides/nics/sfc_efx.rst b/doc/guides/nics/sfc_efx.rst

[dpdk-dev] [PATCH v2 43/55] net/sfc: implement Rx subsystem stubs

2016-11-29 Thread Andrew Rybchenko
Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/Makefile | 1 + drivers/net/sfc/sfc.c| 9 drivers/net/sfc/sfc.h| 4 ++ drivers/net/sfc/sfc_ethdev.c | 10 + drivers/net/sfc/sfc_rx.c | 103

[dpdk-dev] [PATCH v2 42/55] net/sfc: implement device operation to retrieve link info

2016-11-29 Thread Andrew Rybchenko
From: Artem Andreev Reviewed-by: Andy Moreton Signed-off-by: Artem Andreev Signed-off-by: Andrew Rybchenko --- doc/guides/nics/features/sfc_efx.ini | 1 + doc/guides/nics/sfc_efx.rst | 2 ++ drivers/net/sfc/Makefile | 2 ++

[dpdk-dev] [PATCH v2 41/55] net/sfc: minimum port control sufficient to receive traffic

2016-11-29 Thread Andrew Rybchenko
Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/Makefile | 1 + drivers/net/sfc/sfc.c| 16 ++ drivers/net/sfc/sfc.h| 12 drivers/net/sfc/sfc_ethdev.c | 2 + drivers/net/sfc/sfc_port.c | 131

[dpdk-dev] [PATCH v2 40/55] net/sfc: periodic management EVQ polling using alarm

2016-11-29 Thread Andrew Rybchenko
Timers cannot be used to implement periodic polling, since it implies requirement on application to process timers in the main loop. Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_ev.c | 42 ++ 1 file changed, 42

[dpdk-dev] [PATCH v2 39/55] net/sfc: maintain management event queue

2016-11-29 Thread Andrew Rybchenko
The event queue is required for device level events (e.g. link status change) and flush events. Provide thread-safe function to poll the event queue since it may be really done from different contexts. Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc.h| 1

[dpdk-dev] [PATCH v2 38/55] net/sfc: implement EVQ dummy exception handling

2016-11-29 Thread Andrew Rybchenko
Right now the code just logs the exception and sets flag to notify subsequent event handlers and poller that recovery is required. Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_ev.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-)

[dpdk-dev] [PATCH v2 37/55] net/sfc: implement event queue support

2016-11-29 Thread Andrew Rybchenko
Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/Makefile | 1 + drivers/net/sfc/sfc.c| 17 ++ drivers/net/sfc/sfc.h| 7 + drivers/net/sfc/sfc_ev.c | 482 +++ drivers/net/sfc/sfc_ev.h | 139 ++ 5

[dpdk-dev] [PATCH v2 36/55] net/sfc: interrupts support sufficient for event queue init

2016-11-29 Thread Andrew Rybchenko
Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/Makefile | 1 + drivers/net/sfc/sfc.c | 22 drivers/net/sfc/sfc.h | 12 + drivers/net/sfc/sfc_intr.c | 128 + 4 files changed, 163 insertions(+)

[dpdk-dev] [PATCH v2 35/55] net/sfc: make available resources estimation and allocation

2016-11-29 Thread Andrew Rybchenko
Resources required in accordance with configuration are allocated only. Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- doc/guides/nics/sfc_efx.rst | 8 +++ drivers/net/sfc/sfc.c | 117 +--- 2 files changed, 117 insertions(+), 8

[dpdk-dev] [PATCH v2 34/55] net/sfc: implement device start and stop operations

2016-11-29 Thread Andrew Rybchenko
Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc.c| 65 drivers/net/sfc/sfc.h| 19 + drivers/net/sfc/sfc_ethdev.c | 37 + 3 files changed, 121 insertions(+) diff

[dpdk-dev] [PATCH v2 33/55] net/sfc: add device configuration checks

2016-11-29 Thread Andrew Rybchenko
Manual link speed/duplex configuration is not supported yet. Loopback is not supported yet. Flow Director is not supported. Link status change notification using interrupt is not supported yet. Receive data notification using interrupts is not supported yet. Reviewed-by: Andy Moreton

[dpdk-dev] [PATCH v2 32/55] net/sfc: add device configure and close stubs

2016-11-29 Thread Andrew Rybchenko
Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc.c| 29 ++ drivers/net/sfc/sfc.h| 29 ++ drivers/net/sfc/sfc_ethdev.c | 58 3 files changed, 111 insertions(+), 5

[dpdk-dev] [PATCH v2 31/55] net/sfc: implement driver operation to init device on attach

2016-11-29 Thread Andrew Rybchenko
The setup and configuration of the PMD is not performance sensitive, but is not thread safe either. It is possible that the multiple read/writes during PMD setup and configuration could be corrupted in a multi-thread environment. Since this is not performance sensitive, the developer can choose

[dpdk-dev] [PATCH v2 30/55] net/sfc: include libefx in build

2016-11-29 Thread Andrew Rybchenko
From: Artem Andreev Implement efsys.h for the PMD. Reviewed-by: Andy Moreton Signed-off-by: Artem Andreev Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/Makefile | 62 +++- drivers/net/sfc/efsys.h | 773 +++ 2

[dpdk-dev] [PATCH v2 29/55] net/sfc: import libefx licensing support

2016-11-29 Thread Andrew Rybchenko
Provide API to deal with licences on SFN7xxx and SFN8xxx family adapaters. EFSYS_OPT_LICENSING should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/efx.h | 145 drivers/net/sfc/base/efx_check.h | 10 +

[dpdk-dev] [PATCH v2 28/55] net/sfc: import libefx bootrom configuration support

2016-11-29 Thread Andrew Rybchenko
Provide API to read/write bootrom configuration from/to NVRAM. EFSYS_OPT_BOOTROM should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/efx.h | 39 +++ drivers/net/sfc/base/efx_bootcfg.c | 563

[dpdk-dev] [PATCH v2 27/55] net/sfc: import libefx VPD support

2016-11-29 Thread Andrew Rybchenko
Provide API to read/write PCI Vital Product Data. EFSYS_OPT_VPD should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_impl.h | 63 +++ drivers/net/sfc/base/ef10_vpd.c | 463 +

[dpdk-dev] [PATCH v2 26/55] net/sfc: import libefx NVRAM support

2016-11-29 Thread Andrew Rybchenko
Provide API to work with NIC non-volatile memory. It is used to update firmware, configure NIC including bootrom parameters, manage licenses, store PCI Vital Product Data etc. EFSYS_OPT_NVRAM should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko ---

[dpdk-dev] [PATCH v2 25/55] net/sfc: import libefx support for Rx packed stream mode

2016-11-29 Thread Andrew Rybchenko
In packed stream mode, large buffers are provided to the NIC into which many packets can be delivered. This reduces the number of queue refills needed compared to delivering every packet into a separate buffer. EFSYS_OPT_RX_PACKED_STREAM should be enabled to use it. >From Solarflare

[dpdk-dev] [PATCH v2 24/55] net/sfc: import libefx support to access monitors via MCDI

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_MON_MCDI should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_nic.c | 3 + drivers/net/sfc/base/efx_check.h | 7 + drivers/net/sfc/base/efx_ev.c| 3 + drivers/net/sfc/base/efx_mon.c | 21 +-

[dpdk-dev] [PATCH v2 23/55] net/sfc: import libefx monitors statistics support

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_MON_STATS should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_ev.c | 20 ++ drivers/net/sfc/base/ef10_nic.c | 15 + drivers/net/sfc/base/efx.h | 140 +++

[dpdk-dev] [PATCH v2 22/55] net/sfc: import libefx loopback control support

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_LOOPBACK should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_impl.h | 13 +++ drivers/net/sfc/base/ef10_mac.c | 36 drivers/net/sfc/base/ef10_nic.c | 9 ++ drivers/net/sfc/base/ef10_phy.c

[dpdk-dev] [PATCH v2 21/55] net/sfc: import libefx RSS support

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_RX_SCALE should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_filter.c | 10 + drivers/net/sfc/base/ef10_impl.h | 29 +++ drivers/net/sfc/base/ef10_rx.c | 443 +++

[dpdk-dev] [PATCH v2 20/55] net/sfc: import libefx Rx scatter support

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_RX_SCATTER should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_impl.h | 7 drivers/net/sfc/base/ef10_rx.c | 11 + drivers/net/sfc/base/efx.h | 7 drivers/net/sfc/base/efx_check.h | 7

[dpdk-dev] [PATCH v2 19/55] net/sfc: import libefx event prefetch support

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_EV_PREFECT allows to enable event prefetching when event queue is polled. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/efx.h | 9 + drivers/net/sfc/base/efx_check.h | 7 +++ drivers/net/sfc/base/efx_ev.c| 38

[dpdk-dev] [PATCH v2 18/55] net/sfc: import libefx MAC statistics support

2016-11-29 Thread Andrew Rybchenko
MAC statistics are either periodically (if supported/requested) or on-demand written to provided DMA-mapped memory. If periodic update is not supported (e.g. for EF10 virtual functions), it is the driver responsiblity to handle it. EFSYS_OPT_MAC_STATS should be enabled to use it. >From

[dpdk-dev] [PATCH v2 17/55] net/sfc: import libefx PHY LEDs control support

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_PHY_LED_CONTROL should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_phy.c | 19 + drivers/net/sfc/base/efx.h | 20 ++ drivers/net/sfc/base/efx_check.h | 7 +++

[dpdk-dev] [PATCH v2 16/55] net/sfc: import libefx PHY statistics support

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_PHY_STATS should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_impl.h | 10 +++ drivers/net/sfc/base/ef10_phy.c | 17 + drivers/net/sfc/base/efx.h| 80

[dpdk-dev] [PATCH v2 15/55] net/sfc: import libefx PHY flags control support

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_PHY_FLAGS should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_phy.c | 4 drivers/net/sfc/base/efx.h | 3 +++ drivers/net/sfc/base/efx_check.h | 7 +++ drivers/net/sfc/base/efx_impl.h | 3 +++

[dpdk-dev] [PATCH v2 14/55] net/sfc: import libefx software per-queue statistics support

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_QSTATS should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_ev.c | 25 + drivers/net/sfc/base/ef10_impl.h | 16 ++ drivers/net/sfc/base/ef10_tx.c | 26 + drivers/net/sfc/base/efx.h

[dpdk-dev] [PATCH v2 13/55] net/sfc: import libefx built-in selftest support

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_BIST should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_impl.h | 29 ++ drivers/net/sfc/base/ef10_phy.c | 153 drivers/net/sfc/base/efx.h| 80 +++

[dpdk-dev] [PATCH v2 12/55] net/sfc: import libefx diagnostics support

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_DIAG should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_impl.h | 8 ++ drivers/net/sfc/base/ef10_nic.c | 27 ++ drivers/net/sfc/base/efx.h| 33 drivers/net/sfc/base/efx_check.h |

[dpdk-dev] [PATCH v2 11/55] net/sfc: import libefx SFN8xxx family support

2016-11-29 Thread Andrew Rybchenko
SFN8xxx is the second family based on EF10 architecture. It has few differences from SFN7xxx adapters family. EFSYS_OPT_MEDFORD should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_impl.h| 6 +-

[dpdk-dev] [PATCH v2 10/55] net/sfc: import libefx SFN7xxx family support

2016-11-29 Thread Andrew Rybchenko
SFN7xxx is the first family based on EF10 architecture. EFSYS_OPT_HUNTINGTON should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_ev.c | 1226 ++ drivers/net/sfc/base/ef10_filter.c |

[dpdk-dev] [PATCH v2 09/55] net/sfc: import libefx 5xxx/6xxx family support

2016-11-29 Thread Andrew Rybchenko
EFSYS_OPT_SIENA should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/efx_check.h | 14 + drivers/net/sfc/base/efx_ev.c | 783 +++ drivers/net/sfc/base/efx_filter.c | 1042

[dpdk-dev] [PATCH v2 08/55] net/sfc: import libefx MCDI proxy authorization support

2016-11-29 Thread Andrew Rybchenko
MCDI proxy authorization may be used if priviledged PCI function (physical function) would like to intercept and authorize MCDI requests done by unprivileged (e.g. virtual) PCI function. It may be used to control unpriviledged function Rx mode (e.g. promicsuous, all-multicast), MTU and default MAC

[dpdk-dev] [PATCH v2 07/55] net/sfc: import libefx MCDI logging support

2016-11-29 Thread Andrew Rybchenko
Driver can provide a function to be called to log MCDI requests and responses to help with debugging. Solarflare netlogdecode cross-platform tool may be used to decode these logs. EFSYS_OPT_MCDI_LOGGING should be enabled to use it. >From Solarflare Communications Inc. Signed-off-by: Andrew

[dpdk-dev] [PATCH v2 06/55] net/sfc: import libefx MCDI implementation

2016-11-29 Thread Andrew Rybchenko
Implement interface to talk to NIC managment CPU. Provide helpers to fill in MCDI requests, execute it and process recevied response. MCDI request is prepared in either PCI BAR mapped memory (SFN5xxx/SFN6xxx) or DMA-mapped memory (SFN7xxx/SFN8xxx) and, doorbell is pressed (memory-mapped register)

[dpdk-dev] [PATCH v2 05/55] net/sfc: import libefx MCDI definition

2016-11-29 Thread Andrew Rybchenko
The header defines data interface between host CPU and NIC management CPU. The header is automatially generated from firmware sources. MCDI is used on NIC control path (configuration, event/transmit/receive queues setup and teardown etc), but not used on data path. >From Solarflare

[dpdk-dev] [PATCH v2 04/55] net/sfc: import libefx filters support

2016-11-29 Thread Andrew Rybchenko
Filtering capabilities depend on NIC family and used firmware variant. Provided API allows to get supported filter types (in a priority order), add/delete individual filters and restore entire filter table after, for example, NIC management CPU reboot. Rx filters allow to redirect matching flow

[dpdk-dev] [PATCH v2 03/55] net/sfc: import libefx register definitions

2016-11-29 Thread Andrew Rybchenko
>From Solarflare Communications Inc. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/efx_regs.h | 3870 +++ drivers/net/sfc/base/efx_regs_pci.h | 2356 + 2 files changed, 6226 insertions(+) create mode 100644

[dpdk-dev] [PATCH v2 02/55] net/sfc: import libefx base

2016-11-29 Thread Andrew Rybchenko
libefx is a platform-independent library to implement drivers for Solarflare network adapters. It provides unified adapter family independent interface (if possible). Driver must provide efsys.h header which defines options (EFSYS_OPT_*) to be used and macros/functions to allocate memory,

[dpdk-dev] [PATCH v2 01/55] net/sfc: libefx-based PMD stub sufficient to build and init

2016-11-29 Thread Andrew Rybchenko
The PMD is put into the sfc/efx subdirectory to have a place for the second PMD and library shared by both. Enable the PMD by default on supported configuratons. Reviewed-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- MAINTAINERS | 6 ++

[dpdk-dev] [PATCH v2 00/55] Solarflare libefx-based PMD

2016-11-29 Thread Andrew Rybchenko
The patch series adds Solarflare libefx-based network PMD. This version of the driver supports Solarflare SFN7xxx and SFN8xxx families of 10/40 Gbps adapters. libefx is a platform-independent library to implement drivers for Solarflare network adapters. It provides unified adapter family

[dpdk-dev] [PATCH] eal: define generic vector types

2016-11-29 Thread Chao Zhu
-Original Message- From: Nelio Laranjeiro [mailto:nelio.laranje...@6wind.com] Sent: 2016?11?16? 23:21 To: dev at dpdk.org Cc: Thomas Monjalon ; Jianbo Liu ; Jerin Jacob ; Zhigang Lu ; Liming Sun ; Chao Zhu ; Bruce Richardson ; Konstantin Ananyev ; Adrien Mazarguil Subject: [PATCH] eal:

[dpdk-dev] [PATCH] net/i40evf: fix casting between structs

2016-11-29 Thread Ferruh Yigit
On 11/27/2016 9:35 AM, Jingjing Wu wrote: > Casting from structs which lay out data in typed members > to structs which have flat memory buffers, will cause > problems if the alignment of the former isn't as expected. > This patch removes the casting between structs. > > Fixes: ae19955e7c86

[dpdk-dev] [PATCH RFC 1/2] net/i40e: allow bulk alloc for the max size desc ring

2016-11-29 Thread Ilya Maximets
On 29.11.2016 15:50, Ananyev, Konstantin wrote: > Hi Ilya, > >> Ping. >> >> Best regards, Ilya Maximets. >> >> On 19.10.2016 17:07, Ilya Maximets wrote: >>> The only reason why bulk alloc disabled for the rings with >>> more than (I40E_MAX_RING_DESC - RTE_PMD_I40E_RX_MAX_BURST) >>> descriptors is

[dpdk-dev] [PATCH v3] maintainers: update testpmd maintainer

2016-11-29 Thread Jingjing Wu
Signed-off-by: Jingjing Wu --- v1 change: remove pablo from maintainer. v2 change: remove Wei Dai from claim. MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index d6bb8f8..fd096c5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -614,7

[dpdk-dev] [PATCH] net/i40e: fix log when check Tx free thresh

2016-11-29 Thread Ferruh Yigit
On 11/27/2016 9:11 AM, Jingjing Wu wrote: > Fixes: 4861cde46116 ("i40e: new poll mode driver") > Signed-off-by: Jingjing Wu Applied to dpdk-next-net/master, thanks.

[dpdk-dev] [PATCH v2 1/1] net/i40e: enable auto link update for 25G

2016-11-29 Thread Qi Zhang
In previous patch for 25G (XXV710) enable 75d133dd329: ("net/i40e: enable 25G device"), we intend to disable the auto linke update as a work around for the issue that link can't be turn on when auto link update is enabled. Now we know the root cause, there are interface changes of AQ command

[dpdk-dev] [PATCH v2] maintainers: update pcap pmd maintainers

2016-11-29 Thread John McNamara
Remove Nico Pernas Maradei as a PCAP PMD maintainer. Signed-off-by: John McNamara --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5ec84ad..26d9590 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -387,7 +387,6 @@ T:

[dpdk-dev] [PATCH v1] maintainers: update pcap pmd maintainers

2016-11-29 Thread Mcnamara, John
> -Original Message- > From: Mcnamara, John > Sent: Tuesday, November 29, 2016 2:33 PM > To: nicolas.pernas.maradei at emutex.com > Cc: dev at dpdk.org; Yigit, Ferruh ; Mcnamara, John > > Subject: [PATCH v1] maintainers: update pcap pmd maintainers Self nack.

[dpdk-dev] [PATCH v1] maintainers: update pcap pmd maintainers

2016-11-29 Thread John McNamara
--- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5ec84ad..26d9590 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -387,7 +387,6 @@ T: git://dpdk.org/next/dpdk-next-virtio F: drivers/net/vhost/ PCAP PMD -M: Nicol??s Pernas Maradei M: Ferruh

[dpdk-dev] Proposal for a new Committer model

2016-11-29 Thread Neil Horman
On Fri, Nov 18, 2016 at 01:09:35PM -0500, Neil Horman wrote: > On Thu, Nov 17, 2016 at 09:20:50AM +, Mcnamara, John wrote: > > Repost from the moving at dpdk.org mailing list to get a wider audience. > > Original thread: > > http://dpdk.org/ml/archives/moving/2016-November/59.html > > >

[dpdk-dev] [PATCH RFC 2/2] net/ixgbe: allow bulk alloc for the max size desc ring

2016-11-29 Thread Ilya Maximets
Ping. Best regards, Ilya Maximets. On 19.10.2016 17:07, Ilya Maximets wrote: > The only reason why bulk alloc disabled for the rings with > more than (IXGBE_MAX_RING_DESC - RTE_PMD_IXGBE_RX_MAX_BURST) > descriptors is the possible out-of-bound access to the dma > memory. But it's the artificial

[dpdk-dev] [PATCH RFC 1/2] net/i40e: allow bulk alloc for the max size desc ring

2016-11-29 Thread Ilya Maximets
Ping. Best regards, Ilya Maximets. On 19.10.2016 17:07, Ilya Maximets wrote: > The only reason why bulk alloc disabled for the rings with > more than (I40E_MAX_RING_DESC - RTE_PMD_I40E_RX_MAX_BURST) > descriptors is the possible out-of-bound access to the dma > memory. But it's the artificial

[dpdk-dev] [PATCH] mempool: fix Api documentation

2016-11-29 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Olivier Matz > Sent: Tuesday, November 22, 2016 10:05 AM > To: dev at dpdk.org > Cc: Wiles, Keith > Subject: [dpdk-dev] [PATCH] mempool: fix Api documentation > > A previous commit changed the local_cache

[dpdk-dev] [PATCH] doc: announce kni_vhost removal

2016-11-29 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ferruh Yigit > Sent: Thursday, November 17, 2016 1:27 PM > To: dev at dpdk.org > Cc: Yigit, Ferruh > Subject: [dpdk-dev] [PATCH] doc: announce kni_vhost removal > > Signed-off-by: Ferruh Yigit Acked-by:

[dpdk-dev] [PATCH] doc: prog_guide: fix section heading

2016-11-29 Thread Mcnamara, John
> -Original Message- > From: Baruch Siach [mailto:baruch at tkos.co.il] > Sent: Tuesday, November 29, 2016 1:23 PM > To: dev at dpdk.org > Cc: Mcnamara, John ; Baruch Siach > > Subject: [PATCH] doc: prog_guide: fix section heading > > This section only deals with Tx queues

[dpdk-dev] [PATCH] doc: remove wrong document description

2016-11-29 Thread Baruch Siach
Hi John, On Tue, Nov 29, 2016 at 09:54:58AM +, Mcnamara, John wrote: > > -Original Message- > > From: Baruch Siach [mailto:baruch at tkos.co.il] > > Sent: Tuesday, November 29, 2016 9:26 AM > > To: dev at dpdk.org > > Cc: Mcnamara, John ; Baruch Siach > > > > Subject: [PATCH] doc:

[dpdk-dev] [PATCH RFC 1/2] net/i40e: allow bulk alloc for the max size desc ring

2016-11-29 Thread Ananyev, Konstantin
Hi Ilya, > Ping. > > Best regards, Ilya Maximets. > > On 19.10.2016 17:07, Ilya Maximets wrote: > > The only reason why bulk alloc disabled for the rings with > > more than (I40E_MAX_RING_DESC - RTE_PMD_I40E_RX_MAX_BURST) > > descriptors is the possible out-of-bound access to the dma > >

[dpdk-dev] [PATCH v1] maintainers: update lthreads maintainer

2016-11-29 Thread Thomas Monjalon
> Signed-off-by: John McNamara [...] > -M: Ian Betts > +M: John McNamara Acked-by: Thomas Monjalon Applied, thanks We need to talk about the status of this library.

[dpdk-dev] [PATCH v1] maintainers: update procinfo maintainer

2016-11-29 Thread Thomas Monjalon
2016-11-18 17:09, John McNamara: > Update procinfo maintainer and name of the application. > > Signed-off-by: John McNamara Acked-by: Thomas Monjalon Applied, thanks

[dpdk-dev] [PATCH v3] maintainers: update testpmd maintainer

2016-11-29 Thread Thomas Monjalon
> > Signed-off-by: Jingjing Wu > > Acked-by: Pablo de Lara > > Thanks Jingjing! Acked-by: Thomas Monjalon Applied, thanks

[dpdk-dev] [PATCH] doc: introduce PVP reference benchmark

2016-11-29 Thread Maxime Coquelin
Hi Yuanhan, On 11/29/2016 11:16 AM, Yuanhan Liu wrote: > On Thu, Nov 24, 2016 at 08:35:51AM +0100, Maxime Coquelin wrote: >> >> >> On 11/24/2016 06:07 AM, Yuanhan Liu wrote: >>> First of all, thanks for the doc! It's a great one. >> Thanks. >> I would be interested to know if you have other

[dpdk-dev] [PATCH] doc: remove wrong document description

2016-11-29 Thread Baruch Siach
The Programmer?s Guide intro is not the Release Notes. Signed-off-by: Baruch Siach --- doc/guides/prog_guide/intro.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/prog_guide/intro.rst b/doc/guides/prog_guide/intro.rst index d6daab3763b4..9fe1f0c31f0e 100644

[dpdk-dev] [PATCH v3 2/7] vhost: get guest/host physical address mappings

2016-11-29 Thread linhaifeng
? 2016/10/9 15:27, Yuanhan Liu ??: > + dev->nr_guest_pages = 0; > + if (!dev->guest_pages) { > + dev->max_guest_pages = 8; > + dev->guest_pages = malloc(dev->max_guest_pages * > + sizeof(struct guest_page)); > + } > +

[dpdk-dev] [PATCH] doc: remove wrong document description

2016-11-29 Thread Mcnamara, John
> -Original Message- > From: Baruch Siach [mailto:baruch at tkos.co.il] > Sent: Tuesday, November 29, 2016 9:26 AM > To: dev at dpdk.org > Cc: Mcnamara, John ; Baruch Siach > > Subject: [PATCH] doc: remove wrong document description > > The Programmer?s Guide intro is not the Release

[dpdk-dev] [PATCH] doc: remove wrong document description

2016-11-29 Thread Mcnamara, John
> -Original Message- > From: Baruch Siach [mailto:baruch at tkos.co.il] > Sent: Tuesday, November 29, 2016 10:54 AM > To: Mcnamara, John > Cc: dev at dpdk.org > Subject: Re: [PATCH] doc: remove wrong document description > > Hi John, > > On Tue, Nov 29, 2016 at 09:54:58AM +,

[dpdk-dev] [PATCH] dpdk: Fix abort on double free.

2016-11-29 Thread Aaron Conole
Hi Ilya, Ilya Maximets writes: > On 28.11.2016 21:55, Aaron Conole wrote: >> Ilya Maximets writes: >> >>> According to DPDK API (lib/librte_eal/common/include/rte_eal.h): >>> >>> "After the call to rte_eal_init(), all arguments argv[x] >>> with x < ret may be modified and should not

[dpdk-dev] [PATCH 00/16] e1000 base code update

2016-11-29 Thread Thomas Monjalon
2016-11-29 00:30, Lu, Wenzhuo: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2016-11-25 12:58, Ferruh Yigit: > > > Can you also please send another patch to: > > > 1- add I219 to supported nics list > > > 2- announce new supported nic in release notes. > > > > Please update

[dpdk-dev] [PATCH] doc: fix typos in code comments

2016-11-29 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yong Wang > Sent: Tuesday, November 29, 2016 10:24 PM > To: olivier.matz at 6wind.com > Cc: dev at dpdk.org; Yong Wang > Subject: [dpdk-dev] [PATCH] doc: fix typos in code comments > > Signed-off-by: Yong

[dpdk-dev] [PATCH 1/4] eventdev: introduce event driven programming model

2016-11-29 Thread Bruce Richardson
On Tue, Nov 29, 2016 at 09:31:42AM +0530, Jerin Jacob wrote: > On Mon, Nov 28, 2016 at 09:16:10AM +, Bruce Richardson wrote: > > On Sat, Nov 26, 2016 at 08:24:55AM +0530, Jerin Jacob wrote: > > > On Fri, Nov 25, 2016 at 11:00:53AM +, Bruce Richardson wrote: > > > > On Fri, Nov 25, 2016 at

[dpdk-dev] [PATCH] doc: remove wrong document description

2016-11-29 Thread Mcnamara, John
> -Original Message- > From: Baruch Siach [mailto:baruch at tkos.co.il] > Sent: Tuesday, November 29, 2016 9:26 AM > To: dev at dpdk.org > Cc: Mcnamara, John ; Baruch Siach > > Subject: [PATCH] doc: remove wrong document description > > The Programmer?s Guide intro is not the Release

[dpdk-dev] [PATCH 1/4] eventdev: introduce event driven programming model

2016-11-29 Thread Jerin Jacob
On Mon, Nov 28, 2016 at 09:16:10AM +, Bruce Richardson wrote: > On Sat, Nov 26, 2016 at 08:24:55AM +0530, Jerin Jacob wrote: > > On Fri, Nov 25, 2016 at 11:00:53AM +, Bruce Richardson wrote: > > > On Fri, Nov 25, 2016 at 05:53:34AM +0530, Jerin Jacob wrote: > > > > On Thu, Nov 24, 2016 at

[dpdk-dev] [PATCH 2/4] eventdev: implement the northbound APIs

2016-11-29 Thread Jerin Jacob
On Mon, Nov 28, 2016 at 03:53:08PM +, Eads, Gage wrote: > (Bruce's adviced heeded :)) > > > -Original Message- > > From: Jerin Jacob [mailto:jerin.jacob at caviumnetworks.com] > > Sent: Tuesday, November 22, 2016 5:44 PM > > To: Eads, Gage > > Cc: dev at dpdk.org; Richardson,

[dpdk-dev] dpdk/vpp and cross-version migration for vhost

2016-11-29 Thread Maxime Coquelin
On 11/28/2016 11:18 PM, Thomas Monjalon wrote: > 2016-11-28 16:28, Maxime Coquelin: >> On 11/24/2016 04:24 PM, Kavanagh, Mark B wrote: >>> DPDK v16.04 added support for vHost User TSO; as such, by default, >>> TSO is advertised to guest devices as an available feature during >>> feature

[dpdk-dev] [PATCH v3] maintainers: update testpmd maintainer

2016-11-29 Thread De Lara Guarch, Pablo
> -Original Message- > From: Wu, Jingjing > Sent: Tuesday, November 29, 2016 7:59 AM > To: dev at dpdk.org > Cc: Wu, Jingjing; De Lara Guarch, Pablo > Subject: [PATCH v3] maintainers: update testpmd maintainer > > Signed-off-by: Jingjing Wu Acked-by: Pablo de Lara Thanks Jingjing!

[dpdk-dev] [PATCH 2/4] eventdev: implement the northbound APIs

2016-11-29 Thread Jerin Jacob
On Mon, Nov 28, 2016 at 03:53:08PM +, Eads, Gage wrote: > (Bruce's adviced heeded :)) > > > > > > > > > > > How would this check work? Wouldn't it prevent any core from > > > > running the software scheduler in the centralized case? > > > > > > > > I guess you may not need

  1   2   >