[dpdk-dev] [PATCH 09/69] net/i40e/base: shadowRAM checksum calculation change

2019-12-01 Thread Xiaolong Ye
Due to changes in FW the SW is required to perform double SR dump in some cases. Implementation adds two new steps to update nvm checksum function: - recalculate checksum and check if checksum in NVM is correct - if checksum in NVM is not correct then update it again Signed-off-by: Maciej Paczkows

[dpdk-dev] [PATCH 10/69] net/i40e/base: update Fort Park FW API to 1.8

2019-12-01 Thread Xiaolong Ye
In previous commits only FVL FW API was updated to 1.8. However, NVMs from upcoming FVL SW7 project advertise FW API version 1.8 both for FVL and FPK. Signed-off-by: Maciej Rabeda Reviewed-by: Galazka Krzysztof Reviewed-by: Nicholas Nunley Reviewed-by: Kirsher Jeffrey T Signed-off-by: Xiaolong

[dpdk-dev] [PATCH 02/69] net/i40e/base: add ESXi support to transition to flat NVM

2019-12-01 Thread Xiaolong Ye
ESXi is required to transition back to a flat NVM from structured. Adding ifdef support for ESXi. Signed-off-by: Doug Dziggel Reviewed-by: Stillwell Jr Paul M Reviewed-by: Williams Mitch A Reviewed-by: Kirsher Jeffrey T Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c | 8 +

[dpdk-dev] [PATCH 04/69] net/i40e/base: change buffer address

2019-12-01 Thread Xiaolong Ye
The high 32-bits were being set incorrectly in the 'Set Local LLDP MIB' AQ command (0x0A08). Change it to use the right macro to get the correct bits. Signed-off-by: Piotr Azarewicz Reviewed-by: Stillwell Jr Paul M Reviewed-by: Galazka Krzysztof Reviewed-by: Joyner Eric Reviewed-by: Kirsher Je

[dpdk-dev] [PATCH 06/69] net/i40e/base: decouple cfg_lldp_mib_change from init_dcb

2019-12-01 Thread Xiaolong Ye
There is a need to enable MIB change event, not at the same time as init_dcb. This patch will serve this requirement. Modify the i40e_init_dcb to return the correct error when LLDP or DCBX is not in operational state. Signed-off-by: Chinh T Cao Reviewed-by: Aleksandr Loktionov Signed-off-by: Xi

[dpdk-dev] [PATCH 07/69] net/i40e/base: changed FW API version to 1.8

2019-12-01 Thread Xiaolong Ye
A new FW has been released, which uses API version 1.8. Signed-off-by: Adam Ludkiewicz Reviewed-by: Kirsher Jeffrey T Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq_cmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/i40e_adminq_cmd

[dpdk-dev] [PATCH 08/69] net/i40e/base: change misleading error message

2019-12-01 Thread Xiaolong Ye
This patch changes an error code for an admin queue head overrun to use I40E_ERR_ADMIN_QUEUE_FULL instead of I40E_ERR_QUEUE_EMPTY. Signed-off-by: Carolyn Wyborny Reviewed-by: Aleksandr Loktionov Reviewed-by: Kirsher Jeffrey T Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq.c

[dpdk-dev] [PATCH 05/69] net/i40e/base: change for X722 10G-T ports LED

2019-12-01 Thread Xiaolong Ye
On some hardware LEDs would not blink after command 'ethtool -p {eth-port}' in certain circumstances. Now, function does not care about the activity of the LED (though still preserves its state) but forcibly executes identification blinking and then restores the LED state. Signed-off-by: Piotr Mar

[dpdk-dev] [PATCH 03/69] net/i40e/base: increase max VSI count for VFs

2019-12-01 Thread Xiaolong Ye
For historical reasons, we allowed 3 VSIs per VF, but never used more than one. Now with ADq, we can use up to 4 VSIs per VF, so change this value to match. Signed-off-by: Mitch Williams Reviewed-by: Kirsher Jeffrey T Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_type.h | 2 +- 1 f

[dpdk-dev] [PATCH 01/69] net/i40e/base: add support for feature flags

2019-12-01 Thread Xiaolong Ye
Extend NVM Update API to support reporting of features available for the tools. This change is needed by NVM Update to determine if driver supports changing NVM layout from structured to flat. Signed-off-by: Piotr Pietruszewski Signed-off-by: Galazka Krzysztof Reviewed-by: Arkadiusz Grubba Rev

[dpdk-dev] [PATCH 00/69] update for i40e base code

2019-12-01 Thread Xiaolong Ye
Hi, This series is to support FVL 7.2 release. The main changes include: * virtchnl updates * add lldp support * Flow director updates * extend PHY access AQ cmd * add reading LPI counters * add support for Energy Efficient Ethernet * A few fixes. Thanks, Xiaolong Xiaolong Ye (69): net/i40e/

Re: [dpdk-dev] [EXT] Re: [PATCH] config: update Marvell ARMADA

2019-12-01 Thread Jerin Jacob
On Mon, Dec 2, 2019 at 4:01 PM Liron Himi wrote: > > Hi Jerin, > > I have created a patch to MUSDK that fix this conflicts as you suggested. > This will be externally available in the next MUSDK release. > Once it will be out, we can simplify the armada-config, but until then if > anyone want to

Re: [dpdk-dev] [PATCH v2] doc: introduce openwrt how-to guide

2019-12-01 Thread Jerin Jacob
On Mon, Dec 2, 2019 at 3:38 PM Xiaolong Ye wrote: > > This doc describes how to enable DPDK on openwrt in both virtual and > physical x86 environment. Could you split the documentation into generic and x86 specific? So other architectures can add the architecture-specific details instead of dupl

Re: [dpdk-dev] [EXT] Re: [PATCH] config: update Marvell ARMADA

2019-12-01 Thread Liron Himi
Hi Jerin, I have created a patch to MUSDK that fix this conflicts as you suggested. This will be externally available in the next MUSDK release. Once it will be out, we can simplify the armada-config, but until then if anyone want to build DPDK with MUSDK it either needs this patch or compile MU

[dpdk-dev] [PATCH v2] doc: introduce openwrt how-to guide

2019-12-01 Thread Xiaolong Ye
This doc describes how to enable DPDK on openwrt in both virtual and physical x86 environment. Signed-off-by: Xiaolong Ye --- v2 changes: 1. add meson build steps for dpdk 2. replace steps about build openwrt and running dpdk application with links doc/guides/howto/index.rst | 1 + doc/gu

Re: [dpdk-dev] [EXT] Re: [PATCH] config: update Marvell ARMADA

2019-12-01 Thread Liron Himi
Regards, Liron -Original Message- From: Jerin Jacob Sent: Monday, 2 December 2019 06:12 To: Liron Himi Cc: Jerin Jacob Kollanukkaran ; dpdk-dev ; dpdk stable Subject: Re: [EXT] Re: [dpdk-dev] [PATCH] config: update Marvell ARMADA > >

[dpdk-dev] [PATCH] kernel/linux: fix kernel dir for meson

2019-12-01 Thread Xiaolong Ye
kernel_dir option in meson build is equivalent to RTE_KERNELDIR in make system, for cross-compilation case, users would specify it as local kernel src dir like //target-arm_glibc/linux-arm/linux-4.19.81/ Current meson build would fail to compile kernel module if user specify kernel_dir as above,

Re: [dpdk-dev] [PATCH v5 3/6] net/axgbe: use common rte bit operation APIs instead

2019-12-01 Thread Gavin Hu (Arm Technology China)
Hi Bruce, Thomas, This series of patches was reported a compilation issue[1] on 32bit Ubuntu. On mainstream 64-bit OS, "unsigned long" is 64-bit in size and we uses the 64-bit variant of APIs. But the 32-bit OS expect 32-bit 'unsigned long' arguments. This is where the error happens. My que

Re: [dpdk-dev] [PATCH v2 3/3] ethdev: improve flow mark Rx offload deprecation notice

2019-12-01 Thread Jerin Jacob
On Mon, Nov 25, 2019 at 8:39 PM Thomas Monjalon wrote: > > 25/11/2019 11:44, Jerin Jacob: > > On Sun, Nov 24, 2019 at 3:12 AM Thomas Monjalon wrote: > > > > > > 23/11/2019 10:42, Jerin Jacob: > > > > On Sat, Nov 23, 2019 at 3:58 AM Thomas Monjalon > > > > wrote: > > > > > 22/11/2019 12:53, Andr

Re: [dpdk-dev] [EXT] Re: [PATCH] config: update Marvell ARMADA

2019-12-01 Thread Jerin Jacob
> > -- > On Fri, Nov 29, 2019 at 3:55 PM wrote: > > > > From: Liron Himi > > > > disable more NXP modules that conflict with MUSDK > > # Please share more details on the conflict. > [L.H.] both components calls of_ APIs so when M

[dpdk-dev] [PATCH 2/3] net/bnxt: remove an unnecessary log

2019-12-01 Thread Kalesh A P
From: Kalesh AP Remove an unnecessary log while deleting EM filters. Signed-off-by: Kalesh AP Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_hwrm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 4173008..b1f908e 10064

[dpdk-dev] [PATCH 3/3] net/bnxt: use macro for getting default vnic

2019-12-01 Thread Kalesh A P
From: Kalesh AP BNXT_GET_DEFAULT_VNIC macro returns the default VNIC of the function and fixed all occurrences of code to use the macro. Signed-off-by: Kalesh AP Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_ethdev.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions

[dpdk-dev] [PATCH 0/3] updates for bnxt PMD

2019-12-01 Thread Kalesh A P
From: Kalesh AP This series contains code cleanup patches for bnxt PMD. Please apply. Kalesh AP (3): net/bnxt: rework code to select chip type net/bnxt: remove an unnecessary log net/bnxt: use macro for getting default vnic drivers/net/bnxt/bnxt_ethdev.c | 91 +++

[dpdk-dev] [PATCH 1/3] net/bnxt: rework code to select chip type

2019-12-01 Thread Kalesh A P
From: Kalesh AP Use switch-case statement to replace if-else statement. Signed-off-by: Kalesh AP Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_ethdev.c | 73 -- 1 file changed, 42 insertions(+), 31 deletions(-) diff --git a/drivers/net/bnxt/bnxt

[dpdk-dev] [PATCH 9/9] net/hns3: remove the unused macros

2019-12-01 Thread Wei Hu (Xavier)
From: Hao Chen This patch removed some unused macros defined in hns3_rss.h, these macros are used to set tuples for abandoned RTE_ETH_FILTER_HASH in hns3_dev_filter_ctrl(). Signed-off-by: Hao Chen Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_rss.h | 10 -- 1 file changed,

[dpdk-dev] [PATCH 7/9] net/hns3: remove the redundant variable initialization

2019-12-01 Thread Wei Hu (Xavier)
From: "Wei Hu (Xavier)" This patch removes the redundant initialization of the variable named ret. Signed-off-by: Hongbo Zheng Signed-off-by: Hao Chen Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev.c| 10 +- drivers/net/hns3/hns3_ethdev_vf.c | 2 +- 2 files chan

[dpdk-dev] [PATCH 2/9] net/hns3: get link state change through mailbox

2019-12-01 Thread Wei Hu (Xavier)
From: Hongbo Zheng When link down occurs, firmware adds the function of sending message to PF driver through mailbox, hns3 PMD driver can recognize link state change faster through the message. Signed-off-by: Hongbo Zheng Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev.c | 8

[dpdk-dev] [PATCH 8/9] net/hns3: remove the unnecessary assignment

2019-12-01 Thread Wei Hu (Xavier)
From: "Wei Hu (Xavier)" This patch removes the unncessary assignment in hns3_xmit_pkts function to avoid performance loss. Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_rxtx.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns

[dpdk-dev] [PATCH 6/9] net/hns3: remove the redundant function call

2019-12-01 Thread Wei Hu (Xavier)
From: Hao Chen This patch removes the redundant statement calling hns3_stats_reset() to clear statistical information explicitly in the initialization of VF device, because hardware has been reseted by FLR in the initialization and the initial hardware and software statistics values are 0. Signe

[dpdk-dev] [PATCH 1/9] net/hns3: support Rx interrupt

2019-12-01 Thread Wei Hu (Xavier)
From: Hao Chen This patch supports of receive packets through interrupt mode for hns3 PF/VF driver. The following ops functions should be implemented defined in struct eth_dev_ops: rx_queue_intr_enable rx_queue_intr_disable rx_queue_count Signed-off-by: Hao Chen Signed-off-by: Wei Hu (Xavier)

[dpdk-dev] [PATCH 5/9] net/hns3: optimize RSS's default algorithm

2019-12-01 Thread Wei Hu (Xavier)
From: Hao Chen This patch changed the default algorithm of RSS from simle_xor to toeplitz because toeplitz is used more frequently by upper applications such as ceph. Signed-off-by: Hao Chen Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_rss.c | 14 +++--- 1 file changed, 11

[dpdk-dev] [PATCH 3/9] net/hns3: modify the return value of enable msix

2019-12-01 Thread Wei Hu (Xavier)
From: "Wei Hu (Xavier)" This patch replaces the return value "-1" with "-ENXIO". Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c index

[dpdk-dev] [PATCH 0/9] updates for hns3 PMD driver

2019-12-01 Thread Wei Hu (Xavier)
This series are updates for hns3 ethernet PMD driver. Hao Chen (4): net/hns3: support Rx interrupt net/hns3: optimize RSS's default algorithm net/hns3: remove the redundant function call net/hns3: remove the unused macros Hongbo Zheng (1): net/hns3: get link state change through mailbox

[dpdk-dev] [PATCH 4/9] net/hns3: modify custom macro

2019-12-01 Thread Wei Hu (Xavier)
From: Huisong Li This patch replaces custom macro named HNS3_MIN_FRAME_LEN for ethernet minimum frame length with the macro named RTE_ETHER_MIN_LEN that defined in dpdk framework. Signed-off-by: Huisong Li Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev.c | 2 +- drivers/net/h

Re: [dpdk-dev] Interrupt is catched in kernel, but not handled

2019-12-01 Thread Ranran
בתאריך יום א׳, 1 בדצמ׳ 2019, 19:07, מאת Stephen Hemminger ‏< step...@networkplumber.org>: > On Sat, 30 Nov 2019 19:49:16 +0200 > Ranran wrote: > > > > > > > > > I also verified that there are no additional irq numbered 23 except > > > > for our device. > > > > > > > > How can it be that irq is ca

Re: [dpdk-dev] Interrupt is catched in kernel, but not handled

2019-12-01 Thread Stephen Hemminger
On Sat, 30 Nov 2019 19:49:16 +0200 Ranran wrote: > > > > > > I also verified that there are no additional irq numbered 23 except > > > for our device. > > > > > > How can it be that irq is catched, but not delivered to userspace ? > > > Any suggestion is much appreciated, > > > > > > ran > > >

Re: [dpdk-dev] [PATCH] doc: introduce openwrt how-to guide

2019-12-01 Thread Ye Xiaolong
On 11/29, Stephen Hemminger wrote: >On Fri, 29 Nov 2019 16:19:11 +0800 >Xiaolong Ye wrote: > >> This doc describes how to enable DPDK on openwrt in both virtual and >> physical x86 environment. >> >> Signed-off-by: Xiaolong Ye >> --- >> doc/guides/howto/index.rst | 1 + >> doc/guides/howto/

[dpdk-dev] [PATCH dpdk-dev] net/mlx5: support hairpin between different ports

2019-12-01 Thread xiangxia . m . yue
From: Tonghao Zhang In the dpdk upstream, each hairpin Rxq can be connected Txq which can belong to a same port. This patch allows Rxq connected to different port Txq. rte_eth_hairpin_conf_check will check the hairpin_conf valid in high level. Signed-off-by: Tonghao Zhang --- drivers/net/mlx5