[dpdk-dev] [PATCH] net/i40e: fix FPK VF overwrite PF RSS LUT

2019-01-14 Thread Yanglong Wu
i40e_aq_set_rss_lut should set rigister according to the vsi->type. if not, VF may overwrite the rigister of PF Fixes: d0a349409bd7 ("i40e: support AQ based RSS config") Cc: sta...@dpdk.org Signed-off-by: Wu Yanglong --- drivers/net/i40e/i40e_ethdev.c | 9 +++-- 1 file changed, 7 insertions

[dpdk-dev] [PATCH v2] net/i40e: fix FPK VF overwrite PF RSS LUT

2019-01-14 Thread Yanglong Wu
i40e_aq_set_rss_lut should set rigister according to the vsi->type. if not, VF may overwrite the rigister of PF Fixes: d0a349409bd7 ("i40e: support AQ based RSS config") Cc: sta...@dpdk.org Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c | 6 -- 1 file changed,

[dpdk-dev] [PATCH v2] net/ixgbe: fix ixgbevf link status

2018-11-12 Thread Yanglong Wu
aligned that for link status changes from down to up we only notify link is up, users need to reset vf port. Fixes: dc66e5fd01b9 ("net/ixgbe: improve link state check on VF") Signed-off-by: Rosen Xu Signed-off-by: Yanglong Wu --- v2 change as comments --- drivers/net/ixgbe/ixgbe_eth

[dpdk-dev] [PATCH] net/ixgbe: fix TDH register setting issue

2018-11-15 Thread Yanglong Wu
invalidated and the hardware could become confused. Fixes: a8cdaf0964f7 ("net/ixgbe: remove redundant queue id checks") Signed-off-by: Yanglong Wu --- drivers/net/ixgbe/ixgbe_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers

[dpdk-dev] [PATCH v2] net/ixgbe: fix TDH register setting issue

2018-11-19 Thread Yanglong Wu
invalidated and the hardware could become confused. cc sta...@dpdk.org Signed-off-by: Yanglong Wu --- v2: change fix commit --- drivers/net/ixgbe/ixgbe_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index

[dpdk-dev] [PATCH] net/ixgbe: fix link status when link is NACK

2018-07-22 Thread Yanglong Wu
Link status should be set as down when link is NACK. Fixes: dc66e5fd01b9 ("net/ixgbe: improve link state check on VF") Signed-off-by: Yanglong Wu --- drivers/net/ixgbe/ixgbe_ethdev.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_

[dpdk-dev] [PATCH v2] net/ixgbe: fix link status when link is NACK

2018-07-24 Thread Yanglong Wu
Link status should be set as down when link is NACK. Fixes: dc66e5fd01b9 ("net/ixgbe: improve link state check on VF") Signed-off-by: Yanglong Wu --- v2: no need to set link status again --- drivers/net/ixgbe/ixgbe_ethdev.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletion

[dpdk-dev] [PATCH v3] net/ixgbe: fix ixgbevf link status

2018-07-25 Thread Yanglong Wu
ixgbevf can't get right link status unless it check PF link status in wait mode. Fixes: dc66e5fd01b9 ("net/ixgbe: improve link state check on VF") Signed-off-by: Yanglong Wu --- v3: change to wait mode in ixgbevf --- v2: no need to set link status again --- drivers/net/ixgbe/ixg

[dpdk-dev] [PATCH] net/i40e: fix max frame size checking

2018-07-25 Thread Yanglong Wu
No need to check max frame size in TX, the checking should be done in up layer protocal. This checking will lead to fail for TSO or other application cases. Fixes: bfeed0262b0c ("net/i40e: check illegal packets") Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_rxtx.c | 3 +

[dpdk-dev] [PATCH v2] net/i40e: fix max frame size checking

2018-07-26 Thread Yanglong Wu
Check patcket size according to TSO or no-TSO. Fixes: bfeed0262b0c ("net/i40e: check illegal packets") Signed-off-by: Yanglong Wu --- v2: change as comments. --- drivers/net/i40e/i40e_ethdev.h | 1 + drivers/net/i40e/i40e_rxtx.c | 9 + 2 files changed, 6 insertions(+), 4

[dpdk-dev] [PATCH] net/ixgbe: fix ixgbevf link status

2018-08-10 Thread Yanglong Wu
aligned that for link status changes from down to up we only notify link is up, users need to reset vf port. Fixes: dc66e5fd01b9 ("net/ixgbe: improve link state check on VF") Signed-off-by: Rosen Xu Signed-off-by: Yanglong Wu --- drivers/net/ixgbe/ixgbe_ethdev.c | 14 ++ 1 file

[dpdk-dev] [PATCH v2] net/i40e: fix checking offloading fail for Tx

2018-04-26 Thread Yanglong Wu
Missing "return -ENOTSUP" will alays leads to illegal offload passing through offload checking. Fixes: b43290f1ade2 ("net/i40e: convert to new Tx offloads API") Signed-off-by: Yanglong Wu --- v2: rework fix line --- drivers/net/i40e/i40e_rxtx.c | 4 +++- 1 file changed

[dpdk-dev] [PATCH v2] net/i40e: fix missing some offload capabilities

2018-04-26 Thread Yanglong Wu
MULTI_SEGS and JUMBO_FRAME offload capability should be exposed both VF and PF since i40e does support it. Fixes: fbf959fe61e7 ("net/i40e: convert to new Rx offloads API") Fixes: b43290f1ade2 ("net/i40e: convert to new Tx offloads API") Signed-off-by: Yanglong Wu ---

[dpdk-dev] [PATCH v2] net/i40e: fix checking offloading fail for Tx

2018-04-26 Thread Yanglong Wu
Missing "return -ENOTSUP" will alays leads to illegal offload passing through offload checking. Fixes: b43290f1ade2 ("net/i40e: convert to new Tx offloads API") Signed-off-by: Yanglong Wu --- v2: rework fix line --- drivers/net/i40e/i40e_rxtx.c | 4 +++- 1 file changed

[dpdk-dev] [PATCH v2] net/i40e: fix missing some offload capabilities

2018-04-26 Thread Yanglong Wu
MULTI_SEGS and JUMBO_FRAME offload capability should be exposed both VF and PF since i40e does support it. Fixes: fbf959fe61e7 ("net/i40e: convert to new Rx offloads API") Fixes: b43290f1ade2 ("net/i40e: convert to new Tx offloads API") Signed-off-by: Yanglong Wu ---

[dpdk-dev] [PATCH v2] net/i40e: fix checking offloading fail for Tx

2018-04-27 Thread Yanglong Wu
Missing "return -ENOTSUP" will alays leads to illegal offload passing through offload checking. Fixes: 7497d3e2f777 ("net/i40e: convert to new Tx offloads API") Signed-off-by: Yanglong Wu --- v2: rework fix line --- drivers/net/i40e/i40e_rxtx.c | 4 +++- 1 file changed

[dpdk-dev] [PATCH v2] net/i40e: fix missing some offload capabilities

2018-04-27 Thread Yanglong Wu
MULTI_SEGS and JUMBO_FRAME offload capability should be exposed both VF and PF since i40e does support it. Fixes: c3ac7c5b0b8a ("net/i40e: convert to new Rx offloads API") Fixes: 7497d3e2f777 ("net/i40e: convert to new Tx offloads API") Signed-off-by: Yanglong Wu ---

[dpdk-dev] [PATCH v2] net/i40e: fix missing some offload capabilities

2018-04-28 Thread Yanglong Wu
MULTI_SEGS and JUMBO_FRAME offload capability should be exposed both VF and PF since i40e does support it. Fixes: c3ac7c5b0b8a ("net/i40e: convert to new Rx offloads API") Fixes: 7497d3e2f777 ("net/i40e: convert to new Tx offloads API") Signed-off-by: Yanglong Wu ---

[dpdk-dev] [PATCH] net/i40e: fix missing VLAN offload capability

2018-05-09 Thread Yanglong Wu
VLAN offload capability should be exposed both VF and PF since i40e does support it. Fixes: c3ac7c5b0b8a ("net/i40e: convert to new Rx offloads API") Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/d

[dpdk-dev] [PATCH v2] net/i40e: fix missing VLAN offload capability

2018-05-09 Thread Yanglong Wu
VLAN offload capability should be exposed in VF since i40e does support it. Fixes: c3ac7c5b0b8a ("net/i40e: convert to new Rx offloads API") Signed-off-by: Yanglong Wu --- v2: rework as comments required --- drivers/net/i40e/i40e_ethdev_vf.c | 4 +++- 1 file changed, 3 insertions(+),

[dpdk-dev] [PATCH v2] net/i40e: fix missing VLAN offload capability

2018-05-09 Thread Yanglong Wu
VLAN offload capability should be exposed in VF since i40e does support it. Fixes: c3ac7c5b0b8a ("net/i40e: convert to new Rx offloads API") Signed-off-by: Yanglong Wu --- v2: rework as comments required --- drivers/net/i40e/i40e_ethdev_vf.c | 3 ++- 1 file changed, 2 insertions(+),

[dpdk-dev] [PATCH] ethdev: fix checking Rx/Tx queue status

2018-05-11 Thread Yanglong Wu
Relax the check for queue setup, since some device may not update queue states during dev_stop. Fixes: cac923cfea47 ("ethdev: support runtime queue setup") Signed-off-by: Yanglong Wu --- lib/librte_ethdev/rte_ethdev.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-)

[dpdk-dev] [PATCH] net/ixgbe: fix VLAN strip setting fail for per port

2018-05-16 Thread Yanglong Wu
VLAN-strip should be set by both per port and per queue Fixes: 860a94d3c692 ("net/ixgbe: support VLAN strip per queue offloading in VF") Signed-off-by: Yanglong Wu --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers

[dpdk-dev] [DPDK] net/ixgbe: fix VLAN strip setting fail for per port

2018-05-18 Thread Yanglong Wu
rxq->offload should synchronize with dev_conf Fixes: 860a94d3c692 ("net/ixgbe: support VLAN strip per queue offloading in VF") Signed-off-by: Yanglong Wu --- V2: rework as comments --- drivers/net/ixgbe/ixgbe_ethdev.c | 16 1 file changed, 16 insertions(+) diff --

[dpdk-dev] [PATCH v2] net/ixgbe: fix VLAN strip setting fail for per port

2018-05-18 Thread Yanglong Wu
rxq->offload should synchronize with dev_conf Fixes: 860a94d3c692 ("net/ixgbe: support VLAN strip per queue offloading in VF") Signed-off-by: Yanglong Wu --- v2: rework as comments asked --- drivers/net/ixgbe/ixgbe_ethdev.c | 16 1 file changed, 16 insertions(+)

[dpdk-dev] [PATCH] net/i40e: illagel pactket checking

2018-06-07 Thread Yanglong Wu
Some illegal packets will lead to TX/RX hang and can't recover automatically. This pacth check those illegal packets and protect TX/RX from hanging. Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_rxtx.c | 10 ++ drivers/net/i40e/i40e_rxtx.h | 2 ++ 2 files changed, 12 inser

[dpdk-dev] [PATCH v2] net/i40e: illagel pactket checking

2018-06-07 Thread Yanglong Wu
Some illegal packets will lead to TX/RX hang and can't recover automatically. This pacth check those illegal packets and protect TX/RX from hanging. Signed-off-by: Yanglong Wu --- v2: fix coding style issue and error --- drivers/net/i40e/i40e_rxtx.c | 11 +++ drivers/net

[dpdk-dev] [PATCH v3] net/i40e: illagel pactket checking

2018-06-14 Thread Yanglong Wu
Some illegal packets will lead to TX/RX hang and can't recover automatically. This pacth check those illegal packets and protect TX/RX from hanging. Signed-off-by: Yanglong Wu --- v2: fix coding style issue and error --- v3: rework as comments --- drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [PATCH v3] net/i40e: illegal pactket checking

2018-06-19 Thread Yanglong Wu
Some illegal packets will lead to TX/RX hang and can't recover automatically. This patch check those illegal packets and protect TX/RX from hanging. Signed-off-by: Yanglong Wu --- v2: fix coding style issue and error --- v3: rework as comments --- drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [PATCH] net/i40e: illegal pactket checking

2018-06-19 Thread Yanglong Wu
Some illegal packets will lead to TX/RX hang and can't recover automatically. This patch check those illegal packets and protect TX/RX from hanging. Signed-off-by: Yanglong Wu --- v2: fix coding style issue and spelling error --- v3: rework as comments --- drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [PATCH] net/i40e: illegal pactket checking

2018-06-19 Thread Yanglong Wu
Some illegal packets will lead to TX/RX hang and can't recover automatically. This patch check those illegal packets and protect TX/RX from hanging. Signed-off-by: Yanglong Wu --- v2: fix coding style issue and spelling error --- v3: rework as comments --- drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [PATCH v3] net/i40e: illegal pactket checking

2018-06-19 Thread Yanglong Wu
Some illegal packets will lead to TX/RX hang and can't recover automatically. This patch check those illegal packets and protect TX/RX from hanging. Signed-off-by: Yanglong Wu --- v2: fix coding style issue and spelling error --- v3: rework as comments --- drivers/net/i40e/i40e_rxtx.c

[dpdk-dev] [PATCH v4] net/i40e: illegal packet checking

2018-06-19 Thread Yanglong Wu
Some illegal packets will lead to TX/RX hang and can't recover automatically. This patch check those illegal packets and protect TX/RX from hanging. Signed-off-by: Yanglong Wu --- v2: fix coding style issue and spelling error --- v3: rework as comments --- v4: fix spelling error --- driver

[dpdk-dev] [PATCH] app/testpmd:vlan filter fail

2018-01-31 Thread Yanglong Wu
And-operartion with a constant will always lead to fail for vlan filter. fix:0074d02fc(convert to new Rx offloads API) Signed-off-by: Yanglong Wu --- lib/librte_ether/rte_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib

[dpdk-dev] [PATCH] net/i40e:fix VSI stats error

2018-01-31 Thread Yanglong Wu
In VF, the number of ibytes read from register have been stripped out CRC already, but in stats, it subtracts CRC bytes again. So it lead to RX bytes is smaller than TX bytes. Fixes: 98abce23(fix VF statistics) Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c | 4 1 file

[dpdk-dev] [PATCH] app/testpmd:vlan filter fail

2018-02-01 Thread Yanglong Wu
Removing out port_conf.rxmode.hw_vlan_filter = 1 will let it equal to 0 and port_conf.rxmode.offloads is assigned as 0 again if hw_vlan_filter = 1. So it will always lead to fail for vlan filter setting Fix:0074d02fc(convert to new Rx offloads API) Signed-off-by: Yanglong Wu --- app/test-pmd

[dpdk-dev] [PATCH] net/i40e: fix I40e start failing for missing JUMBO_FRAME offload

2018-04-17 Thread Yanglong Wu
JUMBO_FRAME offload should be set as default, missing it will lead to start failing for I40e. Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index

[dpdk-dev] [PATCH v2] net/i40e: fix I40e start failing for missing JUMBO_FRAME offload

2018-04-17 Thread Yanglong Wu
JUMBO_FRAME offload should be set as default, missing it will lead to start failing for I40e. Fixes: fbf959fe61e7 ("net/i40e: convert to new Rx offloads API") Signed-off-by: Yanglong Wu --- v2: add fix commit --- drivers/net/i40e/i40e_ethdev.c | 3 ++- 1 file changed, 2 insert

[dpdk-dev] [PATCH] net/i40e: fix I40e start failing for missing JUMBO_FRAME offload

2018-04-18 Thread Yanglong Wu
JUMBO_FRAME offload should be set as default, missing it will lead to start failing for I40e. Fixes: fbf959fe61e7 ("net/i40e: convert to new Rx offloads API") Signed-off-by: Yanglong Wu --- v2: add fix commit --- drivers/net/i40e/i40e_ethdev.c | 3 ++- 1 file changed, 2 insert

[dpdk-dev] [PATCH v3] net/i40e:fix missing jumbo frame offload capability

2018-04-18 Thread Yanglong Wu
JUMBO_FRAME offload capability should be exposed since i40e does support it. Fixes: fbf959fe61e7 ("net/i40e: convert to new Rx offloads API") Signed-off-by: Yanglong Wu Acked-by: Qi Zhang --- v2: add fix commit --- v3: rework commit log --- drivers/net/i40e/i40e_ethdev.c | 3 +

[dpdk-dev] [PATCH] net/i40e:fix missing some offload capabilities

2018-04-18 Thread Yanglong Wu
MULTI_SEGS and JUMBO_FRAME offload capability should be exposed both VF and PF since i40e does support it. Fixes: fbf959fe61e7 ("net/i40e: convert to new Rx offloads API") Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c| 3 ++- drivers/net/i40e/i40e_ethdev_vf.c | 6

[dpdk-dev] [PATCH] net/i40e:fix checking offloading fail for Tx

2018-04-18 Thread Yanglong Wu
Missing "return -ENOTSUP" will alays leads to illegal offload passing through offload checking. Fixes: b43290f1ade2 ("net/i40e: convert to new Tx offloads API") Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_rxtx.c | 4 +++- 1 file changed, 3 insertions(+), 1 delet

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

2018-03-27 Thread Yanglong Wu
Ethdev Rx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c| 27 +++ drivers/net/i40e/i40e_ethdev

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

2018-03-27 Thread Yanglong Wu
Ethdev Rx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c| 27 +++ drivers/net/i40e/i40e_ethdev

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

2018-03-27 Thread Yanglong Wu
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c| 1 + drivers/net/i40e/i40e_ethdev_vf.c | 1 + drivers/net/i40e/i

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

2018-03-27 Thread Yanglong Wu
Ethdev Rx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c| 27 +++ drivers/net/i40e/i40e_ethdev

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

2018-03-27 Thread Yanglong Wu
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c| 1 + drivers/net/i40e/i40e_ethdev_vf.c | 1 + drivers/net/i40e/i

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

2018-03-28 Thread Yanglong Wu
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c| 1 + drivers/net/i40e/i40e_ethdev_vf.c | 1 + drivers/net/i40e/i

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

2018-03-28 Thread Yanglong Wu
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c| 1 + drivers/net/i40e/i40e_ethdev_vf.c | 1 + drivers/net/i40e/i

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

2018-03-29 Thread Yanglong Wu
Ethdev Rx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Yanglong Wu --- v2: Adding offload requests checking and reworking patch according to review comments --- v3:

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

2018-03-29 Thread Yanglong Wu
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Yanglong Wu --- v2: Adding offload requests checking and reworking patch according to review comments --- v3:

[dpdk-dev] [PATCH v3 0/2] net/i40e: convert to new Rx/Tx offloads API

2018-03-29 Thread Yanglong Wu
This patch support new offloads API in i40e PF and VF. Yanglong Wu (2): net/i40e: convert to new Rx offloads API net/i40e: convert to new Tx offloads API drivers/net/i40e/i40e_ethdev.c| 28 +-- drivers/net/i40e/i40e_ethdev_vf.c | 22 +-- drivers/net/i40e

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

2018-03-29 Thread Yanglong Wu
Ethdev Rx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Yanglong Wu --- v2: Adding offload requests checking and reworking patch according to review comments --- v3:

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

2018-03-29 Thread Yanglong Wu
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Yanglong Wu --- v2: Adding offload requests checking and reworking patch according to review comments --- v3:

[dpdk-dev] [PATCH v4 0/2] convert to new Rx/Tx offloads API

2018-03-30 Thread Yanglong Wu
This patch support new offloads API in i40e PF and VF. Yanglong Wu (2): net/i40e: convert to new Rx offloads API net/i40e: convert to new Tx offloads API drivers/net/i40e/i40e_ethdev.c| 28 +-- drivers/net/i40e/i40e_ethdev_vf.c | 22 +-- drivers/net/i40e

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

2018-03-30 Thread Yanglong Wu
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Yanglong Wu --- v2: Adding offload requests checking and reworking patch according to review comments --- v3: fix er

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

2018-03-30 Thread Yanglong Wu
Ethdev Rx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Yanglong Wu --- v2: Adding offload requests checking and reworking patch according to review comments --- v3: fix er

[dpdk-dev] [PATCH 1/2] net/ixgbe: fix l3fwd start failed on VF

2017-11-02 Thread Yanglong Wu
VF can't run in multi queue module,if nb_q_per_pool was set as 1. Since the value of nb_q_per_pool pass through to max_rx_q and max_tx_q in VF. Fixes: 27b609cbd1c6 ("ethdev: move the multi-queue mode check to specific drivers") Signed-off-by: Yanglong Wu --- drivers/net/ixgbe

[dpdk-dev] [PATCH 2/2] net/ixgbe: fix l3fwd start failed on PF

2017-11-02 Thread Yanglong Wu
which occurred when the SRIOV is active and tx_q > rx_q. The number of nb_q_per_pool should equeal to max number of queues supported by HW not nb_rx_q. Fixes: 27b609cbd1c6 (ethdev: move the multi-queue mode check to specific drivers) Signed-off-by: Yanglong Wu --- drivers/net/ix

[dpdk-dev] [PATCH v2] net/ixgbe: fix l3fwd start failed on PF

2017-11-19 Thread Yanglong Wu
eck to specific drivers) Signed-off-by: Yanglong Wu --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index ae9c44421..0f0641da1 100644 --- a/drivers/net/ixgbe/ixgbe_ethde

[dpdk-dev] [PATCH v2] net/ixgbe: fix l3fwd start failed on VF

2017-11-19 Thread Yanglong Wu
: move the multi-queue mode check to specific drivers) Signed-off-by: Yanglong Wu --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 14b9c5303..ae9c44421 100644 --- a/drivers

[dpdk-dev] [PATCH v3] net/ixgbe: fix l3fwd start failed on VF

2017-11-19 Thread Yanglong Wu
queue mode check) Signed-off-by: Yanglong Wu --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 14b9c5303..ae9c44421 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers

[dpdk-dev] [PATCH v3] net/ixgbe: fix l3fwd start failed on PF

2017-11-19 Thread Yanglong Wu
eck to specific drivers) Signed-off-by: Yanglong Wu --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index ae9c44421..0f0641da1 100644 --- a/drivers/net/ixgbe/ixgbe_ethde

[dpdk-dev] [PATCH v4] net/ixgbe: fix l3fwd start failed on PF

2017-11-19 Thread Yanglong Wu
eck to specific drivers) Signed-off-by: Yanglong Wu --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index ae9c44421..0f0641da1 100644 --- a/drivers/net/ixgbe/ixgbe_ethde

[dpdk-dev] [PATCH] net/i40e: i40e support mac loopback

2017-11-19 Thread Yanglong Wu
According to loopback mode, setup loopback link or not. If loopback link is setted, packets will be sent to rx_q from tx_q directly.Loopback mode can be used to support testing task. Signed-off-by: Yanglong Wu --- drivers/net/i40e/base/i40e_adminq_cmd.h | 1 + drivers/net/i40e/i40e_ethdev.c

[dpdk-dev] [PATCH] app/testpmd: fix port_id alloction issue

2017-11-22 Thread Yanglong Wu
the port_id was allocated as a inccrete number, for init function was passthroughed a wrong size of parameter Fixes:28caa76aea71 ("app/testpmd: fix port id type") Signed-off-by: Yanglong Wu --- app/test-pmd/cmdline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[dpdk-dev] [PATCH v2] net/i40e: support mac loopback

2017-12-19 Thread Yanglong Wu
According to loopback mode, setup loopback link or not. If loopback link is setted, packets in tx will be sent to rx directly. Loopback mode can be used to support testing task Signed-off-by: Yanglong Wu --- v2: fix coding style issue --- drivers/net/i40e/i40e_ethdev.c | 10 ++ drivers

[dpdk-dev] [PATCH v3] net/i40e: support mac loopback

2017-12-21 Thread Yanglong Wu
According to loopback mode, setup loopback link or not. If loopback link is setted, packets in tx will be sent to rx directly. Loopback mode can be used to support testing task Signed-off-by: Yanglong Wu --- v2: fix coding style issue --- v3: update release DOC --- doc/guides/rel_notes

[dpdk-dev] [PATCH v2] app/testpmd: fix port_id alloction issue

2017-12-21 Thread Yanglong Wu
In the feature of increasing port_id range from 8 bits to 16 bits, vlan port_id allocation function was forget to substitute UINT8 with UINT16, so the vlan port_id was allocated as a invalid number. Signed-off-by: Yanglong Wu --- v2: modified commit message --- app/test-pmd/cmdline.c | 2 +- 1

[dpdk-dev] [PATCH v2] app/testpmd: fix port_id alloction issue

2017-12-21 Thread Yanglong Wu
In the feature of increasing port_id range from 8 bits to 16 bits, vlan port_id allocation function was forget to substitute UINT8 with UINT16, so the vlan port_id was allocated as a inccrete number. Fixes:28caa76aea71 ("app/testpmd: fix port id type") Signed-off-by: Yanglong

[dpdk-dev] [PATCH v4] net/i40e: support mac loopback

2018-01-01 Thread Yanglong Wu
According to loopback mode, setup loopback link or not. If loopback link is setted, packets in tx will be sent to rx directly. Loopback mode can be used to support testing task Signed-off-by: Yanglong Wu --- v2: fix coding style issue --- v3: update release DOC --- v4: remove 'FVL'

[dpdk-dev] [PATCH v5] net/i40e: support mac loopback

2018-01-01 Thread Yanglong Wu
According to loopback mode, setup loopback link or not. If loopback link is setted, packets in tx will be sent to rx directly. Loopback mode can be used to support testing task Signed-off-by: Yanglong Wu --- v2: fix coding style issue --- v3: update release DOC --- v4: remove 'FVL' -

[dpdk-dev] [PATCH v3] app/testpmd: fix port_id alloction issue

2018-01-01 Thread Yanglong Wu
In the feature of increasing port_id range from 8 bits to 16 bits, vlan port_id allocation function was forget to substitute UINT8 with UINT16, so the vlan port_id was allocated as a inccrete number. Fixes:28caa76aea71 ("app/testpmd: fix port id type") Signed-off-by: Yanglong Wu R

[dpdk-dev] [PATCH v5] net/ixgbe: fix l3fwd start failed on

2018-01-07 Thread Yanglong Wu
eck to specific drivers) Signed-off-by: Yanglong Wu --- v5: Rework according to comments --- drivers/net/ixgbe/ixgbe_ethdev.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index ff19a564a..baaeee

[dpdk-dev] [PATCH v4] net/ixgbe: fix l3fwd start failed on VF

2018-01-08 Thread Yanglong Wu
queue mode check) Signed-off-by: Yanglong Wu --- v1~v3: coding style issue fix --- v4: Rework according to comments --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index baaeee5d9..6af4f8

[dpdk-dev] [PATCH v6] net/ixgbe: fix tx_q check failed on PF

2018-01-09 Thread Yanglong Wu
ers) Signed-off-by: Yanglong Wu --- v5: Rework according to comments --- v6: rework commit log --- drivers/net/ixgbe/ixgbe_ethdev.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index ff19a5

[dpdk-dev] [PATCH v2] app/testpmd:vlan filter fail

2018-02-04 Thread Yanglong Wu
This bug is caused by miss port configuration. The port_conf for the DCB configuration should inherit the same configuration of the port. Fix:0074d02fc(convert to new Rx offloads API) Signed-off-by: Yanglong Wu --- v2: changing patch accoding to the review --- app/test-pmd/testpmd.c | 3 +++ 1

[dpdk-dev] [PATCH v3] app/testpmd: fix port_id alloction issue

2018-02-04 Thread Yanglong Wu
In the feature of increasing port_id range from 8 bits to 16 bits, vlan port_id allocation function was forget to substitute UINT8 with UINT16, so the vlan port_id was allocated as a inccrete number. Fixes:28caa76aea71 ("app/testpmd: fix port id type") Signed-off-by: Yanglong Wu R

[dpdk-dev] [PATCH v3] app/testpmd: fix port DCB configuration

2018-02-05 Thread Yanglong Wu
The port_conf for the DCB configuration should inherit the same configuration of the port. Fix:0074d02fc("app/testpmd: convert to new Rx offloads API") Signed-off-by: Yanglong Wu --- v2: changing patch accoding to review --- v3: changing patch accoding to comments --- app/test-pmd/tes

[dpdk-dev] [PATCH v4] app/testpmd: fix port DCB configuration

2018-02-05 Thread Yanglong Wu
The port_conf for the DCB configuration should inherit the same configuration of the port. Fixes: 0074d02fca21("app/testpmd: convert to new Rx offloads API") Signed-off-by: Yanglong Wu --- v2: changing patch accoding to review --- v3: changing patch accoding to comments --- v4: chan

[dpdk-dev] [PATCH v4] app/testpmd: fix port DCB configuration

2018-02-05 Thread Yanglong Wu
The port_conf for the DCB configuration should inherit the same configuration of the port. Fixes: 0074d02fca21("app/testpmd: convert to new Rx offloads API") Signed-off-by: Yanglong Wu Acked-by: Shahaf Shuler --- v2: changing patch accoding to review --- v3: changing patch accoding t

[dpdk-dev] [PATCH] Revert "net/i40e/base: enhance loopback AQ command"

2018-02-07 Thread Yanglong Wu
This patch fix loopback fail after share code change This reverts commit 7b7711bea5f4b5c47010c42a690fb4f4c1b57858. Signed-off-by: Yanglong Wu --- drivers/net/i40e/base/i40e_adminq_cmd.h | 21 ++--- drivers/net/i40e/base/i40e_common.c | 12 drivers/net/i40e/base

[dpdk-dev] [PATCH v2] net/i40e: fix i40e loopback configuration error

2018-02-07 Thread Yanglong Wu
e/base: enhance loopback AQ command") Signed-off-by: Yanglong Wu Acked-by: Qi Zhang --- v2: update commit log --- drivers/net/i40e/base/i40e_adminq_cmd.h | 21 ++--- drivers/net/i40e/base/i40e_common.c | 12 drivers/net/i40e/base/i40e_diag.c | 17 ++

[dpdk-dev] [PATCH v2] net/i40e: fix i40e loopback configuration error

2018-02-07 Thread Yanglong Wu
mmit in this version. Fixes:commit 7b7711bea5f4 ("net/i40e/base: enhance loopback AQ command") Signed-off-by: Yanglong Wu Acked-by: Qi Zhang --- v2: update commit log --- drivers/net/i40e/base/i40e_adminq_cmd.h | 21 ++--- drivers/net/i40e/base/i40e_common.c | 12 -

[dpdk-dev] [DPDK] net/i40e: convert to new Rx offloads API

2018-03-02 Thread Yanglong Wu
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c| 30 ++ drivers/net/i40e/i40e_ethdev

[dpdk-dev] [DPDK] net/i40e: convert to new Tx offloads API

2018-03-02 Thread Yanglong Wu
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Yanglong Wu --- drivers/net/i40e/i40e_ethdev.c| 1 + drivers/net/i40e/i40e_ethdev_vf.c | 1 + drivers/net/i40e/i