[dpdk-dev] [PATCH 4/5] net/hns3: support promiscuous and allmulticast mode for VF

2020-03-07 Thread Wei Hu (Xavier)
to set vlan based on VF device, hns3 VF PMD driver will can't receive the packets with vlan tag in promiscuoue mode. Signed-off-by: Chengchang Tang Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev_vf.c | 117 -- drivers/net/hns3/hns3_mbx.c

[dpdk-dev] [PATCH 3/5] net/hns3: remove unnecessary restriction on setting VF's MTU

2020-03-07 Thread Wei Hu (Xavier)
value issued by hns3 VF PMD driver must be less than or equal to PF's MTU. Signed-off-by: Chengchang Tang Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev_vf.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/hns3/hns3_ethdev_vf

[dpdk-dev] [PATCH 0/5] misc updates and fixes for hns3 PMD driver

2020-03-07 Thread Wei Hu (Xavier)
gment offload Wei Hu (Xavier) (1): net/hns3: fix wrong Tx interrupt when enabling Rx interrupt doc/guides/nics/features/hns3.ini| 1 + doc/guides/nics/features/hns3_vf.ini | 1 + doc/guides/nics/hns3.rst | 1 + drivers/net/hns3/hns3_cmd.h | 31 ++- drivers/net

[dpdk-dev] [PATCH 5/5] net/hns3: fix promiscuous mode for PF

2020-03-07 Thread Wei Hu (Xavier)
;) Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev.c | 41 ++ 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c index

[dpdk-dev] [PATCH 1/5] net/hns3: support TCP segment offload

2020-03-07 Thread Wei Hu (Xavier)
From: Hongbo Zheng This patch adds TCP segment offload support for hns3 PMD driver. Signed-off-by: Hongbo Zheng Signed-off-by: Wei Hu (Xavier) --- doc/guides/nics/features/hns3.ini| 1 + doc/guides/nics/features/hns3_vf.ini | 1 + doc/guides/nics/hns3.rst | 1 + drivers

[dpdk-dev] [PATCH v2 0/5] misc updates and fixes for hns3 PMD driver

2020-03-09 Thread Wei Hu (Xavier)
gment offload Wei Hu (Xavier) (1): net/hns3: fix wrong Tx interrupt when enabling Rx interrupt doc/guides/nics/features/hns3.ini| 1 + doc/guides/nics/features/hns3_vf.ini | 3 + doc/guides/nics/hns3.rst | 1 + drivers/net/hns3/hns3_cmd.h | 31 ++- drivers/net

[dpdk-dev] [PATCH v2 1/5] net/hns3: support TCP segment offload

2020-03-09 Thread Wei Hu (Xavier)
From: Hongbo Zheng This patch adds TCP segment offload support for hns3 PMD driver. Signed-off-by: Hongbo Zheng Signed-off-by: Wei Hu (Xavier) --- doc/guides/nics/features/hns3.ini| 1 + doc/guides/nics/features/hns3_vf.ini | 1 + doc/guides/nics/hns3.rst | 1 + drivers

[dpdk-dev] [PATCH v2 2/5] net/hns3: fix wrong Tx interrupt when enabling Rx interrupt

2020-03-09 Thread Wei Hu (Xavier)
From: "Wei Hu (Xavier)" Currently, when receiving and transmitting packets based on hns3 network engine there are probably unexpected and redundant Tx interrupts if Rx interrupt is enabled. The root cause as below: Tx and Rx queues with the same number share the interrupt vector in hn

[dpdk-dev] [PATCH v2 3/5] net/hns3: remove unnecessary restriction on setting VF's MTU

2020-03-09 Thread Wei Hu (Xavier)
value issued by hns3 VF PMD driver must be less than or equal to PF's MTU. Signed-off-by: Chengchang Tang Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev_vf.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/hns3/hns3_ethdev_vf

[dpdk-dev] [PATCH v2 4/5] net/hns3: support promiscuous and allmulticast mode for VF

2020-03-09 Thread Wei Hu (Xavier)
to set vlan based on VF device, hns3 VF PMD driver will can't receive the packets with vlan tag in promiscuoue mode. Signed-off-by: Chengchang Tang Signed-off-by: Wei Hu (Xavier) --- v1 -> v2: Add Promiscuous and Allmulticast mode to hns3_vf.ini. --- doc/guides/nic

[dpdk-dev] [PATCH v2 5/5] net/hns3: fix promiscuous mode for PF

2020-03-09 Thread Wei Hu (Xavier)
;) Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev.c | 41 ++ 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c index

Re: [dpdk-dev] [PATCH 0/2] fixes for bonding

2020-03-17 Thread Wei Hu (Xavier)
Are there any comments on this series? Thanks. Xavier On 2020/2/25 17:29, Wei Hu (Xavier) wrote: This series include two fixes patches for bonding PMD driver. Wei Hu (Xavier) (2): net/bonding: fix MAC address when switching active port net/bonding: fix MAC address when one port resets

[dpdk-dev] [PATCH 2/7] net/hns3: modify inappropriate names

2020-03-17 Thread Wei Hu (Xavier)
From: Chengchang Tang This patch modifies the name of some macro and local variable to avoid devil number and increase code readability in the internal interface function named hns3_set_port_vlan_filter. Signed-off-by: Chengchang Tang Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3

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

2020-03-17 Thread Wei Hu (Xavier)
mmand interface net/hns3: fix crash when flushing RSS flow rules with FLR Min Hu (Connor) (1): net/hns3: fix configuring illeagl VLAN pvid Wei Hu (Xavier) (1): net/hns3: fix abnormal status after reset occurs repeatedly drivers/net/hns3/hns3_cmd.c | 24 +++ drivers/net

[dpdk-dev] [PATCH 4/7] net/hns3: fix default error code of command interface

2020-03-17 Thread Wei Hu (Xavier)
("net/hns3: support command interface with firmware") Cc: sta...@dpdk.org Signed-off-by: Chengwen Feng Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_cmd.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/drivers/net/hns3/hns3_cmd.

[dpdk-dev] [PATCH 5/7] net/hns3: fix crash when flushing RSS flow rules with FLR

2020-03-17 Thread Wei Hu (Xavier)
s implementation function named hns3_flow_flush. Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: sta...@dpdk.org Signed-off-by: Chengwen Feng Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_flow.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/ne

[dpdk-dev] [PATCH 3/7] net/hns3: fix packets's offload features flags in Rx

2020-03-17 Thread Wei Hu (Xavier)
support Rx/Tx and related operations") Fixes: ad7cf94823e8 ("net/hns3: fix offload flag for RSS hash") Cc: sta...@dpdk.org Signed-off-by: Chengwen Feng Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_rxtx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) dif

[dpdk-dev] [PATCH 1/7] net/hns3: remove redundant MAC addr check when setting MAC

2020-03-17 Thread Wei Hu (Xavier)
rte layer of DPDK framework. Signed-off-by: Chengchang Tang Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev.c| 13 - drivers/net/hns3/hns3_ethdev_vf.c | 12 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/drivers/net/hns3/hns3_ethdev.c

[dpdk-dev] [PATCH 7/7] net/hns3: fix abnormal status after reset occurs repeatedly

2020-03-17 Thread Wei Hu (Xavier)
From: "Wei Hu (Xavier)" Currently, when performing the following test case: 1. Run testpmd application based on hns3 PF device. 2. Inject reset(global/IMP reset) repeatedly. After the reset, the network port can't link up. In the RESET_STAGE_DEV_INIT stage of the reset process,

[dpdk-dev] [PATCH 6/7] net/hns3: fix configuring illeagl VLAN pvid

2020-03-17 Thread Wei Hu (Xavier)
From: "Min Hu (Connor)" The VLAN pvid ranges from 0 to 4095. The hns3 PMD driver does not support this situation that the VLAN pvid is larger than Maximum VLAN ID(4095). Fixes: 411d23b9eafb ("net/hns3: support VLAN") Cc: sta...@dpdk.org Signed-off-by: Min Hu (Connor) S

[dpdk-dev] [PATCH 2/4] net/hns3: fix configuring RSS hash when rules are flushed

2020-03-26 Thread Wei Hu (Xavier)
rn -EINVAL. Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: sta...@dpdk.org Signed-off-by: Lijun Ou Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev.c| 1 + drivers/net/hns3/hns3_ethdev.h| 1 + drivers/net/hns3/hns3_ethdev_vf.c | 1 + drivers/net/hns3/hns3_flo

[dpdk-dev] [PATCH 1/4] net/hns3: fix RSS indirection table configuration

2020-03-26 Thread Wei Hu (Xavier)
s redirection table to hardware. Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: sta...@dpdk.org Signed-off-by: Lijun Ou Signed-off-by: Huisong Li Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_dcb.c | 15 +++ drivers/net/hns3/hns3_ethdev.c| 8 +++

[dpdk-dev] [PATCH 4/4] net/hns3: fix the return value of setting VLAN offload

2020-03-26 Thread Wei Hu (Xavier)
ration and return -EIO during resetting. 2. Add the return value dectection process for calling internal static function named hns3vf_en_hw_strip_rxvtag. Fixes: a5475d61fa34 ("net/hns3: support VF") Cc: sta...@dpdk.org Signed-off-by: Chengwen Feng Signed-off-by: Wei Hu (Xavier) -

[dpdk-dev] [PATCH 0/4] fixes for hns3 PMD driver

2020-03-26 Thread Wei Hu (Xavier)
This series are fixes for hns3 PMD driver. Chengwen Feng (1): net/hns3: fix the return value of setting VLAN offload Lijun Ou (2): net/hns3: fix RSS indirection table configuration net/hns3: fix configuring RSS hash when rules are flushed Min Hu (Connor) (1): net/hns3: fix mailbox opcode

[dpdk-dev] [PATCH 3/4] net/hns3: fix mailbox opcode data type

2020-03-26 Thread Wei Hu (Xavier)
("net/hns3: support mailbox") Cc: sta...@dpdk.org Signed-off-by: Min Hu (Connor) Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chengwen Feng --- drivers/net/hns3/hns3_mbx.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/hns3/hns3_mbx.

Re: [dpdk-dev] [PATCH 0/2] fixes for bonding

2020-03-27 Thread Wei Hu (Xavier)
Are there any comments on this series? Thanks. Xavier On 2020/2/25 17:29, Wei Hu (Xavier) wrote: This series include two fixes patches for bonding PMD driver. Wei Hu (Xavier) (2): net/bonding: fix MAC address when switching active port net/bonding: fix MAC address when one port resets

[dpdk-dev] [PATCH 1/6] net/hns3: fix RSS hardware configuration restore failure

2019-11-22 Thread Wei Hu (Xavier)
s3: support RSS") Cc: sta...@dpdk.org Signed-off-by: Hao Chen Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_rss.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/hns3/hns3_rss.c b/drivers/net/hns3/hns3_rss.c index 6a5d63398..b8c20e6d9 100644 --

[dpdk-dev] [PATCH 0/6] Fixes for hns3 PMD driver

2019-11-22 Thread Wei Hu (Xavier)
From: "Wei Hu (Xavier)" This series add some fixes for hns3 PMD driver. Chengchang Tang (1): net/hns3: fix the error length limit of maiblox response Hao Chen (1): net/hns3: fix RSS hardware configuration restore failure Huisong Li (1): net/hns3: fix the strategy of getting l

[dpdk-dev] [PATCH 2/6] net/hns3: fix VF configuration table entries restore failure

2019-11-22 Thread Wei Hu (Xavier)
From: "Wei Hu (Xavier)" When the application using VF device exits abnormally, for example, when it is killed by 'kill -9', kernel PF netdev driver also stores the corresponding configuration table entries of VF device. This patch fixes it by adding message of deleting VF

[dpdk-dev] [PATCH 6/6] net/hns3: fix duplicate VLAN

2019-11-22 Thread Wei Hu (Xavier)
("net/hns3: support VLAN") Cc: sta...@dpdk.org Signed-off-by: Min Hu (Connor) Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c index 3435bce26..72

[dpdk-dev] [PATCH 0/6] Fixes for hns3 PMD driver

2019-11-22 Thread Wei Hu (Xavier)
From: "Wei Hu (Xavier)" This series add some fixes for hns3 PMD driver. Chengchang Tang (1): net/hns3: fix the error length limit of maiblox response Hao Chen (1): net/hns3: fix RSS hardware configuration restore failure Huisong Li (1): net/hns3: fix the strategy of getting l

[dpdk-dev] [PATCH 5/6] net/hns3: fix the strategy of getting link status for VF

2019-11-22 Thread Wei Hu (Xavier)
the alarm that VF driver send mailbox message to PF driver, when the rte_eth_dev_stop API is called. And VF driver should restore the alarm when the rte_eth_dev_start API is called. Fixes: a5475d61fa34 ("net/hns3: support VF") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Signed-of

[dpdk-dev] [PATCH 2/6] net/hns3: fix VF configuration table entries restore failure

2019-11-22 Thread Wei Hu (Xavier)
From: "Wei Hu (Xavier)" When the application using VF device exits abnormally, for example, when it is killed by 'kill -9', kernel PF netdev driver also stores the corresponding configuration table entries of VF device. This patch fixes it by adding message of deleting VF

[dpdk-dev] [PATCH 1/6] net/hns3: fix RSS hardware configuration restore failure

2019-11-22 Thread Wei Hu (Xavier)
s3: support RSS") Cc: sta...@dpdk.org Signed-off-by: Hao Chen Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_rss.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/hns3/hns3_rss.c b/drivers/net/hns3/hns3_rss.c index 6a5d63398..b8c20e6d9 100644 --

[dpdk-dev] [PATCH 3/6] net/hns3: fix the failure sending packets less than 60 bytes

2019-11-22 Thread Wei Hu (Xavier)
From: "Wei Hu (Xavier)" Ethernet minimum packet length is 64 bytes. If upper application sends packets with less than 60 bytes in length(no CRC), driver adds padding processing to avoid failure. Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations") Cc: sta

[dpdk-dev] [PATCH 4/6] net/hns3: fix the error length limit of maiblox response

2019-11-22 Thread Wei Hu (Xavier)
tch modify the length of response data from mailbox to allows the response data length to be 8. So that the VF driver could get more data from PF drvier by mailbox. Fixes: 463e748964f5 ("net/hns3: support mailbox") Cc: sta...@dpdk.org Signed-off-by: Chengchang Tang Signed-of

[dpdk-dev] [PATCH] net/hns3: fix checking enough Tx BDs

2019-11-25 Thread Wei Hu (Xavier)
From: "Wei Hu (Xavier)" In .tx_pkt_burst ops implementation function of hns3 PMD driver, there is one check whether there are enough BDs in the TX queue. If not, driver will stop sending the packets. Currently in the 'for' process loop, the next_to_use member of TX queue is

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

2019-11-30 Thread Wei Hu (Xavier)
From: "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

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

2019-11-30 Thread Wei Hu (Xavier)
From: "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

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

2019-11-30 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 2/9] net/hns3: get link state change through mailbox

2019-11-30 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 0/9] updates for hns3 PMD driver

2019-12-01 Thread Wei Hu (Xavier)
rough mailbox Huisong Li (1): net/hns3: modify custom macro Wei Hu (Xavier) (3): net/hns3: modify the return value of enable msix net/hns3: remove the redundant variable initialization net/hns3: remove the unnecessary assignment doc/guides/nics/features/hns3.ini| 1 + doc/guides/nics/fea

[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

[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

[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/dri

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

2019-12-01 Thread Wei Hu (Xavier)
. Signed-off-by: Hao Chen Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev_vf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c index 781374c82..46d3efad0 100644 --- a/drivers/net/hns3/hns3_ethdev_vf.c +++ b

[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 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 +

[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/driver

[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

Re: [dpdk-dev] [PATCH 1/4] net/hns3: modify the statistics for sending and receiving messages

2019-10-18 Thread Wei Hu (Xavier)
Hi, Ferruh Yigit On 2019/10/15 16:45, Ferruh Yigit wrote: > On 10/9/2019 3:16 PM, Wei Hu (Xavier) wrote: >> From: Hao Chen >> >> In receiving direction, for FCS error messages, drivers no longer >> record them in rte_eth_stats.ipackets statistics. > If this patch

Re: [dpdk-dev] [PATCH 0/4] updates for hns3 ethernet pmd driver

2019-10-18 Thread Wei Hu (Xavier)
Hi, Ferruh Yigit On 2019/10/15 16:46, Ferruh Yigit wrote: > On 10/9/2019 3:16 PM, Wei Hu (Xavier) wrote: >> This series adds some updates for hns3 ethernet pmd driver. >> >> The No.1 patch modifies the statistics information for sending >> and receiving packets. &g

Re: [dpdk-dev] [PATCH 3/4] net/hns3: Renew command and desc structure

2019-10-25 Thread Wei Hu (Xavier)
Hi, Ferruh Yigit On 2019/10/15 16:45, Ferruh Yigit wrote: > On 10/9/2019 3:16 PM, Wei Hu (Xavier) wrote: >> From: humin >> >> This patch adds commands and modifies descriptor structures for >> accessing manage table and mac table. >> >> Signed-off-by:

[dpdk-dev] [PATCH v2 2/4] net/hns3: fix lack of Rx RSS hash in ol flags

2019-10-25 Thread Wei Hu (Xavier)
This patch adds PKT_RX_RSS_HASH flag to rx packet's ol_flags to repair the bug that hns3 pmd driver doesn't set PKT_RX_RSS_HASH flag. In hns3 network engine RSS is always enabled. Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations") Signed-off-by: Hao Chen

[dpdk-dev] [PATCH v2 3/4] net/hns3: fix the return value when firmware timeout

2019-10-25 Thread Wei Hu (Xavier)
-EBADE to -ETIME. Fixes: 737f30e1c3ab ("net/hns3: support command interface with firmware") Signed-off-by: Hongbo Zheng Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_cmd.c b/driver

[dpdk-dev] [PATCH v2 1/4] net/hns3: fix the statistics problems about Tx/Rx functions

2019-10-25 Thread Wei Hu (Xavier)
0, drivers should not notify the network card hardware to send them, should not continue to send the remaining message in burst, and record them in rte_eth_stats.opackets statistics. Fixes: 8839c5e202f3 ("net/hns3: support device stats") Signed-off-by: Hao Chen Signed-off-by: Wei

[dpdk-dev] [PATCH v2 4/4] net/hns3: fix FLR reset failure

2019-10-25 Thread Wei Hu (Xavier)
evice reset") Signed-off-by: Chunsong Feng Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_cmd.c | 15 - drivers/net/hns3/hns3_ethdev.c| 5 ++ drivers/net/hns3/hns3_ethdev_vf.c | 135 -- drivers/net/hns3/hns3_intr.c | 5 +

[dpdk-dev] [PATCH v2 0/4] some fixes for hns3 PMD driver

2019-10-25 Thread Wei Hu (Xavier)
2b2...@intel.com https://inbox.dpdk.org/dev/b4a32414-b941-c820-1706-f8ad41175...@intel.com Chunsong Feng (1): net/hns3: fix FLR reset failure Hao Chen (1): net/hns3: fix the statistics problems about Tx/Rx functions Hongbo Zheng (1): net/hns3: fix the return value when firmware timeout

Re: [dpdk-dev] [PATCH v2 0/4] some fixes for hns3 PMD driver

2019-10-25 Thread Wei Hu (Xavier)
On 2019/10/25 23:07, Ferruh Yigit wrote: > On 10/25/2019 1:37 PM, Wei Hu (Xavier) wrote: >> This series adds some fixes for hns3 ethernet pmd driver. >> >> v1 -> v2: >> 1. Address some comments from Ferruh Yigit as belows: >> >> https://

Re: [dpdk-dev] [PATCH v2 0/4] some fixes for hns3 PMD driver

2019-10-25 Thread Wei Hu (Xavier)
Hi, Ferruh Yigit Can this series of fixes be added to dpdk version 19.11? Thanks. Regards Xavier On 2019/10/26 9:03, Wei Hu (Xavier) wrote: > > On 2019/10/25 23:07, Ferruh Yigit wrote: >> On 10/25/2019 1:37 PM, Wei Hu (Xavier) wrote: >>> This series add

[dpdk-dev] [PATCH 0/4] updates for hns3 ethernet pmd driver

2019-10-09 Thread Wei Hu (Xavier)
This series adds some updates for hns3 ethernet pmd driver. The No.1 patch modifies the statistics information for sending and receiving packets. The No.2 patch changes the return value of firmware processing timeout from -EBADE to -ETIME. The No.3 patch adds commands between driver and firmware.

[dpdk-dev] [PATCH 1/4] net/hns3: modify the statistics for sending and receiving messages

2019-10-09 Thread Wei Hu (Xavier)
send the remaining message in burst, and will not record them in rte_eth_stats.opackets statistics. Signed-off-by: Hao Chen Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_rxtx.c | 11 ++--- drivers/net/hns3/hns3_rxtx.h | 3 -- drivers/net/hns3/hns3_stats.c | 84

[dpdk-dev] [PATCH 2/4] net/hns3: change the return value of firmware processing timeout from -EBADE to -ETIME

2019-10-09 Thread Wei Hu (Xavier)
-EBADE to -ETIME. Signed-off-by: Hongbo Zheng Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_cmd.c b/drivers/net/hns3/hns3_cmd.c index 3eebfdd42..58776c2ec 100644 --- a/drivers/net/hns3

[dpdk-dev] [PATCH 3/4] net/hns3: Renew command and desc structure

2019-10-09 Thread Wei Hu (Xavier)
From: humin This patch adds commands and modifies descriptor structures for accessing manage table and mac table. Signed-off-by: humin Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_cmd.h | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/hns3

[dpdk-dev] [PATCH 4/4] net/hns3: restores bus_master_en and msix_enable during PF FLR reset

2019-10-09 Thread Wei Hu (Xavier)
From: Chunsong Feng PF FLR resets the PCIe ECAM space of all VFs under the PF and does not automatically recover. Therefore, the VF driver needs to restore the ECAM configuration, including bus_master_en, msix_enable. Signed-off-by: Chunsong Feng Signed-off-by: Wei Hu (Xavier) --- drivers

Re: [dpdk-dev] [PATCH 0/4] updates for hns3 ethernet pmd driver

2019-10-09 Thread Wei Hu (Xavier)
checking based on dpdk repo. Thanks. Regards Xavier On 2019/10/9 22:16, Wei Hu (Xavier) wrote: > This series adds some updates for hns3 ethernet pmd driver. > > The No.1 patch modifies the statistics information for sending > and receiving packets. > The No.2 patch changes t

Re: [dpdk-dev] [PATCH v3 00/22] add hns3 ethernet PMD driver

2019-10-10 Thread Wei Hu (Xavier)
On 2019/9/30 16:52, Ferruh Yigit wrote: > On 9/29/2019 1:12 PM, Wei Hu (Xavier) wrote: >> Hi, Ferruh Yigit >> >> >> On 2019/9/28 2:30, Ferruh Yigit wrote: >>> On 9/26/2019 3:01 PM, Wei Hu (Xavier) wrote: >>>> The Hisilicon Network Subsystem is a

Re: [dpdk-dev] [PATCH v3 00/22] add hns3 ethernet PMD driver

2019-10-10 Thread Wei Hu (Xavier)
Hi, Ferruh Yigit On 2019/10/11 1:10, Ferruh Yigit wrote: > On 9/27/2019 7:30 PM, Ferruh Yigit wrote: >> On 9/26/2019 3:01 PM, Wei Hu (Xavier) wrote: >>> The Hisilicon Network Subsystem is a long term evolution IP which is >>> supposed to be used in Hisilicon I

[dpdk-dev] [PATCH] doc: remove Flow Director feature from hns3.ini and hns3_vf.ini

2019-10-10 Thread Wei Hu (Xavier)
This patch removes deprecated feature 'Flow Director' from hns3.ini and hns3_vf.ini because the feature has been removed from the feature list in the following commit: Commit 030febb6642c ("doc: remove deprecated ethdev features") Signed-off-by: Wei Hu (Xavier) Signed-o

Re: [dpdk-dev] [PATCH v3 00/22] add hns3 ethernet PMD driver

2019-10-10 Thread Wei Hu (Xavier)
Hi, Ferruh Yigit On 2019/10/11 9:39, Wei Hu (Xavier) wrote: > Hi, Ferruh Yigit > > > On 2019/10/11 1:10, Ferruh Yigit wrote: >> On 9/27/2019 7:30 PM, Ferruh Yigit wrote: >>> On 9/26/2019 3:01 PM, Wei Hu (Xavier) wrote: >>>> The Hisilicon Network Subsyst

[dpdk-dev] [PATCH 00/22] add hns3 ethernet PMD driver

2019-08-23 Thread Wei Hu (Xavier)
The Hisilicon Network Subsystem is a long term evolution IP which is supposed to be used in Hisilicon ICT SoCs such as Kunpeng 920. This series add DPDK rte_ethdev poll mode driver for hns3(Hisilicon Network Subsystem 3) network engine. Wei Hu (Xavier) (22): net/hns3: add hardware registers

[dpdk-dev] [PATCH 02/22] net/hns3: add some definitions for data structure and macro

2019-08-23 Thread Wei Hu (Xavier)
This patch adds some data structure definitions, macro definitions and inline functions for hns3 PMD drivers. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Hao Chen Signed-off-by: Huisong Li --- drivers/net/hns3/hns3_ethdev.h | 609

[dpdk-dev] [PATCH 01/22] net/hns3: add hardware registers definition

2019-08-23 Thread Wei Hu (Xavier)
The Hisilicon Network Subsytem is a long term evolution IP which is supposed to be used in Hisilicon ICT SoCs such as Kunpeng 920. This patch adds hardware definition header file for hns3(Hisilicon Network Subsystem 3) PMD driver. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng

[dpdk-dev] [PATCH 03/22] net/hns3: register hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
This patch registers hns3 PMD driver and adds the definition for log interfaces. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Hao Chen Signed-off-by: Huisong Li --- drivers/net/hns3/hns3_ethdev.c | 141

[dpdk-dev] [PATCH 04/22] net/hns3: add support for cmd of hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
This patch adds support for cmd of hns3 PMD driver, driver can interact with firmware through command to complete hardware configuration. Signed-off-by: Hao Chen Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Huisong Li --- drivers

[dpdk-dev] [PATCH 08/22] net/hns3: add support for link update operation

2019-08-23 Thread Wei Hu (Xavier)
This patch adds link update operation to hns3 PMD driver. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Hao Chen Signed-off-by: Huisong Li --- drivers/net/hns3/hns3_ethdev.c | 199 + 1 file

[dpdk-dev] [PATCH 07/22] net/hns3: add support for some misc operations

2019-08-23 Thread Wei Hu (Xavier)
This patch adds the following operations defined in struct eth_dev_ops: mtu_set, infos_get and fw_version_get for hns3 PMD driver. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Hao Chen Signed-off-by: Huisong Li --- drivers/net

[dpdk-dev] [PATCH 13/22] net/hns3: add support for mailbox of hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
This patch adds support for mailbox of hns3 PMD driver, mailbox is used for communication between PF and VF driver. Signed-off-by: Min Hu (Connor) Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Hao Chen Signed-off-by: Huisong Li --- drivers/net/hns3/hns3_cmd.c

[dpdk-dev] [PATCH 06/22] net/hns3: add support for MAC address related operations

2019-08-23 Thread Wei Hu (Xavier)
This patch adds the following mac address related operations defined in struct eth_dev_ops: mac_addr_add, mac_addr_remove, mac_addr_set and set_mc_addr_list. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Hao Chen Signed-off-by

[dpdk-dev] [PATCH 12/22] net/hns3: add support for VLAN of hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
This patch adds support for VLAN related operation of hns3 PMD driver. Signed-off-by: Min Hu (Connor) Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Hao Chen Signed-off-by: Huisong Li --- drivers/net/hns3/hns3_ethdev.c | 670

[dpdk-dev] [PATCH 17/22] net/hns3: add dump register ops for hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
This patch adds get_reg related function codes for hns3 PMD driver. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Hao Chen Signed-off-by: Huisong Li --- drivers/net/hns3/hns3_ethdev.c| 1 + drivers/net/hns3/hns3_ethdev_vf.c

[dpdk-dev] [PATCH 14/22] net/hns3: add support for hns3 VF PMD driver

2019-08-23 Thread Wei Hu (Xavier)
This patch adds support for hns3 VF PMD driver. In current version, we only support VF device is bound to vfio_pci or igb_uio and then taken over by DPDK when PF device is taken over by kernel mode hns3 ethdev driver, VF is not supported when PF devcie is taken over by DPDK. Signed-off-by: Wei

[dpdk-dev] [PATCH 16/22] net/hns3: add start stop configure promiscuous ops

2019-08-23 Thread Wei Hu (Xavier)
This patch adds dev_start, dev_stop, dev_configure, promiscuous_enable, promiscuous_disable, allmulticast_enable, allmulticast_disable, dev_infos_get related function codes. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Hao Chen

[dpdk-dev] [PATCH 11/22] net/hns3: add support for flow control of hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
ensure that app startup state is the same each time. Signed-off-by: Huisong Li Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Hao Chen --- drivers/net/hns3/hns3_dcb.c| 1647 drivers/net

[dpdk-dev] [PATCH 18/22] net/hns3: add abnormal interrupt process for hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
This patch adds abnormal interrupt process for hns3 PMD driver, the interrupt reported by NIC hardware. Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Wei Hu (Xavier) Signed-off-by: Hao Chen Signed-off-by: Huisong Li --- drivers/net/hns3/hns3_ethdev.c| 135

[dpdk-dev] [PATCH 19/22] net/hns3: add stats related ops for hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
This patch adds stats_get, stats_reset, xstats_get, xstats_get_names xstats_reset, xstats_get_by_id and xstats_get_names_by_id related function codes. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Hao Chen Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Huisong Li

[dpdk-dev] [PATCH 10/22] net/hns3: add support for RSS of hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
destroy or .flush ops callback function. 3) Check the effectiveness of the RSS's configuration by .validate ops callback function. Signed-off-by: Hao Chen Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Huisong Li --- drivers/net/

[dpdk-dev] [PATCH 15/22] net/hns3: add package and queue related operation

2019-08-23 Thread Wei Hu (Xavier)
This patch adds queue related operation, package sending and receiving function codes. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Min Wang (Jushui) Signed-off-by: Min Hu (Connor) Signed-off-by: Hao Chen Signed-off-by: Huisong Li --- drivers/net/hns3

[dpdk-dev] [PATCH 05/22] net/hns3: add the initialization of hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
This patch adds the initialization of hns3 PF PMD driver. It gets configuration from IMP such as queue information, configures queue, inits mac, inits manage table, disables gro etc. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Chunsong Feng Signed-off-by: Min Hu (Connor) Signed-off-by: Hao

[dpdk-dev] [PATCH 22/22] net/hns3: add hns3 build files

2019-08-23 Thread Wei Hu (Xavier)
This patch add build related files for hns3 PMD driver. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Min Hu (Connor) Signed-off-by: Chunsong Feng Signed-off-by: Hao Chen Signed-off-by: Huisong Li --- MAINTAINERS | 7 config/common_armv8a_linux

[dpdk-dev] [PATCH 09/22] net/hns3: add support for flow directory of hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
This patch adds support for flow directory of hns3 PMD driver. Flow directory feature is only supported in hns3 PF driver. It supports the network L2\L3\L4 and tunnel packet creation, deletion, flushing, and querying hit statistics. Signed-off-by: Chunsong Feng Signed-off-by: Wei Hu (Xavier

[dpdk-dev] [PATCH 21/22] net/hns3: add multiple process support for hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
start or stop tranceiver. Signed-off-by: Chunsong Feng Signed-off-by: Min Wang (Jushui) Signed-off-by: Wei Hu (Xavier) Signed-off-by: Min Hu (Connor) Signed-off-by: Hao Chen Signed-off-by: Huisong Li --- drivers/net/hns3/hns3_ethdev.c| 36 ++- drivers/net/hns3/hns3_ethdev_vf.c

[dpdk-dev] [PATCH 20/22] net/hns3: add reset related process for hns3 PMD driver

2019-08-23 Thread Wei Hu (Xavier)
Signed-off-by: Chunsong Feng Signed-off-by: Wei Hu (Xavier) Signed-off-by: Min Hu (Connor) Signed-off-by: Hao Chen Signed-off-by: Huisong Li --- drivers/net/hns3/hns3_cmd.c | 31 ++ drivers/net/hns3/hns3_ethdev.c| 625 +- drivers/net/hns3

Re: [dpdk-dev] [PATCH 22/22] net/hns3: add hns3 build files

2019-08-29 Thread Wei Hu (Xavier)
Hi, Jerin On 2019/8/23 22:08, Jerin Jacob Kollanukkaran wrote: >> -Original Message- >> From: dev On Behalf Of Wei Hu (Xavier) >> Sent: Friday, August 23, 2019 7:17 PM >> To: dev@dpdk.org >> Cc: linux...@huawei.com; xavier_hu...@163.com; >> li

Re: [dpdk-dev] [PATCH 22/22] net/hns3: add hns3 build files

2019-08-30 Thread Wei Hu (Xavier)
On 2019/8/30 11:22, Wei Hu (Xavier) wrote: > Hi, Jerin > > > On 2019/8/23 22:08, Jerin Jacob Kollanukkaran wrote: >>> -Original Message- >>> From: dev On Behalf Of Wei Hu (Xavier) >>> Sent: Friday, August 23, 2019 7:17 PM >>> To: dev

Re: [dpdk-dev] [PATCH 11/22] net/hns3: add support for flow control of hns3 PMD driver

2019-08-31 Thread Wei Hu (Xavier)
On 2019/8/30 23:07, Ferruh Yigit wrote: > On 8/23/2019 2:47 PM, Wei Hu (Xavier) wrote: >> This patch adds support for MAC PAUSE flow control and priority flow >> control of hns3 PMD driver. All user priorities(up) must be mapped to >> tc0 when MAC PAUSE flow control i

Re: [dpdk-dev] [PATCH 00/22] add hns3 ethernet PMD driver

2019-08-31 Thread Wei Hu (Xavier)
On 2019/8/30 23:23, Ferruh Yigit wrote: > On 8/23/2019 2:46 PM, Wei Hu (Xavier) wrote: >> The Hisilicon Network Subsystem is a long term evolution IP which is >> supposed to be used in Hisilicon ICT SoCs such as Kunpeng 920. >> >> This series add DPDK rte_ethde

Re: [dpdk-dev] [PATCH 22/22] net/hns3: add hns3 build files

2019-08-31 Thread Wei Hu (Xavier)
On 2019/8/30 23:12, Ferruh Yigit wrote: > On 8/23/2019 2:47 PM, Wei Hu (Xavier) wrote: >> This patch add build related files for hns3 PMD driver. >> >> Signed-off-by: Wei Hu (Xavier) >> Signed-off-by: Min Hu (Connor) >> Signed-off-by: Chunsong Feng >>

Re: [dpdk-dev] [PATCH 22/22] net/hns3: add hns3 build files

2019-08-31 Thread Wei Hu (Xavier)
On 2019/8/30 23:00, Ferruh Yigit wrote: > On 8/23/2019 2:47 PM, Wei Hu (Xavier) wrote: >> This patch add build related files for hns3 PMD driver. >> >> Signed-off-by: Wei Hu (Xavier) >> Signed-off-by: Min Hu (Connor) >> Signed-off-by: Chunsong Feng >>

<    1   2   3   4   5   6   >