[dpdk-dev] [PATCH] bus/pci: fix mapping of PCI resources

2020-09-27 Thread alvinx . zhang
From: Alvin Zhang When mapping PCI bar resources around the MSI-X table, if the size of the first part is 0, the second part should also be mapped if its size is not 0. Fixes: e200535c1ca3 ("mem: drop mapping API workaround") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/bus/pci/

[dpdk-dev] [PATCH] doc: update release notes for iavf

2020-09-26 Thread alvinx . zhang
From: Alvin Zhang Update release notes by adding new features for iavf PMD. Signed-off-by: Alvin Zhang --- doc/guides/rel_notes/release_20_11.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst index adf

[dpdk-dev] [PATCH v6] net/iavf: support outer IP hash for no inner GTPU

2020-09-14 Thread alvinx . zhang
From: Alvin Zhang Outer IP hash can be configured as input sets for no inner GTPU packets. Signed-off-by: Alvin Zhang V2: Modify codes according to comments. V3: Refact all codes. V4: Fix compatibility issues. V5, V6: Modify codes according to comments. --- drivers/net/iavf/iavf_hash.c | 26

[dpdk-dev] [PATCH v5] net/iavf: support outer IP hash for GTPC

2020-09-14 Thread alvinx . zhang
From: Alvin Zhang Add patterns and headers for GTPC, now outer IP hash can be configured as input sets for GTPC packets. Signed-off-by: Alvin Zhang --- V2: Modify codes according to comments. V3: Refact all codes. V4, V5: Fix compatibility issues. drivers/net/iavf/iavf_generic_flow.c | 18 ++

[dpdk-dev] [PATCH v5] net/iavf: support outer IP hash for no inner GTPU

2020-09-14 Thread alvinx . zhang
From: Alvin Zhang Outer IP hash can be configured as input sets for no inner GTPU packets. Signed-off-by: Alvin Zhang --- V2: Modify codes according to comments. V3: Refact all codes. V4: Fix compatibility issues. V5: Modify codes according to comments. drivers/net/iavf/iavf_hash.c | 48

[dpdk-dev] [PATCH v4 2/2] net/iavf: support outer IP hash for GTPC

2020-09-09 Thread alvinx . zhang
From: Alvin Zhang Add patterns and headers for GTPC, now outer IP hash can be configured as input sets for GTPC packet. Signed-off-by: Alvin Zhang --- V2: Modify codes according to comments. V3: Refact all codes. V4: Fix compatibility issues. drivers/net/iavf/iavf_generic_flow.c | 18 +++

[dpdk-dev] [PATCH v4 1/2] common/iavf: add GTPC support

2020-09-09 Thread alvinx . zhang
From: Alvin Zhang Add GTPC header and its field selector. Signed-off-by: Alvin Zhang --- drivers/common/iavf/virtchnl.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index 79515ee..0042cc0 100644 --- a/drivers/common/iav

[dpdk-dev] [PATCH v4] net/iavf: support outer IP hash for GTPU

2020-09-09 Thread alvinx . zhang
From: Alvin Zhang Add headers for GTPU, now outer IP hash can be configured as input sets for GTPU packet. Signed-off-by: Alvin Zhang --- V2: Modify codes according to comments. V3: Refact all codes. V4: Fix compatibility issues. drivers/net/iavf/iavf_hash.c | 13 + 1 file chang

[dpdk-dev] [PATCH v3 1/3] common/iavf: add GTPC support

2020-09-08 Thread alvinx . zhang
From: Alvin Zhang Add GTPC header and its field selector. Signed-off-by: Alvin Zhang --- drivers/common/iavf/virtchnl.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index 79515ee..0042cc0 100644 --- a/drivers/common/iav

[dpdk-dev] [PATCH v3 2/3] net/iavf: support outer IP hash for GTPC

2020-09-08 Thread alvinx . zhang
From: Alvin Zhang Add patterns and headers for GTPC, now outer IP hash can be configured as input sets for GTPC packet. Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_generic_flow.c | 18 ++ drivers/net/iavf/iavf_generic_flow.h | 6 ++ drivers/net/iavf/iavf_hash.c

[dpdk-dev] [PATCH v3 3/3] net/iavf: support outer IP hash for GTPU

2020-09-08 Thread alvinx . zhang
From: Alvin Zhang Add headers for GTPU, now outer IP hash can be configured as input sets for GTPU packet. Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_hash.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/net/iavf/iavf_hash.c b/drivers/net/iavf/iavf_hash.c

[dpdk-dev] [PATCH v2] net/iavf: support outer IP hash for GTPU

2020-08-30 Thread alvinx . zhang
From: Alvin Zhang Add patterns for GTPU, now outer IP hash can be configured as input set for GTPU packet. Signed-off-by: Alvin Zhang --- v2: - Remove VLAN as input sets. drivers/net/iavf/iavf_hash.c | 66 1 file changed, 66 insertions(+) diff --g

[dpdk-dev] [PATCH 1/2] common/iavf: add GTPC support

2020-08-30 Thread alvinx . zhang
From: Alvin Zhang Add GTPC header and its field selector. Signed-off-by: Alvin Zhang --- drivers/common/iavf/virtchnl.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index 79515ee..0042cc0 100644 --- a/drivers/common/iav

[dpdk-dev] [PATCH 2/2] net/iavf: support outer IP hash for GTPC

2020-08-30 Thread alvinx . zhang
From: Alvin Zhang Add patterns for GTPC, now outer IP hash can be configured as input set for GTPC packet. Signed-off-by: Alvin Zhang --- v2: - Remove VLAN as input sets. drivers/net/iavf/iavf_generic_flow.c | 18 + drivers/net/iavf/iavf_generic_flow.h | 6 +++ drivers/net/iavf/iavf_

[dpdk-dev] [PATCH] net/iavf: support outer IP hash for GTPU

2020-08-28 Thread alvinx . zhang
From: Alvin Zhang Add patterns for GTPU, now outer IP hash can be configured as input set for GTPU packet. Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_generic_flow.c | 18 ++ drivers/net/iavf/iavf_generic_flow.h | 2 + drivers/net/iavf/iavf_hash.c | 110

[dpdk-dev] [PATCH 2/2] net/iavf: support outer IP hash for GTPC

2020-08-27 Thread alvinx . zhang
From: Alvin Zhang Add patterns for GTPC, now outer IP hash can be configured as input set for GTPC packet. Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_generic_flow.c | 36 +++ drivers/net/iavf/iavf_generic_flow.h | 8 +++ drivers/net/iavf/iavf_hash.c | 122 +

[dpdk-dev] [PATCH 1/2] common/iavf: add GTPC support

2020-08-27 Thread alvinx . zhang
From: Alvin Zhang Add GTPC header and its field selector. Signed-off-by: Alvin Zhang --- drivers/common/iavf/virtchnl.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index 79515ee..0042cc0 100644 --- a/drivers/common/iav

[dpdk-dev] [PATCH v5] net/i40e: fix qps configuration in VF

2020-07-15 Thread alvinx . zhang
From: Alvin Zhang If a VF request PF to allocate more number of queue pairs, the PF will free the queue pairs which have been allocated and reset the VF. So, VF should stop to work until all the process is done. This patch modify the process of the request queue pairs. To improve efficiency and e

[dpdk-dev] [PATCH v5] net/i40e: fix modify the number of qps in VF

2020-07-15 Thread alvinx . zhang
From: Alvin Zhang If a VF request PF to allocate more number of queue pairs, the PF will free the queue pairs which have been allocated and reset the VF. So, VF should stop to work until all the process is done. This patch modify the process of the request queue pairs. To improve efficiency and e

[dpdk-dev] [PATCH v5] net/i40e: fix modify the number of qps in VF

2020-07-15 Thread alvinx . zhang
From: Alvin Zhang If a VF request PF to allocate more number of queue pairs, the PF will free the queue pairs which have been allocated and reset the VF. So, VF should stop to work until all the process is done. This patch modify the process of the request queue pairs. To improve efficiency and e

[dpdk-dev] [PATCH v4] net/i40e: fix modify the number of qps in VF

2020-07-15 Thread alvinx . zhang
From: Alvin Zhang If a VF request PF to allocate more number of queue pairs, the PF will free the queue pairs which have been allocated and reset the VF. So, VF should stop to work until all the process is done. This patch modify the process of the request queue pairs. To improve efficiency and e

[dpdk-dev] [PATCH v3] net/i40e: fix modify the number of qps in VF

2020-07-15 Thread alvinx . zhang
From: Alvin Zhang If a VF request PF to allocate more number of queue pairs, the PF will free the queue pairs which have been allocated and reset the VF. So, VF should stop to work until all the process is done. This patch modify the process of the request queue pairs. To improve efficiency and e

[dpdk-dev] [PATCH] bus/pci: fix mmap PCI resource

2020-07-08 Thread alvinx . zhang
From: Alvin Zhang When mapping a PCI BAR containing an MSI-X table, some devices do not need to actually map this BAR or only need to map part of them, which may cause the mapping to fail. Now some checks are added and a non-NULL initial value is set to the variable to avoid this situation. Fixe

[dpdk-dev] [PATCH v2] net/i40e: fix modify the number of qps in VF

2020-07-01 Thread alvinx . zhang
From: Alvin Zhang For a VF, if the number of request queue pairs is greater than that has been allocated by the kernel driver, the app may fail to start. This patch modify the request queue process. Fixes: c48eb308ed13 ("net/i40e: support VF request more queues") Fixes: dbda2092deb5 ("net/i40e:

[dpdk-dev] [PATCH] net/i40e: fix modifying the number of queues

2020-06-10 Thread alvinx . zhang
From: Alvin Zhang For the newly created VF, if the number of qps is greater than 4 at startup, it may fail to start. This patch updates the API `i40evf_dev_configure`. Fixes: c48eb308ed13 ("net/i40e: support VF request more queues") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/n

[dpdk-dev] [PATCH v3] net/igc: fix memory illegal accesses

2020-05-08 Thread alvinx . zhang
From: Alvin Zhang Fix some out-of-bounds memory issues, they may lead to wrong results or affect application stability. Coverity issue: 357759, 357713 Fixes: bd3fcf0d0fa1 (net/igc: support RSS) Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- V2: update git log V3: update git log drivers/

[dpdk-dev] [PATCH v2] net/igc: remove some useless log

2020-05-07 Thread alvinx . zhang
From: Alvin Zhang Some log will always be printed when the device is initialized and shut down, which will mislead users and should be removed. Fixes: 746664d546fb (net/igc: implement flow API) Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- V2: update git log drivers/net/igc/igc_txrx.c

[dpdk-dev] [PATCH v2] net/igc: fix memory illegal accesses

2020-05-07 Thread alvinx . zhang
From: Alvin Zhang Fix some out-of-bounds memory issues, they may lead to wrong results or affect application stability. Fixes: bd3fcf0d0fa1 (net/igc: support RSS) Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- V2: update git log drivers/net/igc/igc_ethdev.c | 12 ++-- 1 file cha

[dpdk-dev] [PATCH v2] net/igc: fix memory illegal accesses

2020-05-07 Thread alvinx . zhang
From: Alvin Zhang Fix some out-of-bounds memory issues, they may lead to wrong results or affect application stability. Fixes: bd3fcf0d0fa1 (net/igc: support RSS) Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang V2: update git log --- drivers/net/igc/igc_ethdev.c | 12 ++-- 1 file cha

[dpdk-dev] [PATCH] net/igc: fix memory illegal accesses

2020-05-06 Thread alvinx . zhang
From: Alvin Zhang Add memory access out-of-bounds check. Fixes: bd3fcf0d0fa1 (net/igc: support RSS) Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_ethdev.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/igc/igc_ethdev.c b/

[dpdk-dev] [PATCH] net/igc: remove some useless log

2020-04-29 Thread alvinx . zhang
From: Alvin Zhang As title. Fixes: 746664d546fb (net/igc: implement flow API) Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_txrx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/igc/igc_txrx.c b/drivers/net/igc/igc_txrx.c index 5b26

[dpdk-dev] [PATCH v3] net/iavf: fix link speed

2020-04-29 Thread alvinx . zhang
From: Alvin Zhang If the PF driver does not support the new speed reporting capabilities then use link_event instead of link_event_adv to get the speed. Fixes: 48de41ca11f0 (net/iavf: enable link status update) Cc: jingjing...@intel.com Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang V2: Modif

[dpdk-dev] [PATCH] net/e1000: fix port hotplug for multi-process

2020-04-28 Thread alvinx . zhang
From: Alvin Zhang Enable detach device on secondary process. Fixes: b9eee2cb8c29 (e1000: support port hotplug) Cc: bernard.iremon...@intel.com Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/e1000/em_ethdev.c | 2 +- drivers/net/e1000/igb_ethdev.c | 4 ++-- 2 files changed, 3

[dpdk-dev] [PATCH v2] net/iavf: fix link speed

2020-04-28 Thread alvinx . zhang
From: Alvin Zhang If the PF driver does not support the new speed reporting capabilities then use link_event else use link_event_adv to get the speed. Fixes: 48de41ca11f0 (net/iavf: enable link status update) Cc: jingjing...@intel.com Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang V2: Modify

[dpdk-dev] [PATCH v2] net/iavf: fix link speed

2020-04-28 Thread alvinx . zhang
From: Alvin Zhang If the PF driver does not support the new speed reporting capabilities then use link_event else use link_event_adv to get the speed. Fixes: 48de41ca11f0 (net/iavf: enable link status update) Cc: jingjing...@intel.com Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers

[dpdk-dev] [PATCH] net/iavf: fix link speed

2020-04-27 Thread alvinx . zhang
From: Alvin Zhang If the PF driver does not support the new speed reporting capabilities then use link_event else use link_event_adv to get the speed. Fixes: 48de41ca11f0 (net/iavf: enable link status update) Cc: jingjing...@intel.com Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_vchnl

[dpdk-dev] [PATCH v4 11/11] net/igc: implement flow API

2020-04-15 Thread alvinx . zhang
From: Alvin Zhang Below type of flows are supported: ether-type filter, 2-tuple filter, SYN filter, RSS. Update docs too. Signed-off-by: Alvin Zhang V2: Modify codes according to comments. V3: Remove legacy ether-type, 2-tuple and tcp SYN filters API, add some examples of creating flow. V4

[dpdk-dev] [PATCH v4 10/11] net/igc: implement MAC-loopback mode

2020-04-15 Thread alvinx . zhang
From: Alvin Zhang enable mac-loopback mode. Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_ethdev.c | 23 +++ drivers/net/igc/igc_txrx.c | 3 +++ 2 files changed, 26 insertions(+) diff --git a/drivers/net/igc/igc_ethdev.c b/drivers/net/igc/igc_ethdev.c index e2e427c

[dpdk-dev] [PATCH v4 07/11] net/igc: implement flow control ops

2020-04-15 Thread alvinx . zhang
From: Alvin Zhang Update feature list too. Signed-off-by: Alvin Zhang V4: Modify codes according to comments. --- doc/guides/nics/features/igc.ini | 1 + drivers/net/igc/igc_ethdev.c | 121 +++ 2 files changed, 122 insertions(+) diff --git a/doc/guid

[dpdk-dev] [PATCH v4 06/11] net/igc: enable Rx queue interrupts

2020-04-15 Thread alvinx . zhang
From: Alvin Zhang Setup NIC to generate MSI-X interrupts. Set the IVAR register to map interrupt causes to vectors. Implement interrupt enable/disable functions. Signed-off-by: Alvin Zhang V4: Modify codes according to comments. --- doc/guides/nics/features/igc.ini | 1 + drivers/net/igc/ig

[dpdk-dev] [PATCH v4 09/11] net/igc: implement feature of VLAN

2020-04-15 Thread alvinx . zhang
From: Alvin Zhang Below ops ware added: vlan_filter_set vlan_offload_set vlan_tpid_set vlan_strip_queue_set Signed-off-by: Alvin Zhang V2: Fix max packet length fault when extend vlan is enabled or disabled. V3: Fix queue vlan offload fault, update docs. V4: Modify codes according to comments.

[dpdk-dev] [PATCH v4 08/11] net/igc: implement RSS API

2020-04-15 Thread alvinx . zhang
From: Alvin Zhang Below ops are added: reta_update reta_query rss_hash_update rss_hash_conf_get Signed-off-by: Alvin Zhang V4: Modify codes according to comments. --- doc/guides/nics/features/igc.ini | 2 + drivers/net/igc/igc_ethdev.c | 171 +++ driv

[dpdk-dev] [PATCH v4 05/11] net/igc: enable statistics

2020-04-15 Thread alvinx . zhang
From: Alvin Zhang Enable base statistics, extend statistics and per-queue statistics. Below ops are added: stats_get xstats_get xstats_get_by_id xstats_get_names_by_id xstats_get_names stats_reset xstats_reset queue_stats_mapping_set Signed-off-by: Alvin Zhang V2: Fix xstats_get_names_by_id i

[dpdk-dev] [PATCH v4 04/11] net/igc: support reception and transmission of packets

2020-04-15 Thread alvinx . zhang
From: Alvin Zhang Below ops are added too: mac_addr_add mac_addr_remove mac_addr_set set_mc_addr_list mtu_set promiscuous_enable promiscuous_disable allmulticast_enable allmulticast_disable rx_queue_setup rx_queue_release rx_queue_count rx_descriptor_done rx_descriptor_status tx_descriptor_status

[dpdk-dev] [PATCH v4 03/11] net/igc: implement device base ops

2020-04-15 Thread alvinx . zhang
From: Alvin Zhang Bellow ops are implemented: dev_configure dev_start dev_stop dev_close dev_reset dev_set_link_up dev_set_link_down link_update fw_version_get dev_led_on dev_led_off Signed-off-by: Alvin Zhang V2: Modify codes according to comments. V3: Modify codes according to comments. V4:

[dpdk-dev] [PATCH v4 01/11] net/igc: add igc PMD

2020-04-15 Thread alvinx . zhang
From: Alvin Zhang Implement device detection and loading. Add igc driver guid docs. Signed-off-by: Alvin Zhang V2: 1) Update release note; 2) Modify codes according to comments. V3: 1) Fix secondary process hotplug fault; 2) Modify codes according to comments. V4: Modify codes accord

[dpdk-dev] [PATCH v4 00/11] igc PMD

2020-04-15 Thread alvinx . zhang
From: Alvin Zhang New PMD for Intel I225 NICs. Alvin Zhang (11): net/igc: add igc PMD net/igc: support device initialization net/igc: implement device base ops net/igc: support reception and transmission of packets net/igc: enable statistics net/igc: enable Rx queue interrupts net/

[dpdk-dev] [PATCH v3 11/11] net/igc: implement flow API

2020-04-12 Thread alvinx . zhang
From: Alvin Zhang Below type of flows are supported: ether-type filter, 2-tuple filter, SYN filter, RSS. Update docs too. Signed-off-by: Alvin Zhang V2: Modify codes according to comments. V3: Remove legacy ether-type, 2-tuple and tcp SYN filters API, add some examples of creating flow. --

[dpdk-dev] [PATCH v3 10/11] net/igc: implement MAC-loopback mode

2020-04-12 Thread alvinx . zhang
From: Alvin Zhang enable mac-loopback mode. Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_ethdev.c | 23 +++ drivers/net/igc/igc_txrx.c | 3 +++ 2 files changed, 26 insertions(+) diff --git a/drivers/net/igc/igc_ethdev.c b/drivers/net/igc/igc_ethdev.c index b176b6e

[dpdk-dev] [PATCH v3 09/11] net/igc: implement feature of VLAN

2020-04-12 Thread alvinx . zhang
From: Alvin Zhang Below ops ware added: vlan_filter_set vlan_offload_set vlan_tpid_set vlan_strip_queue_set Signed-off-by: Alvin Zhang v2: fix max packet length fault when extend vlan is enabled or disabled v3: fix queue vlan offload fault, update docs. --- doc/guides/nics/features/igc.ini |

[dpdk-dev] [PATCH v3 08/11] net/igc: implement RSS API

2020-04-12 Thread alvinx . zhang
From: Alvin Zhang Below ops are added: reta_update reta_query rss_hash_update rss_hash_conf_get Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 2 + drivers/net/igc/igc_ethdev.c | 171 +++ drivers/net/igc/igc_ethdev.h | 9 +++ d

[dpdk-dev] [PATCH v3 07/11] net/igc: implement flow control ops

2020-04-12 Thread alvinx . zhang
From: Alvin Zhang Update feature list too. Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 1 + drivers/net/igc/igc_ethdev.c | 121 +++ 2 files changed, 122 insertions(+) diff --git a/doc/guides/nics/features/igc.ini b/doc/guides/nic

[dpdk-dev] [PATCH v3 06/11] net/igc: enable Rx queue interrupts

2020-04-12 Thread alvinx . zhang
From: Alvin Zhang Setup NIC to generate MSI-X interrupts. Set the IVAR register to map interrupt causes to vectors. Implement interrupt enable/disable functions. Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 1 + drivers/net/igc/igc_ethdev.c | 170

[dpdk-dev] [PATCH v3 05/11] net/igc: enable statistics

2020-04-12 Thread alvinx . zhang
From: Alvin Zhang Enable base statistics, extend statistics and per-queue statistics. Below ops are added: stats_get xstats_get xstats_get_by_id xstats_get_names_by_id xstats_get_names stats_reset xstats_reset queue_stats_mapping_set Signed-off-by: Alvin Zhang v2: fix xstats_get_names_by_id i

[dpdk-dev] [PATCH v3 04/11] net/igc: support reception and transmission of packets

2020-04-12 Thread alvinx . zhang
From: Alvin Zhang Below ops are added too: mac_addr_add mac_addr_remove mac_addr_set set_mc_addr_list mtu_set promiscuous_enable promiscuous_disable allmulticast_enable allmulticast_disable rx_queue_setup rx_queue_release rx_queue_count rx_descriptor_done rx_descriptor_status tx_descriptor_status

[dpdk-dev] [PATCH v3 03/11] net/igc: implement device base ops

2020-04-12 Thread alvinx . zhang
From: Alvin Zhang Bellow ops are implemented: dev_configure dev_start dev_stop dev_close dev_reset dev_set_link_up dev_set_link_down link_update fw_version_get dev_led_on dev_led_off Signed-off-by: Alvin Zhang v2: Modify codes according to comments. v3: Modify codes according to comments. ---

[dpdk-dev] [PATCH v3 01/11] net/igc: add igc PMD

2020-04-12 Thread alvinx . zhang
From: Alvin Zhang Implement device detection and loading. Add igc driver guid docs. Signed-off-by: Alvin Zhang v2: Update release note. Modify codes according to comments v3: Modify codes according to comments Fix secondary process hotplug fault --- MAINTAINERS

[dpdk-dev] [PATCH v3 00/11] igc pmd

2020-04-12 Thread alvinx . zhang
From: Alvin Zhang New PMD for I225 NICs. Alvin Zhang (11): net/igc: add igc PMD net/igc: support device initialization net/igc: implement device base ops net/igc: support reception and transmission of packets net/igc: enable statistics net/igc: enable Rx queue interrupts net/igc: i

[dpdk-dev] [PATCH v2 14/14] net/igc: implement flow API

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Below type of flows are supported: ether-type filter, 2-tuple filter, SYN filter, RSS Signed-off-by: Alvin Zhang --- drivers/net/igc/Makefile | 1 + drivers/net/igc/igc_ethdev.c | 3 + drivers/net/igc/igc_ethdev.h | 27 ++ drivers/net/igc/igc_filter.c | 7 + driver

[dpdk-dev] [PATCH v2 09/14] net/igc: implement feature of VLAN

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Below ops ware added: vlan_filter_set vlan_offload_set vlan_tpid_set vlan_strip_queue_set Signed-off-by: Alvin Zhang v2: fix max packet length fault when extend vlan is enabled or disabled --- doc/guides/nics/features/igc.ini | 2 + drivers/net/igc/igc_ethdev.c | 209 +

[dpdk-dev] [PATCH v2 13/14] net/igc: implement hash filter configure

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Support configure of hash filter. Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_filter.c | 155 +++ drivers/net/igc/igc_txrx.c | 77 - drivers/net/igc/igc_txrx.h | 4 ++ 3 files changed, 235 insertions(+)

[dpdk-dev] [PATCH v2 10/14] net/igc: implement ether-type filter

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Update feature list too. Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 1 + drivers/net/igc/Makefile | 1 + drivers/net/igc/igc_ethdev.c | 5 + drivers/net/igc/igc_ethdev.h | 15 +++ drivers/net/igc/igc_filter.c | 237 +++

[dpdk-dev] [PATCH v2 11/14] net/igc: implement 2-tuple filter

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Add L3 protocol type and L4 destination port filter. Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_ethdev.h | 38 + drivers/net/igc/igc_filter.c | 341 +++ drivers/net/igc/igc_filter.h | 3 + 3 files changed, 382 insertions(

[dpdk-dev] [PATCH v2 12/14] net/igc: implement TCP SYN filter

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Support putting all TCP SYN packets into a specified queue. Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_ethdev.h | 18 ++ drivers/net/igc/igc_filter.c | 129 +++ drivers/net/igc/igc_filter.h | 3 + 3 files changed, 150 ins

[dpdk-dev] [PATCH v2 08/14] net/igc: implement RSS API

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Below ops are added: reta_update reta_query rss_hash_update rss_hash_conf_get Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 2 + drivers/net/igc/igc_ethdev.c | 171 +++ drivers/net/igc/igc_ethdev.h | 9 +++ d

[dpdk-dev] [PATCH v2 05/14] net/igc: implement status API

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Implement base status, extend status and per queue status API. Below ops are added: stats_get xstats_get xstats_get_by_id xstats_get_names_by_id xstats_get_names stats_reset xstats_reset queue_stats_mapping_set Signed-off-by: Alvin Zhang v2: fix xstats_get_names_by_id issue

[dpdk-dev] [PATCH v2 07/14] net/igc: implement flow control ops

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Update feature list too. Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 1 + drivers/net/igc/igc_ethdev.c | 121 +++ 2 files changed, 122 insertions(+) diff --git a/doc/guides/nics/features/igc.ini b/doc/guides/nic

[dpdk-dev] [PATCH v2 06/14] net/igc: enable Rx queue interrupts

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Setup NIC to generate MSI-X interrupts. Set the IVAR register to map interrupt causes to vectors. Implement interrupt enable/disable functions. Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 1 + drivers/net/igc/igc_ethdev.c | 170

[dpdk-dev] [PATCH v2 04/14] net/igc: support reception and transmission of packets

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Below ops are added too: mac_addr_add mac_addr_remove mac_addr_set set_mc_addr_list mtu_set promiscuous_enable promiscuous_disable allmulticast_enable allmulticast_disable rx_queue_setup rx_queue_release rx_queue_count rx_descriptor_done rx_descriptor_status tx_descriptor_status

[dpdk-dev] [PATCH v2 03/14] net/igc: implement device base ops

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Bellow ops are implemented: dev_configure dev_start dev_stop dev_close dev_reset dev_set_link_up dev_set_link_down link_update fw_version_get dev_led_on dev_led_off Signed-off-by: Alvin Zhang v2: Modify codes according to comments. --- doc/guides/nics/features/igc.ini | 4

[dpdk-dev] [PATCH v2 01/14] net/igc: add igc PMD

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang Implement device detection and loading. Add igc driver guid docs. Signed-off-by: Alvin Zhang v2: Update release note. Modify codes according to comments --- MAINTAINERS | 7 + config/common_base | 7 + doc/guides/nics/feat

[dpdk-dev] [PATCH v2 00/14] igc PMD

2020-03-19 Thread alvinx . zhang
From: Alvin Zhang The IGC PMD (librte_pmd_igc) provides poll mode driver support for Foxville I225 Series Network Adapters. Alvin Zhang (14): net/igc: add igc PMD net/igc: support device initialization net/igc: implement device base ops net/igc: support reception and transmission of pack

[dpdk-dev] [PATCH v1 15/15] net/igc: implement flow API

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Below type of flows are supported: ether-type filter, 2-tuple filter, SYN filter, RSS Signed-off-by: Alvin Zhang --- drivers/net/igc/Makefile | 1 + drivers/net/igc/igc_ethdev.c | 3 + drivers/net/igc/igc_ethdev.h | 27 ++ drivers/net/igc/igc_filter.c | 7 + driver

[dpdk-dev] [PATCH v1 13/15] net/igc: implement TCP SYN filter

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Support putting all TCP SYN packets into a specified queue. Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_ethdev.h | 18 ++ drivers/net/igc/igc_filter.c | 129 +++ drivers/net/igc/igc_filter.h | 3 + 3 files changed, 150 ins

[dpdk-dev] [PATCH v1 14/15] net/igc: implement hash filter configure

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Support configure of hash filter. Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_filter.c | 155 +++ drivers/net/igc/igc_txrx.c | 77 - drivers/net/igc/igc_txrx.h | 4 ++ 3 files changed, 235 insertions(+)

[dpdk-dev] [PATCH v1 12/15] net/igc: implement 2-tuple filter

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Add L3 protocol type and L4 destination port filter. Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_ethdev.h | 38 + drivers/net/igc/igc_filter.c | 341 +++ drivers/net/igc/igc_filter.h | 3 + 3 files changed, 382 insertions(

[dpdk-dev] [PATCH v1 11/15] net/igc: implement ether-type filter

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Update feature list too. Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 1 + drivers/net/igc/Makefile | 1 + drivers/net/igc/igc_ethdev.c | 5 + drivers/net/igc/igc_ethdev.h | 15 +++ drivers/net/igc/igc_filter.c | 237 +++

[dpdk-dev] [PATCH v1 09/15] net/igc: implement RSS API

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Below ops are added: reta_update reta_query rss_hash_update rss_hash_conf_get Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 2 + drivers/net/igc/igc_ethdev.c | 171 +++ drivers/net/igc/igc_ethdev.h | 9 +++ d

[dpdk-dev] [PATCH v1 08/15] net/igc: implement flow control ops

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Update feature list too. Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 1 + drivers/net/igc/igc_ethdev.c | 121 +++ 2 files changed, 122 insertions(+) diff --git a/doc/guides/nics/features/igc.ini b/doc/guides/nic

[dpdk-dev] [PATCH v1 10/15] net/igc: implement feature of VLAN

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Below ops ware added: vlan_filter_set vlan_offload_set vlan_tpid_set vlan_strip_queue_set Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 2 + drivers/net/igc/igc_ethdev.c | 169 +++ drivers/net/igc/igc_ethdev.h

[dpdk-dev] [PATCH v1 07/15] net/igc: enable Rx queue interrupts

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Setup NIC to generate MSI-X interrupts. Set the IVAR register to map interrupt causes to vectors. Implement interrupt enable/disable functions. Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 1 + drivers/net/igc/igc_ethdev.c | 170

[dpdk-dev] [PATCH v1 06/15] net/igc: implement status API

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Implement base status, extend status and per queue status API. Below ops are added: stats_get xstats_get xstats_get_by_id xstats_get_names_by_id xstats_get_names stats_reset xstats_reset queue_stats_mapping_set Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini

[dpdk-dev] [PATCH v1 05/15] net/igc: support reception and transmission of packets

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Below ops are added too: mac_addr_add mac_addr_remove mac_addr_set set_mc_addr_list mtu_set promiscuous_enable promiscuous_disable allmulticast_enable allmulticast_disable rx_queue_setup rx_queue_release rx_queue_count rx_descriptor_done rx_descriptor_status tx_descriptor_status

[dpdk-dev] [PATCH v1 03/15] net/igc: device initialization

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Add functions and definitions that are OS specified. Add readme too. Signed-off-by: Alvin Zhang --- drivers/net/igc/Makefile | 46 +++ drivers/net/igc/base/README| 23 drivers/net/igc/base/e1000_osdep.c | 64 + drivers/net/igc/base/e1000_

[dpdk-dev] [PATCH v1 01/15] net/igc: add igc PMD

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Implement device detection and loading. Signed-off-by: Alvin Zhang --- MAINTAINERS | 7 + config/common_base | 7 + doc/guides/nics/features/igc.ini| 8 + doc/guides/nics/igc.rst | 39 + doc/g

[dpdk-dev] [PATCH v1 04/15] net/igc: implement device base ops

2020-03-09 Thread alvinx . zhang
From: Alvin Zhang Bellow ops are implemented: dev_configure dev_start dev_stop dev_close dev_reset dev_set_link_up dev_set_link_down link_update fw_version_get dev_led_on dev_led_off Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 4 + drivers/net/igc/igc_ethdev.c | 644

[dpdk-dev] [RFC 6/7] config/common_base: add igc PMD flags

2020-01-09 Thread alvinx . zhang
From: Alvin Zhang Add control flags for compiling igc PMD. Signed-off-by: Alvin Zhang --- config/common_base | 8 1 file changed, 8 insertions(+) diff --git a/config/common_base b/config/common_base index 7dec7ed..90ce3bc 100644 --- a/config/common_base +++ b/config/common_base @@ -2

[dpdk-dev] [RFC 7/7] doc: add igc guide and feature list

2020-01-09 Thread alvinx . zhang
From: Alvin Zhang Add igc.rst and igc.ini files. Signed-off-by: Alvin Zhang --- doc/guides/nics/features/igc.ini | 36 ++ doc/guides/nics/igc.rst | 65 2 files changed, 101 insertions(+) create mode 100644 doc/guides/nics/f

[dpdk-dev] [RFC 5/7] drivers/net: add meson build for igc

2020-01-09 Thread alvinx . zhang
From: Alvin Zhang Add meson build files to igc PMD. Signed-off-by: Alvin Zhang --- drivers/net/igc/base/meson.build| 43 + drivers/net/igc/meson.build | 15 drivers/net/igc/rte_pmd_igc_version.map | 3 +++ drivers/net/meson.buil

[dpdk-dev] [RFC 3/7] drivers/net: add igc make

2020-01-09 Thread alvinx . zhang
From: Alvin Zhang Add make files to igc PMD. Signed-off-by: Alvin Zhang --- drivers/net/Makefile | 1 + drivers/net/igc/Makefile | 83 2 files changed, 84 insertions(+) create mode 100644 drivers/net/igc/Makefile diff --git a/drivers/net/

[dpdk-dev] [RFC 4/7] igc: add igc library

2020-01-09 Thread alvinx . zhang
From: Alvin Zhang Add igc library file for compiling app. Signed-off-by: Alvin Zhang --- mk/rte.app.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 05ea034..a46d6a3 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -184,6 +184,7 @@ _LDLIBS-$(CONFIG_RT

[dpdk-dev] [PATCH v3] net/i40e: fix exception with multi-driver

2019-10-07 Thread alvinx . zhang
From: Alvin Zhang If support-multi-driver is enabled, the global registers should not be configured. But with the current code base, if creating a flow with rte_flow API, the global register GLQF_FD_MSK may be changed. Fixes: cfdfca493cae ("net/i40e: fix multiple driver support") Cc: sta...@dpdk

[dpdk-dev] [PATCH v3] net/i40e: fix exception with multi-driver

2019-10-07 Thread alvinx . zhang
From: Alvin Zhang If support-multi-driver is enabled, the global registers should not be configured. But with the current code base, if creating a flow with rte_flow API, the global register GLQF_FD_MSK may be changed. Fixes: cfdfca493cae ("net/i40e: fix multiple driver support") Cc: sta...@dpdk

[dpdk-dev] [PATCH v2] net/i40e: fix exception with multi-driver

2019-09-25 Thread alvinx . zhang
From: Alvin Zhang If support-multi-driver is enabled, the global registers should not be configured. But with the correct code base, if creating a flow with rte_flow API, the global register GLQF_FD_MSK may be changed. Fixes: cfdfca493cae ("net/i40e: fix multiple driver support") Cc: sta...@dpdk

[dpdk-dev] [PATCH v8] net/i40e: limit the number of VF messages

2019-09-23 Thread alvinx . zhang
From: Alvin Zhang PF driver supports counting VF adminQ messages. If any VF driver sends much more adminQ messages to its PF driver in a period of time, it will trigger the PF's message limitation, then in the next certain amount of seconds the PF driver will ignore any new adminQ message from th

[dpdk-dev] [PATCH] net/i40e: fix conflict with multi-driver

2019-09-19 Thread alvinx . zhang
From: Alvin Zhang If support-multi-driver option been set, we suppose the DPDK will not modify the value of global register GLQF_FD_MSK. Current situation is if we create a new flow with 'flow creat ...' command, the register value may be changed. Fixes: cfdfca493cae ("net/i40e: fix multiple dri

[dpdk-dev] [PATCH v7] net/i40e: limit the number of VF messages

2019-09-19 Thread alvinx . zhang
From: Alvin Zhang PF driver supportes counting VF adminQ messages. If any VF driver sending much more adminQ messages to it's PF driver in a period of time, it will trigger the PF's message limiting, then in the next certain amount of seconds the PF driver will ignore any new adminQ message from

[dpdk-dev] [PATCH v6] net/i40e: limit the number of VF messages

2019-09-18 Thread alvinx . zhang
From: Alvin Zhang PF driver supportes counting VF adminQ messages. If any VF driver sending much more adminQ messages to it's PF driver in a period of time, it will trigger the PF's message limiting, then in the next certain amount of seconds the PF driver will ignore any new adminQ message from

[dpdk-dev] [PATCH v5] net/i40e: validate all messages from VF

2019-09-18 Thread alvinx . zhang
From: Alvin Zhang If VF driver in VM continuous sending invalid messages by mailbox, it will waste CPU cycles on PF driver and impact other VF drivers configuration. PF driver supportes validation for all messages from VF. If any VF sending much more adminQ messages(valid/invalid/unsupported) to

[dpdk-dev] [PATCH v4] net/i40e: validate all messages from VF

2019-09-10 Thread alvinx . zhang
From: Alvin Zhang If VF driver in VM continuous sending invalid messages by mailbox, it will waste CPU cycles on PF driver and impact other VF drivers configuration. I40E PF PMD can count the numbers of invalid and unsupported messages from VFs, when the counter of statistics from a VF exceed max

  1   2   >