[dpdk-dev] [PATCH] maintainers: resign from next-net-intel/virtio/vhost/af_xdp

2020-06-18 Thread Xiaolong Ye
I will leave Intel soon and likely won't have dedicated time for maintainership, so removing my name from all related maintainer roles. Signed-off-by: Xiaolong Ye --- MAINTAINERS | 5 - 1 file changed, 5 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 816696caf2..32da7

[dpdk-dev] [PATCH 5/5] mbuf: support to dump free_flags for dynamic flag

2020-06-13 Thread Xiaolong Ye
0 0 Signed-off-by: Xiaolong Ye --- lib/librte_mbuf/rte_mbuf_dyn.c | 8 1 file changed, 8 insertions(+) diff --git a/lib/librte_mbuf/rte_mbuf_dyn.c b/lib/librte_mbuf/rte_mbuf_dyn.c index f071651acf..538a43f695 100644 --- a/lib/librte_mbuf/rte_mbuf_dyn.c +++ b/lib/librte_mbuf/rte_mbuf_dy

[dpdk-dev] [PATCH 3/5] mbuf: fix free_space setting for dynamic field

2020-06-13 Thread Xiaolong Ye
each loop. Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: sta...@dpdk.org Signed-off-by: Xiaolong Ye --- lib/librte_mbuf/rte_mbuf_dyn.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/librte_mbuf/rte_mbuf_dyn.c b/lib/librte_mbuf

[dpdk-dev] [PATCH 2/5] mbuf: fix missing errno for dyn field/flag registration

2020-06-13 Thread Xiaolong Ye
Set rte_errno as ENOMEM when allocation failure. Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: sta...@dpdk.org Signed-off-by: Xiaolong Ye --- lib/librte_mbuf/rte_mbuf_dyn.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/l

[dpdk-dev] [PATCH 4/5] mbuf: fix a dynamic field dump log

2020-06-13 Thread Xiaolong Ye
For each mbuf byte, free_space[i] == 0 means the space is occupied, free_space[i] != 0 means space is free. Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: sta...@dpdk.org Signed-off-by: Xiaolong Ye --- lib/librte_mbuf/rte_mbuf_dyn.c | 2 +- 1 file changed, 1 inser

[dpdk-dev] [PATCH 0/5] small fixes for mbuf's dynamic field/flag feature

2020-06-13 Thread Xiaolong Ye
This series contains some small fixes and enhancement for mbuf's dynamic field/flag feature. Xiaolong Ye (5): mbuf: fix out-of-bounds access at dyn field register mbuf: fix missing errno for dyn field/flag registration mbuf: fix free_space setting for dynamic field mbuf: fix a dy

[dpdk-dev] [PATCH 1/5] mbuf: fix out-of-bounds access at dyn field register

2020-06-13 Thread Xiaolong Ye
and layout of struct mbuf_dyn_shm may be changed in the future. This patch adds boundary check explicitly to avoid potential risk of out-of-bounds access. Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: sta...@dpdk.org Signed-off-by: Xiaolong Ye Acked-by: Olivier Mat

[dpdk-dev] [PATCH v3] mbuf: fix out-of-bounds access at dyn field register

2020-06-11 Thread Xiaolong Ye
and layout of struct mbuf_dyn_shm may be changed in the future. This patch adds boundary check explicitly to avoid potential risk of out-of-bounds access. Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: sta...@dpdk.org Signed-off-by: Xiaolong Ye --- V3: update subje

[dpdk-dev] [PATCH v2] mbuf: fix out-of-bounds access

2020-06-10 Thread Xiaolong Ye
and layout of struct mbuf_dyn_shm may be changed in the future. This patch adds boundary check explicitly to avoid potential risk of out-of-bounds access. Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: sta...@dpdk.org Signed-off-by: Xiaolong Ye --- V2: put the

[dpdk-dev] [PATCH] mbuf: fix out-of-bounds access

2020-06-10 Thread Xiaolong Ye
and layout of struct mbuf_dyn_shm may be changed in the future. This patch adds boundary check explicitly to avoid potential risk of out-of-bounds access. Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: sta...@dpdk.org Signed-off-by: Xiaolong Ye --- lib/librte_mbuf/rt

[dpdk-dev] [PATCH] test/mbuf: fix one typo in dyn test

2020-06-09 Thread Xiaolong Ye
Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: sta...@dpdk.org Signed-off-by: Xiaolong Ye --- app/test/test_mbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c index 71bdab691..06e44f0a7 100644 ---

[dpdk-dev] [PATCH v2] mbuf: remove unused next member in dyn flag/field

2020-06-09 Thread Xiaolong Ye
sta...@dpdk.org Signed-off-by: Xiaolong Ye Acked-by: Olivier Matz --- V2: update subject as Olivier suggested. lib/librte_mbuf/rte_mbuf_dyn.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/librte_mbuf/rte_mbuf_dyn.c b/lib/librte_mbuf/rte_mbuf_dyn.c index d6931f847..953e3ec31 1

[dpdk-dev] [PATCH] mbuf: remove unused next member

2020-06-08 Thread Xiaolong Ye
sta...@dpdk.org Signed-off-by: Xiaolong Ye --- I found this issue when reading the mbuf dynfiled/dynflag feature code, mbuf_autotest is passed with this change, though I may miss something or this filed has some special design purpose, please correct me if I am wrong. lib/librte_mbuf/rte_mbuf_

[dpdk-dev] [PATCH v2] doc: update for ice

2020-05-25 Thread Xiaolong Ye
Update the description and limitation about ice PMD according to the product release strategy. Signed-off-by: Xiaolong Ye Acked-by: Qiming Yang --- doc/guides/nics/ice.rst | 29 + 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/doc/guides/nics/ice.rst

[dpdk-dev] [PATCH] doc: update for ice

2020-05-19 Thread Xiaolong Ye
Update the description and limitation about ice PMD according to the product release strategy. Signed-off-by: Xiaolong Ye --- doc/guides/nics/ice.rst | 29 + 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics

[dpdk-dev] [PATCH v2] doc: remove Intel PMD examples in flow bifurcation guide

2020-05-08 Thread Xiaolong Ye
Now this feature is no longer supported by kernel side, (i40e kernel driver doesn't support it from v2.3.2 and ixgbe kernel driver isn't guaranteed to support this feature as well in the future), so remove the Intel PMD examples to avoid confusion. Signed-off-by: Xiaolong Ye ---

[dpdk-dev] [PATCH] doc: remove intel PMD examples in flow bifurcation guide

2020-04-28 Thread Xiaolong Ye
Now this feature is no longer supported by kernel side, so remove the intel PMD examples to avoid confusion. Signed-off-by: Xiaolong Ye --- doc/guides/howto/flow_bifurcation.rst | 227 -- doc/guides/howto/img/ixgbe_bifu_queue_idx.svg | 101 2 files changed, 328

[dpdk-dev] [PATCH v2] doc: fix incorrect example for specifying log level

2020-03-17 Thread Xiaolong Ye
Now we need to add prefix like lib. to enable the log, also changing val 8 to "debug"" which would be more descriptive. Fixes: ffb9fd1b0808 ("log: update legacy modules dynamic logs regex") Cc: sta...@dpdk.org Reported-by: Haiyue Wang Signed-off-by: Xiaolong Ye

[dpdk-dev] [PATCH] doc: fix incorrect example for specifying log level

2020-03-17 Thread Xiaolong Ye
Now we need to add prefix like lib. to enable the log. Fixes: ffb9fd1b0808 ("log: update legacy modules dynamic logs regex") Cc: sta...@dpdk.org Reported-by: Haiyue Wang Signed-off-by: Xiaolong Ye --- doc/guides/linux_gsg/eal_args.include.rst | 2 +- 1 file changed, 1 insertion(+),

[dpdk-dev] [PATCH v1 2/2] vhost: remove unused variable

2020-03-07 Thread Xiaolong Ye
VHOST_FEATURES has been removed in previous refactor. Fixes: 0917f9d1f059 ("vhost: use new APIs to handle features") Cc: sta...@dpdk.org Signed-off-by: Xiaolong Ye --- lib/librte_vhost/vhost.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/librte_vhost/vhost.h b/lib/li

[dpdk-dev] [PATCH v1 1/2] net/virtio: fix for out of date comment

2020-03-07 Thread Xiaolong Ye
Fix the comment that's incorrect as the code evolves. Fixes: 9470427c88e1 ("net/virtio: do not store PCI device pointer at shared memory") Cc: sta...@dpdk.org Signed-off-by: Xiaolong Ye --- drivers/net/virtio/virtio_ethdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 del

[dpdk-dev] [PATCH v1 0/2] small fixes

2020-03-07 Thread Xiaolong Ye
This series contains small fixes for virtio and vhost. Xiaolong Ye (2): net/virtio: fix for out of date comment vhost: remove unused variable drivers/net/virtio/virtio_ethdev.c | 6 +++--- lib/librte_vhost/vhost.h | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) -- 2.17.1

[dpdk-dev] [PATCH] net/vhost: enable promiscuous and multicast by default

2020-02-26 Thread Xiaolong Ye
("drivers/net: enable promiscuous and multicast by default") Signed-off-by: Xiaolong Ye --- drivers/net/vhost/rte_eth_vhost.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index 458ed58f5..fcf317151 100644 --- a/d

[dpdk-dev] [PATCH] doc: add feature support matrix link for i40e

2020-02-25 Thread Xiaolong Ye
There is an increase in number of issues related to supported cables and modules, this link and note can help users identify or narrow down the issues. Signed-off-by: Xiaolong Ye --- doc/guides/nics/i40e.rst | 15 +++ 1 file changed, 15 insertions(+) diff --git a/doc/guides/nics

[dpdk-dev] [PATCH] maintainers: update for virtio and vhost

2020-02-21 Thread Xiaolong Ye
I volunteer to be co-maintainer for Vhost-user/Vhost PMD/Virtio PMD. Signed-off-by: Xiaolong Ye --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9c22c3eb4..8e5d18235 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -855,6 +855,7 @@ F: doc

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

2020-02-16 Thread Xiaolong Ye
This doc describes how to enable DPDK on Openwrt in both virtual and physical x86 environment. Signed-off-by: Xiaolong Ye Acked-by: John McNamara --- V6 changes: 1. addressed review comments raised by Thomas V5 changes: 1. improve the doc's grammar and wording according to J

[dpdk-dev] [PATCH] net/i40e/base: skip further adminq init for VF

2020-01-21 Thread Xiaolong Ye
Since VF has no need of firmware, we can skip further adminq init which involves firmware operation, this patch fixes the testpmd segfault issue when starting with i40e VF. Fixes: d5e1a149362e ("net/i40e/base: check MAC type") Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40

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

2020-01-17 Thread Xiaolong Ye
This doc describes how to enable DPDK on Openwrt in both virtual and physical x86 environment. Signed-off-by: Xiaolong Ye --- V5 changes: 1. improve the doc's grammar and wording according to John's suggestions. V4 changes: 1. add release notes V3 changes: 1. emphasize target

[dpdk-dev] [PATCH] doc: add release notes for Intel PMDs

2020-01-16 Thread Xiaolong Ye
Add release notes for Intel ice/iavf/i40e PMDs. Signed-off-by: Xiaolong Ye --- doc/guides/rel_notes/release_20_02.rst | 28 ++ 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/doc/guides/rel_notes/release_20_02.rst b/doc/guides/rel_notes/release_20_02.rst

[dpdk-dev] [PATCH] net/ice: cleanup for vec path check

2020-01-15 Thread Xiaolong Ye
Move the conditional compilation block to the inner check helper, so we can reduce the number of multiple ifdef check pairs used. Signed-off-by: Xiaolong Ye --- drivers/net/ice/ice_rxtx.c| 9 - drivers/net/ice/ice_rxtx_vec_common.h | 8 2 files changed, 8 insertions

[dpdk-dev] [PATCH v4 36/36] net/i40e/base: add new link speed constants

2020-01-12 Thread Xiaolong Ye
Aleksandr Loktionov Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_prototype.h | 4 drivers/net/i40e/base/virtchnl.h | 4 2 files changed, 8 insertions(+) diff --git a/drivers/net/i40e/base/i40e_prototype.h b/drivers/net/i40e/base/i40e_prototype.h index 0f06e3262..d8

[dpdk-dev] [PATCH v4 35/36] net/i40e/base: enable LED blinking flow

2020-01-12 Thread Xiaolong Ye
Add X710T*L device specific operations (in port LED detection and handling of GLGEN_GPIO_CTL.PIN_FUNC field) to enable LED blinking. Signed-off-by: Damian Milosek Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c | 28 +--- drivers/net/i40e/base

[dpdk-dev] [PATCH v4 29/36] net/i40e/base: removed unreachable code

2020-01-12 Thread Xiaolong Ye
The result of the check is always FALSE and the code within "if" is never executed. Signed-off-by: Dzmitry Sautsa Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net

[dpdk-dev] [PATCH v4 34/36] net/i40e/base: add CRC stripping capability

2020-01-12 Thread Xiaolong Ye
ff-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_dcb.h | 3 +-- drivers/net/i40e/base/virtchnl.h | 12 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e/base/i40e_dcb.h b/drivers/net/i40e/base/i40e_dcb.h index 520c7db73..60193c98d 100644 --- a/drivers/net

[dpdk-dev] [PATCH v4 31/36] net/i40e/base: implement reading lpi statistics

2020-01-12 Thread Xiaolong Ye
: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c| 56 ++ drivers/net/i40e/base/i40e_prototype.h | 3 ++ drivers/net/i40e/base/i40e_type.h | 2 + 3 files changed, 61 insertions(+) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c

[dpdk-dev] [PATCH v4 27/36] net/i40e/base: fix wrong 'Advertised FEC modes'

2020-01-12 Thread Xiaolong Ye
Fix display of FEC settings for ethtool. This patch change variable 'phy.link_info.req_fec_info' sent to ethtool. Without this patch wrong FEC settings can be shown. Fixes: 1216fb9f0c8c ("net/i40e/base: store the requested FEC information") Signed-off-by: Jaroslaw Gawin Sig

[dpdk-dev] [PATCH v4 28/36] net/i40e/base: add Flow Director defines

2020-01-12 Thread Xiaolong Ye
Add defines for creating Flow Director flows as defined in datasheet section 7.1.5.4 for field vectors. Signed-off-by: Doug Dziggel Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_register.h | 81 +++ 1 file changed, 81 insertions(+) diff --git a/drivers/net

[dpdk-dev] [PATCH v4 33/36] net/i40e/base: introduce firmware EMP reset register offsets

2020-01-12 Thread Xiaolong Ye
Introduce offsets of firmware registers holding a number of EMP resets. Implement offsets as a preprocessor's constants. Required by drivers to read a number of EMP resets reported by FW. Signed-off-by: Piotr Kwapulinski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_register.

[dpdk-dev] [PATCH v4 30/36] net/i40e/base: set PHY Access flag on X722

2020-01-12 Thread Xiaolong Ye
The X722 FW API version 1.9 adds support for accessing PHY registers with Admin Queue Command. This enables reading EEPROM data from (Q)SFP+ transceivers, what was previously possible only on X710 devices. Signed-off-by: Adam Ludkiewicz Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base

[dpdk-dev] [PATCH v4 32/36] net/i40e/base: exposing missing LED functionality

2020-01-12 Thread Xiaolong Ye
The previous code had the LED code wrapped such that, it was static to the file and not usable outside of it. It is now available. Signed-off-by: Rusinski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c| 8 drivers/net/i40e/base/i40e_prototype.h | 5 - 2

[dpdk-dev] [PATCH v4 22/36] net/i40e/base: update FW API version

2020-01-12 Thread Xiaolong Ye
Update FW API version to 1.9. Signed-off-by: Piotr Azarewicz Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h b/drivers/net/i40e/base/i40e_adminq_cmd.h index

[dpdk-dev] [PATCH v4 24/36] net/i40e/base: make i40e_set_mac_type() public

2020-01-12 Thread Xiaolong Ye
Make i40e_set_mac_type() public. i40e driver requires i40e_set_mac_type() to be public. It is required for recovery mode handling. Without this patch recovery mode could not be detected at probe() function. Signed-off-by: Piotr Kwapulinski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base

[dpdk-dev] [PATCH v4 23/36] net/i40e/base: add persistent lldp support

2020-01-12 Thread Xiaolong Ye
This patch adds a function to read nvm module data and uses it to read current lldp agent configuration from nvm api version 1.8. Signed-off-by: Wnuczko Sylwia Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_dcb.c | 20 +++- drivers/net/i40e/base/i40e_dcb.h | 5

[dpdk-dev] [PATCH v4 21/36] net/i40e/base: add FWS1B register masks

2020-01-12 Thread Xiaolong Ye
those changes driver could show wrong state. Signed-off-by: Adrian Podlawski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_register.h | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/i40e/base/i40e_register.h b/drivers/net/i40e/base/i40e_register.h

[dpdk-dev] [PATCH v4 20/36] net/i40e/base: add drop mode parameter to set MAC config

2020-01-12 Thread Xiaolong Ye
ned-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq.c | 4 +++- drivers/net/i40e/base/i40e_adminq_cmd.h | 29 + drivers/net/i40e/base/i40e_common.c | 11 ++ drivers/net/i40e/base/i40e_prototype.h | 1 + drivers/net/i40e/base/i40e_type.h | 1

[dpdk-dev] [PATCH v4 25/36] net/i40e/base: fix retrying logic

2020-01-12 Thread Xiaolong Ye
Fixed a bug where driver was breaking out of the loop and reporting an error without retrying first. Fixes: 466eec7d6b1a ("net/i40e/base: retry AQC to overcome IRCRead hangs") Signed-off-by: Marcin Formela Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_com

[dpdk-dev] [PATCH v4 26/36] net/i40e/base: mark additional missing bits as reserved

2020-01-12 Thread Xiaolong Ye
Mark bits 0xD through 0xF for the command flags of a cloud filter as reserved. These bits are not yet defined and are considered as reserved in the data sheet. Signed-off-by: Jacob Keller Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq_cmd.h | 3 +++ 1 file changed, 3

[dpdk-dev] [PATCH v4 15/36] net/i40e/base: add reading LPI counters

2020-01-12 Thread Xiaolong Ye
ponse). Signed-off-by: Piotr Pietruszewski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq_cmd.h | 29 -- drivers/net/i40e/base/i40e_common.c | 130 drivers/net/i40e/base/i40e_prototype.h | 10 ++ 3 files changed, 163 insertions(+), 6 deletions(-)

[dpdk-dev] [PATCH v4 18/36] net/i40e/base: change of the incorrect Tx descriptors number

2020-01-12 Thread Xiaolong Ye
-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h index 8d257e00a..f0e4b667a 100644 --- a/drivers/net/i40e/base/i40e_type.h +++ b/drivers/net/i40e

[dpdk-dev] [PATCH v4 14/36] net/i40e/base: change for missing "link modes"

2020-01-12 Thread Xiaolong Ye
pe of the device should also be checked instead of FW API version only. Fixes: e8228f1a16b7 ("net/i40e/base: report supported link modes") Signed-off-by: Martyna Szapar Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 delet

[dpdk-dev] [PATCH v4 19/36] net/i40e/base: extend PHY access AQ command

2020-01-12 Thread Xiaolong Ye
Currently FW use MDIO I/F number corresponded with current PF for PHY access. This code allow to specify used MDIO I/F number. Signed-off-by: Piotr Azarewicz Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq.c | 57 +++ drivers/net/i40e/base

[dpdk-dev] [PATCH v4 17/36] net/i40e/base: update status codes

2020-01-12 Thread Xiaolong Ye
Add a few new status codes and rename a few to make them more consistent. Error code are mapped to similar values as in i40e_status.h, so as to be compatible with older VF drivers not using this status enum. Signed-off-by: Mitch Williams Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base

[dpdk-dev] [PATCH v4 16/36] net/i40e/base: backport style changes from upstream Linux

2020-01-12 Thread Xiaolong Ye
The upstream virtchnl.h has a few minor style differences to what is out-of-tree, and there is no real reason we should prefer the current style over whats upstream. Signed-off-by: Jacob Keller Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/virtchnl.h | 4 ++-- 1 file changed, 2

[dpdk-dev] [PATCH v4 13/36] net/i40e/base: read LPI status from external PHY

2020-01-12 Thread Xiaolong Ye
When external PHY is used, MAC register may not reflect actual state of LPI. Add function reading it directly from PHY or MAC, depending on what is supported by the device. Signed-off-by: Krzysztof Galazka Signed-off-by: Piotr Pietruszewski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base

[dpdk-dev] [PATCH v4 06/36] net/i40e/base: further implementation of LLDP

2020-01-12 Thread Xiaolong Ye
-off-by: Jaroslaw Ilgiewicz Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq_cmd.h | 19 ++- drivers/net/i40e/base/i40e_common.c | 173 ++-- drivers/net/i40e/base/i40e_prototype.h | 18 +-- drivers/net/i40e/base/i40e_type.h | 1 + drivers/net/i40e

[dpdk-dev] [PATCH v4 12/36] net/i40e/base: add support for Energy Efficient Ethernet

2020-01-12 Thread Xiaolong Ye
This change adds i40e_enable_eee() function controlling advertisement of Energy Efficient Ethernet mode (EEE). Signed-off-by: Piotr Pietruszewski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c| 64 ++ drivers/net/i40e/base/i40e_prototype.h | 1

[dpdk-dev] [PATCH v4 10/36] net/i40e/base: improve AQ log granularity

2020-01-12 Thread Xiaolong Ye
hat preceded an AQ dump have been moved to I40E_DEBUG_AQ_COMMAND class, which seems more appropriate. Signed-off-by: Doug Dziggel Signed-off-by: Robert Konklewski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq.c | 8 drivers/net/i40e/base/i40e_common.c |

[dpdk-dev] [PATCH v4 11/36] net/i40e/base: add getter for FW LLDP agent status

2020-01-12 Thread Xiaolong Ye
method for checking if agent is enabled. Current state of FW LLDP agent may be different if user disabled the agent, so i40e_get_fw_lldp_status() uses LLDP MIB checking to determine status of the agent. Signed-off-by: Piotr Pietruszewski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base

[dpdk-dev] [PATCH v4 08/36] net/i40e/base: add check for MAC type

2020-01-12 Thread Xiaolong Ye
Some features were introduced in different FW API version on XL710 and X722 MACs. Others are available only on specific MAC type. Make sure that they are properly assigned. Also fix the style issues reported by current check-patch. Signed-off-by: Galazka Krzysztof Signed-off-by: Xiaolong Ye

[dpdk-dev] [PATCH v4 09/36] net/i40e/base: adding flags for PHY types

2020-01-12 Thread Xiaolong Ye
Adding bit flags to enable/disable EEE capability for 2.5GBase-T and 5GBase-T PHY types as well as 'Set autonomous EEE for relevant enabled PHY types' flag. Signed-off-by: Doug Dziggel Signed-off-by: Michal Litwicki Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq

[dpdk-dev] [PATCH v4 07/36] net/i40e/base: add new device ids

2020-01-12 Thread Xiaolong Ye
New device ids are created to support SFP+ and backplane connections. Signed-off-by: Piotr Azarewicz Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c | 2 ++ drivers/net/i40e/base/i40e_devids.h | 2 ++ drivers/net/i40e/i40e_ethdev.c | 2 ++ 3 files changed, 6 insertions

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

2020-01-12 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 Signed-off-by: Xiaolong Ye

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

2020-01-12 Thread Xiaolong Ye
missing SOBs V2: * strip some unnecessary code * squash some fixes * improve commit logs Xiaolong Ye (36): net/i40e/base: add support for feature flags net/i40e/base: increase max VSI count for VFs net/i40e/base: change buffer address net/i40e/base: decouple cfg_lldp_mib_change from init_dcb

[dpdk-dev] [PATCH v4 03/36] net/i40e/base: change buffer address

2020-01-12 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 Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c | 2 +- 1 file changed, 1 inser

[dpdk-dev] [PATCH v4 02/36] net/i40e/base: increase max VSI count for VFs

2020-01-12 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 Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_type.h | 2 +- 1 file changed, 1 insertion(+), 1

[dpdk-dev] [PATCH v4 05/36] net/i40e/base: change misleading error message

2020-01-12 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 Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[dpdk-dev] [PATCH v4 04/36] net/i40e/base: decouple cfg_lldp_mib_change from init_dcb

2020-01-12 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 Signed-off-by: Xiaolong Ye --- drivers/net/i40e

[dpdk-dev] [PATCH] doc: basic update for ice

2019-12-19 Thread Xiaolong Ye
The ice PMD supports 10/25/50/100 Gbps. Signed-off-by: Xiaolong Ye --- doc/guides/nics/ice.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 9b90b389e..cde3fd620 100644 --- a/doc/guides/nics/ice.rst +++ b/doc/guides

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

2019-12-15 Thread Xiaolong Ye
This doc describes how to enable DPDK on openwrt in both virtual and physical x86 environment. Signed-off-by: Xiaolong Ye --- V4 changes: 1. add release notes V3 changes: 1. emphasize target select in `OpenWrt configuration` section V2 changes: 1. add meson build steps for dpdk 2. replace

[dpdk-dev] [PATCH v3 35/36] net/i40e/base: enable LED blinking flow

2019-12-15 Thread Xiaolong Ye
Add X710T*L device specific operations (in port LED detection and handling of GLGEN_GPIO_CTL.PIN_FUNC field) to enable LED blinking. Signed-off-by: Damian Milosek Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c | 28 +--- drivers/net/i40e/base

[dpdk-dev] [PATCH v3 31/36] net/i40e/base: implement reading lpi statistics

2019-12-15 Thread Xiaolong Ye
: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c| 56 ++ drivers/net/i40e/base/i40e_prototype.h | 3 ++ drivers/net/i40e/base/i40e_type.h | 2 + 3 files changed, 61 insertions(+) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c

[dpdk-dev] [PATCH v3 36/36] net/i40e/base: add new link speed constants

2019-12-15 Thread Xiaolong Ye
This patch fixes 'NIC Link is Up, Unknown bps' message in dmesg for 2.5Gb/5Gb speeds. This problem is fixed by adding constants for VIRTCHNL_LINK_SPEED_2_5GB and VIRTCHNL_LINK_SPEED_5GB. Signed-off-by: Aleksandr Loktionov Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_p

[dpdk-dev] [PATCH v3 33/36] net/i40e/base: introduce firmware EMP reset register offsets

2019-12-15 Thread Xiaolong Ye
Introduce offsets of firmware registers holding a number of EMP resets. Implement offsets as a preprocessor's constants. Required by drivers to read a number of EMP resets reported by FW. Signed-off-by: Piotr Kwapulinski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_register.

[dpdk-dev] [PATCH v3 32/36] net/i40e/base: exposing missing LED functionality

2019-12-15 Thread Xiaolong Ye
The previous code had the LED code wrapped such that, it was static to the file and not usable outside of it. It is now available. Signed-off-by: Rusinski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c| 8 drivers/net/i40e/base/i40e_prototype.h | 5 - 2

[dpdk-dev] [PATCH v3 34/36] net/i40e/base: add CRC stripping capability

2019-12-15 Thread Xiaolong Ye
ff-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_dcb.h | 3 +-- drivers/net/i40e/base/virtchnl.h | 12 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e/base/i40e_dcb.h b/drivers/net/i40e/base/i40e_dcb.h index 520c7db73..60193c98d 100644 --- a/drivers/net

[dpdk-dev] [PATCH v3 24/36] net/i40e/base: make i40e_set_mac_type() public

2019-12-15 Thread Xiaolong Ye
Make i40e_set_mac_type() public. i40e driver requires i40e_set_mac_type() to be public. It is required for recovery mode handling. Without this patch recovery mode could not be detected at probe() function. Signed-off-by: Piotr Kwapulinski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base

[dpdk-dev] [PATCH v3 29/36] net/i40e/base: removed unreachable code

2019-12-15 Thread Xiaolong Ye
The result of the check is always FALSE and the code within "if" is never executed. Signed-off-by: Dzmitry Sautsa Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net

[dpdk-dev] [PATCH v3 26/36] net/i40e/base: mark additional missing bits as reserved

2019-12-15 Thread Xiaolong Ye
Mark bits 0xD through 0xF for the command flags of a cloud filter as reserved. These bits are not yet defined and are considered as reserved in the data sheet. Signed-off-by: Jacob Keller Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq_cmd.h | 3 +++ 1 file changed, 3

[dpdk-dev] [PATCH v3 27/36] net/i40e/base: change wrong 'Advertised FEC modes'

2019-12-15 Thread Xiaolong Ye
Fix display of FEC settings for ethtool. This patch change variable 'phy.link_info.req_fec_info' sent to ethtool. Without this patch wrong FEC settings can be shown. Signed-off-by: Jaroslaw Gawin Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c | 13 ++-

[dpdk-dev] [PATCH v3 28/36] net/i40e/base: add Flow Director defines

2019-12-15 Thread Xiaolong Ye
Add defines for creating Flow Director flows as defined in datasheet section 7.1.5.4 for field vectors. Signed-off-by: Doug Dziggel Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_register.h | 81 +++ 1 file changed, 81 insertions(+) diff --git a/drivers/net

[dpdk-dev] [PATCH v3 30/36] net/i40e/base: set PHY Access flag on X722

2019-12-15 Thread Xiaolong Ye
The X722 FW API version 1.9 adds support for accessing PHY registers with Admin Queue Command. This enables reading EEPROM data from (Q)SFP+ transceivers, what was previously possible only on X710 devices. Signed-off-by: Adam Ludkiewicz Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base

[dpdk-dev] [PATCH v3 25/36] net/i40e/base: change retrying logic

2019-12-15 Thread Xiaolong Ye
Fixed a bug where driver was breaking out of the loop and reporting an error without retrying first. Signed-off-by: Marcin Formela Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v3 23/36] net/i40e/base: add persistent lldp support

2019-12-15 Thread Xiaolong Ye
This patch adds a function to read nvm module data and uses it to read current lldp agent configuration from nvm api version 1.8. Signed-off-by: Wnuczko Sylwia Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_dcb.c | 20 +++- drivers/net/i40e/base/i40e_dcb.h | 5

[dpdk-dev] [PATCH v3 20/36] net/i40e/base: add drop mode parameter to set MAC config

2019-12-15 Thread Xiaolong Ye
ned-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq.c | 4 +++- drivers/net/i40e/base/i40e_adminq_cmd.h | 29 + drivers/net/i40e/base/i40e_common.c | 11 ++ drivers/net/i40e/base/i40e_prototype.h | 1 + drivers/net/i40e/base/i40e_type.h | 1

[dpdk-dev] [PATCH v3 17/36] net/i40e/base: update status codes

2019-12-15 Thread Xiaolong Ye
Add a few new status codes and rename a few to make them more consistent. Error code are mapped to similar values as in i40e_status.h, so as to be compatible with older VF drivers not using this status enum. Signed-off-by: Mitch Williams Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base

[dpdk-dev] [PATCH v3 18/36] net/i40e/base: change of the incorrect Tx descriptors number

2019-12-15 Thread Xiaolong Ye
-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h index 8d257e00a..f0e4b667a 100644 --- a/drivers/net/i40e/base/i40e_type.h +++ b/drivers/net/i40e

[dpdk-dev] [PATCH v3 19/36] net/i40e/base: extend PHY access AQ command

2019-12-15 Thread Xiaolong Ye
Currently FW use MDIO I/F number corresponded with current PF for PHY access. This code allow to specify used MDIO I/F number. Signed-off-by: Piotr Azarewicz Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq.c | 57 +++ drivers/net/i40e/base

[dpdk-dev] [PATCH v3 21/36] net/i40e/base: add FWS1B register masks

2019-12-15 Thread Xiaolong Ye
those changes driver could show wrong state. Signed-off-by: Adrian Podlawski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_register.h | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/i40e/base/i40e_register.h b/drivers/net/i40e/base/i40e_register.h

[dpdk-dev] [PATCH v3 22/36] net/i40e/base: update FW API version

2019-12-15 Thread Xiaolong Ye
Update FW API version to 1.9. Signed-off-by: Piotr Azarewicz Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h b/drivers/net/i40e/base/i40e_adminq_cmd.h index

[dpdk-dev] [PATCH v3 13/36] net/i40e/base: read LPI status from external PHY

2019-12-15 Thread Xiaolong Ye
When external PHY is used, MAC register may not reflect actual state of LPI. Add function reading it directly from PHY or MAC, depending on what is supported by the device. Signed-off-by: Krzysztof Galazka Signed-off-by: Piotr Pietruszewski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base

[dpdk-dev] [PATCH v3 14/36] net/i40e/base: change for missing "link modes"

2019-12-15 Thread Xiaolong Ye
pe of the device should also be checked instead of FW API version only. Signed-off-by: Martyna Szapar Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/b

[dpdk-dev] [PATCH v3 10/36] net/i40e/base: improve AQ log granularity

2019-12-15 Thread Xiaolong Ye
hat preceded an AQ dump have been moved to I40E_DEBUG_AQ_COMMAND class, which seems more appropriate. Signed-off-by: Doug Dziggel Signed-off-by: Robert Konklewski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq.c | 8 drivers/net/i40e/base/i40e_common.c |

[dpdk-dev] [PATCH v3 16/36] net/i40e/base: backport style changes from upstream Linux

2019-12-15 Thread Xiaolong Ye
The upstream virtchnl.h has a few minor style differences to what is out-of-tree, and there is no real reason we should prefer the current style over whats upstream. Signed-off-by: Jacob Keller Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/virtchnl.h | 4 ++-- 1 file changed, 2

[dpdk-dev] [PATCH v3 11/36] net/i40e/base: add getter for FW LLDP agent status

2019-12-15 Thread Xiaolong Ye
method for checking if agent is enabled. Current state of FW LLDP agent may be different if user disabled the agent, so i40e_get_fw_lldp_status() uses LLDP MIB checking to determine status of the agent. Signed-off-by: Piotr Pietruszewski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base

[dpdk-dev] [PATCH v3 15/36] net/i40e/base: add reading LPI counters

2019-12-15 Thread Xiaolong Ye
ponse). Signed-off-by: Piotr Pietruszewski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq_cmd.h | 29 -- drivers/net/i40e/base/i40e_common.c | 130 drivers/net/i40e/base/i40e_prototype.h | 10 ++ 3 files changed, 163 insertions(+), 6 deletions(-)

[dpdk-dev] [PATCH v3 12/36] net/i40e/base: add support for Energy Efficient Ethernet

2019-12-15 Thread Xiaolong Ye
This change adds i40e_enable_eee() function controlling advertisement of Energy Efficient Ethernet mode (EEE). Signed-off-by: Piotr Pietruszewski Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c| 64 ++ drivers/net/i40e/base/i40e_prototype.h | 1

[dpdk-dev] [PATCH v3 09/36] net/i40e/base: adding flags for PHY types

2019-12-15 Thread Xiaolong Ye
Adding bit flags to enable/disable EEE capability for 2.5GBase-T and 5GBase-T PHY types as well as 'Set autonomous EEE for relevant enabled PHY types' flag. Signed-off-by: Doug Dziggel Signed-off-by: Michal Litwicki Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_adminq

[dpdk-dev] [PATCH v3 04/36] net/i40e/base: decouple cfg_lldp_mib_change from init_dcb

2019-12-15 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 Signed-off-by: Xiaolong Ye --- drivers/net/i40e

[dpdk-dev] [PATCH v3 08/36] net/i40e/base: add check for MAC type

2019-12-15 Thread Xiaolong Ye
Some features were introduced in different FW API version on XL710 and X722 MACs. Others are available only on specific MAC type. Make sure that they are properly assigned. Also fix the style issues reported by current check-patch. Signed-off-by: Galazka Krzysztof Signed-off-by: Xiaolong Ye

[dpdk-dev] [PATCH v3 07/36] net/i40e/base: add new device ids

2019-12-15 Thread Xiaolong Ye
New device ids are created to support SFP+ and backplane connections. Signed-off-by: Piotr Azarewicz Signed-off-by: Xiaolong Ye --- drivers/net/i40e/base/i40e_common.c | 2 ++ drivers/net/i40e/base/i40e_devids.h | 2 ++ drivers/net/i40e/i40e_ethdev.c | 2 ++ 3 files changed, 6 insertions

  1   2   3   4   5   >