[dpdk-dev] [PATCH 22/31] app/testpmd: use multicast promiscuous mode on i40e

2016-12-02 Thread Wenzhuo Lu
Add testpmd CLI to set VF multicast promiscuous mode on i40e. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 83 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 8 +++ 2 files changed, 91 insertions(+) diff --git a/app/test-pmd

[dpdk-dev] [PATCH 24/31] app/testpmd: add command to test VF VLAN tag on i40e

2016-12-02 Thread Wenzhuo Lu
command is: set vf vlan tag port_id vf_id on|off Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 90 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 97 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app

[dpdk-dev] [PATCH 21/31] app/testpmd: use unicast promiscuous mode on i40e

2016-12-02 Thread Wenzhuo Lu
Add testpmd CLI to set VF unicast promiscuous mode on i40e. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 89 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 8 +++ 2 files changed, 97 insertions(+) diff --git a/app/test-pmd/cmdline.c

[dpdk-dev] [PATCH 25/31] app/testpmd: handle i40e in VF VLAN filter command

2016-12-02 Thread Wenzhuo Lu
modify set_vf_rx_vlan function to handle the i40e PMD. Signed-off-by: Bernard Iremonger --- app/test-pmd/config.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 36c47ab..0368dc6 100644 --- a/app/test-pmd/c

[dpdk-dev] [PATCH 26/31] app/testpmd: initialize receive mode for VMDq

2016-12-02 Thread Wenzhuo Lu
Initialise VMDq in the init_port_config function in a similar way to how it is done in the VMDq sample application. Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c

[dpdk-dev] [PATCH 23/31] app/testpmd: add command to test VF broadcast mode on i40e

2016-12-02 Thread Wenzhuo Lu
Add command to call rte_pmd_i40e_set_vf_broadcast. Add set vf broadcast in testpmd_funcs.rst file. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 84 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 91 insert

[dpdk-dev] [PATCH 28/31] net/i40e: return correct vsi_id

2016-12-02 Thread Wenzhuo Lu
PF host didn't return correct VSI id to VF. This change fix it. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_pf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c index 0f582ed..8319c2c 100644 --- a/driver

[dpdk-dev] [PATCH 27/31] net/i40e: change version number to support Linux VF

2016-12-02 Thread Wenzhuo Lu
i40e PF host only support to work with DPDK VF driver, Linux VF driver is not supported. This change will enhance in version number returned. Current version info returned won't be able to be recognized by Linux VF driver, change to values that both DPDK VF and Linux driver can recognize. The exp

[dpdk-dev] [PATCH 30/31] net/i40e: support Linux VF to configure IRQ link list

2016-12-02 Thread Wenzhuo Lu
i40e PF host only support to work with DPDK VF driver, Linux VF driver is not supported. This change will enhance in configuring IRQ link list. This Change will identify VF client by number of vector requested. DPDK VF will ask only single one while Linux VF will request at least 2. It will have d

[dpdk-dev] [PATCH 31/31] i40e: enhance in sanity check of mac

2016-12-02 Thread Wenzhuo Lu
When VF sends request to add a new mac address, PF host will check if it's a non-zero or uncast address, or it will return with error. In fact, VF still can set multicast address. This change remove to check if it's a unicast address. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_pf

[dpdk-dev] [PATCH 29/31] net/i40e: parse more VF parameter and configure

2016-12-02 Thread Wenzhuo Lu
When VF requested to configure TX queue, a few parameters are missed to be configured in PF host. This change have more fields parsed and configured for TX context. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_pf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --gi

[dpdk-dev] [PATCH v6 3/3] net/iavf: enable AVX512 for TX

2020-10-27 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the TX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- doc/guides/rel_notes/release_20_11.rst | 3 + drivers/net/iavf/iavf_ethdev.c

[dpdk-dev] [PATCH v6 1/3] net/iavf: enable AVX512 for legacy RX

2020-10-27 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the legacy RX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 29 +- drivers/net/iavf

[dpdk-dev] [PATCH v6 2/3] net/iavf: enable AVX512 for flexible RX

2020-10-27 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the flexible RX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 10 + drivers/net/iavf

[dpdk-dev] [PATCH v6 0/3] enable AVX512 for iavf

2020-10-27 Thread Wenzhuo Lu
fix compile issue for AVX512BW. Wenzhuo Lu (3): net/iavf: enable AVX512 for legacy RX net/iavf: enable AVX512 for flexible RX net/iavf: enable AVX512 for TX doc/guides/rel_notes/release_20_11.rst |3 + drivers/net/iavf/iavf_ethdev.c |3 +- drivers/net/iavf/iavf_rxtx.c

[dpdk-dev] [PATCH v7 2/3] net/iavf: enable AVX512 for flexible Rx

2020-10-28 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the flexible Rx descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 10 + drivers/net/iavf

[dpdk-dev] [PATCH v7 0/3] enable AVX512 for iavf

2020-10-28 Thread Wenzhuo Lu
fix compile issue for AVX512BW. v7: rebased on next-net_intel. Wenzhuo Lu (3): net/iavf: enable AVX512 for legacy Rx net/iavf: enable AVX512 for flexible Rx net/iavf: enable AVX512 for Tx doc/guides/rel_notes/release_20_11.rst |3 + drivers/net/iavf/iavf_ethdev.c |3 +-

[dpdk-dev] [PATCH v7 1/3] net/iavf: enable AVX512 for legacy Rx

2020-10-28 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the legacy Rx descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 29 +- drivers/net/iavf

[dpdk-dev] [PATCH v7 3/3] net/iavf: enable AVX512 for Tx

2020-10-28 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the Tx descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- doc/guides/rel_notes/release_20_11.rst | 3 + drivers/net/iavf/iavf_ethdev.c

[dpdk-dev] [PATCH] ixgbe: fix wrong VMDq function name

2017-01-05 Thread Wenzhuo Lu
The function name ixgbe_vmdq_mode_check is not right. This function checks if Virtualization Technology is enabled. It's for both VMDq and IOV. Others may be misled by the current name. Fixes: fe3a45fd4104 ("ixgbe: add VMDq support") CC: sta...@dpdk.org Signed-off-by: Wenzhuo L

[dpdk-dev] [PATCH v2] ixgbe: fix wrong VMDq function name

2017-01-09 Thread Wenzhuo Lu
The function name ixgbe_vmdq_mode_check is not right. This function checks if Virtualization Technology is enabled. It's for both VMDq and IOV. Others may be misled by the current name. Fixes: fe3a45fd4104 ("ixgbe: add VMDq support") CC: sta...@dpdk.org Signed-off-by: Wenzh

[dpdk-dev] [PATCH v8 00/25] Support VFD on i40e

2017-01-09 Thread Wenzhuo Lu
Qi Zhang (3): net/i40e: enable VF MTU change net/i40e: fix VF reset flow net/i40e: set/clear VF stats from PF Wenzhuo Lu (10): net/i40e: support link status notification net/i40e: add callback to user on VF to PF mbox msg net/i40e: set VF MAC anti-spoofing from PF net/i40e: set VF

[dpdk-dev] [PATCH v8 01/25] net/i40e: support link status notification

2017-01-09 Thread Wenzhuo Lu
Add an API to expose the ability, that PF can notify VF when link status changes, to APP. So if PF APP doesn't want to enable interruption but check link status by itself, PF APP can let VF know link status changed. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/Makefile

[dpdk-dev] [PATCH v8 03/25] net/i40e: set VF MAC anti-spoofing from PF

2017-01-09 Thread Wenzhuo Lu
Support enabling/disabling VF MAC anti-spoofing from PF. User can call the API on PF to enable/disable a specific VF's MAC anti-spoofing. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 62 +++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH v8 02/25] net/i40e: add callback to user on VF to PF mbox msg

2017-01-09 Thread Wenzhuo Lu
The callback asks the user application if it is allowed to perform the mailbox messages. If the return value from user is RTE_PMD_I40E_MB_EVENT_PROCEED then continue. If ACK or NACK, do nothing and send not_supported to VF. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_pf.c | 230

[dpdk-dev] [PATCH v8 04/25] net/i40e: set VF VLAN anti-spoofing from PF

2017-01-09 Thread Wenzhuo Lu
Support enabling/disabling VF VLAN anti-spoofing from PF. User can call the API on PF to enable/disable a specific VF's VLAN anti-spoofing. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 137 -- drivers/net/i40e/i40e_eth

[dpdk-dev] [PATCH v8 05/25] net/i40e: set Tx loopback from PF

2017-01-09 Thread Wenzhuo Lu
Support enabling/disabling TX loopback from PF. User can call the API on PF to enable/disable TX loopback for all the PF and VFs. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 238 ++ drivers/net/i40e/rte_pmd_i40e.h | 16

[dpdk-dev] [PATCH v8 06/25] net/i40e: set VF unicast promisc mode from PF

2017-01-09 Thread Wenzhuo Lu
Support enabling/disabling VF unicast promiscuous mode from PF. User can call the API on PF to enable/disable a specific VF's unicast promiscuous mode. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 38 +++ drivers/net/i40e/rte_pmd_i

[dpdk-dev] [PATCH v8 07/25] net/i40e: set VF multicast promisc mode from PF

2017-01-09 Thread Wenzhuo Lu
Support enabling/disabling VF multicast promiscuous mode from PF. User can call the API on PF to enable/disable a specific VF's multicast promiscuous mode. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 38 +++ drivers/net

[dpdk-dev] [PATCH v8 08/25] net/i40e: enable VF MTU change

2017-01-09 Thread Wenzhuo Lu
From: Qi Zhang This patch implement mtu_set ops for i40e VF. Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev_vf.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 12da0ec

[dpdk-dev] [PATCH v8 09/25] net/i40e: fix VF reset flow

2017-01-09 Thread Wenzhuo Lu
From: Qi Zhang Add missing step during VF reset: PF should set I40E_VFGEN_RSTAT to ACTIVE at end of the VF reset operation or VF driver may not able to detect that reset is already completed. This patch also remove the unnecessary enum for vfr state. Fixes: 4861cde46116 ("i40e: new poll mode dri

[dpdk-dev] [PATCH v8 10/25] net/i40e: set VF MAC from PF support

2017-01-09 Thread Wenzhuo Lu
From: Ferruh Yigit Support setting VF MAC address from PF. User can call the API on PF to set a specific VF's MAC address. PF should set MAC address before VF initialized, if PF sets the MAC address after VF initialized, new MAC address won't be effective until VF reinitialized. This will remov

[dpdk-dev] [PATCH v8 11/25] net/i40e: set VF MAC from VF support

2017-01-09 Thread Wenzhuo Lu
From: Ferruh Yigit Support changing VF default MAC address. This function is not supported if PF set the MAC address for the PF. Signed-off-by: Ferruh Yigit --- drivers/net/i40e/i40e_ethdev.h| 4 +++- drivers/net/i40e/i40e_ethdev_vf.c | 49 +-- 2 files

[dpdk-dev] [PATCH v8 12/25] net/i40e: fix VF MAC address assignment

2017-01-09 Thread Wenzhuo Lu
From: Ferruh Yigit If PF sets vf->mac_addr, in VF initialization hw->mac.addr will be set to that same value. It is possible to check if PF set a MAC address or not through the hw->mac.addr variable. hw->mac.addr set by i40e_vf_parse_hw_config(), call stack is: In PF side i40e_pf_host_process_c

[dpdk-dev] [PATCH v8 13/25] net/i40e: set VF VLAN strip from PF

2017-01-09 Thread Wenzhuo Lu
From: "Chen Jing D(Mark)" Add a function to configure vlan strip enable/disable for specific SRIOV VF device. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_ethdev.c| 33 +++ drivers/net/i40e/rte_pmd_i40e.h | 19 ++

[dpdk-dev] [PATCH v8 14/25] net/i40e: set VF VLAN insertion from PF

2017-01-09 Thread Wenzhuo Lu
From: Bernard Iremonger Support inserting VF VLAN id from PF. User can call the API on PF to insert a VLAN id to a specific VF. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 62 +++ drivers/net/i40e/rte_pmd_i40e.h | 19 ++

[dpdk-dev] [PATCH v8 15/25] net/i40e: set VF broadcast mode from PF

2017-01-09 Thread Wenzhuo Lu
From: Bernard Iremonger Support enabling/disabling VF broadcast mode from PF. User can call the API on PF to enable/disable a specific VF's broadcast mode. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 53 +++ drivers/net/i40e/rte_

[dpdk-dev] [PATCH v8 16/25] net/i40e: set VF VLAN tag from PF

2017-01-09 Thread Wenzhuo Lu
From: Bernard Iremonger Add rte_pmd_i40e_set_vf_vlan_tag API. User can call the API on PF to enable/disable a specific VF's VLAN tag. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 65 +++ drivers/net/i40e/rte_pmd_i40e.h |

[dpdk-dev] [PATCH v8 17/25] net/i40e: set VF VLAN filter from PF

2017-01-09 Thread Wenzhuo Lu
From: Bernard Iremonger add rte_pmd_i40e_set_vf_vlan_filter API. User can call the API on PF to enable/disable a set of VF's VLAN filters. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 60 +++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH v8 18/25] app/testpmd: use VFD APIs on i40e

2017-01-09 Thread Wenzhuo Lu
The new VF Daemon (VFD) APIs is implemented on i40e. Change testpmd code to use them, including VF MAC anti-spoofing, VF VLAN anti-spoofing, TX loopback, VF VLAN strip, VF VLAN insert. Signed-off-by: Wenzhuo Lu Signed-off-by: Chen Jing D(Mark) Signed-off-by: Bernard Iremonger --- app/test-pmd

[dpdk-dev] [PATCH v8 19/25] app/testpmd: use unicast promiscuous mode on i40e

2017-01-09 Thread Wenzhuo Lu
Add testpmd CLI to set VF unicast promiscuous mode on i40e. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 97 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 9 +++ 2 files changed, 106 insertions(+) diff --git a/app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v8 20/25] app/testpmd: use multicast promiscuous mode on i40e

2017-01-09 Thread Wenzhuo Lu
Add testpmd CLI to set VF multicast promiscuous mode on i40e. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 97 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 9 +++ 2 files changed, 106 insertions(+) diff --git a/app/test-pmd

[dpdk-dev] [PATCH v8 22/25] app/testpmd: add command to test VF VLAN tag on i40e

2017-01-09 Thread Wenzhuo Lu
From: Bernard Iremonger command is: set vf vlan tag port_id vf_id on|off Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 103 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 ++ 2 files changed, 110 insertions(+) diff --git a/a

[dpdk-dev] [PATCH v8 23/25] app/testpmd: handle i40e in VF VLAN filter command

2017-01-09 Thread Wenzhuo Lu
From: Bernard Iremonger modify set_vf_rx_vlan function to handle the i40e PMD. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 41 ++--- app/test-pmd/config.c | 13 - app/test-pmd/testpmd.h | 2 -- 3 files changed, 34 insertions(+

[dpdk-dev] [PATCH v8 21/25] app/testpmd: add command to test VF broadcast mode on i40e

2017-01-09 Thread Wenzhuo Lu
From: Bernard Iremonger Add command to call rte_pmd_i40e_set_vf_broadcast. Add set vf broadcast in testpmd_funcs.rst file. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 97 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++

[dpdk-dev] [PATCH v8 24/25] net/i40e: enhance in sanity check of MAC

2017-01-09 Thread Wenzhuo Lu
From: "Chen Jing D(Mark)" When VF sends request to add a new MAC address, PF host will check if it's a non-zero or unicast address, or it will return with error. In fact, VF still can set multicast address. This change remove to check if it's a unicast address. Signed-off-by: Chen Jing D(Mark)

[dpdk-dev] [PATCH v8 25/25] net/i40e: set/clear VF stats from PF

2017-01-09 Thread Wenzhuo Lu
From: Qi Zhang This patch add support to get/clear VF statistics from PF side. Two APIs are added: rte_pmd_i40e_get_vf_stats. rte_pmd_i40e_reset_vf_stats. Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev.c| 73 +++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH] app/testpmd: fix ixgbe private API calling

2017-01-10 Thread Wenzhuo Lu
d: add ixgbe VF management") CC: sta...@dpdk.org Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 101 +++-- 1 file changed, 81 insertions(+), 20 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index f768b6b..172861a 10064

[dpdk-dev] [PATCH v9 00/26] Support VFD on i40e - EXPERIMENTAL

2017-01-12 Thread Wenzhuo Lu
enhance in sanity check of MAC Ferruh Yigit (3): net/i40e: set VF MAC from PF support net/i40e: set VF MAC from VF support net/i40e: fix VF MAC address assignment Qi Zhang (3): net/i40e: enable VF MTU change net/i40e: fix VF reset flow net/i40e: set/clear VF stats from PF Wenzhuo Lu (

[dpdk-dev] [PATCH v9 01/26] net/i40e: support link status notification

2017-01-12 Thread Wenzhuo Lu
Add an API to expose the ability, that PF can notify VF when link status changes, to APP. So if PF APP doesn't want to enable interruption but check link status by itself, PF APP can let VF know link status changed. Signed-off-by: Wenzhuo Lu --- MAINTAINERS

[dpdk-dev] [PATCH v9 03/26] net/i40e: set VF MAC anti-spoofing from PF

2017-01-12 Thread Wenzhuo Lu
Support enabling/disabling VF MAC anti-spoofing from PF. User can call the API on PF to enable/disable a specific VF's MAC anti-spoofing. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 62 +++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH v9 02/26] net/i40e: add callback to user on VF to PF mbox msg

2017-01-12 Thread Wenzhuo Lu
The callback asks the user application if it is allowed to perform the mailbox messages. If the return value from user is RTE_PMD_I40E_MB_EVENT_PROCEED then continue. If ACK or NACK, do nothing and send not_supported to VF. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_pf.c | 230

[dpdk-dev] [PATCH v9 06/26] net/i40e: set VF unicast promisc mode from PF

2017-01-12 Thread Wenzhuo Lu
Support enabling/disabling VF unicast promiscuous mode from PF. User can call the API on PF to enable/disable a specific VF's unicast promiscuous mode. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 38 +++ drivers/net/i40e/rte_pmd_i

[dpdk-dev] [PATCH v9 04/26] net/i40e: set VF VLAN anti-spoofing from PF

2017-01-12 Thread Wenzhuo Lu
Support enabling/disabling VF VLAN anti-spoofing from PF. User can call the API on PF to enable/disable a specific VF's VLAN anti-spoofing. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 137 -- drivers/net/i40e/i40e_eth

[dpdk-dev] [PATCH v9 05/26] net/i40e: set Tx loopback from PF

2017-01-12 Thread Wenzhuo Lu
Support enabling/disabling TX loopback from PF. User can call the API on PF to enable/disable TX loopback for all the PF and VFs. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 238 ++ drivers/net/i40e/rte_pmd_i40e.h | 16

[dpdk-dev] [PATCH v9 08/26] net/i40e: enable VF MTU change

2017-01-12 Thread Wenzhuo Lu
From: Qi Zhang This patch implement mtu_set ops for i40e VF. Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev_vf.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 12da0ec

[dpdk-dev] [PATCH v9 09/26] net/i40e: fix VF reset flow

2017-01-12 Thread Wenzhuo Lu
From: Qi Zhang Add missing step during VF reset: PF should set I40E_VFGEN_RSTAT to ACTIVE at end of the VF reset operation or VF driver may not able to detect that reset is already completed. This patch also remove the unnecessary enum for vfr state. Fixes: 4861cde46116 ("i40e: new poll mode dri

[dpdk-dev] [PATCH v9 07/26] net/i40e: set VF multicast promisc mode from PF

2017-01-12 Thread Wenzhuo Lu
Support enabling/disabling VF multicast promiscuous mode from PF. User can call the API on PF to enable/disable a specific VF's multicast promiscuous mode. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 38 +++ drivers/net

[dpdk-dev] [PATCH v9 11/26] net/i40e: set VF MAC from VF support

2017-01-12 Thread Wenzhuo Lu
From: Ferruh Yigit Support changing VF default MAC address. This function is not supported if PF set the MAC address for the PF. Signed-off-by: Ferruh Yigit --- drivers/net/i40e/i40e_ethdev.h| 4 +++- drivers/net/i40e/i40e_ethdev_vf.c | 49 +-- 2 files

[dpdk-dev] [PATCH v9 10/26] net/i40e: set VF MAC from PF support

2017-01-12 Thread Wenzhuo Lu
From: Ferruh Yigit Support setting VF MAC address from PF. User can call the API on PF to set a specific VF's MAC address. PF should set MAC address before VF initialized, if PF sets the MAC address after VF initialized, new MAC address won't be effective until VF reinitialized. This will remov

[dpdk-dev] [PATCH v9 12/26] net/i40e: fix VF MAC address assignment

2017-01-12 Thread Wenzhuo Lu
From: Ferruh Yigit If PF sets vf->mac_addr, in VF initialization hw->mac.addr will be set to that same value. It is possible to check if PF set a MAC address or not through the hw->mac.addr variable. hw->mac.addr set by i40e_vf_parse_hw_config(), call stack is: In PF side i40e_pf_host_process_c

[dpdk-dev] [PATCH v9 13/26] net/i40e: set VF VLAN strip from PF

2017-01-12 Thread Wenzhuo Lu
From: "Chen Jing D(Mark)" Add a function to configure vlan strip enable/disable for specific SRIOV VF device. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_ethdev.c| 33 +++ drivers/net/i40e/rte_pmd_i40e.h | 19 ++

[dpdk-dev] [PATCH v9 14/26] net/i40e: set VF VLAN insertion from PF

2017-01-12 Thread Wenzhuo Lu
From: Bernard Iremonger Support inserting VF VLAN id from PF. User can call the API on PF to insert a VLAN id to a specific VF. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 62 +++ drivers/net/i40e/rte_pmd_i40e.h | 19 ++

[dpdk-dev] [PATCH v9 16/26] net/i40e: set VF VLAN tag from PF

2017-01-12 Thread Wenzhuo Lu
From: Bernard Iremonger Add rte_pmd_i40e_set_vf_vlan_tag API. User can call the API on PF to enable/disable a specific VF's VLAN tag. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 65 +++ drivers/net/i40e/rte_pmd_i40e.h |

[dpdk-dev] [PATCH v9 15/26] net/i40e: set VF broadcast mode from PF

2017-01-12 Thread Wenzhuo Lu
From: Bernard Iremonger Support enabling/disabling VF broadcast mode from PF. User can call the API on PF to enable/disable a specific VF's broadcast mode. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 53 +++ drivers/net/i40e/rte_

[dpdk-dev] [PATCH v9 17/26] net/i40e: set VF VLAN filter from PF

2017-01-12 Thread Wenzhuo Lu
From: Bernard Iremonger add rte_pmd_i40e_set_vf_vlan_filter API. User can call the API on PF to enable/disable a set of VF's VLAN filters. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 60 +++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH v9 18/26] app/testpmd: use VFD APIs on i40e

2017-01-12 Thread Wenzhuo Lu
The new VF Daemon (VFD) APIs is implemented on i40e. Change testpmd code to use them, including VF MAC anti-spoofing, VF VLAN anti-spoofing, TX loopback, VF VLAN strip, VF VLAN insert. Signed-off-by: Wenzhuo Lu Signed-off-by: Chen Jing D(Mark) Signed-off-by: Bernard Iremonger --- app/test-pmd

[dpdk-dev] [PATCH v9 22/26] app/testpmd: add command to test VF VLAN tag on i40e

2017-01-12 Thread Wenzhuo Lu
From: Bernard Iremonger command is: set vf vlan tag port_id vf_id on|off Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 103 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 ++ 2 files changed, 110 insertions(+) diff --git a/a

[dpdk-dev] [PATCH v9 20/26] app/testpmd: use multicast promiscuous mode on i40e

2017-01-12 Thread Wenzhuo Lu
Add testpmd CLI to set VF multicast promiscuous mode on i40e. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 97 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 9 +++ 2 files changed, 106 insertions(+) diff --git a/app/test-pmd

[dpdk-dev] [PATCH v9 21/26] app/testpmd: add command to test VF broadcast mode on i40e

2017-01-12 Thread Wenzhuo Lu
From: Bernard Iremonger Add command to call rte_pmd_i40e_set_vf_broadcast. Add set vf broadcast in testpmd_funcs.rst file. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 97 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++

[dpdk-dev] [PATCH v9 19/26] app/testpmd: use unicast promiscuous mode on i40e

2017-01-12 Thread Wenzhuo Lu
Add testpmd CLI to set VF unicast promiscuous mode on i40e. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 97 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 9 +++ 2 files changed, 106 insertions(+) diff --git a/app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v9 24/26] net/i40e: enhance in sanity check of MAC

2017-01-12 Thread Wenzhuo Lu
From: "Chen Jing D(Mark)" When VF sends request to add a new MAC address, PF host will check if it's a non-zero or unicast address, or it will return with error. In fact, VF still can set multicast address. This change remove to check if it's a unicast address. Signed-off-by: Chen Jing D(Mark)

[dpdk-dev] [PATCH v9 25/26] net/i40e: set/clear VF stats from PF

2017-01-12 Thread Wenzhuo Lu
From: Qi Zhang This patch add support to get/clear VF statistics from PF side. Two APIs are added: rte_pmd_i40e_get_vf_stats. rte_pmd_i40e_reset_vf_stats. Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev.c| 73 +++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH v9 26/26] doc: update doc for VFD

2017-01-12 Thread Wenzhuo Lu
Update the NIC doc and release note. Signed-off-by: Wenzhuo Lu --- doc/guides/nics/i40e.rst | 1 + doc/guides/rel_notes/release_17_02.rst | 29 + 2 files changed, 30 insertions(+) diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index

[dpdk-dev] [PATCH v9 23/26] app/testpmd: handle i40e in VF VLAN filter command

2017-01-12 Thread Wenzhuo Lu
From: Bernard Iremonger modify set_vf_rx_vlan function to handle the i40e PMD. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 41 ++--- app/test-pmd/config.c | 13 - app/test-pmd/testpmd.h | 2 -- 3 files changed, 34 insertions(+

[dpdk-dev] [PATCH v10 02/26] net/i40e: add callback to user on VF to PF mbox msg

2017-01-15 Thread Wenzhuo Lu
The callback asks the user application if it is allowed to perform the mailbox messages. If the return value from user is RTE_PMD_I40E_MB_EVENT_PROCEED then continue. If ACK or NACK, do nothing and send not_supported to VF. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_pf.c | 230

[dpdk-dev] [PATCH v10 00/26] Support VFD on i40e - EXPERIMENTAL

2017-01-15 Thread Wenzhuo Lu
ble VF MTU change net/i40e: fix VF reset flow net/i40e: set/clear VF stats from PF Wenzhuo Lu (11): net/i40e: support link status notification net/i40e: add callback to user on VF to PF mbox msg net/i40e: set VF MAC anti-spoofing from PF net/i40e: set VF VLAN anti-spoofing from PF net/i4

[dpdk-dev] [PATCH v10 01/26] net/i40e: support link status notification

2017-01-15 Thread Wenzhuo Lu
Add an API to expose the ability, that PF can notify VF when link status changes, to APP. So if PF APP doesn't want to enable interruption but check link status by itself, PF APP can let VF know link status changed. Signed-off-by: Wenzhuo Lu --- MAINTAINERS

[dpdk-dev] [PATCH v10 04/26] net/i40e: set VF VLAN anti-spoofing from PF

2017-01-15 Thread Wenzhuo Lu
Support enabling/disabling VF VLAN anti-spoofing from PF. User can call the API on PF to enable/disable a specific VF's VLAN anti-spoofing. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 140 -- drivers/net/i40e/i40e_eth

[dpdk-dev] [PATCH v10 03/26] net/i40e: set VF MAC anti-spoofing from PF

2017-01-15 Thread Wenzhuo Lu
Support enabling/disabling VF MAC anti-spoofing from PF. User can call the API on PF to enable/disable a specific VF's MAC anti-spoofing. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 65 +++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH v10 06/26] net/i40e: set VF unicast promisc mode from PF

2017-01-15 Thread Wenzhuo Lu
Support enabling/disabling VF unicast promiscuous mode from PF. User can call the API on PF to enable/disable a specific VF's unicast promiscuous mode. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 41 +++ drivers/net/i40e/rte_pmd_i

[dpdk-dev] [PATCH v10 05/26] net/i40e: set Tx loopback from PF

2017-01-15 Thread Wenzhuo Lu
Support enabling/disabling TX loopback from PF. User can call the API on PF to enable/disable TX loopback for all the PF and VFs. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 241 ++ drivers/net/i40e/rte_pmd_i40e.h | 16

[dpdk-dev] [PATCH v10 07/26] net/i40e: set VF multicast promisc mode from PF

2017-01-15 Thread Wenzhuo Lu
Support enabling/disabling VF multicast promiscuous mode from PF. User can call the API on PF to enable/disable a specific VF's multicast promiscuous mode. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 41 +++ drivers/net

[dpdk-dev] [PATCH v10 09/26] net/i40e: fix VF reset flow

2017-01-15 Thread Wenzhuo Lu
From: Qi Zhang Add missing step during VF reset: PF should set I40E_VFGEN_RSTAT to ACTIVE at end of the VF reset operation or VF driver may not able to detect that reset is already completed. This patch also remove the unnecessary enum for vfr state. Fixes: 4861cde46116 ("i40e: new poll mode dri

[dpdk-dev] [PATCH v10 11/26] net/i40e: set VF MAC from VF support

2017-01-15 Thread Wenzhuo Lu
From: Ferruh Yigit Support changing VF default MAC address. This function is not supported if PF set the MAC address for the PF. Signed-off-by: Ferruh Yigit --- drivers/net/i40e/i40e_ethdev.h| 4 +++- drivers/net/i40e/i40e_ethdev_vf.c | 49 +-- 2 files

[dpdk-dev] [PATCH v10 08/26] net/i40e: enable VF MTU change

2017-01-15 Thread Wenzhuo Lu
From: Qi Zhang This patch implement mtu_set ops for i40e VF. Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev_vf.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index f50ac2d

[dpdk-dev] [PATCH v10 12/26] net/i40e: fix VF MAC address assignment

2017-01-15 Thread Wenzhuo Lu
From: Ferruh Yigit If PF sets vf->mac_addr, in VF initialization hw->mac.addr will be set to that same value. It is possible to check if PF set a MAC address or not through the hw->mac.addr variable. hw->mac.addr set by i40e_vf_parse_hw_config(), call stack is: In PF side i40e_pf_host_process_c

[dpdk-dev] [PATCH v10 10/26] net/i40e: set VF MAC from PF support

2017-01-15 Thread Wenzhuo Lu
From: Ferruh Yigit Support setting VF MAC address from PF. User can call the API on PF to set a specific VF's MAC address. PF should set MAC address before VF initialized, if PF sets the MAC address after VF initialized, new MAC address won't be effective until VF reinitialized. This will remov

[dpdk-dev] [PATCH v10 13/26] net/i40e: set VF VLAN strip from PF

2017-01-15 Thread Wenzhuo Lu
From: "Chen Jing D(Mark)" Add a function to configure vlan strip enable/disable for specific SRIOV VF device. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_ethdev.c| 37 +++ drivers/net/i40e/rte_pmd_i40e.h | 19 dr

[dpdk-dev] [PATCH v10 14/26] net/i40e: set VF VLAN insertion from PF

2017-01-15 Thread Wenzhuo Lu
From: Bernard Iremonger Support inserting VF VLAN id from PF. User can call the API on PF to insert a VLAN id to a specific VF. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 65 +++ drivers/net/i40e/rte_pmd_i40e.h | 19 ++

[dpdk-dev] [PATCH v10 16/26] net/i40e: set VF VLAN tag from PF

2017-01-15 Thread Wenzhuo Lu
From: Bernard Iremonger Add rte_pmd_i40e_set_vf_vlan_tag API. User can call the API on PF to enable/disable a specific VF's VLAN tag. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 68 +++ drivers/net/i40e/rte_pmd_i40e.h |

[dpdk-dev] [PATCH v10 15/26] net/i40e: set VF broadcast mode from PF

2017-01-15 Thread Wenzhuo Lu
From: Bernard Iremonger Support enabling/disabling VF broadcast mode from PF. User can call the API on PF to enable/disable a specific VF's broadcast mode. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 56 +++ drivers/net/i40e/rte_

[dpdk-dev] [PATCH v10 18/26] app/testpmd: use VFD APIs on i40e

2017-01-15 Thread Wenzhuo Lu
The new VF Daemon (VFD) APIs is implemented on i40e. Change testpmd code to use them, including VF MAC anti-spoofing, VF VLAN anti-spoofing, TX loopback, VF VLAN strip, VF VLAN insert. Signed-off-by: Wenzhuo Lu Signed-off-by: Chen Jing D(Mark) Signed-off-by: Bernard Iremonger --- app/test-pmd

[dpdk-dev] [PATCH v10 17/26] net/i40e: set VF VLAN filter from PF

2017-01-15 Thread Wenzhuo Lu
From: Bernard Iremonger add rte_pmd_i40e_set_vf_vlan_filter API. User can call the API on PF to enable/disable a set of VF's VLAN filters. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 63 +++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH v10 19/26] app/testpmd: use unicast promiscuous mode on i40e

2017-01-15 Thread Wenzhuo Lu
Add testpmd CLI to set VF unicast promiscuous mode on i40e. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 93 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 9 +++ 2 files changed, 102 insertions(+) diff --git a/app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v10 20/26] app/testpmd: use multicast promiscuous mode on i40e

2017-01-15 Thread Wenzhuo Lu
Add testpmd CLI to set VF multicast promiscuous mode on i40e. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 93 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 9 +++ 2 files changed, 102 insertions(+) diff --git a/app/test-pmd

[dpdk-dev] [PATCH v10 22/26] app/testpmd: add command to test VF VLAN tag on i40e

2017-01-15 Thread Wenzhuo Lu
From: Bernard Iremonger command is: set vf vlan tag port_id vf_id on|off Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 99 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 ++ 2 files changed, 106 insertions(+) diff --git a/ap

[dpdk-dev] [PATCH v10 21/26] app/testpmd: add command to test VF broadcast mode on i40e

2017-01-15 Thread Wenzhuo Lu
From: Bernard Iremonger Add command to call rte_pmd_i40e_set_vf_broadcast. Add set vf broadcast in testpmd_funcs.rst file. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 93 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++

[dpdk-dev] [PATCH v10 24/26] net/i40e: enhance in sanity check of MAC

2017-01-15 Thread Wenzhuo Lu
From: "Chen Jing D(Mark)" When VF sends request to add a new MAC address, PF host will check if it's a non-zero or unicast address, or it will return with error. In fact, VF still can set multicast address. This change remove to check if it's a unicast address. Signed-off-by: Chen Jing D(Mark)

[dpdk-dev] [PATCH v10 25/26] net/i40e: set/clear VF stats from PF

2017-01-15 Thread Wenzhuo Lu
From: Qi Zhang This patch add support to get/clear VF statistics from PF side. Two APIs are added: rte_pmd_i40e_get_vf_stats. rte_pmd_i40e_reset_vf_stats. Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev.c| 79 +++ drivers/net/i40e/rte_pmd_i40e.h

<    1   2   3   4   5   6   7   8   9   10   >