[dpdk-dev] Reading from a pcap file

2016-12-03 Thread Keren Hochman
Hi, When reading from a pcap file: *--vdev eth_pcap0, rx_pcap='tmp'* and using *rte_ring_dequeue_burst* What is the correct way to know when the file had finished? Thanks, Keren

[dpdk-dev] Filtering acording to port/cidr ip

2016-12-03 Thread Keren Hochman
Hello, Is there a way to filter packets which received by dpdk kernel or libpcap according to ip mask and port ? I need to support fragmented ip packets and fragmented tcp packets. Can I use *Packet Classification* for this purpose*? * Thank you, Keren

[dpdk-dev] [PATCH 29/29] net/ixgbe/base: update version of basical codes in README

2016-12-03 Thread Wei Dai
update the version of shared codes to cid-ixgbe.2016.11.21.tar.gz, all files in net/ixgbe/base are developped by another team and DPDK PMD uses them accordingly. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/README | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers

[dpdk-dev] [PATCH 28/29] net/ixgbe/base: report physical layer for SGMII PHY type

2016-12-03 Thread Wei Dai
For the PHY type SGMII, we need to report the physical layer so the OS can display the correct link connection. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgb

[dpdk-dev] [PATCH 26/29] net/ixgbe/base: remove unused old EEE code

2016-12-03 Thread Wei Dai
remove unused old EEE code. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 113 +--- drivers/net/ixgbe/base/ixgbe_x550.h | 2 - 2 files changed, 1 insertion(+), 114 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/i

[dpdk-dev] [PATCH 27/29] net/ixgbe/base: add write flush required by Inphi

2016-12-03 Thread Wei Dai
This patch updates Inphi configuration to flush the register write with a reg read. Inphi is configured in ixgbe_setup_mac_link_sfp_x550a. The Inphy setup flow has been updated to read configuration reg, write only linear/non-linear, and then read (write flush). Signed-off-by: Wei Dai --- driver

[dpdk-dev] [PATCH 24/29] net/ixgbe/base: add EEE support for DNL-controlled PHYs

2016-12-03 Thread Wei Dai
This patch adds EEE support for DNL-controlled PHYs. Because DNL does not indicate EEE capability or status, this patch simply assumes that it is supported. As soon as there is a DNL-supported PHY that does not support EEE, there will be defects in this area because the driver will not report the E

[dpdk-dev] [PATCH 23/29] net/ixgbe/base: update FW PHY flow control

2016-12-03 Thread Wei Dai
This patch removes the flow control conversion from rx and tx to pause and asymmetric pause, as that is handled by the call to ixgbe_negotiate_fc. Performing the conversion prior to calling ixgbe_negotiate_fc results in an incorrect fc mode if RX only pause is selected when the link partner is adve

[dpdk-dev] [PATCH 25/29] net/ixgbe/base: fix incorrect IXGBE LSWFW register

2016-12-03 Thread Wei Dai
This register was incorrect when compared to the data sheet. Even though the Linux kernel and DPDK polling mode driver doesn't currently use this register, it is better to fix it upstream. Fixes: af75078fece3 ("first public release") Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_type.

[dpdk-dev] [PATCH 22/29] net/ixgbe/base: remove unused PHY ID

2016-12-03 Thread Wei Dai
The first PHY ID for X550 was only used on original HW and never released. So remove these unused PHY ID. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 1 - drivers/net/ixgbe/base/ixgbe_type.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_ph

[dpdk-dev] [PATCH 20/29] net/ixgbe/base: add physical layer options for FW PHY type

2016-12-03 Thread Wei Dai
The "FW" PHY type now supports speeds 10M, 100M, and 1G. Previously, only the 1G speed was reported in the ixgbe_get_supported_physical_layer_X550em() function for this PHY type. This patch is to add the 10M and 100M options. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_type.h | 1 +

[dpdk-dev] [PATCH 19/29] net/ixgbe/base: check only X550 devices support 5G

2016-12-03 Thread Wei Dai
Since only X550 devices have support for 5G, so it should be checked for that speed on such devices. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_common.c | 2 +- drivers/net/ixgbe/base/ixgbe_hv_vf.c | 2 +- drivers/net/ixgbe/base/ixgbe_vf.c | 2 +- 3 files changed, 3 insertions(

[dpdk-dev] [PATCH 21/29] net/ixgbe/base: remove unneeded MAC check

2016-12-03 Thread Wei Dai
ixgbe_read_i2c_combined_generic_int() is only used by devices >= X550. Set the initial value accordingly and remove the MAC check. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_phy

[dpdk-dev] [PATCH 18/29] net/ixgbe/base: include new speeds in VFLINK interpretation

2016-12-03 Thread Wei Dai
This patch moves some of the extended speeds that come with X552 (5G, 2.5G, 10M) into the link check functions. It also now returns speed_unknown for speeds that are not known how to interpret. Signed-off-by: Wei Dai --- drivers/net/ixgbe/Makefile | 1 + drivers/net/ixgbe/base/ixgbe

[dpdk-dev] [PATCH 16/29] net/ixgbe/base: use FW commands to control some PHYs

2016-12-03 Thread Wei Dai
Use the new firmware interface to access and control some PHYs. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 4 - drivers/net/ixgbe/base/ixgbe_phy.h | 67 -- drivers/net/ixgbe/base/ixgbe_type.h | 2 +- drivers/net/ixgbe/base/ixgbe_x550.c | 412 ++

[dpdk-dev] [PATCH 17/29] net/ixgbe/base: support busy SGMII register reads

2016-12-03 Thread Wei Dai
This patch is needed for base driver support because the NW_MNG_IF_SEL register fields are used to determine SGMII link for busy SGMII register reads. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/n

[dpdk-dev] [PATCH 14/29] net/ixgbe/base: update setup PHY link to unset all speeds

2016-12-03 Thread Wei Dai
This patch updates ixgbe_setup_phy_link_generic to set/unset auto-negotiation for all speeds. This ensures that unsupported speeds are unset. This is necessary since the PHY NVM may advertise unsupported speeds. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 130 +++-

[dpdk-dev] [PATCH 15/29] net/ixgbe/base: support FW commands to control some PHYs

2016-12-03 Thread Wei Dai
Implement support for new firmware commands to be used to access and control some PHYs. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_common.h | 4 +- drivers/net/ixgbe/base/ixgbe_osdep.h | 3 +- drivers/net/ixgbe/base/ixgbe_type.h | 70 ++- drivers/net/ixgbe/base/ixgbe

[dpdk-dev] [PATCH 13/29] net/ixgbe/base: cleanup dead EEE code

2016-12-03 Thread Wei Dai
Remove some specific code for enabling/disabling EEE. Those were added previously and now are in "removed" status. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 61 ++--- 1 file changed, 10 insertions(+), 51 deletions(-) diff --git a/drivers/ne

[dpdk-dev] [PATCH 12/29] net/ixgbe/base: fix SGMII link setup for M88 PHYs

2016-12-03 Thread Wei Dai
This patch fixes ixgbe_setup_sgmii_m88 to set lane speed to autoneg instead of 1G to prevent problems with link between PHYs Fixes: d4b4c6845487 ("net/ixgbe/base: add X550em_a FW ALEF support") Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 2 +- 1 file changed, 1 insertion(+)

[dpdk-dev] [PATCH 10/29] net/ixgbe/base: add X552 MAC check for iXFI flows

2016-12-03 Thread Wei Dai
The MAC register NW_MNG_IF_SEL fields have been redefined for X553. These changes impact the iXFI driver code flow. Since iXFI is only supported in X552, this patch adds X552 MAC check for iXFI flows. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_type.h | 4 ++-- drivers/net/ixgbe/bas

[dpdk-dev] [PATCH 11/29] net/ixgbe/base: fix getting phy type

2016-12-03 Thread Wei Dai
This patch fixes ixgbe_get_supported_physical_layer_X550em to correctly return physical layer as IXGBE_PHYSICAL_LAYER_1000BASE_T for some devices. Fixes: 76d5b807ff74 ("ixgbe/base: new X557 phy") Fixes: d2e72774e58c ("ixgbe/base: support X550") Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/

[dpdk-dev] [PATCH 08/29] net/ixgbe/base: cleanup logic in X540 checksum calculation

2016-12-03 Thread Wei Dai
The variable checksum_last_word is used only for a bounds check. So remove this variable and use IXGBE_EEPROM_CHECKSUM directly. IXGBE_EEPROM_CHECKSUM value is included in the for loop, but then it is checked and excluded. Remove the variable checksum_last_word from the loop so no check is needed.

[dpdk-dev] [PATCH 09/29] net/ixgbe/base: enable LASI interrupts only for X552 devices

2016-12-03 Thread Wei Dai
Enable the LASI interrupts on X552 devices to receive notifications of the link configurations of the external PHY and correspondingly support the configuration of the internal iXFI link, since iXFI does not support auto-negotiation. This is not required for X553 devices having KR support, which pe

[dpdk-dev] [PATCH 05/29] net/ixgbe/base: clean up X557 link status check

2016-12-03 Thread Wei Dai
This patch cleans up the code and clarifies the comment around the X557 PHY link status check in ixgbe_check_link_t_x550em( ). Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers/ne

[dpdk-dev] [PATCH 06/29] net/ixgbe/base: add driver version to firmware

2016-12-03 Thread Wei Dai
This patch sends the driver version string to firmware through the host interface command on x550 devices. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_api.c| 7 ++-- drivers/net/ixgbe/base/ixgbe_api.h| 2 +- drivers/net/ixgbe/base/ixgbe_common.c | 4 ++- drivers/net/ixgbe/

[dpdk-dev] [PATCH 07/29] net/ixgbe/base: add support to store LED link active

2016-12-03 Thread Wei Dai
This patch adds support to get the LED link active via the LEDCTL register. If the LEDCTL register does not have LED link active (LED mode field = 0x0100) set then default LED link active returned. LED link active is used for adapter identify/blink support. Signed-off-by: Wei Dai --- drivers/net

[dpdk-dev] [PATCH 04/29] net/ixgbe/base: fix PHY identification

2016-12-03 Thread Wei Dai
previous method to identify the CS4223/CS4227 is incorrect and unreliable. This patch provide a new register to differentiate between these PHY SKUs. Fixes: fc0559bdb5e3 ("net/ixgbe/base: add link MAC setup for X550a SFP+") Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.h | 5 +++-

[dpdk-dev] [PATCH 03/29] net/ixgbe/base: use fast MDIO for non-10G MDIO devices

2016-12-03 Thread Wei Dai
Devices that cannot go 10G can safely select a faster MDIO speed than those devices that can possibly connect at 10G. So select the higher speed for those devices. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH 02/29] net/ixgbe/base: fix condition to clear RAR entry

2016-12-03 Thread Wei Dai
Specifically the RAR entry for the SAN MAC address is being cleared when the VMDq pool bits are cleared. In order to prevent this we need to add an extra check to protect the SAN MAC from being cleared. Fixes: af75078fece3 ("first public release") Signed-off-by: Wei Dai --- drivers/net/ixgbe/ba

[dpdk-dev] [PATCH 01/29] net/ixgbe/base: fix check for PHY reset

2016-12-03 Thread Wei Dai
The previously generic PHY reset check is not sufficient for the PHY type = ixgbe_phy_x550em_ext_t. This patch fixes it. Fixes: af75078fece3 ("first public release") Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 29 - 1 file changed, 24 insertions(+

[dpdk-dev] [PATCH 3/3] app/test: add ARMv8 crypto tests and test vectors

2016-12-03 Thread zbigniew.bodek
From: Zbigniew Bodek Introduce unit tests for ARMv8 crypto PMD. Add test vectors for short cases such as 160 bytes. These test cases are ARMv8 specific since the code provides different processing paths for different input data sizes. Add test vectors for cipher + SHA256 MAC generation. User can

[dpdk-dev] [PATCH 1/3] mk: fix build of assembly files for ARM64

2016-12-03 Thread zbigniew.bodek
From: Zbigniew Bodek Avoid using incorrect assembler (nasm) and unsupported flags when building for ARM64. Signed-off-by: Zbigniew Bodek --- mk/arch/arm64/rte.vars.mk| 1 - mk/toolchain/gcc/rte.vars.mk | 6 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mk/arch/arm64

[dpdk-dev] [PATCH] Add crypto PMD optimized for ARMv8

2016-12-03 Thread zbigniew.bodek
From: Zbigniew Bodek Introduce crypto poll mode driver using ARMv8 cryptographic extensions. This PMD is optimized to provide performance boost for chained crypto operations processing, such as: * encryption + HMAC generation * decryption + HMAC validation. In particular, cipher only or hash only

[dpdk-dev] [PATCH 5/5] examples/l3fwd: add parse-ptype option

2016-12-03 Thread Jianfeng Tan
To support those devices that do not provide packet type info when receiving packets, add a new option, --parse-ptype, to analyze packet type in the Rx callback. Signed-off-by: Jianfeng Tan --- examples/l3fwd-power/main.c | 60 - 1 file changed, 59 ins

[dpdk-dev] [PATCH 3/5] net/virtio: remove Rx queue interrupts when stopping

2016-12-03 Thread Jianfeng Tan
This patch disables Rx queue interrupts, cleans the datapath event and queue/vector map when stopping the device. Signed-off-by: Jianfeng Tan --- drivers/net/virtio/virtio_ethdev.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c

[dpdk-dev] [PATCH 4/5] net/virtio: add Rx queue intr enable/disable functions

2016-12-03 Thread Jianfeng Tan
This patch implements interrupt enable/disable functions for each Rx queue. And we rely on flags of avail queue as the hint for virtio device to interrupt virtio driver or not. Signed-off-by: Jianfeng Tan --- drivers/net/virtio/virtio_ethdev.c | 22 ++ drivers/net/virtio/virt

[dpdk-dev] [PATCH 1/5] net/virtio: add Rx descriptor check

2016-12-03 Thread Jianfeng Tan
Under interrupt mode, rx_descriptor_done is used as an indicator for applications to check if some number of packets are ready to be received. This patch enables this by checking used ring's local consumed idx with shared (with backend) idx. Signed-off-by: Jianfeng Tan --- drivers/net/virtio/vi

[dpdk-dev] [PATCH 2/5] net/virtio: setup Rx fastpath interrupts

2016-12-03 Thread Jianfeng Tan
In virtio, each rx queue has one exclusive interrupt (corresponding to irqfd in the qemu/kvm) to get notified when packets are available in that queue. That is to say, queues cannot share interrupt. So we have 1:1 mapping between queues and interrupts. This patch creates eventfds for each Rx queue

[dpdk-dev] [PATCH 0/5] Interrupt mode for virtio PMD

2016-12-03 Thread Jianfeng Tan
First of all, interrupt mode here means per-queue Rx interrupt support. Historically, virtio PMD can only be binded to igb_uio or uio_pci_generic, and not for vfio-pci. Besides, quote from http://dpdk.org/doc/guides-16.11/rel_notes/release_2_1.html: "- Per queue RX interrupt events are only allo

[dpdk-dev] [PATCH v2 2/2] eal: rename dev init API for consistency

2016-12-03 Thread Jerin Jacob
rte_eal_dev_init() is a misleading name. It actually performs the driver->probe for vdev, which is parallel to rte_eal_pci_probe. Changed to rte_eal_vdev_probe for consistency and moved the vdev specific probe to eal_common_vdev.c Suggested-by: Shreyansh Jain Signed-off-by: Jerin Jacob --- dri

[dpdk-dev] [PATCH v2 1/2] eal: postpone vdev initialization

2016-12-03 Thread Jerin Jacob
Some platform like octeontx may use pci and vdev based combined device to represent a logical dpdk functional device.In such case, postponing the vdev initialization after pci device initialization will provide the better view of the pci device resources in the system in vdev's probe function, and

[dpdk-dev] [PATCH v2 0/2] postpone vdev initialization

2016-12-03 Thread Jerin Jacob
v2: - No changes in eal: postpone vdev initialization - Added new patch "eal: rename dev init API for consistency" as suggested by Shreyansh Jain http://dpdk.org/dev/patchwork/patch/17096/ Jerin Jacob (2): eal: postpone vdev initialization eal: rename dev init API for consistency drivers/net

[dpdk-dev] [PATCH v2] cryptodev: fix crash on null dereference

2016-12-03 Thread Jerin Jacob
crypodev->data->name will be null when rte_cryptodev_get_dev_id() invoked without a valid crypto device instance. Fixes: d11b0f30df88 ("cryptodev: introduce API and framework for crypto devices") Signed-off-by: Jerin Jacob Acked-by: Arek Kusztal CC: sta...@dpdk.org --- lib/librte_cryptodev/rt

[dpdk-dev] Intent to upstream Atomic Rules net/ark "Arkville" in DPDK 17.05

2016-12-03 Thread Shepard Siegel
Atomic Rules would like to include our Arkville DPDK PMD net/ark in the DPDK 17.05 release. We have been watching the recent process of Solarflare’s net/sfc upstreaming and we decided it would be too aggressive for us to get in on 17.02. Rather than be the last in queue for 17.02, we would prefer t

[dpdk-dev] [PATCH 3/3] app/testpmd: add ixgbe MACsec offload support

2016-12-03 Thread Tiwei Bie
add test for set macsec offload add test for set macsec sc add test for set macsec sa Signed-off-by: Tiwei Bie --- app/test-pmd/cmdline.c | 389 + app/test-pmd/macfwd.c | 2 + app/test-pmd/macswap.c | 2 + app/test-pmd/testpmd.h | 2 + app/t

[dpdk-dev] [PATCH 2/3] net/ixgbe: add MACsec offload support

2016-12-03 Thread Tiwei Bie
MACsec (or LinkSec, 802.1AE) is a MAC level encryption/authentication scheme defined in IEEE 802.1AE that uses symmetric cryptography. This commit adds the MACsec offload support for ixgbe. Signed-off-by: Tiwei Bie --- drivers/net/ixgbe/ixgbe_ethdev.c| 436 +++

[dpdk-dev] [PATCH 1/3] lib: add MACsec offload flags

2016-12-03 Thread Tiwei Bie
These flags will be used in next commits in the ixgbe pmd. Signed-off-by: Tiwei Bie --- lib/librte_ether/rte_ethdev.h | 2 ++ lib/librte_mbuf/rte_mbuf.h| 5 + 2 files changed, 7 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 9678179..25a33

[dpdk-dev] [PATCH 0/3] Add MACsec offload support for ixgbe

2016-12-03 Thread Tiwei Bie
This patch set adds the MACsec offload support for ixgbe. The testpmd is also updated to support MACsec cmds. Tiwei Bie (3): lib: add MACsec offload flags net/ixgbe: add MACsec offload support app/testpmd: add ixgbe MACsec offload support app/test-pmd/cmdline.c | 389 +

[dpdk-dev] [PATCH 3/3] net/ixgbe: optimize Rx/Tx log message level

2016-12-03 Thread Qiming Yang
Signed-off-by: Qiming Yang --- drivers/net/ixgbe/ixgbe_logs.h | 7 +++ drivers/net/ixgbe/ixgbe_rxtx.c | 14 +++--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_logs.h b/drivers/net/ixgbe/ixgbe_logs.h index 53ba42d..68e47fd 100644 --- a/drive

[dpdk-dev] [PATCH 2/3] net/i40e: optimize Rx/Tx log message level

2016-12-03 Thread Qiming Yang
Signed-off-by: Qiming Yang --- drivers/net/i40e/i40e_logs.h | 7 +++ drivers/net/i40e/i40e_rxtx.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_logs.h b/drivers/net/i40e/i40e_logs.h index e042e24..5c25dbf 100644 --- a/drivers/net/i40e/i40e_logs.h

[dpdk-dev] [PATCH 0/3] net: optimize Rx/Tx log message level

2016-12-03 Thread Qiming Yang
These three patches optimized the level of Rx and Tx log messages. Add a new log control function PMD_RX_FREE_LOG to control the Rx message which is not printed in packet receive processing. This function switched by macro RTE_LIBRTE__DEBUG_RX_FREE. Qiming Yang (3): net/e1000: optimize Rx/Tx lo

[dpdk-dev] [PATCH 1/3] net/e1000: optimize Rx/Tx log message level

2016-12-03 Thread Qiming Yang
Signed-off-by: Qiming Yang --- config/common_base | 1 + drivers/net/e1000/e1000_logs.h | 7 +++ drivers/net/e1000/em_rxtx.c| 10 +- drivers/net/e1000/igb_rxtx.c | 10 +- 4 files changed, 18 insertions(+), 10 deletions(-) diff --git a/config/common_base b/

[dpdk-dev] [PATCH 25/25] net/qede: update PMD version to 2.0.0.1

2016-12-03 Thread Rasesh Mody
Signed-off-by: Rasesh Mody --- drivers/net/qede/qede_ethdev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/qede/qede_ethdev.h b/drivers/net/qede/qede_ethdev.h index 9701d736..be54f31e 100644 --- a/drivers/net/qede/qede_ethdev.h +++ b/drivers/net/qede/qede_et

[dpdk-dev] [PATCH 24/25] net/qede/base: dcbx changes for base driver

2016-12-03 Thread Rasesh Mody
This patch includes changes for DCBX like: - Return empty parameters for oper-params query when negotiation is not complete - Use the ieee specific mask value for reading the ethtype value in the ieee dcbx mode - Endian-ness conversion is not needed for priority<->TC field, as the data

[dpdk-dev] [PATCH 23/25] net/qede/base: semantic/formatting changes

2016-12-03 Thread Rasesh Mody
This patch consists of semantic/formatting changes. It also includes comment additions. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/common_hsi.h | 5 +- drivers/net/qede/base/ecore_dev.c| 53 --- drivers/net/qede/base/ecore_hsi_common.h | 14 +- drivers/net/qede/ba

[dpdk-dev] [PATCH 22/25] net/qede/base: add support for new firmware

2016-12-03 Thread Rasesh Mody
Add support for 8.14.x.x firmware. Signed-off-by: Rasesh Mody --- doc/guides/nics/qede.rst | 8 +-- drivers/net/qede/base/common_hsi.h| 6 +- drivers/net/qede/base/ecore.h | 9 --- drivers/net/qede/base/ecore_dcbx.c| 17 +- driv

[dpdk-dev] [PATCH 19/25] net/qede/base: add support for 2x10G mode

2016-12-03 Thread Rasesh Mody
Add support for 2x10G mode Signed-off-by: Rasesh Mody --- doc/guides/nics/qede.rst | 2 +- drivers/net/qede/base/ecore.h | 1 + drivers/net/qede/base/ecore_dev.c | 3 +++ drivers/net/qede/base/nvm_cfg.h | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/guid

[dpdk-dev] [PATCH 20/25] net/qede: add PCI ids for new chip variant

2016-12-03 Thread Rasesh Mody
Add PCI IDs for new asic type (defined as CHIP_NUM_AH_xxx). It supports 50G, 40G, 25G and 10G speeds. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 7 +- drivers/net/qede/qede_ethdev.c| 29 ++-- drivers/net/qede/qede_ethdev.h| 47

[dpdk-dev] [PATCH 21/25] net/qede: add 50G device PCI id

2016-12-03 Thread Rasesh Mody
Add 50G device support for 57980 series Signed-off-by: Rasesh Mody --- config/common_base | 2 +- doc/guides/nics/qede.rst | 4 ++-- drivers/net/qede/qede_ethdev.c | 3 +++ drivers/net/qede/qede_ethdev.h | 2 ++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/con

[dpdk-dev] [PATCH 18/25] net/qede/base: add support for external PHY

2016-12-03 Thread Rasesh Mody
Add support for external PHY BCM8485x. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_mcp.c | 6 +-- drivers/net/qede/base/mcp_public.h | 88 -- 2 files changed, 87 insertions(+), 7 deletions(-) diff --git a/drivers/net/qede/base/ecore_mcp.c b/

[dpdk-dev] [PATCH 17/25] net/qede/base: retrieve FW crash dump info

2016-12-03 Thread Rasesh Mody
As part of device probe, check if management FW crash dump logs are available. If available, then log an warning message and update the epoch value too. A new struct ecore_mdump_info is added to populate dump info including the new "reason" field by reading shared memory region. Signed-off-by: Ras

[dpdk-dev] [PATCH 15/25] net/qede: add new host ring type option

2016-12-03 Thread Rasesh Mody
Add new option called external PBL (page base list) to ecore_chain_alloc for future use. Mark chain as external if external PBL is provided. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_chain.h | 9 - drivers/net/qede/base/ecore_dev.c | 27 ---

[dpdk-dev] [PATCH 13/25] net/qede/base: add new enum member to status codes

2016-12-03 Thread Rasesh Mody
Add ECORE_CONN_RESET to enum ecore_status. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_status.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/qede/base/ecore_status.h b/drivers/net/qede/base/ecore_status.h index 6277bc80..c77ec260 100644 --- a/drivers/net/qede/b

[dpdk-dev] [PATCH 16/25] net/qede/base: add check for get nvm info return code

2016-12-03 Thread Rasesh Mody
Fail ecore_get_hw_info() in case ecore_hw_get_nvm_info() fails. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/net/qede/base/ecore_dev.c b/drivers/net/qede/base/ecore_dev.c index f29b3cda

[dpdk-dev] [PATCH 14/25] net/qede/base: add macros for converting pointer

2016-12-03 Thread Rasesh Mody
Add macros PTR_LO and PTR_HI (for converting pointer to HI and LOW bits for passing to FW hsi handles). Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_utils.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/qede/base/ecore_utils.h b/drivers/net/qede/base/ecore_

[dpdk-dev] [PATCH 12/25] net/qede/base: enhance resource info set printouts

2016-12-03 Thread Rasesh Mody
Add the resources names in the ecore_hw_set_resc_info() printouts. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 100 +++--- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/drivers/net/qede/base/ecore_dev.c b/drivers/net/qede/

[dpdk-dev] [PATCH 03/25] net/qede/base: add handling of malicious VF

2016-12-03 Thread Rasesh Mody
Receive indication that VFs are malicious and pass it to the caller/clients and stop serving those VF's additional resource requests. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/bcm_osal.h | 1 + drivers/net/qede/base/ecore_iov_api.h | 4 +- drivers/net/qede/base/ecore_l2.c

[dpdk-dev] [PATCH 11/25] net/qede: remove unused struct member

2016-12-03 Thread Rasesh Mody
Remove b_hw_channel from struct ecore_dev. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h| 2 -- drivers/net/qede/base/ecore_vf.c | 10 -- drivers/net/qede/qede_main.c | 5 ++--- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/net/qede/base

[dpdk-dev] [PATCH 10/25] net/qede/base: semantic change

2016-12-03 Thread Rasesh Mody
Semantic change: No reason to have p_ prefix to non-pointers Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_sriov.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/net/qede/base/ecore_sriov.c b/drivers/net/qede/base/

[dpdk-dev] [PATCH 09/25] net/qede/base: improve Tx-switching performance

2016-12-03 Thread Rasesh Mody
In order to improve Tx switching performance an additional HSI parameter called same-as-last-id is introduced. This resource allows FW caching the txqs packet properties. Driver needs to set same-as-last-id to be equal to the qzone. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_l2.c

[dpdk-dev] [PATCH 08/25] net/qede/base: fix updating VF queue zone id

2016-12-03 Thread Rasesh Mody
Pass the absolute qzone_id when creating queues. Fixes: 5cdd769a ("qede: add L2 support") Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c| 9 ++--- drivers/net/qede/base/ecore_l2.c | 10 +- drivers/net/qede/base/ecore_l2_api.h | 11 +-- drivers/net/

[dpdk-dev] [PATCH 05/25] net/qede/base: make API non-static

2016-12-03 Thread Rasesh Mody
Move ecore_set_fw_mac_addr from ecore_l2.c to ecore_dev.c to facilitate future code reuse. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h | 2 ++ drivers/net/qede/base/ecore_dev.c | 13 + drivers/net/qede/base/ecore_l2.c | 11 --- 3 files changed, 15 inser

[dpdk-dev] [PATCH 06/25] net/qede/base: rename macro

2016-12-03 Thread Rasesh Mody
Rename OOO_LB_TC to PKT_LB_TC to give better meaning. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h| 2 +- drivers/net/qede/base/ecore_hw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/qede/base/ecore.h b/drivers/net/qede/base/ecore.h inde

[dpdk-dev] [PATCH 04/25] net/qede/base: change return codes in SR-IOV

2016-12-03 Thread Rasesh Mody
Change return codes in VF/SR-IOV base driver from int to enum _ecore_status_t. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_sriov.c | 19 +++ drivers/net/qede/base/ecore_sriov.h | 4 ++-- drivers/net/qede/base/ecore_vf.c| 33 ++--- 3

[dpdk-dev] [PATCH 07/25] net/qede/base: add check to validate txq

2016-12-03 Thread Rasesh Mody
Make sure VF tx_qid and the status block index is in the allocated range, else fail the request. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_sriov.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/net/qede/base/ecore_sriov.c

[dpdk-dev] [PATCH 02/25] net/qede/base: improve set field macro

2016-12-03 Thread Rasesh Mody
Improve robustness of the SET_FIELD macro by using a mask. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/qede/base/ecore.h b/drivers/net/qede/base/ecore.h index 907b35b9..c9f3b003 100644 --- a/drivers/

[dpdk-dev] [PATCH 01/25] net/qede/base: add request for PF FLR before load request

2016-12-03 Thread Rasesh Mody
Add a request for PF FLR before a load request Fix the location of the PF FLR initiation to be after ecore_get_hw_info() (which invokes ecore_hw_info_port_num()) Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 16 ++-- drivers/net/qede/base/ecore_dev_api.h |

[dpdk-dev] [PATCH 00/25] net/qede: update qede pmd to 2.0.0.1

2016-12-03 Thread Rasesh Mody
Hi, This patch set consists of enhancements, new 8.14.x.x firmware support and semantic changes. It update the QEDE PMD version to 2.0.0.1. Please include in DPDK 17.02 release. Thanks! Rasesh Rasesh Mody (25): net/qede/base: add request for PF FLR before load request net/qede/base: improve

Re: [dpdk-dev] [PATCH 3/4] crypto: add sgl support for sw PMDs

2016-12-03 Thread Michał Mirosław
2016-12-02 18:07 GMT+01:00 Tomasz Kulasek : > This patch introduces RTE_CRYPTODEV_FF_MBUF_SCATTER_GATHER feature flag > informing that selected crypto device supports segmented mbufs natively > and doesn't need to be coalesced before crypto operation. > > While using segmented buffers in crypto dev