[dpdk-dev] [PATCH v6 6/6] l3fwd-power: fix a memory leak for non-ip packet

2016-02-05 Thread Shaopeng He
Previous l3fwd-power only processes IP and IPv6 packet, other packet's mbuf is not released, and causes a memory leak. This patch fixes this issue. Fixes: 3c0184cc ("examples: replace some offload flags with packet type") Signed-off-by: Shaopeng He Acked-by: Jing Chen Acked-by: M

[dpdk-dev] [PATCH v6 5/6] fm10k: make sure default VID available in dev_init

2016-02-05 Thread Shaopeng He
will be changed according to RX queue number, and probably will cause this transaction failed. Signed-off-by: Shaopeng He Acked-by: Jing Chen Acked-by: Michael Qiu --- drivers/net/fm10k/fm10k_ethdev.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/fm10k

[dpdk-dev] [PATCH v6 4/6] fm10k: add rx queue interrupt en/dis functions

2016-02-05 Thread Shaopeng He
Interrupt mode framework has enable/disable functions for individual rx queue, this patch implements these two functions. Signed-off-by: Shaopeng He Acked-by: Jing Chen Acked-by: Michael Qiu --- v2 change: - split one big patch into three smaller ones --- drivers/net/fm10k/fm10k_ethdev.c

[dpdk-dev] [PATCH v6 3/6] fm10k: remove rx queue interrupts when dev stops

2016-02-05 Thread Shaopeng He
Previous dev_stop function stops the rx/tx queues. This patch adds logic to disable rx queue interrupt, clean the datapath event and queue/vec map. Signed-off-by: Shaopeng He Acked-by: Jing Chen Acked-by: Michael Qiu --- v5 change: - remove one unnecessary NULL check for rte_free v2 change

[dpdk-dev] [PATCH v6 2/6] fm10k: setup rx queue interrupts for PF and VF

2016-02-05 Thread Shaopeng He
e.g. vfio-pci can work in fm10k interrupt mode. This patch uses the RXINT/INT_MAP registers to map interrupt causes (rx queue and other events) to vectors, and enable these interrupts through kernel drivers like vfio-pci. Signed-off-by: Shaopeng He Acked-by: Jing Chen Acked-by: Michael Qiu

[dpdk-dev] [PATCH v6 1/6] fm10k: implement rx_descriptor_done function

2016-02-05 Thread Shaopeng He
rx_descriptor_done is used by interrupt mode example application (l3fwd-power) to check rxd DD bit to decide the RX trend, then l3fwd-power will adjust the cpu frequency according to the result. Signed-off-by: Shaopeng He Acked-by: Jing Chen Acked-by: Michael Qiu --- v5 change: - fix a wrong

[dpdk-dev] [PATCH v6 0/6] interrupt mode for fm10k

2016-02-05 Thread Shaopeng He
: - reword some comments and commit messages - split one big patch into three smaller ones Shaopeng He (6): fm10k: implement rx_descriptor_done function fm10k: setup rx queue interrupts for PF and VF fm10k: remove rx queue interrupts when dev stops fm10k: add rx queue interrupt en/dis

[dpdk-dev] [PATCH v3] fm10k: fix switch manager high CPU usage

2016-02-05 Thread Shaopeng He
. This default value works for non-VMDq mode and current VMDq example. For advanced VMDq usage, e.g. different source MAC address for different TX queue, FTAG forwarding function could be used to change this default SGLORT value. Fixes: 9ae6068c ("fm10k: add dev start/stop") Signed-off-by: S

[dpdk-dev] [PATCH v2] fm10k: enable PCIe port level Loopback Suppression

2016-02-04 Thread Shaopeng He
for the ether port traffic. This patch assigns a SGLORT for each RX queue, and enables PCIe port level Loopback Suppression. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c

[dpdk-dev] [PATCH] fm10k: enable PCIe port level Loopback Suppression

2016-01-28 Thread Shaopeng He
. This patch assigns a SGLORT for each RX queue, and enables PCIe port level Loopback Suppression. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k

[dpdk-dev] [PATCH] fm10k: fix switch manager high CPU usage

2016-01-28 Thread Shaopeng He
and current VMDq example. For advanced VMDq usage, e.g. different source MAC address for different TX queue, FTAG forwarding function could be used to change this default SGLORT value. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[dpdk-dev] [PATCH v5 6/6] l3fwd-power: fix a memory leak for non-ip packet

2015-12-23 Thread Shaopeng He
Previous l3fwd-power only processes IP and IPv6 packet, other packet's mbuf is not released, and causes a memory leak. This patch fixes this issue. v4 change: - update release note inside the patch Signed-off-by: Shaopeng He --- doc/guides/rel_notes/release_2_3.rst | 6 ++ examples/l3fwd

[dpdk-dev] [PATCH v5 5/6] fm10k: make sure default VID available in dev_init

2015-12-23 Thread Shaopeng He
will be changed according to RX queue number, and probably will cause this transaction failed. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index

[dpdk-dev] [PATCH v5 4/6] fm10k: add rx queue interrupt en/dis functions

2015-12-23 Thread Shaopeng He
Interrupt mode framework has enable/disable functions for individual rx queue, this patch implements these two functions. v2 changes: - split one big patch into three smaller ones Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 33 + 1 file

[dpdk-dev] [PATCH v5 3/6] fm10k: remove rx queue interrupts when dev stops

2015-12-23 Thread Shaopeng He
Previous dev_stop function stops the rx/tx queues. This patch adds logic to disable rx queue interrupt, clean the datapath event and queue/vec map. v5 changes: - remove one unnecessary NULL check for rte_free v2 changes: - split one big patch into three smaller ones Signed-off-by: Shaopeng

[dpdk-dev] [PATCH v5 2/6] fm10k: setup rx queue interrupts for PF and VF

2015-12-23 Thread Shaopeng He
Signed-off-by: Shaopeng He --- doc/guides/nics/fm10k.rst| 7 +++ doc/guides/rel_notes/release_2_3.rst | 2 + drivers/net/fm10k/fm10k.h| 3 + drivers/net/fm10k/fm10k_ethdev.c | 105 +++ 4 files changed, 106 insertions(+), 11

[dpdk-dev] [PATCH v5 1/6] fm10k: implement rx_descriptor_done function

2015-12-23 Thread Shaopeng He
rx_descriptor_done is used by interrupt mode example application (l3fwd-power) to check rxd DD bit to decide the RX trend, then l3fwd-power will adjust the cpu frequency according to the result. v5 change: - fix a wrong error message Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k.h

[dpdk-dev] [PATCH v5 0/6] interrupt mode for fm10k

2015-12-23 Thread Shaopeng He
changes: - rebase to latest code - update release 2.3 note in corresponding patches v3 changes: - rebase to latest code - macro renaming according to the EAL change v2 changes: - reword some comments and commit messages - split one big patch into three smaller ones Shaopeng He (6

[dpdk-dev] [PATCH v4 6/6] l3fwd-power: fix a memory leak for non-ip packet

2015-12-21 Thread Shaopeng He
Previous l3fwd-power only processes IP and IPv6 packet, other packet's mbuf is not released, and causes a memory leak. This patch fixes this issue. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- doc/guides/rel_notes/release_2_3.rst | 6 ++ examples/l3fwd-power/main.c | 3

[dpdk-dev] [PATCH v4 5/6] fm10k: make sure default VID available in dev_init

2015-12-21 Thread Shaopeng He
will be changed according to RX queue number, and probably will cause this transaction failed. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- drivers/net/fm10k/fm10k_ethdev.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k

[dpdk-dev] [PATCH v4 4/6] fm10k: add rx queue interrupt en/dis functions

2015-12-21 Thread Shaopeng He
Interrupt mode framework has enable/disable functions for individual rx queue, this patch implements these two functions. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- drivers/net/fm10k/fm10k_ethdev.c | 33 + 1 file changed, 33 insertions(+) diff --git

[dpdk-dev] [PATCH v4 3/6] fm10k: remove rx queue interrupts when dev stops

2015-12-21 Thread Shaopeng He
Previous dev_stop function stops the rx/tx queues. This patch adds logic to disable rx queue interrupt, clean the datapath event and queue/vec map. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- drivers/net/fm10k/fm10k_ethdev.c | 22 ++ 1 file changed, 22 insertions

[dpdk-dev] [PATCH v4 2/6] fm10k: setup rx queue interrupts for PF and VF

2015-12-21 Thread Shaopeng He
e.g. vfio-pci can work in fm10k interrupt mode. This patch uses the RXINT/INT_MAP registers to map interrupt causes (rx queue and other events) to vectors, and enable these interrupts through kernel drivers like vfio-pci. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- doc/guides/rel_notes

[dpdk-dev] [PATCH v4 1/6] fm10k: implement rx_descriptor_done function

2015-12-21 Thread Shaopeng He
rx_descriptor_done is used by interrupt mode example application (l3fwd-power) to check rxd DD bit to decide the RX trend, then l3fwd-power will adjust the cpu frequency according to the result. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- drivers/net/fm10k/fm10k.h| 3

[dpdk-dev] [PATCH v4 0/6] interrupt mode for fm10k

2015-12-21 Thread Shaopeng He
, which happens mostly when testing fm10k interrupt mode. Changes in v4: - Rebase to latest code - Update release 2.3 note in each patch Changes in v3: - Rebase to latest code Changes in v2: - Reword some comments and commit messages - Split one big patch into three smaller ones Shaopeng He (6

[dpdk-dev] [PATCH v3] fm10k: fix wrong VLAN value in RX mbuf

2015-11-20 Thread Shaopeng He
in fm10k, always PKT_RX_VLAN_PKT flag is set and vlan_tci is valid for each RX packet's mbuf. Signed-off-by: Shaopeng He --- ChangeLog: v3: * move flag PKT_RX_VLAN_PKT logic together with vlan_tci * reword comments v2: * change flag PKT_RX_VLAN_PKT to always set * preserve the priority bits

[dpdk-dev] [PATCH v2] fm10k: fix wrong VLAN value in RX mbuf

2015-11-20 Thread Shaopeng He
will be used. So in fm10k, always PKT_RX_VLAN_PKT flag is set and vlan_tci is valid for each RX packet's mbuf. Signed-off-by: Shaopeng He --- ChangeLog: v2: * change flag PKT_RX_VLAN_PKT to always set * preserve the priority bits in vlan_tci drivers/net/fm10k/fm10k_rxtx.c | 14 -- 1 file

[dpdk-dev] [PATCH] fm10k: fix wrong VLAN value in RX mbuf

2015-11-18 Thread Shaopeng He
VLAN value should be copied from RX descriptor to mbuf, this patch fixes this issue. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/fm10k/fm10k_rxtx.c b/drivers/net/fm10k/fm10k_rxtx.c index 1bac28d..eeb635e 100644

[dpdk-dev] [PATCH v3 7/7] doc: release note update for fm10k intr mode

2015-11-05 Thread Shaopeng He
Signed-off-by: Shaopeng He Acked-by: Jing Chen --- doc/guides/rel_notes/release_2_2.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 59dda59..c6d255e 100644 --- a/doc/guides/rel_notes/release_2_2

[dpdk-dev] [PATCH v3 6/7] l3fwd-power: fix a memory leak for non-ip packet

2015-11-05 Thread Shaopeng He
Previous l3fwd-power only processes IP and IPv6 packet, other packet's mbuf is not released, and causes a memory leak. This patch fixes this issue. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- examples/l3fwd-power/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[dpdk-dev] [PATCH v3 5/7] fm10k: make sure default VID available in dev_init

2015-11-05 Thread Shaopeng He
will be changed according to RX queue number, and probably will cause this transaction failed. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- drivers/net/fm10k/fm10k_ethdev.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k

[dpdk-dev] [PATCH v3 4/7] fm10k: add rx queue interrupt en/dis functions

2015-11-05 Thread Shaopeng He
Interrupt mode framework has enable/disable functions for individual rx queue, this patch implements these two functions. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- drivers/net/fm10k/fm10k_ethdev.c | 33 + 1 file changed, 33 insertions(+) diff --git

[dpdk-dev] [PATCH v3 3/7] fm10k: remove rx queue interrupts when dev stops

2015-11-05 Thread Shaopeng He
Previous dev_stop function stops the rx/tx queues. This patch adds logic to disable rx queue interrupt, clean the datapath event and queue/vec map. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- drivers/net/fm10k/fm10k_ethdev.c | 22 ++ 1 file changed, 22 insertions

[dpdk-dev] [PATCH v3 2/7] fm10k: setup rx queue interrupts for PF and VF

2015-11-05 Thread Shaopeng He
e.g. vfio-pci can work in fm10k interrupt mode. This patch uses the RXINT/INT_MAP registers to map interrupt causes (rx queue and other events) to vectors, and enable these interrupts through kernel drivers like vfio-pci. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- drivers/net/fm10k

[dpdk-dev] [PATCH v3 1/7] fm10k: implement rx_descriptor_done function

2015-11-05 Thread Shaopeng He
rx_descriptor_done is used by interrupt mode example application (l3fwd-power) to check rxd DD bit to decide the RX trend, then l3fwd-power will adjust the cpu frequency according to the result. Signed-off-by: Shaopeng He Acked-by: Jing Chen --- drivers/net/fm10k/fm10k.h| 3

[dpdk-dev] [PATCH v3 0/7] interrupt mode for fm10k

2015-11-05 Thread Shaopeng He
Changes in v3: - Rebase to latest code Changes in v2: - Reword some comments and commit messages - Split one big patch into three smaller ones Shaopeng He (7): fm10k: implement rx_descriptor_done function fm10k: setup rx queue interrupts for PF and VF fm10k: remove rx queue interrupts when dev

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

2015-10-31 Thread Shaopeng He
Signed-off-by: Shaopeng He Acked-by: Jingjing Wu Acked-by: Michael Qiu --- doc/guides/rel_notes/release_2_2.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 116162e..c00344b 100644 --- a/doc/guides

[dpdk-dev] [PATCH v4 3/4] fm10k: add VMDQ support in multi-queue configure

2015-10-31 Thread Shaopeng He
Add separate functions to configure VMDQ and RSS. Update dglort map and logic ports accordingly. Reset MAC/VLAN filter after VMDQ config was changed. Signed-off-by: Shaopeng He Acked-by: Jingjing Wu Acked-by: Michael Qiu --- drivers/net/fm10k/fm10k_ethdev.c | 164

[dpdk-dev] [PATCH v4 2/4] fm10k: add VMDQ support in MAC/VLAN filter

2015-10-31 Thread Shaopeng He
-by: Shaopeng He Acked-by: Jingjing Wu Acked-by: Michael Qiu --- drivers/net/fm10k/fm10k.h| 3 + drivers/net/fm10k/fm10k_ethdev.c | 150 +-- 2 files changed, 99 insertions(+), 54 deletions(-) diff --git a/drivers/net/fm10k/fm10k.h b/drivers/net/fm10k

[dpdk-dev] [PATCH v4 1/4] fm10k: add multi-queue checking

2015-10-31 Thread Shaopeng He
Add multi-queue checking in device configure function. Currently, VMDQ and RSS are supported. Signed-off-by: Shaopeng He Acked-by: Jingjing Wu Acked-by: Michael Qiu --- drivers/net/fm10k/fm10k_ethdev.c | 44 1 file changed, 44 insertions(+) diff --git

[dpdk-dev] [PATCH v4 0/4] fm10k: add VMDQ support

2015-10-31 Thread Shaopeng He
: - Keep device default MAC address even in VMDQ mode after queue pool config was changed, because some applications (e.g. vmdq_app) always need a valid MAC address there Changes in v2: - Reword some comments and commit messages - Update release note Shaopeng He (4): fm10k: add multi-queue

[dpdk-dev] [PATCH v3 4/4] doc: update release note for fm10k VMDQ support

2015-10-27 Thread Shaopeng He
Signed-off-by: Shaopeng He --- doc/guides/rel_notes/release_2_2.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 5687676..278149f 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides

[dpdk-dev] [PATCH v3 3/4] fm10k: add VMDQ support in multi-queue configure

2015-10-27 Thread Shaopeng He
Add separate functions to configure VMDQ and RSS. Update dglort map and logic ports accordingly. Reset MAC/VLAN filter after VMDQ config was changed. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 164 +-- 1 file changed, 141 insertions

[dpdk-dev] [PATCH v3 2/4] fm10k: add VMDQ support in MAC/VLAN filter

2015-10-27 Thread Shaopeng He
-by: Shaopeng He --- drivers/net/fm10k/fm10k.h| 3 + drivers/net/fm10k/fm10k_ethdev.c | 150 +-- 2 files changed, 99 insertions(+), 54 deletions(-) diff --git a/drivers/net/fm10k/fm10k.h b/drivers/net/fm10k/fm10k.h index c089882..439e95f 100644

[dpdk-dev] [PATCH v3 1/4] fm10k: add multi-queue checking

2015-10-27 Thread Shaopeng He
Add multi-queue checking in device configure function. Currently, VMDQ and RSS are supported. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 44 1 file changed, 44 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers

[dpdk-dev] [PATCH v3 0/4] fm10k: add VMDQ support

2015-10-27 Thread Shaopeng He
config was changed, because some applications (e.g. vmdq_app) always need a valid MAC address there. Changes in v2: - Reword some comments and commit messages - Updated release note Shaopeng He (4): fm10k: add multi-queue checking fm10k: add VMDQ support in MAC/VLAN filter fm10k: add VMDQ

[dpdk-dev] [PATCH v2 6/7] l3fwd-power: fix a memory leak for non-ip packet

2015-10-26 Thread Shaopeng He
Previous l3fwd-power only processes IP and IPv6 packet, other packet's mbuf is not released, and causes a memory leak. This patch fixes this issue. Signed-off-by: Shaopeng He --- examples/l3fwd-power/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/l3fwd

[dpdk-dev] [PATCH v2 5/7] fm10k: make sure default VID available in dev_init

2015-10-26 Thread Shaopeng He
will be changed according to RX queue number, and probably will cause this transaction failed. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index

[dpdk-dev] [PATCH v2 4/7] fm10k: add rx queue interrupt en/dis functions

2015-10-26 Thread Shaopeng He
Interrupt mode framework has enable/disable functions for individual rx queue, this patch implements these two functions. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/net/fm10k

[dpdk-dev] [PATCH v2 3/7] fm10k: remove rx queue interrupts when dev stops

2015-10-26 Thread Shaopeng He
Previous dev_stop function stops the rx/tx queues. This patch adds logic to disable rx queue interrupt, clean the datapath event and queue/vec map. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers

[dpdk-dev] [PATCH v2 1/7] fm10k: implement rx_descriptor_done function

2015-10-26 Thread Shaopeng He
rx_descriptor_done is used by interrupt mode example application (l3fwd-power) to check rxd DD bit to decide the RX trend, then l3fwd-power will adjust the cpu frequency according to the result. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k.h| 3 +++ drivers/net/fm10k

[dpdk-dev] [PATCH v2 0/7] interrupt mode for fm10k

2015-10-26 Thread Shaopeng He
The patch set is developed based on one previous patch set "[PATCH v1 00/11] interrupt mode for i40e" http://www.dpdk.org/ml/archives/dev/2015-September/023903.html Shaopeng He (7): fm10k: implement rx_descriptor_done function fm10k: setup rx queue interrupts for PF and VF fm10k: remov

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

2015-10-10 Thread Shaopeng He
Signed-off-by: Shaopeng He --- doc/guides/rel_notes/release_2_2.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 5687676..278149f 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides

[dpdk-dev] [PATCH v2 3/4] fm10k: add VMDQ support in multi-queue configure

2015-10-10 Thread Shaopeng He
Add separate functions to configure VMDQ and RSS. Update dglort map and logic ports accordingly. Reset MAC/VLAN filter after VMDQ config was changed. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 164 +-- 1 file changed, 141 insertions

[dpdk-dev] [PATCH v2 2/4] fm10k: add VMDQ support in MAC/VLAN filter

2015-10-10 Thread Shaopeng He
-by: Shaopeng He --- drivers/net/fm10k/fm10k.h| 3 + drivers/net/fm10k/fm10k_ethdev.c | 150 +-- 2 files changed, 99 insertions(+), 54 deletions(-) diff --git a/drivers/net/fm10k/fm10k.h b/drivers/net/fm10k/fm10k.h index c089882..439e95f 100644

[dpdk-dev] [PATCH v2 1/4] fm10k: add multi-queue checking

2015-10-10 Thread Shaopeng He
Add multi-queue checking in device configure function. Currently, VMDQ and RSS are supported. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 44 1 file changed, 44 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers

[dpdk-dev] [PATCH v2 0/4] fm10k: add VMDQ support

2015-10-10 Thread Shaopeng He
Shaopeng He (4): fm10k: add multi-queue checking fm10k: add VMDQ support in MAC/VLAN filter fm10k: add VMDQ support in multi-queue configure doc: update release note for fm10k VMDQ support doc/guides/rel_notes/release_2_2.rst | 5 + drivers/net/fm10k/fm10k.h| 3 + drivers/net

[dpdk-dev] [PATCH 3/3] fm10k: add VMDQ support in multi-queue configure

2015-09-30 Thread Shaopeng He
Add separate functions to configure VMDQ and RSS. Update dglort map and logic ports accordingly. Reset MAC/VLAN filter after VMDQ configure was changed. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 164 +-- 1 file changed, 141 insertions

[dpdk-dev] [PATCH 2/3] fm10k: add VMDQ support in MAC/VLAN filter

2015-09-30 Thread Shaopeng He
The patch does below things for fm10k MAC/VLAN filter: - Add separate functions to add MAC address for VMDQ and main VSI. - Disable modification to VLAN filter in VMDQ mode. - In device close phase, delete logic ports to remove all the MAC/VLAN filters. Signed-off-by: Shaopeng He

[dpdk-dev] [PATCH 0/3] fm10k: add VMDQ support

2015-09-30 Thread Shaopeng He
in dev_init in fm10k 3. fix a memory leak for non-ip packet in l3fwd-power 4. add rx interrupt support in fm10k PF and VF Shaopeng He (3): fm10k: add multi-queue checking fm10k: add VMDQ support in MAC/VLAN filter fm10k: add VMDQ support in multi-queue configure drivers/net/fm10k/fm10k.h

[dpdk-dev] [PATCH 5/5] doc: release note update for fm10k intr mode

2015-09-25 Thread Shaopeng He
Signed-off-by: Shaopeng He --- doc/guides/rel_notes/release_2_2.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 73dba47..44b3aea 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides

[dpdk-dev] [PATCH 4/5] l3fwd-power: fix a memory leak for non-ip packet

2015-09-25 Thread Shaopeng He
Previous l3fwd-power only processes IP and IPv6 packet, other packet's mbuf is not released, and causes a memory leak. This patch fixes this issue. Signed-off-by: Shaopeng He --- examples/l3fwd-power/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/l3fwd

[dpdk-dev] [PATCH 3/5] fm10k: make sure default VID available in dev_init

2015-09-25 Thread Shaopeng He
will be changed according to RX queue number, and probably will cause this transaction failed. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index

[dpdk-dev] [PATCH 2/5] fm10k: enable Rx queue interrupts for PF and VF

2015-09-25 Thread Shaopeng He
The patch does below things for fm10k PF and VF: - Setup NIC to generate MSI-X interrupts - Set the RXINT register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 147

[dpdk-dev] [PATCH 1/5] fm10k: implement rx_descriptor_done function

2015-09-25 Thread Shaopeng He
rx_descriptor_done is used by interrupt mode example application (l3fwd-power) to check rxd DD bit to decide the RX trend, then l3fwd-power will adjust the cpu frequency according to the result. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k.h| 3 +++ drivers/net/fm10k

[dpdk-dev] [PATCH 0/5] interrupt mode for fm10k

2015-09-25 Thread Shaopeng He
previous patch set "[PATCH v1 00/11] interrupt mode for i40e" http://www.dpdk.org/ml/archives/dev/2015-September/023903.html Shaopeng He (5): fm10k: implement rx_descriptor_done function fm10k: enable Rx queue interrupts for PF and VF fm10k: make sure default VID available in dev_in

[dpdk-dev] [PATCH] fm10k: fix an error message when adding default VLAN

2015-06-26 Thread Shaopeng He
phase. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 406c350..df32665 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b

[dpdk-dev] [PATCH v3 3/3] fm10k: update VLAN offload features

2015-06-18 Thread Shaopeng He
Fm10k PF/VF does not support QinQ; VLAN strip and filter are always on for PF/VF ports. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net

[dpdk-dev] [PATCH v3 2/3] fm10k: add MAC filter

2015-06-18 Thread Shaopeng He
MAC filter function was newly added, each PF and VF can have up to 64 MAC addresses. VF filter needs support from PF host, which is not available now. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k.h| 3 +- drivers/net/fm10k/fm10k_ethdev.c | 91

[dpdk-dev] [PATCH v3 1/3] fm10k: update VLAN filter

2015-06-18 Thread Shaopeng He
VLAN filter was updated to add/delete one static entry in MAC table for each combination of VLAN and MAC address. More sanity checks were added. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k.h| 23 ++ drivers/net/fm10k/fm10k_ethdev.c | 65

[dpdk-dev] [PATCH v3 0/3] fm10k: update MAC/VLAN filter and VLAN offload features

2015-06-18 Thread Shaopeng He
in MAC table for each combination of VLAN and MAC address. For VLAN offload features, Fm10k PF/VF does not support QinQ; and VLAN strip and filter are always on. Shaopeng He (3): fm10k: update VLAN filter fm10k: add MAC filter fm10k: update VLAN offload features drivers/net/fm10k/fm10k.h

[dpdk-dev] [PATCH v2] fm10k: fix PF/VF MAC address register and clean up bug

2015-06-15 Thread Shaopeng He
by under layer shared code and PF host functions. - un-register any combination of VLAN and MAC address from fm10k switch side MAC table when the system(e.g. testpmd) is closed. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 42 ++-- 1 file

[dpdk-dev] [PATCH v2 3/3] fm10k: update VLAN offload features

2015-06-15 Thread Shaopeng He
Fm10k PF/VF does not support QinQ; VLAN strip and filter are always on for PF/VF ports. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net

[dpdk-dev] [PATCH v2 2/3] fm10k: add MAC filter

2015-06-15 Thread Shaopeng He
MAC filter function was newly added, each PF and VF can have up to 64 MAC addresses. VF filter needs support from PF host, which is not available now. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k.h| 3 +- drivers/net/fm10k/fm10k_ethdev.c | 91

[dpdk-dev] [PATCH v2 1/3] fm10k: update VLAN filter

2015-06-15 Thread Shaopeng He
VLAN filter was updated to add/delete one static entry in MAC table for each combination of VLAN and MAC address. More sanity checks were added. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k.h| 23 ++ drivers/net/fm10k/fm10k_ethdev.c | 65

[dpdk-dev] [PATCH v2 0/3] fm10k: update MAC/VLAN filter and VLAN offload features

2015-06-15 Thread Shaopeng He
; and VLAN strip and filter are always on. Shaopeng He (3): fm10k: update VLAN filter fm10k: add MAC filter fm10k: update VLAN offload features drivers/net/fm10k/fm10k.h| 24 ++ drivers/net/fm10k/fm10k_ethdev.c | 182 --- 2 files changed, 194

[dpdk-dev] [PATCH] fm10k: fix PF/VF MAC address register and clean up bug

2015-06-05 Thread Shaopeng He
MAC address with fixed VLAN 0 was removed. VF MAC/VLAN filter was enabled for the default value. Removed all VLAN and MAC address table entries when the system(e.g. testpmd) was closed. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 38

[dpdk-dev] [PATCH 3/3] fm10k: update VLAN offload features

2015-06-02 Thread Shaopeng He
Fm10k PF/VF does not support QinQ; VLAN strip and filter are always on for PF/VF ports. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k_ethdev.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c

[dpdk-dev] [PATCH 2/3] fm10k: add MAC filter

2015-06-02 Thread Shaopeng He
MAC filter function was newly added, each PF and VF can have up to 64 MAC addresses. VF filter needs support from PF host, which is not available now. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k.h| 3 +- drivers/net/fm10k/fm10k_ethdev.c | 90

[dpdk-dev] [PATCH 1/3] fm10k: update VLAN filter

2015-06-02 Thread Shaopeng He
VLAN filter was updated to add/delete one static entry in MAC table for each combination of VLAN and MAC address. More sanity checks were added. Signed-off-by: Shaopeng He --- drivers/net/fm10k/fm10k.h| 23 + drivers/net/fm10k/fm10k_ethdev.c | 55

[dpdk-dev] [PATCH 0/3] fm10k: update MAC/VLAN filter and VLAN offload features

2015-06-02 Thread Shaopeng He
MAC filter was newly added, VLAN filter was updated to add/delete one static entry in MAC table for each combination of VLAN and MAC address. Fm10k PF/VF does not support QinQ; VLAN strip and filter are always on. Shaopeng He (3): fm10k: update VLAN filter fm10k: add MAC filter fm10k

[dpdk-dev] [PATCH] fm10k: support XEN domain0

2015-05-15 Thread Shaopeng He
to support running fm10k PMD in XEN domain0. Signed-off-by: Shaopeng He --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 8 1 file changed, 8 insertions(+) diff --git a/lib/librte_pmd_fm10k/fm10k_ethdev.c b/lib/librte_pmd_fm10k/fm10k_ethdev.c index 275c19c..c85c856 100644 --- a/lib/librte_pmd_fm10k