[dpdk-dev] [PATCH 5/5] [pktgen] fix cleanup of not sent packets

2019-01-10 Thread Rafal Kozik
consequence double returning it to the mempool. Fixes: 2bf1eecea240 ("fixup code for 18.05 and cleanup") Signed-off-by: Rafal Kozik --- app/pktgen.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/pktgen.c b/app/pktgen.c index f7eee07..c1039a6 100644

[dpdk-dev] [PATCH 4/5] [pktgen] expose number of missed Rx packets

2019-01-10 Thread Rafal Kozik
Expose number of missed Rx packets from DPDK NIC statistics to Lua API. Signed-off-by: Rafal Kozik --- app/lpktgenlib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/lpktgenlib.c b/app/lpktgenlib.c index 9a6307c..e9c7241 100644 --- a/app/lpktgenlib.c +++ b/app/lpktgenlib.c @@ -2888,6

[dpdk-dev] [PATCH 3/5] [pktgen] use constants for PCAP creation

2019-01-10 Thread Rafal Kozik
Instead of magic number and DPDK constants use, constants defined in PKTGEN. It allows to easily adjust packets size for users needs. For example jumbo packets could be supported by just increasing DEFAULT_MBUF_SIZE and MAX_PKT_SIZE. Signed-off-by: Rafal Kozik --- app/pktgen-pcap.c | 22

[dpdk-dev] [PATCH 2/5] [pktgen] different PCAP per each queue

2019-01-10 Thread Rafal Kozik
uniform throughput, average length of packets in each PCAP needs to be the same. Signed-off-by: Rafal Kozik --- app/pktgen-main.c | 40 ++-- app/pktgen-pcap.c | 12 ++-- app/pktgen-port-cfg.c | 8 +++- app/pktgen-port-cfg.h | 1 + 4 files

[dpdk-dev] [PATCH 0/5][pktgen] fixes and minor features

2019-01-10 Thread Rafal Kozik
? Best regards, Rafal Rafal Kozik (5): [pktgen] fix race condition in start [pktgen] different PCAP per each queue [pktgen] use constants for PCAP creation [pktgen] expose number of missed Rx packets [pktgen] fix cleanup of not sent packets app/lpktgenlib.c | 1 + app/pktgen

[dpdk-dev] [PATCH 1/5] [pktgen] fix race condition in start

2019-01-10 Thread Rafal Kozik
: f5f901fdf52b ("Update for 1.8 rte_mbuf changes.") Signed-off-by: Rafal Kozik --- app/pktgen-cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pktgen-cmds.c b/app/pktgen-cmds.c index 95f6ef1..655f6bd 100644 --- a/app/pktgen-cmds.c +++ b/app/pktgen-cmds.c @

[dpdk-dev] [PATCH] fix repopulation of tx_mbufs table

2018-11-23 Thread Rafal Kozik
. Fixes: f034b381d19f ("cleanup and fix for FVL NIC performance") Signed-off-by: Rafal Kozik --- app/pktgen.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/pktgen.c b/app/pktgen.c index 2d9ff59..b4d3dfe 100644 --- a/app/pktgen.c +++ b/app/pktgen.c @@ -1054

[dpdk-dev] [PATCH v3] net/ena: fix out of order completion

2018-11-21 Thread Rafal Kozik
order completion") Cc: sta...@dpdk.org Signed-off-by: Rafal Kozik Acked-by: Michal Krawczyk --- v2: Fix commit author. v3: Add () for readability. --- drivers/net/ena/ena_ethdev.c | 40 drivers/net/ena/ena_ethdev.h | 1 + 2 files changed, 29

[dpdk-dev] [PATCH v2] net/ena: fix out of order completion

2018-11-20 Thread Rafal Kozik
order completion") Cc: sta...@dpdk.org Signed-off-by: Rafal Kozik Acked-by: Michal Krawczyk --- Fix commit author. --- drivers/net/ena/ena_ethdev.c | 40 drivers/net/ena/ena_ethdev.h | 1 + 2 files changed, 29 insertions(+), 12 deletions(-) di

[dpdk-dev] [PATCH] net/ena: fix out of order completion

2018-11-20 Thread Rafal Kozik
dd Rx out of order completion") Cc: sta...@dpdk.org Signed-off-by: Rafal Kozik Acked-by: Michal Krawczyk --- drivers/net/ena/ena_ethdev.c | 40 drivers/net/ena/ena_ethdev.h | 1 + 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/d

[dpdk-dev] [PATCH] net/ena: cleaning HW IO rings configuration

2018-11-14 Thread Rafal Kozik
When queues are stoped release tx buffers. During start initialize array of empty tx/rx reqs with default values. Fixes: df238f84c0a2 ("net/ena: recreate HW IO rings on start and stop") Signed-off-by: Rafal Kozik Acked-by: Michal Krawczyk --- drivers/net/ena/ena_ethdev.c | 7 +

[dpdk-dev] [PATCH v2] doc: update for ENA supported drivers

2018-10-10 Thread Rafal Kozik
Add instruction how to bind ENA to VFIO-PCI driver. Fixes: cf8a122c296a ("ena: introduce documentation") Cc: sta...@dpdk.org Signed-off-by: Zorik Machulsky Signed-off-by: Rafal Kozik Acked-by: Michal Krawczyk --- v2: Describe cases with and without IOMMU. --- doc/guides/ni

[dpdk-dev] [PATCH] doc: update for ENA supported drivers

2018-10-05 Thread Rafal Kozik
Add instruction how to bind ENA to VFIO-PCI driver. Fixes: cf8a122c296a ("ena: introduce documentation") Cc: sta...@dpdk.org Signed-off-by: Zorik Machulsky Signed-off-by: Rafal Kozik Acked-by: Michal Krawczyk --- doc/guides/nics/ena.rst | 12 +--- doc/guides/nic

[dpdk-dev] [PATCH v5 1/4] igb_uio: add wc option

2018-06-29 Thread Rafal Kozik
drivers that potentially could use internal_addr, parameter wc_activate adds possibility to skip it for those PMDs, that do not use it. [1] https://www.kernel.org/doc/ols/2008/ols2008v2-pages-135-144.pdf section 5.3 and 5.4 Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson Acked-by

[dpdk-dev] [PATCH v5 2/4] bus/pci: reference driver structure

2018-06-29 Thread Rafal Kozik
From: Kozik Add pointer to driver structure before calling rte_pci_map_device. It allows to use driver flags for adjusting configuration. Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- drivers/bus/pci/pci_common.c | 17 - 1 file changed, 12 insertions(+), 5

[dpdk-dev] [PATCH v5 4/4] net/ena: enable WC

2018-06-29 Thread Rafal Kozik
From: Kozik Write combining (WC) increases NIC performance by making better utilization of PCI bus. ENA PMD may make usage of this feature. To enable it load igb_uio driver with wc_activate set to 1. Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- drivers/net/ena/ena_ethdev.c | 3

[dpdk-dev] [PATCH v5 3/4] eal: enable WC during resources mapping

2018-06-29 Thread Rafal Kozik
. When mapping PCI resources, firstly check if it support WC and then try to us it. In case of failure, it will fallback to normal mode. Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- drivers/bus/pci/linux/pci_uio.c | 47 ++--- drivers/bus/pci

[dpdk-dev] [PATCH v5 0/4] Support for write combining.

2018-06-29 Thread Rafal Kozik
Support for write combining. --- v2: * Rebased on top of master. * Fix typos. * Make commit messages more verbose. * Add comments. * Initialize fd. --- v3: * Log if BAR was mapped with or without support for WC. --- v4: * Log only if WC mapping failed. * Log if wc_activate is set in igb_

[dpdk-dev] [PATCH v4 4/4] net/ena: enable WC

2018-06-29 Thread Rafal Kozik
From: Kozik Write combining (WC) increases NIC performance by making better utilization of PCI bus. ENA PMD may make usage of this feature. To enable it load igb_uio driver with wc_activate set to 1. Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- drivers/net/ena/ena_ethdev.c | 3

[dpdk-dev] [PATCH v4 3/4] eal: enable WC during resources mapping

2018-06-29 Thread Rafal Kozik
. When mapping PCI resources, firstly check if it supports WC and try to use it. In case of failure, it will fall-back to normal mode. Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- drivers/bus/pci/linux/pci_uio.c | 47 ++--- drivers/bus/pci

[dpdk-dev] [PATCH v4 1/4] igb_uio: add wc option

2018-06-29 Thread Rafal Kozik
drivers that potentially could use internal_addr, parameter wc_activate adds possibility to skip it for those PMDs, that do not use it. [1] https://www.kernel.org/doc/ols/2008/ols2008v2-pages-135-144.pdf section 5.3 and 5.4 Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- kernel

[dpdk-dev] [PATCH v4 2/4] bus/pci: reference driver structure

2018-06-29 Thread Rafal Kozik
From: Kozik Add pointer to driver structure before calling rte_pci_map_device. It allows to use driver flags for adjusting configuration. Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- drivers/bus/pci/pci_common.c | 17 - 1 file changed, 12 insertions(+), 5

[dpdk-dev] [PATCH v4 0/4] Support for write combining.

2018-06-29 Thread Rafal Kozik
Support for write combining. --- v2: * Rebased on top of master. * Fix typos. * Make commit messages more verbose. * Add comments. * Initialize fd. --- v3: * Log if BAR was mapped with or without support for WC. --- v4: * Before opening PCI resource, check if it supports WC. * Log only w

[dpdk-dev] [PATCH v3 3/4] eal: enable WC during resources mapping

2018-06-29 Thread Rafal Kozik
resources, firstly try to us WC. If it is not supported it will fallback to normal mode. Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- drivers/bus/pci/linux/pci_uio.c | 44 ++--- drivers/bus/pci/rte_bus_pci.h | 2 ++ 2 files changed, 34

[dpdk-dev] [PATCH v3 4/4] net/ena: enable WC

2018-06-29 Thread Rafal Kozik
Write combining (WC) increases NIC performance by making better utilization of PCI bus. ENA PMD may make usage of this feature. To enable it load igb_uio driver with wc_activate set to 1. Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- drivers/net/ena/ena_ethdev.c | 3 ++- 1 file

[dpdk-dev] [PATCH v3 2/4] bus/pci: reference driver structure

2018-06-29 Thread Rafal Kozik
Add pointer to driver structure before calling rte_pci_map_device. It allows to use driver flags for adjusting configuration. Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- drivers/bus/pci/pci_common.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff

[dpdk-dev] [PATCH v3 1/4] igb_uio: add wc option

2018-06-29 Thread Rafal Kozik
potentially could use internal_addr, parameter wc_activate adds possibility to skip it for those PMDs, that do not use it. [1] https://www.kernel.org/doc/ols/2008/ols2008v2-pages-135-144.pdf section 5.3 and 5.4 Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- kernel/linux

[dpdk-dev] [PATCH v3 0/4] support for write combining

2018-06-29 Thread Rafal Kozik
Support for write combining. --- v2: * Rebased on top of master. * Fix typos. * Make commit messages more verbose. * Add comments. * Initialize fd. --- v3: * Log if BAR was mapped with or without support for WC. Rafal Kozik (4): igb_uio: add wc option bus/pci: reference driver

[dpdk-dev] [PATCH v2 4/4] net/ena: enable WC

2018-06-28 Thread Rafal Kozik
Write combining (WC) increases NIC performance by making better utilization of PCI bus. ENA PMD may make usage of this feature. To enable it load igb_uio driver with wc_activate set to 1. Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- drivers/net/ena/ena_ethdev.c | 3 ++- 1 file

[dpdk-dev] [PATCH v2 2/4] bus/pci: reference driver structure

2018-06-28 Thread Rafal Kozik
Add pointer to driver structure before calling rte_pci_map_device. It allows to use driver flags for adjusting configuration. Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- drivers/bus/pci/pci_common.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff

[dpdk-dev] [PATCH v2 3/4] eal: enable WC during resources mapping

2018-06-28 Thread Rafal Kozik
resources, firstly try to us WC. If it is not supported it will fallback to normal mode. Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- drivers/bus/pci/linux/pci_uio.c | 41 + drivers/bus/pci/rte_bus_pci.h | 2 ++ 2 files changed, 31

[dpdk-dev] [PATCH v2 1/4] igb_uio: add wc option

2018-06-28 Thread Rafal Kozik
potentially could use internal_addr, parameter wc_activate adds possibility to skip it for those PMDs, that do not use it. [1] https://www.kernel.org/doc/ols/2008/ols2008v2-pages-135-144.pdf section 5.3 and 5.4 Signed-off-by: Rafal Kozik Acked-by: Bruce Richardson --- kernel/linux

[dpdk-dev] [PATCH v2 0/4] support for write combining

2018-06-28 Thread Rafal Kozik
Support for write combining. --- v2: * Rebased on top of master. * Fix typos. * Make commit messages more verbose. * Add comments. * Initialize fd. Rafal Kozik (4): igb_uio: add wc option bus/pci: reference driver structure eal: enable WC during resources mapping net/ena: enable WC

[dpdk-dev] [PATCH 2/4] bus/pci: reference driver structure

2018-04-11 Thread Rafal Kozik
Reference driver structure before calling rte_pci_map_device. It allow to use driver flags for adjusting configuration. Signed-off-by: Rafal Kozik --- drivers/bus/pci/pci_common.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/bus/pci/pci_common.c b

[dpdk-dev] [PATCH 3/4] eal: enable WC during resources mapping

2018-04-11 Thread Rafal Kozik
resources firstly try to us wc. If it is not supported it will fallback to normal mode. Signed-off-by: Rafal Kozik --- drivers/bus/pci/linux/pci_uio.c | 39 --- drivers/bus/pci/rte_bus_pci.h | 2 ++ 2 files changed, 30 insertions(+), 11 deletions(-) diff --git a

[dpdk-dev] [PATCH 4/4] net/ena: enable WC

2018-04-11 Thread Rafal Kozik
Write combining (wc) increase NIC performenca by making better utilization of PCI bus. ENA support this feature. To enable it load igb driver with wc_activate set to 1. Signed-off-by: Rafal Kozik --- drivers/net/ena/ena_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[dpdk-dev] [PATCH 0/4] support for write combining

2018-04-11 Thread Rafal Kozik
Support for write combining. Rafal Kozik (4): igb_uio: add wc option bus/pci: reference driver structure eal: enable WC during resources mapping net/ena: enable WC drivers/bus/pci/linux/pci_uio.c | 39 --- drivers/bus/pci/pci_common.c| 13

[dpdk-dev] [PATCH 1/4] igb_uio: add wc option

2018-04-11 Thread Rafal Kozik
Write combining (wc) increase NIC performance by making better utilization of PCI bus, but cannot be use by all PMD. Parameter wc_activate add possibility to enable it for those PMD that could support it. Signed-off-by: Rafal Kozik --- kernel/linux/igb_uio/igb_uio.c | 17 ++--- 1

[dpdk-dev] [PATCH] net/ena: fix jumbo support in Rx offloads flags

2018-02-01 Thread Rafal Kozik
ENA device supports Rx jumbo frames and such information needs to be provided in the offloads flags. Fixes: 7369f88f88c0 ("net/ena: convert to new Rx offloads API") Signed-off-by: Rafal Kozik --- drivers/net/ena/ena_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/d

[dpdk-dev] [PATCH] net/ena: TX L4 offloads should not be set in RX path

2018-01-25 Thread Rafal Kozik
t;ena: add polling-mode driver") Reported-by: Matthew Smith Signed-off-by: Rafal Kozik --- drivers/net/ena/ena_ethdev.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index 83e0ae2..1e2af80 10

[dpdk-dev] [PATCH v2 2/2] net/ena: convert to new Rx offloads API

2018-01-17 Thread Rafal Kozik
Ethdev Rx offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Rafal Kozik --- v2: * Use PRIx64 in printf. drivers/net/ena/ena_ethdev.c | 36 ++-

[dpdk-dev] [PATCH v2 1/2] net/ena: convert to new Tx offloads API

2018-01-17 Thread Rafal Kozik
this field are set. Signed-off-by: Rafal Kozik --- v2: * Check ETH_TXQ_FLAGS_IGNORE flag. * Use PRIx64 in printf. drivers/net/ena/ena_ethdev.c | 74 +++- drivers/net/ena/ena_ethdev.h | 3 ++ 2 files changed, 62 insertions(+), 15 deletions(-) diff --git

[dpdk-dev] [PATCH 2/2] net/ena: convert to new Rx offloads API

2018-01-16 Thread Rafal Kozik
Ethdev Rx offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Rafal Kozik --- drivers/net/ena/ena_ethdev.c | 36 ++-- drivers/net/ena/ena_ethdev.h

[dpdk-dev] [PATCH 1/2] net/ena: convert to new Tx offloads API

2018-01-16 Thread Rafal Kozik
this field are set. Signed-off-by: Rafal Kozik --- drivers/net/ena/ena_ethdev.c | 73 +++- drivers/net/ena/ena_ethdev.h | 3 ++ 2 files changed, 61 insertions(+), 15 deletions(-) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c ind

[dpdk-dev] [PATCH 0/2] net/ena: convert to new offloads API

2018-01-16 Thread Rafal Kozik
Ethdev offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") Those patches support new offloads API. Rafal Kozik (2): net/ena: convert to new Tx offloads API net/en