Re: [dpdk-dev] [PATCH 0/3] add ifcvf driver

2018-03-26 Thread Wang, Xiao W
Hi Maxime, > -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Sunday, March 25, 2018 5:51 PM > To: Wang, Xiao W ; dev@dpdk.org > Cc: Wang, Zhihong ; y...@fridaylinux.org; Liang, > Cunming ; Xu, Rosen ; Chen, > Junjie J ; Dal

Re: [dpdk-dev] [PATCH 0/3] add ifcvf driver

2018-03-26 Thread Wang, Xiao W
Hi Maxime, > -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Monday, March 26, 2018 9:30 PM > To: Wang, Xiao W ; dev@dpdk.org > Cc: Wang, Zhihong ; y...@fridaylinux.org; Liang, > Cunming ; Xu, Rosen ; Chen, > Junjie J ; Dal

Re: [dpdk-dev] [PATCH v3 2/4] net/virtio: skip device probe in vdpa mode

2018-04-01 Thread Wang, Xiao W
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Saturday, March 31, 2018 9:16 PM > To: Maxime Coquelin > Cc: Wang, Xiao W ; Yigit, Ferruh > ; dev@dpdk.org; Wang, Zhihong > ; y...@fridaylinux.org; Tan, Jianfeng > ; Bie

Re: [dpdk-dev] [PATCH v3 3/4] net/ifcvf: add ifcvf vdpa driver

2018-04-03 Thread Wang, Xiao W
Hi Maxime, > -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Saturday, March 31, 2018 7:27 PM > To: Wang, Xiao W ; Yigit, Ferruh > > Cc: dev@dpdk.org; Wang, Zhihong ; > y...@fridaylinux.org; Tan, Jianfeng ; Bie, Tiwei > ; Li

Re: [dpdk-dev] [PATCH 4/4] doc: add switch restart support to fm10k guide

2017-10-23 Thread Wang, Xiao W
> -Original Message- > From: Mcnamara, John > Sent: Monday, October 23, 2017 9:07 PM > To: Wang, Xiao W ; dev@dpdk.org > Cc: Wu, Jingjing ; Chen, Jing D > ; Wang, Xiao W > Subject: RE: [dpdk-dev] [PATCH 4/4] doc: add switch restart support to fm10k > guide &g

Re: [dpdk-dev] [PATCH 1/2] net/virtio: make control queue thread-safe

2017-11-29 Thread Wang, Xiao W
> -Original Message- > From: Bie, Tiwei > Sent: Friday, November 24, 2017 1:39 PM > To: Wang, Xiao W > Cc: dev@dpdk.org; y...@fridaylinux.org > Subject: Re: [dpdk-dev] [PATCH 1/2] net/virtio: make control queue thread- > safe > > On Fri, Nov 24, 2017 at

Re: [dpdk-dev] [PATCH 2/2] net/virtio: support GUEST ANNOUNCE

2017-11-29 Thread Wang, Xiao W
> -Original Message- > From: Bie, Tiwei > Sent: Friday, November 24, 2017 2:05 PM > To: Wang, Xiao W > Cc: dev@dpdk.org; y...@fridaylinux.org > Subject: Re: [dpdk-dev] [PATCH 2/2] net/virtio: support GUEST ANNOUNCE > > Hi, > > Some quick comments. Will go

Re: [dpdk-dev] [PATCH 2/2] net/virtio: support GUEST ANNOUNCE

2017-11-29 Thread Wang, Xiao W
> -Original Message- > From: Yuanhan Liu [mailto:y...@fridaylinux.org] > Sent: Monday, November 27, 2017 8:49 PM > To: Wang, Xiao W > Cc: dev@dpdk.org > Subject: Re: [PATCH 2/2] net/virtio: support GUEST ANNOUNCE > > On Fri, Nov 24, 2017 at 03:04:00AM -0800, X

Re: [dpdk-dev] [PATCH 1/2] net/virtio: make control queue thread-safe

2017-11-30 Thread Wang, Xiao W
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Thursday, November 30, 2017 10:59 AM > To: Wang, Xiao W > Cc: dev@dpdk.org; y...@fridaylinux.org > Subject: Re: [dpdk-dev] [PATCH 1/2] net/virtio: make control queue thread- >

Re: [dpdk-dev] [PATCH 2/3] net/vdpa_virtio_pci: introduce vdpa sample driver

2018-02-07 Thread Wang, Xiao W
Hi Maxime, > -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Tuesday, February 6, 2018 10:24 PM > To: Wang, Xiao W ; dev@dpdk.org > Cc: Tan, Jianfeng ; Bie, Tiwei ; > y...@fridaylinux.org; Liang, Cunming ; Daly, Dan > ; Wang, Z

Re: [dpdk-dev] [PATCH 2/3] net/vdpa_virtio_pci: introduce vdpa sample driver

2018-02-12 Thread Wang, Xiao W
Hi Maxime, > -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Thursday, February 8, 2018 5:09 PM > To: Wang, Xiao W ; dev@dpdk.org > Cc: Tan, Jianfeng ; Bie, Tiwei ; > y...@fridaylinux.org; Liang, Cunming ; Daly, Dan > ; Wang, Z

Re: [dpdk-dev] [PATCH] igb_uio: allow multi-process access

2017-12-18 Thread Wang, Xiao W
Hi, > -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Tuesday, December 12, 2017 9:39 AM > To: Wang, Xiao W > Cc: Yigit, Ferruh ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] igb_uio: allow multi-process access > > On F

Re: [dpdk-dev] [PATCH v2] igb_uio: allow multi-process access

2017-12-19 Thread Wang, Xiao W
Thanks for pointing it out. Fix it in v3. BRs, Xiao > -Original Message- > From: Bie, Tiwei > Sent: Tuesday, December 19, 2017 5:05 PM > To: Wang, Xiao W > Cc: Yigit, Ferruh ; dev@dpdk.org; > step...@networkplumber.org > Subject: Re: [dpdk-dev] [PATCH v2] igb_uio

Re: [dpdk-dev] [PATCH v5] vhost: support virtqueue interrupt/notification suppression

2017-12-26 Thread Wang, Xiao W
Hi, > -Original Message- > From: Chen, Junjie J > Sent: Sunday, December 24, 2017 12:56 AM > To: y...@fridaylinux.org; maxime.coque...@redhat.com; Bie, Tiwei > ; Wang, Xiao W > Cc: dev@dpdk.org; Chen, Junjie J > Subject: [PATCH v5] vhost: support virtqueue i

Re: [dpdk-dev] [PATCH v2 2/2] net/virtio: support GUEST ANNOUNCE

2018-01-02 Thread Wang, Xiao W
Hi, > -Original Message- > From: Bie, Tiwei > Sent: Monday, December 4, 2017 4:47 PM > To: Wang, Xiao W > Cc: y...@fridaylinux.org; dev@dpdk.org; step...@networkplumber.org > Subject: Re: [PATCH v2 2/2] net/virtio: support GUEST ANNOUNCE > > On Mon, Dec 04,

Re: [dpdk-dev] [PATCH v2 2/2] net/virtio: support GUEST ANNOUNCE

2018-01-02 Thread Wang, Xiao W
> -Original Message- > From: Bie, Tiwei > Sent: Wednesday, December 6, 2017 7:23 PM > To: Wang, Xiao W > Cc: y...@fridaylinux.org; dev@dpdk.org; step...@networkplumber.org > Subject: Re: [PATCH v2 2/2] net/virtio: support GUEST ANNOUNCE > > On Mon, Dec 04,

Re: [dpdk-dev] [PATCH 2/2] net/virtio: support GUEST ANNOUNCE

2018-01-02 Thread Wang, Xiao W
> -Original Message- > From: Yuanhan Liu [mailto:y...@fridaylinux.org] > Sent: Tuesday, December 5, 2017 10:26 PM > To: Wang, Xiao W > Cc: dev@dpdk.org; Bie, Tiwei > Subject: Re: [PATCH 2/2] net/virtio: support GUEST ANNOUNCE > > On Thu, Nov 30, 2017 at 02:41:

Re: [dpdk-dev] [PATCH v2 2/2] net/virtio: support GUEST ANNOUNCE

2018-01-03 Thread Wang, Xiao W
> -Original Message- > From: Wang, Xiao W > Sent: Wednesday, January 3, 2018 9:37 AM > To: Bie, Tiwei > Cc: y...@fridaylinux.org; dev@dpdk.org; step...@networkplumber.org > Subject: RE: [PATCH v2 2/2] net/virtio: support GUEST ANNOUNCE > > Hi, > > > --

Re: [dpdk-dev] [PATCH v3 2/2] net/virtio: support GUEST ANNOUNCE

2018-01-03 Thread Wang, Xiao W
Hi Tiwei, > -Original Message- > From: Bie, Tiwei > Sent: Thursday, January 4, 2018 10:51 AM > To: Wang, Xiao W > Cc: dev@dpdk.org; y...@fridaylinux.org; step...@networkplumber.org > Subject: Re: [PATCH v3 2/2] net/virtio: support GUEST ANNOUNCE > > Hi Xiao, >

Re: [dpdk-dev] [PATCH v6] vhost: support virtqueue interrupt/notification suppression

2018-01-04 Thread Wang, Xiao W
Hi, > -Original Message- > From: Chen, Junjie J > Sent: Wednesday, December 27, 2017 1:43 AM > To: Wang, Xiao W ; y...@fridaylinux.org; > maxime.coque...@redhat.com; Bie, Tiwei > Cc: dev@dpdk.org; Chen, Junjie J > Subject: [PATCH v6] vhost: support virtqueue i

Re: [dpdk-dev] [PATCH v5 3/3] net/virtio: support GUEST ANNOUNCE

2018-01-06 Thread Wang, Xiao W
Hi > -Original Message- > From: Bie, Tiwei > Sent: Saturday, January 6, 2018 1:57 AM > To: Wang, Xiao W > Cc: dev@dpdk.org; y...@fridaylinux.org; step...@networkplumber.org > Subject: Re: [PATCH v5 3/3] net/virtio: support GUEST ANNOUNCE > > On Fri, Jan 05,

Re: [dpdk-dev] [PATCH v5 2/3] net/virtio: add packet injection method

2018-01-06 Thread Wang, Xiao W
Hi, > -Original Message- > From: Bie, Tiwei > Sent: Saturday, January 6, 2018 2:01 AM > To: Wang, Xiao W > Cc: dev@dpdk.org; y...@fridaylinux.org; step...@networkplumber.org > Subject: Re: [PATCH v5 2/3] net/virtio: add packet injection method > > On Fri, Ja

Re: [dpdk-dev] [PATCH v6 2/3] net/virtio: add packet injection method

2018-01-08 Thread Wang, Xiao W
> -Original Message- > From: Yuanhan Liu [mailto:y...@fridaylinux.org] > Sent: Monday, January 8, 2018 9:04 PM > To: Wang, Xiao W > Cc: Bie, Tiwei ; dev@dpdk.org; > step...@networkplumber.org > Subject: Re: [PATCH v6 2/3] net/virtio: add packet injection method >

Re: [dpdk-dev] [PATCH v6 1/3] net/virtio: make control queue thread-safe

2018-01-08 Thread Wang, Xiao W
Hi, > -Original Message- > From: Yuanhan Liu [mailto:y...@fridaylinux.org] > Sent: Monday, January 8, 2018 9:07 PM > To: Wang, Xiao W > Cc: Bie, Tiwei ; dev@dpdk.org; > step...@networkplumber.org > Subject: Re: [PATCH v6 1/3] net/virtio: make control queue thread-saf

Re: [dpdk-dev] [PATCH v6 2/3] net/virtio: add packet injection method

2018-01-08 Thread Wang, Xiao W
> -Original Message- > From: Wang, Xiao W > Sent: Monday, January 8, 2018 11:12 PM > To: Yuanhan Liu > Cc: Bie, Tiwei ; dev@dpdk.org; > step...@networkplumber.org > Subject: RE: [PATCH v6 2/3] net/virtio: add packet injection method > > > > >

[dpdk-dev] [PATCH v3 14/18] fm10k/base: imporve comment per upstream review changes

2016-02-19 Thread Wang Xiao W
names in DEBUGFUNC(), duplicate comments and a stubbed-out header comment for fm10k_sm_mbx_init. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_mbx.c | 61 ++ drivers/net/fm10k/base/fm10k_mbx.h | 4 +-- drivers/net/fm10k/base/fm10k_pf.c | 12

[dpdk-dev] [PATCH v3 13/18] fm10k/base: consistently use VLAN ID when referencing vid variables

2016-02-19 Thread Wang Xiao W
The vid variable name is shorthand for VLAN ID, so we should use this in comments explaining what is happening. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_pf.c b

[dpdk-dev] [PATCH v3 15/18] fm10k/base: fix TLV structures alignment

2016-02-19 Thread Wang Xiao W
tures correctly") Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_pf.h b/drivers/net/fm10k/base/fm10k_pf.h index 92e2962..ee8527a 100644 --- a/drivers/net/fm10k/base/fm10k_

[dpdk-dev] [PATCH v3 16/18] fm10k/base: move constants to the right of binary operators

2016-02-19 Thread Wang Xiao W
The upstream Linux kernel community prefers constants are to the right of binary operators. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_pf.c b/drivers/net/fm10k/base

[dpdk-dev] [PATCH v3 07/18] fm10k/base: cleanup lines over 80 characters

2016-02-19 Thread Wang Xiao W
checkpatch warns about lines over 80 characters. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_mbx.c | 2 +- drivers/net/fm10k/base/fm10k_pf.c | 7 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_mbx.c b/drivers/net/fm10k/base

[dpdk-dev] [PATCH v3 17/18] fm10k/base: minor cleanups

2016-02-19 Thread Wang Xiao W
-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_mbx.h | 7 -- drivers/net/fm10k/base/fm10k_osdep.h | 32 + drivers/net/fm10k/base/fm10k_pf.h| 4 -- drivers/net/fm10k/base/fm10k_type.h | 132 --- 4 files changed, 32 insertions(+), 143 deletions

[dpdk-dev] [PATCH v3 09/18] fm10k/base: use BIT macro instead of open-coded bit-shifting of 1

2016-02-19 Thread Wang Xiao W
: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 12 ++-- drivers/net/fm10k/base/fm10k_tlv.c | 24 drivers/net/fm10k/base/fm10k_type.h | 18 -- 3 files changed, 30 insertions(+), 24 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_pf.c b

[dpdk-dev] [PATCH v3 18/18] fm10k/base: remove unused struct element

2016-02-19 Thread Wang Xiao W
Remove the unused element request_lport_map in struct fm10k_mac_ops. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_type.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/fm10k/base/fm10k_type.h b/drivers/net/fm10k/base/fm10k_type.h index f807216..3fc8f13 100644

[dpdk-dev] [PATCH v3 1/3] fm10k: enable FTAG based forwarding

2016-02-26 Thread Wang, Xiao W
Hi, > -Original Message- > From: Richardson, Bruce > Sent: Friday, February 26, 2016 12:14 AM > To: Chen, Jing D > Cc: Thomas Monjalon ; Wang, Xiao W > ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 1/3] fm10k: enable FTAG based forwarding > > On Thu,

[dpdk-dev] [PATCH v3 1/3] fm10k: enable FTAG based forwarding

2016-02-26 Thread Wang, Xiao W
Hi, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, February 26, 2016 5:06 PM > To: Wang, Xiao W > Cc: Richardson, Bruce ; Chen, Jing D > ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 1/3] fm10k: enable

[dpdk-dev] [PATCH v3 1/3] fm10k: enable FTAG based forwarding

2016-02-29 Thread Wang, Xiao W
> -Original Message- > From: Richardson, Bruce > Sent: Saturday, February 27, 2016 12:33 AM > To: David Marchand > Cc: Wang, Xiao W ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 1/3] fm10k: enable FTAG based forwarding > > On Fri, Feb 26, 2016 at

[dpdk-dev] [RFC PATCH 1/3] fm10k: enable FTAG based forwarding

2016-01-05 Thread Wang Xiao W
in FTAG rather than mac and vlan table. To activate this feature, user needs to turn CONFIG_RTE_LIBRTE_FM10K_FTAG_FWD to y in common_linuxapp or common_bsdapp. Currently this feature is supported only on PF. Signed-off-by: Wang Xiao W --- config/common_bsdapp | 1 + config

[dpdk-dev] [RFC PATCH 2/3] fm10k: add a unit test for FTAG based forwarding

2016-01-05 Thread Wang Xiao W
port by the switch without changing the destination mac address. Signed-off-by: Wang Xiao W --- app/test/Makefile | 1 + app/test/test_fm10k_ftag.c | 253 + 2 files changed, 254 insertions(+) create mode 100644 app/test/test_fm10k_ftag.c diff

[dpdk-dev] [RFC PATCH 0/3] fm10k: enable FTAG based forwarding

2016-01-05 Thread Wang Xiao W
This is a RFC patch set for FTAG based forwarding feature of RRC. Wang Xiao W (3): fm10k: enable FTAG based forwarding fm10k: add a unit test for FTAG based forwarding doc: add introduction for fm10k FTAG based forwarding app/test/Makefile | 1 + app/test

[dpdk-dev] [RFC PATCH 3/3] doc: add introduction for fm10k FTAG based forwarding

2016-01-05 Thread Wang Xiao W
Add a brief introduction on FTAG, describes what's FTAG and how it works in forwarding, introduction on how to run fm10k with FTAG is also included. Signed-off-by: Wang Xiao W --- doc/guides/nics/fm10k.rst | 13 + 1 file changed, 13 insertions(+) diff --git a/doc/guides

[dpdk-dev] [RFC PATCH 3/3] doc: add introduction for fm10k FTAG based forwarding

2016-01-13 Thread Wang, Xiao W
Hi, John > -Original Message- > From: Mcnamara, John > Sent: Tuesday, January 12, 2016 10:16 PM > To: Wang, Xiao W ; Chen, Jing D > ; Richardson, Bruce > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [RFC PATCH 3/3] doc: add introduction for fm10k &g

[dpdk-dev] [PATCH 00/16] fm10k: update shared code from ND team

2016-01-21 Thread Wang Xiao W
This shared code update patch set has passed the regression test. Wang Xiao W (16): fm10k/base: cleanup namespace pollution and correct typecast fm10k/base: use bitshift for itr_scale fm10k/base: reset max_queues on init_hw_vf failure fm10k/base: document ITR scale workaround in VF TDLEN

[dpdk-dev] [PATCH 01/16] fm10k/base: cleanup namespace pollution and correct typecast

2016-01-21 Thread Wang Xiao W
ivers with custom SR-IOV message handlers can strip it. remove unused struct element in struct fm10k_mac_ops. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 10 ++ drivers/net/fm10k/base/fm10k_pf.h | 4 ++-- drivers/net/fm10k/base/fm10k_tlv.c

[dpdk-dev] [PATCH 02/16] fm10k/base: use bitshift for itr_scale

2016-01-21 Thread Wang Xiao W
path since that will already be the default Gen3 case. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_type.h | 6 +++--- drivers/net/fm10k/base/fm10k_vf.c | 4 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_type.h b/drivers/net/

[dpdk-dev] [PATCH 03/16] fm10k/base: reset max_queues on init_hw_vf failure

2016-01-21 Thread Wang Xiao W
ut, if its error code is not properly handled the VF driver may still believe it has queues which no longer belong to it. Fix this by clearing the hw->mac.max_queues on exit due to errors. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_vf.c | 13 ++--- 1 file changed, 10 i

[dpdk-dev] [PATCH 04/16] fm10k/base: document ITR scale workaround in VF TDLEN register

2016-01-21 Thread Wang Xiao W
Add comments which properly explain the undocumented use of bits in TDLEN register prior to VF initializing it to the correct value. Note that the mechanism is entirely software-defined and explain its purpose to help reduce confusion in the future. Signed-off-by: Wang Xiao W --- drivers/net

[dpdk-dev] [PATCH 05/16] fm10k/base: fix checkpatch warning

2016-01-21 Thread Wang Xiao W
Cleanup lines over 80 characters. Cleanup useless else, checkpatch warns that else is not generally useful after a break or return. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_mbx.c | 2 +- drivers/net/fm10k/base/fm10k_pf.c | 19 ++- 2 files changed, 11

[dpdk-dev] [PATCH 06/16] fm10k/base: use BIT macro instead of open-coded bit-shifting of 1

2016-01-21 Thread Wang Xiao W
Linux kernel community prefers avoiding CamelCase in variables, function names, etc. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 12 ++-- drivers/net/fm10k/base/fm10k_tlv.c | 24 drivers/net/fm10k/base/fm10k_type.h | 18 -- 3

[dpdk-dev] [PATCH 07/16] fm10k/base: do not use CamelCase

2016-01-21 Thread Wang Xiao W
The upstream Linux kernel community prefers avoiding CamelCase in variables, function names, etc. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_type.h | 14 +++--- drivers/net/fm10k/fm10k_ethdev.c| 24 2 files changed, 19 insertions(+), 19

[dpdk-dev] [PATCH 08/16] fm10k/base: use memcpy for mac addr copy

2016-01-21 Thread Wang Xiao W
Use memcpy instead of copying MAC address byte-by-byte. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_pf.c b/drivers/net/fm10k/base/fm10k_pf.c index 7d48210..a1469aa

[dpdk-dev] [PATCH 09/16] fm10k/base: allow removal of is_slot_appropriate function

2016-01-21 Thread Wang Xiao W
e function call. Add a NO_IS_SLOT_APPROPRIATE_CHECK definition which can be defined during strip process to remove the code. If left undefined (the default) then the code will all be active and no driver changes should be necessary. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_

[dpdk-dev] [PATCH 10/16] fm10k/base: consistently use VLAN ID when referencing vid variables

2016-01-21 Thread Wang Xiao W
The vid variable name is shorthand for VLAN ID, so we should use this in comments explaining what is happening. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_pf.c b

[dpdk-dev] [PATCH 11/16] fm10k/base: fix comment per upstream review changes

2016-01-21 Thread Wang Xiao W
names in DEBUGFUNC(), duplicate comments and a stubbed-out header comment for fm10k_sm_mbx_init. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_mbx.c | 61 ++ drivers/net/fm10k/base/fm10k_mbx.h | 4 +-- drivers/net/fm10k/base/fm10k_pf.c | 12

[dpdk-dev] [PATCH 12/16] fm10k/base: TLV structures must be 4byte aligned, not 1byte aligned

2016-01-21 Thread Wang Xiao W
added that had a u8 or similar sticking on the end things would break. Fix this by using 4byte alignment which will prevent the TLV LE_STRUCT code from breaking. Update the comment explaining that we need 4byte alignment of our structures. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base

[dpdk-dev] [PATCH 13/16] fm10k/base: move constants to the right of binary operators

2016-01-21 Thread Wang Xiao W
The upstream Linux kernel community prefers constants are to the right of binary operators. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_pf.c b/drivers/net/fm10k/base

[dpdk-dev] [PATCH 14/16] fm10k/base: minor cleanups

2016-01-21 Thread Wang Xiao W
Some cleanups to better reflect the code that was actually pushed out to the upstream Linux community. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_mbx.h | 7 -- drivers/net/fm10k/base/fm10k_pf.h | 4 -- drivers/net/fm10k/base/fm10k_type.h | 132

[dpdk-dev] [PATCH 16/16] fm10k/base: add macro definitions that are needed

2016-01-21 Thread Wang Xiao W
Some macros such as FM10K_RXINT_TIMER_SHIFT are removed in the share code drop, but they are needed in dpdk/fm10k. This patch put all these necessary macros into fm10k_osdep.h Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_osdep.h | 30 ++ 1 file changed

[dpdk-dev] [PATCH 15/16] fm10k: use default mailbox message handler for pf

2016-01-21 Thread Wang Xiao W
The new share code makes fm10k_msg_update_pvid_pf function static, so we can not refer to it now in fm10k_ethdev.c. The registered pf handler is almost the same as the default pf handler, removing it has no impact on mailbox. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/fm10k_ethdev.c | 17

[dpdk-dev] [PATCH 15/16] fm10k: use default mailbox message handler for pf

2016-01-25 Thread Wang, Xiao W
Hi Bruce, > -Original Message- > From: Richardson, Bruce > Sent: Saturday, January 23, 2016 5:32 AM > To: Wang, Xiao W > Cc: Chen, Jing D ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 15/16] fm10k: use default mailbox message > handler for pf > > On Thu,

[dpdk-dev] [PATCH 0/3] fm10k: enable FTAG based forwarding

2016-01-25 Thread Wang Xiao W
This patch set adds support for FTAG based forwarding in fm10k. This feature is a particularity of fm10k, so I add an introduction for it in fm10k.rst. A FTAG unit test is kept internally for feature testing, it's not included in the patch set due to the particularity. Wang Xiao W (3):

[dpdk-dev] [PATCH 1/3] fm10k: enable FTAG based forwarding

2016-01-25 Thread Wang Xiao W
in FTAG rather than mac and vlan table. To activate this feature, user needs to turn ``CONFIG_RTE_LIBRTE_FM10K_FTAG_FWD`` to y in common_linuxapp or common_bsdapp. Currently this feature is supported only on PF, because FM10K_PFVTCTL register is read-only for VF. Signed-off-by: Wang Xiao W

[dpdk-dev] [PATCH 2/3] doc: add introduction for fm10k FTAG based forwarding

2016-01-25 Thread Wang Xiao W
Add a brief introduction on FTAG, describe what's FTAG and how it works in forwarding. Signed-off-by: Wang Xiao W --- doc/guides/nics/fm10k.rst | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/fm10k.rst b/doc/guides/nics/fm10k.rst index 42

[dpdk-dev] [PATCH 3/3] doc: update release note for fm10k FTAG support

2016-01-25 Thread Wang Xiao W
Update the release note. Signed-off-by: Wang Xiao W --- doc/guides/rel_notes/release_2_3.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/release_2_3.rst b/doc/guides/rel_notes/release_2_3.rst index 99de186..2c8b6f9 100644 --- a/doc/guides/rel_notes/release_2_3.rst

[dpdk-dev] [PATCH 15/16] fm10k: use default mailbox message handler for pf

2016-01-27 Thread Wang, Xiao W
> -Original Message- > From: Richardson, Bruce > Sent: Wednesday, January 27, 2016 4:17 AM > To: Wang, Xiao W > Cc: Chen, Jing D ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 15/16] fm10k: use default mailbox message > handler for pf > > On Mon, Jan 2

[dpdk-dev] [PATCH v2 00/16] fm10k: update shared code

2016-01-27 Thread Wang Xiao W
v2: * Put the two extra fix patches ahead of the base code patches. Wang Xiao W (16): fm10k: use default mailbox message handler for pf fm10k/base: add macro definitions that are needed fm10k/base: cleanup namespace pollution and correct typecast fm10k/base: use bitshift for itr_scale

[dpdk-dev] [PATCH v2 01/16] fm10k: use default mailbox message handler for pf

2016-01-27 Thread Wang Xiao W
The new share code makes fm10k_msg_update_pvid_pf function static, so we can not refer to it now in fm10k_ethdev.c. The registered pf handler is almost the same as the default pf handler, removing it has no impact on mailbox. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/fm10k_ethdev.c | 17

[dpdk-dev] [PATCH v2 02/16] fm10k/base: add macro definitions that are needed

2016-01-27 Thread Wang Xiao W
Some macros such as FM10K_RXINT_TIMER_SHIFT are removed in the share code drop, but they are needed in dpdk/fm10k. This patch put all these necessary macros into fm10k_osdep.h Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_osdep.h | 30 ++ 1 file changed

[dpdk-dev] [PATCH v2 03/16] fm10k/base: cleanup namespace pollution and correct typecast

2016-01-27 Thread Wang Xiao W
ivers with custom SR-IOV message handlers can strip it. remove unused struct element in struct fm10k_mac_ops. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 10 ++ drivers/net/fm10k/base/fm10k_pf.h | 4 ++-- drivers/net/fm10k/base/fm10k_tlv.c

[dpdk-dev] [PATCH v2 04/16] fm10k/base: use bitshift for itr_scale

2016-01-27 Thread Wang Xiao W
path since that will already be the default Gen3 case. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_type.h | 6 +++--- drivers/net/fm10k/base/fm10k_vf.c | 4 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_type.h b/drivers/net/

[dpdk-dev] [PATCH v2 05/16] fm10k/base: reset max_queues on init_hw_vf failure

2016-01-27 Thread Wang Xiao W
ut, if its error code is not properly handled the VF driver may still believe it has queues which no longer belong to it. Fix this by clearing the hw->mac.max_queues on exit due to errors. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_vf.c | 13 ++--- 1 file changed, 10 i

[dpdk-dev] [PATCH v2 06/16] fm10k/base: document ITR scale workaround in VF TDLEN register

2016-01-27 Thread Wang Xiao W
Add comments which properly explain the undocumented use of bits in TDLEN register prior to VF initializing it to the correct value. Note that the mechanism is entirely software-defined and explain its purpose to help reduce confusion in the future. Signed-off-by: Wang Xiao W --- drivers/net

[dpdk-dev] [PATCH v2 07/16] fm10k/base: fix checkpatch warning

2016-01-27 Thread Wang Xiao W
Cleanup lines over 80 characters. Cleanup useless else, checkpatch warns that else is not generally useful after a break or return. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_mbx.c | 2 +- drivers/net/fm10k/base/fm10k_pf.c | 19 ++- 2 files changed, 11

[dpdk-dev] [PATCH v2 08/16] fm10k/base: use BIT macro instead of open-coded bit-shifting of 1

2016-01-27 Thread Wang Xiao W
Linux kernel community prefers avoiding CamelCase in variables, function names, etc. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 12 ++-- drivers/net/fm10k/base/fm10k_tlv.c | 24 drivers/net/fm10k/base/fm10k_type.h | 18 -- 3

[dpdk-dev] [PATCH v2 09/16] fm10k/base: do not use CamelCase

2016-01-27 Thread Wang Xiao W
The upstream Linux kernel community prefers avoiding CamelCase in variables, function names, etc. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_type.h | 14 +++--- drivers/net/fm10k/fm10k_ethdev.c| 24 2 files changed, 19 insertions(+), 19

[dpdk-dev] [PATCH v2 10/16] fm10k/base: use memcpy for mac addr copy

2016-01-27 Thread Wang Xiao W
Use memcpy instead of copying MAC address byte-by-byte. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_pf.c b/drivers/net/fm10k/base/fm10k_pf.c index 7d48210..a1469aa

[dpdk-dev] [PATCH v2 11/16] fm10k/base: allow removal of is_slot_appropriate function

2016-01-27 Thread Wang Xiao W
e function call. Add a NO_IS_SLOT_APPROPRIATE_CHECK definition which can be defined during strip process to remove the code. If left undefined (the default) then the code will all be active and no driver changes should be necessary. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_

[dpdk-dev] [PATCH v2 12/16] fm10k/base: consistently use VLAN ID when referencing vid variables

2016-01-27 Thread Wang Xiao W
The vid variable name is shorthand for VLAN ID, so we should use this in comments explaining what is happening. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_pf.c b

[dpdk-dev] [PATCH v2 13/16] fm10k/base: fix comment per upstream review changes

2016-01-27 Thread Wang Xiao W
names in DEBUGFUNC(), duplicate comments and a stubbed-out header comment for fm10k_sm_mbx_init. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_mbx.c | 61 ++ drivers/net/fm10k/base/fm10k_mbx.h | 4 +-- drivers/net/fm10k/base/fm10k_pf.c | 12

[dpdk-dev] [PATCH v2 14/16] fm10k/base: TLV structures must be 4byte aligned, not 1byte aligned

2016-01-27 Thread Wang Xiao W
added that had a u8 or similar sticking on the end things would break. Fix this by using 4byte alignment which will prevent the TLV LE_STRUCT code from breaking. Update the comment explaining that we need 4byte alignment of our structures. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base

[dpdk-dev] [PATCH v2 16/16] fm10k/base: minor cleanups

2016-01-27 Thread Wang Xiao W
Some cleanups to better reflect the code that was actually pushed out to the upstream Linux community. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_mbx.h | 7 -- drivers/net/fm10k/base/fm10k_pf.h | 4 -- drivers/net/fm10k/base/fm10k_type.h | 132

[dpdk-dev] [PATCH v2 15/16] fm10k/base: move constants to the right of binary operators

2016-01-27 Thread Wang Xiao W
The upstream Linux kernel community prefers constants are to the right of binary operators. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_pf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/fm10k/base/fm10k_pf.c b/drivers/net/fm10k/base

[dpdk-dev] [PATCH v4 0/3] fm10k: enable FTAG based forwarding

2016-03-01 Thread Wang Xiao W
a notice in the doc to emphasize that application should ensure an appropriate FTAG for every frame in FTAG based forwarding mode. Wang Xiao W (3): fm10k: enable FTAG based forwarding doc: add introduction for fm10k FTAG based forwarding doc: update release note for fm10k FTAG suppo

[dpdk-dev] [PATCH v4 1/3] fm10k: enable FTAG based forwarding

2016-03-01 Thread Wang Xiao W
in FTAG rather than mac and vlan table. To activate this feature, user needs to pass a devargs parameter to eal for fm10k device like "-w :84:00.0,enable_ftag=1". Currently this feature is supported only on PF, because FM10K_PFVTCTL register is read-only for VF. Signed-off-by: W

[dpdk-dev] [PATCH v4 2/3] doc: add introduction for fm10k FTAG based forwarding

2016-03-01 Thread Wang Xiao W
Add a brief introduction on FTAG, describe what's FTAG and how it works in forwarding. Signed-off-by: Wang Xiao W --- doc/guides/nics/fm10k.rst | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/fm10k.rst b/doc/guides/nics/fm10k.rst

[dpdk-dev] [PATCH v4 3/3] doc: update release note for fm10k FTAG support

2016-03-01 Thread Wang Xiao W
Update the 16_04 release note. Signed-off-by: Wang Xiao W --- doc/guides/rel_notes/release_16_04.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/rel_notes/release_16_04.rst b/doc/guides/rel_notes/release_16_04.rst index 73494f9..c3ee8b1 100644 --- a/doc/guides/rel_notes

[dpdk-dev] [PATCH v4 1/3] fm10k: enable FTAG based forwarding

2016-03-01 Thread Wang, Xiao W
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, March 1, 2016 3:36 PM > To: Wang, Xiao W > Cc: dev at dpdk.org; Chen, Jing D > Subject: Re: [dpdk-dev] [PATCH v4 1/3] fm10k: enable FTAG based forwarding > > 201

[dpdk-dev] [PATCH v4 1/3] fm10k: enable FTAG based forwarding

2016-03-02 Thread Wang, Xiao W
Hi, > -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Wednesday, March 2, 2016 6:38 AM > To: Wang, Xiao W > Cc: Chen, Jing D ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v4 1/3] fm10k: enable FTAG based forwarding >

[dpdk-dev] [PATCH v5 0/2] fm10k: enable FTAG based forwarding

2016-03-02 Thread Wang Xiao W
ot; instead of -1 in VF FTAG use case. v2: * Gave an error message for VF FTAG use case. * Added a notice in the doc to emphasize that application should ensure an appropriate FTAG for every frame in FTAG based forwarding mode. Wang Xiao W (2): fm10k: enable FTAG based forwarding doc: add in

[dpdk-dev] [PATCH v5 1/2] fm10k: enable FTAG based forwarding

2016-03-02 Thread Wang Xiao W
in FTAG rather than mac and vlan table. To activate this feature, user needs to pass a devargs parameter to eal for fm10k device like "-w :84:00.0,enable_ftag=1". Currently this feature is supported only on PF, because FM10K_PFVTCTL register is read-only for VF. Signed-off-by: W

[dpdk-dev] [PATCH v5 2/2] doc: add introduction for fm10k FTAG based forwarding

2016-03-02 Thread Wang Xiao W
Add a brief introduction on FTAG, describe what's FTAG and how it works in forwarding. Signed-off-by: Wang Xiao W --- doc/guides/nics/fm10k.rst | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/fm10k.rst b/doc/guides/nics/fm10k.rst

[dpdk-dev] [PATCH v2] ixgbe: support multicast promiscuous mode on VF

2016-03-03 Thread Wang, Xiao W
Hi, > > > + > > > + err = mbx->ops.write_posted(hw, msgbuf, 2, 0); > > > + if (err) > > > + return err; > > > + > > > + err = mbx->ops.read_posted(hw, msgbuf, 2, 0); > > > > Is it more reasonable to read a message of size 1 than 2? Pf side only > > write 1 word into mbx. > Thanks for the c

[dpdk-dev] [PATCH v3 00/18] fm10k: update shared code

2016-03-08 Thread Wang, Xiao W
> -Original Message- > From: Richardson, Bruce > Sent: Tuesday, March 8, 2016 9:24 PM > To: Wang, Xiao W ; Chen, Jing D > > Cc: Chen, Jing D ; dev at dpdk.org; He, Shaopeng > > Subject: Re: [PATCH v3 00/18] fm10k: update shared code > > On Fri, Feb 19,

[dpdk-dev] [PATCH v3 00/18] fm10k: update shared code

2016-03-08 Thread Wang, Xiao W
Hi Mark, > -Original Message- > From: Chen, Jing D > Sent: Tuesday, March 8, 2016 10:25 PM > To: Wang, Xiao W ; Richardson, Bruce > > Cc: dev at dpdk.org; He, Shaopeng > Subject: RE: [PATCH v3 00/18] fm10k: update shared code > > Hi, Xiao > > >

[dpdk-dev] [PATCH] e1000: enable igb TSO support

2015-10-10 Thread Wang, Xiao W
-Original Message- From: Zhang, Helin Sent: Saturday, October 10, 2015 11:57 AM To: Wang, Xiao W; dev at dpdk.org Subject: RE: [dpdk-dev] [PATCH] e1000: enable igb TSO support > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Wang Xiao W

[dpdk-dev] [PATCH v2 1/2] e1000: enable igb TSO support

2015-10-10 Thread Wang Xiao W
This patch enables igb TSO feature, the feature works on both PF and VF. The TCP segmentation offload needs to write the offload related information into the advanced context descriptors, which is similar to checksum offload. Signed-off-by: Wang Xiao W --- drivers/net/e1000/igb_ethdev.c | 6

[dpdk-dev] [PATCH v2 2/2] doc: update release note for igb TSO support

2015-10-10 Thread Wang Xiao W
Signed-off-by: Wang Xiao W --- doc/guides/rel_notes/release_2_2.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 5687676..74ebd49 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides

[dpdk-dev] [PATCH v2 0/2] e1000: enable igb TSO support

2015-10-10 Thread Wang Xiao W
v2: * Reworded the old comment about union igb_vlan_macip which was no more used. * Corrected typo in line "There're some limitaions in hardware for TCP segmentaion offload". * Added "unlikely" in check_tso_para function. v1: * Initial version for igb TSO feature.

[dpdk-dev] [PATCH v2 0/2] fm10k: enable TSO support

2015-10-12 Thread Wang Xiao W
v2: * Updated release note for the new feature. * Added "likely" in TSO parameters checking. v1: * Initial version for fm10k TSO feature. Wang Xiao W (2): fm10k: enable TSO support doc: update release note for fm10k TSO support doc/guides/rel_notes/release_2_2.rst | 4 d

[dpdk-dev] [PATCH v2 1/2] fm10k: enable TSO support

2015-10-12 Thread Wang Xiao W
This patch enables fm10k TSO feature for both non-tunneling packet and tunneling packet. Signed-off-by: Wang Xiao W --- drivers/net/fm10k/base/fm10k_osdep.h | 5 + drivers/net/fm10k/fm10k_ethdev.c | 3 ++- drivers/net/fm10k/fm10k_rxtx.c | 21 ++--- 3 files

[dpdk-dev] [PATCH v2 2/2] doc: update release note for fm10k TSO support

2015-10-12 Thread Wang Xiao W
Signed-off-by: Wang Xiao W --- doc/guides/rel_notes/release_2_2.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 5687676..ab01ebb 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides

<    1   2   3   4   >