[dpdk-dev] [PATCH v4 25/62] net/qede/base: add interfaces for MFW TLV request processing

2017-03-27 Thread Rasesh Mody
Add new base driver interfaces for Management FW TLV request processing. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_mcp.c |6 + drivers/net/qede/base/ecore_mcp_api.h | 301 + 2 files changed, 307 insertions(+) diff --git a/drivers/net/qed

[dpdk-dev] [PATCH v4 24/62] net/qede/base: prevent driver load with invalid resources

2017-03-27 Thread Rasesh Mody
Prevent storage drivers from attempting to load with invalid resources. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/net/qede/base/ecore_dev.c b/drivers/net/qede/base/ecore_dev.c index

[dpdk-dev] [PATCH v4 22/62] net/qede/base: check active VF queues before stopping

2017-03-27 Thread Rasesh Mody
Make sure VF queue are closed before stopping vport. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_sriov.c | 37 ++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/net/qede/base/ecore_sriov.c b/drivers/net/qede/base/ecore_sri

[dpdk-dev] [PATCH v4 21/62] net/qede/base: print firmware MFW and MBI versions

2017-03-27 Thread Rasesh Mody
Add a printout of the FW, Management FW and MBI versions. Signed-off-by: Rasesh Mody --- drivers/net/qede/qede_if.h |9 - drivers/net/qede/qede_main.c | 14 ++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/drivers/net/qede/qede_if.h b/drivers/net/qed

[dpdk-dev] [PATCH v4 23/62] net/qede/base: set driver type before sending load request

2017-03-27 Thread Rasesh Mody
Set the drv_type before sending LOAD_REQ and remove the ver_str which is not used by the MFW Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h |3 +-- drivers/net/qede/base/ecore_mcp.c |3 --- drivers/net/qede/qede_ethdev.c|2 +- drivers/net/qede/qede_if.h|

[dpdk-dev] [PATCH v4 16/62] net/qede/base: read card personality via MFW commands

2017-03-27 Thread Rasesh Mody
Add support to read NIC personality via management FW for non-L2 protocols. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h | 16 +- drivers/net/qede/base/ecore_dev.c | 17 +-- drivers/net/qede/base/ecore_mcp.c | 41 +++

[dpdk-dev] [PATCH v4 17/62] net/qede/base: allow probe to succeed with minor HW-issues

2017-03-27 Thread Rasesh Mody
Allow probe to succeed with various 'minor' HW-issues [if requested] Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 71 +++-- drivers/net/qede/base/ecore_dev_api.h | 40 --- 2 files changed, 94 insertions(+), 17 deletions(-)

[dpdk-dev] [PATCH v4 19/62] net/qede/base: allow only trusted VFs to be promisc

2017-03-27 Thread Rasesh Mody
Allow only trusted VFs to be promisc/multi-promisc. The reasonable thing is to use the 'trusted' node instead of simply allowing VFs to become promiscuous. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_l2.c|8 drivers/net/qede/base/ecore_sriov.c |2 -- 2 files c

[dpdk-dev] [PATCH v4 15/62] net/qede/base: prevent device init failure

2017-03-27 Thread Rasesh Mody
Device initialization flow should not be failed because the FW interface command is not available. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/qede/base/ecore_dev.c b/drivers/ne

[dpdk-dev] [PATCH v4 20/62] net/qede/base: qm initialization revamp

2017-03-27 Thread Rasesh Mody
This patch revamps queue initialization. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/bcm_osal.h|2 + drivers/net/qede/base/ecore.h | 34 +- drivers/net/qede/base/ecore_cxt.c | 14 +- drivers/net/qede/base/ecore_dev.c | 869 --- driv

[dpdk-dev] [PATCH v4 13/62] net/qede/base: change queue/sb-id from 8 bit to 16 bit

2017-03-27 Thread Rasesh Mody
Change the queue/sb-id values from 8 bit fields to 16 bit fields. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c |8 drivers/net/qede/base/ecore_dev_api.h |4 ++-- drivers/net/qede/base/ecore_l2.c |2 +- drivers/net/qede/base/ecore_l2_api.h |2

[dpdk-dev] [PATCH v4 12/62] net/qede/base: use default MTU from shared memory

2017-03-27 Thread Rasesh Mody
Read and use the default MTU value from shared-memory. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h |2 ++ drivers/net/qede/base/ecore_dev.c |3 +++ drivers/net/qede/base/ecore_mcp.c | 10 ++ drivers/net/qede/base/ecore_mcp_api.h |2 ++ drive

[dpdk-dev] [PATCH v4 14/62] net/qede/base: update MFW when default MTU is changed

2017-03-27 Thread Rasesh Mody
Send mailbox command to Management FW when MTU changes. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 11 +++ drivers/net/qede/base/ecore_mcp.c |3 --- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/net/qede/base/ecore_dev.c b/drivers/

[dpdk-dev] [PATCH v4 10/62] net/qede/base: add nvram options

2017-03-27 Thread Rasesh Mody
Add a bunch of NVRAM options like MCOT, FEC selection, temperature threshold, Reset On Lan, etc. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/nvm_cfg.h | 465 ++- 1 file changed, 461 insertions(+), 4 deletions(-) diff --git a/drivers/net/qede/base/nv

[dpdk-dev] [PATCH v4 08/62] net/qede/base: move mask constants defining NIC type

2017-03-27 Thread Rasesh Mody
Move mask constants defining NIC type to ecore.h Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h |4 drivers/net/qede/base/ecore_dev.c |4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/qede/base/ecore.h b/drivers/net/qede/base/ecore

[dpdk-dev] [PATCH v4 09/62] net/qede/base: remove attribute from update current config

2017-03-27 Thread Rasesh Mody
Remove attribute field from update_current_config() API, Management FW need to know only the last entity who configured the device. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_mcp.c |5 ++--- drivers/net/qede/base/ecore_mcp_api.h |8 2 files changed, 2 inserti

[dpdk-dev] [PATCH v4 11/62] net/qede/base: add comment

2017-03-27 Thread Rasesh Mody
Add a comment for the endianness manipulation in ecore_mcp_send_drv_version(). Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_mcp.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/qede/base/ecore_mcp.c b/drivers/net/qede/base/ecore_mcp.c index 245d478..df6ebd2 100

[dpdk-dev] [PATCH v4 03/62] net/qede/base: mask Rx buffer attention bits

2017-03-27 Thread Rasesh Mody
Mask the BRB "RC0_EOP_OUT_SYNC_FIFO_PUSH_ERROR" attention. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c |6 ++ drivers/net/qede/base/reg_addr.h |3 +++ 2 files changed, 9 insertions(+) diff --git a/drivers/net/qede/base/ecore_dev.c b/drivers/net/qede/base/ecore

[dpdk-dev] [PATCH v4 07/62] net/qede/base: decrease maximum HW func per device

2017-03-27 Thread Rasesh Mody
Decrease MAX_HWFNS_PER_DEVICE from 4 to 2 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 b2f4910..d14f99c 100644 --- a/drivers/net/qede/base/ec

[dpdk-dev] [PATCH v4 04/62] net/qede/base: print various indication on Tx-timeouts

2017-03-27 Thread Rasesh Mody
Print various indication on Tx-timeouts. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_int.c | 27 +++ drivers/net/qede/base/ecore_int_api.h | 21 + drivers/net/qede/base/reg_addr.h |3 +++ drivers/net/qede/qede_main.c

Re: [dpdk-dev] [PATCH 00/62] net/qede/base: update PMD to 2.4.0.1

2017-03-27 Thread Mody, Rasesh
Please ignore this as it doesn't have subject prefix v4. > From: y...@qlogic.com [mailto:y...@qlogic.com] > Sent: Monday, March 27, 2017 11:41 PM > > From: Rasesh Mody > > Hi Ferruh, > > This patch set adds support for new firmware 8.18.9.0, adds new features > and includes bug fixes. This pat

[dpdk-dev] [PATCH v4 02/62] net/qede/base: send FW version driver state to MFW

2017-03-27 Thread Rasesh Mody
Add support to send FW version and driver state to Management FW. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 31 --- drivers/net/qede/base/ecore_mcp.c |7 +-- drivers/net/qede/base/ecore_mcp_api.h |3 ++- drivers/net/qede/

[dpdk-dev] [PATCH v4 00/62] net/qede/base: update PMD to 2.4.0.1

2017-03-27 Thread Rasesh Mody
Hi Ferruh, This patch set adds support for new firmware 8.18.9.0, adds new features and includes bug fixes. This patch set updates PMD version to 2.4.0.1. Please apply to dpdk-net-next for 17.05 release. v1..v4 - address all the review comments received so far Thanks! Rasesh Harish Patil (3):

[dpdk-dev] [PATCH v4 01/62] net/qede/base: return an initialized return value

2017-03-27 Thread Rasesh Mody
Make sure ecore_iov_mark_vf_flr() always returns an initialized return value. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_sriov.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/qede/base/ecore_sriov.c b/drivers/net/qede/base/ecore_sriov.c index

Re: [dpdk-dev] [PATCH] vhost: change mbuf allocation logs to debug

2017-03-27 Thread Yuanhan Liu
On Mon, Mar 27, 2017 at 12:29:30PM -0400, Allain Legacy wrote: > From: Matt Peters > > The current packet buffer alloc failures of the vhost dequeue operations > can flood the log system with error logs due to logging a runtime error > condition within the data path. I agree that we should avoid

[dpdk-dev] [PATCH 01/62] net/qede/base: return an initialized return value

2017-03-27 Thread Rasesh Mody
Make sure ecore_iov_mark_vf_flr() always returns an initialized return value. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_sriov.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/qede/base/ecore_sriov.c b/drivers/net/qede/base/ecore_sriov.c index

[dpdk-dev] [PATCH v3 4/4] net/i40e: enable tunnel filter for MPLS

2017-03-27 Thread Beilei Xing
This patch enables MPLS tunnel filter by replacing inner_mac filter. This configuration will be set when adding MPLSoUDP and MPLSoGRE filter rules, and it will be invalid only by NIC core reset. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 75 dri

[dpdk-dev] [PATCH v3 3/4] net/i40e: add MPLS parsing function

2017-03-27 Thread Beilei Xing
This patch add MPLS parsing function to support MPLS filtering. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.h | 2 + drivers/net/i40e/i40e_flow.c | 234 - 2 files changed, 235 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/

[dpdk-dev] [PATCH v3 1/4] ethdev: add MPLS and GRE items

2017-03-27 Thread Beilei Xing
This patch adds MPLS and GRE items to generic rte flow. Signed-off-by: Beilei Xing --- doc/guides/prog_guide/rte_flow.rst | 21 ++-- lib/librte_ether/rte_flow.h| 51 ++ 2 files changed, 70 insertions(+), 2 deletions(-) diff --git a/doc/gui

[dpdk-dev] [PATCH v3 2/4] app/testpmd: add MPLS and GRE fields to flow command

2017-03-27 Thread Beilei Xing
This patch exposes the following item fields through the flow command: - MPLS label - GRE protocol Signed-off-by: Beilei Xing --- app/test-pmd/cmdline_flow.c | 47 + app/test-pmd/config.c | 2 ++ doc/guides/testpmd_a

[dpdk-dev] [PATCH v3 0/4] add support for MPLS tunnel filter

2017-03-27 Thread Beilei Xing
This patchset adds support for MPLSoGRE and MPLSoUDP tunnel filters. I40e NICs can't recongnize MPLS tunnel packets by default, so need to load a profile to FW first, then MPLS tunnel packets can be recongnized with packet type 61 and 63. It depends on pipeline personalization profile support and c

Re: [dpdk-dev] [PATCH v2] net/virtio-user: support changing tap interface name

2017-03-27 Thread Yuanhan Liu
On Tue, Mar 28, 2017 at 12:09:09PM +, Wenfeng Liu wrote: > This patch adds a new option 'iface' to change the interface name of > tap device with vhost-kernel as backend. > > Signed-off-by: Wenfeng Liu > Reviewed-by: Jianfeng Tan This option applies only to vhost-kernel backend, you may ne

Re: [dpdk-dev] Query for QAT software running in SR-IOV mode at VM

2017-03-27 Thread Pankaj Joshi
Hello Fiona, Thanks for giving response. Below are my some points. Yes,I am using the cpaCyXXX API's so I need steps 4,5,6,7 here. Without SR-IOV, with "ICP_WITHOUT_IOMMU" application is running fine. Here I am trying to run my application on VM with SR-IOV enabled mode. Also I have pass through

Re: [dpdk-dev] [PATCH v3 0/9] virtio/vhost: Add MTU feature support

2017-03-27 Thread Yao, Lei A
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Maxime Coquelin > Sent: Monday, March 13, 2017 12:34 AM > To: acon...@redhat.com; so...@sonusnet.com; > yuanhan@linux.intel.com; Tan, Jianfeng ; > thomas.monja...@6wind.com; dev@dpdk.org > Cc: Maxime Coquelin

[dpdk-dev] [PATCH v2] net/virtio-user: support changing tap interface name

2017-03-27 Thread Wenfeng Liu
This patch adds a new option 'iface' to change the interface name of tap device with vhost-kernel as backend. Signed-off-by: Wenfeng Liu Reviewed-by: Jianfeng Tan --- drivers/net/virtio/virtio_user/virtio_user_dev.c | 12 drivers/net/virtio/virtio_user/virtio_user_dev.h | 2 +- dr

[dpdk-dev] [PATCH 27/28] bnxt: add support for set_mc_addr_list dev_op

2017-03-27 Thread Ajit Khaparde
This patch adds set_mc_addr_list dev_ops to support adding Multicast addr. If the number of Multicast addresses is more than the maximum number of Multicast addresses that the hardware supports, the PMD will enable Multicast Promiscuous mode for the specified function. Signed-off-by: Ajit Khaparde

[dpdk-dev] [PATCH 24/28] bnxt: Add support for mac_addr_set dev_op

2017-03-27 Thread Ajit Khaparde
This patch adds support for the mac_addr_set dev_op. This feature is not supported for a VF device. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/n

[dpdk-dev] [PATCH 25/28] bnxt: add support for xstats

2017-03-27 Thread Ajit Khaparde
This patch adds support to get and reset xstats dev_ops dev_ops added: xstats_get, xstats_get_name, xstats_reset HWRM commands added: hwrm_port_qstats, hwrm_port_clr_stats Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt.h| 7 + drivers/net/bnxt/bnxt_ethdev.c |

[dpdk-dev] [PATCH 26/28] bnxt: use only long BDs in Tx path

2017-03-27 Thread Ajit Khaparde
Devices before Cu+B1 cannot mix long and short buffer descriptors. Use the long BD in all cases. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_txr.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c index 6870b16..6222f62 1

[dpdk-dev] [PATCH 22/28] bnxt: Add newlines to all RTE_LOG() format strings

2017-03-27 Thread Ajit Khaparde
Add newline to the RTE_LOG() messages for better readability. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 10 +- drivers/net/bnxt/bnxt_filter.c | 2 +- drivers/net/bnxt/bnxt_irq.c| 2 +- drivers/net/bnxt/bnxt_ring.c | 2 +- driv

[dpdk-dev] [PATCH 23/28] bnxt: Add support for VLAN filter and strip dev_ops

2017-03-27 Thread Ajit Khaparde
This patch adds VLAN strip and offload callbacks. To add a VLAN filter: For each VNIC and each associated filter(s) if VLAN exists: if VLAN matches vlan_id VLAN filter already exists, just skip and continue else add a new MAC+V

[dpdk-dev] [PATCH 21/28] bnxt: Add VF stats get/reset functions

2017-03-27 Thread Ajit Khaparde
This patch adds functions to get/reset VF stats. It also adds the HWRM API needed to support this. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_hwrm.c | 55 drivers/net/bnxt/bnxt_hwrm.h | 3 + drivers/net/bnxt/hsi_struc

[dpdk-dev] [PATCH 17/28] bnxt: implement VF VLAN stripq functionality

2017-03-27 Thread Ajit Khaparde
This patch adds code to configure VF VLAN stripping feature. Reorganize the bnxt_hwrm_func_vf_stall() to bnxt_hwrm_func_vf_vnic_cfg_do which will take a callback and use that for configuring with a VFs VNICs. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_hwr

[dpdk-dev] [PATCH 19/28] bnxt: add code to configure a default VF VLAN

2017-03-27 Thread Ajit Khaparde
This patch adds code to insert a default VF VLAN. Also track the current default VLAN per vnic for the VF. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt.h | 1 + drivers/net/bnxt/bnxt_hwrm.c | 4 ++-- drivers/net/bnxt/bnxt_hw

[dpdk-dev] [PATCH 20/28] bnxt: Add support to set VF rxmode

2017-03-27 Thread Ajit Khaparde
This patch adds support to configure the VF L2 Rx settings. It also adds code in testpmd to call the appropriate bnxt PMD function when this setting needs to be configured in the hardware. Signed-off-by: Ajit Khaparde --- app/test-pmd/cmdline.c| 8 drivers/net/bnxt/bnxt

[dpdk-dev] [PATCH 18/28] bnxt: support lack of huge pages

2017-03-27 Thread Ajit Khaparde
rte_malloc_virt2phy() does not return a physical address if huge pages aren't in use. Further, rte_memzone->phys_addr is not a physical address. Use rte_mem_virt2phy() and manually lock pages to support lack of huge pages. Also check the return value of rte_mem_virt2phy() Verify the function re

[dpdk-dev] [PATCH 16/28] bnxt: add support for set VF MAC anti spoof

2017-03-27 Thread Ajit Khaparde
This patch adds support to enable VF MAC anti spoof. It also adds code in testpmd to call the appropriate function while configuring this setting when the bnxt PMD is in use. Signed-off-by: Ajit Khaparde --- app/test-pmd/cmdline.c| 5 +++ drivers/net/bnxt/bnxt.h

[dpdk-dev] [PATCH 15/28] bnxt: Update tx offload capabilities

2017-03-27 Thread Ajit Khaparde
Update the tx offload capabilities of the PMD. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index b81fded..7bbda68 100644 --- a/drivers/net/

[dpdk-dev] [PATCH 14/28] bnxt: Add support for udp_tunnel_port_add/del dev_ops

2017-03-27 Thread Ajit Khaparde
Add support for udp_tunnel_port_add/del dev_ops to configure a UDP port for VXLAN and Geneve Tunnel protocols. The HWRM supports only one global destination port for a tunnel type, use a referene counter to keep track of its usage. Cache the configured VXLAN/Geneve ports and use that value to check

[dpdk-dev] [PATCH 12/28] bnxt: improve some of the log messages

2017-03-27 Thread Ajit Khaparde
This patch improves some of the log messages. Log the VNIC ordinal to indicate the VNIC id, for which operation failed. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff

[dpdk-dev] [PATCH 10/28] bnxt: support for VF VLAN filtering

2017-03-27 Thread Ajit Khaparde
This patch adds support to enable/disable hardware VF VLAN filtering of received VLAN packets tagged with a specified VLAN Tag Identifier. This patch also modifies testpmd to call the appropriate function when bnxt PMD is in use. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde --- app

[dpdk-dev] [PATCH 13/28] bnxt: fix interrupt handler

2017-03-27 Thread Ajit Khaparde
bnxt_int_handler() wasn't updating the doorbell, meaning forward requests got repeated. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_irq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/bnxt/bnxt_irq.c b/drivers/net/bnxt/bnxt_irq.c index

[dpdk-dev] [PATCH 09/28] bnxt: add code to support VF QOS configuration

2017-03-27 Thread Ajit Khaparde
This patch adds support to configure MAX Tx rate for the specified VF. It also extends the testpmd app to call rte_pmd_bnxt_set_vf_rate_limit when bnxt PMD is in use. Signed-off-by: Ajit Khaparde --- app/test-pmd/config.c | 16 --- drivers/net/bnxt/bnxt.h

[dpdk-dev] [PATCH 08/28] bnxt: support setting VF mac address

2017-03-27 Thread Ajit Khaparde
Add support to set a VF MAC address. This patch also extends testpmd to call the appropriate vendor specific function to set the VF MAC address. Signed-off-by: Steeven Li Signed-off-by: Ajit Khaparde --- app/test-pmd/cmdline.c | 5 + drivers/net/bnxt/bnxt_hwrm.c| 20 ++

[dpdk-dev] [PATCH 11/28] bnxt: set the VMDQ pool size correctly

2017-03-27 Thread Ajit Khaparde
Calculate the VMDQ pool size correctly: For PFs the VMDQ count needs to be the minimum of all used and available resources like vnic, l2 CTX, RSS CTX, or 64 (hard coded). For VFs restrict the number of VMDQs to 1. If VFs are enabled, only allocate a single vnic to each function. This allows targeti

[dpdk-dev] [PATCH 05/28] bnxt: add support for PF/VF communications

2017-03-27 Thread Ajit Khaparde
Set up interrupts and default completion ring during device init to allow VF communications. Request most VF HWRM commands be forwarded to the PF driver. In the future, this should be configurable. Fix reporting of active VFs. Add a log message when a completion is ignored on the default comple

[dpdk-dev] [PATCH 07/28] bnxt: add functions for tx_loopback and queues_drop_en

2017-03-27 Thread Ajit Khaparde
Add functions rte_pmd_bnxt_set_tx_loopback and rte_pmd_bnxt_set_all_queues_drop_en to configure tx_loopback and queue_drop setting in the hardware. This patch also adds code to testpmd app to call the appropriate function when the bnxt driver is in use. Signed-off-by: Steeven Li Signed-off-by: A

[dpdk-dev] [PATCH 02/28] bnxt: add code to support PF, VF configuration

2017-03-27 Thread Ajit Khaparde
This patch adds some code while also reorganizing some of the existing code to configure resources for a PCI function. Key changes in the patch: 1) Move the function reset HWRM call to init path from dev_start path. 2) Eliminate unused bnxt_vf_info structure. 3) Set aside resources like Tx, Rx ring

[dpdk-dev] [PATCH 04/28] bnxt: add new HWRM commands

2017-03-27 Thread Ajit Khaparde
Add support for the following HWRM commands: - hwrm_func_buf_rgtr: This command is used by the PF driver to register buffers used in the PF-VF communication with the HWRM. The PF driver uses this command to register buffers for each PF-VF channel. A parent PF may issue this command per chil

[dpdk-dev] [PATCH 06/28] bnxt: add new HWRM commands to query VNIC info

2017-03-27 Thread Ajit Khaparde
This patch adds the following HWRM commands which will be used by the subsequent patches. - hwrm_func_vf_vnic_ids_query: This command is used to query vf vnic ids. - hwrm_vnic_qcfg: Query the RX VNIC structure. This function can be used by a PF or a VF driver to query its own VNIC resource

[dpdk-dev] [PATCH 01/28] bnxt: add hwrm_func_cfg_input/output structures

2017-03-27 Thread Ajit Khaparde
This patch adds hwrm_func_cfg API which allows the configuration of a child VF by its parent PF driver. It an also be used to configure a PF by its corresponding PF driver. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/hsi_struct_def_dpdk.h | 427 + 1 file cha

[dpdk-dev] [PATCH 03/28] bnxt: add additonal HWRM debug info to error messages

2017-03-27 Thread Ajit Khaparde
Add the cmd_err and opaque_0 and opaque_1 fields to HWRM error messages. These allow better debugging of some classes of HWRM errors. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_hwrm.c | 17 +++- drivers/net/bnxt/hsi_struct_def_dpdk.

[dpdk-dev] [PATCH 00/28] bnxt: new features, bug fixes and more

2017-03-27 Thread Ajit Khaparde
Apart from adding support for VF-PF/PF-VF communication, new dev_ops, few bug fixes and improve debug capabilities, this patchset updates the driver to the newer HWRM version 1.7.4 New dev_ops supported: set_mc_addr_list, xstats_get/reset, mac_addr_set, vlan_filter_set, vlan_strip_queue_set, vlan_

Re: [dpdk-dev] 答复: [PATCH] net/virtio-user: support changing tap interface name

2017-03-27 Thread Tan, Jianfeng
On 3/28/2017 11:02 AM, Wenfeng Liu wrote: Hi Jianfeng, At 2017-03-28 10:05:11, "Tan, Jianfeng" wrote: Hi Wenfeng, Thank you for implementing this. On 3/11/2017 11:36 PM, Wenfeng Liu wrote: This patch adds a new option 'iface' to change the interface name of tap device with vhost-kernel as

Re: [dpdk-dev] [PATCH v2 3/3] app/testpmd: add CL for ptype mapping configure

2017-03-27 Thread Wu, Jingjing
> -Original Message- > From: Yigit, Ferruh > Sent: Friday, March 17, 2017 12:27 AM > To: Zhang, Qi Z ; Wu, Jingjing ; > Zhang, Helin > Cc: dev@dpdk.org; De Lara Guarch, Pablo > Subject: Re: [dpdk-dev] [PATCH v2 3/3] app/testpmd: add CL for ptype mapping > configure > > On 3/12/2017 12:

[dpdk-dev] [PATCH v3 4/4] net/i40e: refine consistent tunnel filter

2017-03-27 Thread Beilei Xing
Add i40e_tunnel_type enumeration type to refine consistent tunnel filter, it will be esay to add new tunnel type for i40e. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 8 drivers/net/i40e/i40e_ethdev.h | 18 -- drivers/net/i40e/i40e_flow.c | 6 +++-

[dpdk-dev] [PATCH v3 1/4] net/i40e: rework tunnel filter functions

2017-03-27 Thread Beilei Xing
Rework tunnel filter functions to align with the new command buffer for add/remove cloud filter. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 90 ++ drivers/net/i40e/i40e_ethdev.h | 1 + drivers/net/i40e/i40e_flow.c | 19 + 3

[dpdk-dev] [PATCH v3 3/4] net/i40e: support tunnel filter to VF

2017-03-27 Thread Beilei Xing
Previously, only tunnel filter to PF is supported. This patch adds i40e_dev_consistent_tunnel_filter_set function for consistent filter API to support tunnel filter to VF. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 136 + drivers/net/i

[dpdk-dev] [PATCH v3 2/4] net/i40e: change tunnel filter function name

2017-03-27 Thread Beilei Xing
Change tunnel filter function name to VXLAN filter function, prepare for other tunnel filter function. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 58 1 file changed, 21 insertions(+), 37 deletions(-) diff --git a/drivers/net/i40e/i

[dpdk-dev] [PATCH v3 0/4] Rework tunnel filter functions

2017-03-27 Thread Beilei Xing
This patch set servers for MPLS and QinQ support. 1. Rework tunnel filter functions to align with the new added cloud filer command buffer structure. 2. Support tunnel filter to VF for consistent filter API. v3 changes: Remove big_buffer conditions to the other patch set. Change some return v

[dpdk-dev] Pls help check on old kernel

2017-03-27 Thread Xu, Qian Q
Hi, Gowrishankar Muthukrishnan Could you help check below build error? On some old kernels, the build failed due to your patch. Thx. There's build error on old kernels which was brought by commit "0fe9830b53452a6747cae9ff1a6bfc737b839a9d": > commit 0fe9830b53452a6747cae9ff1a6bfc737b839a9

[dpdk-dev] 答复: [PATCH] net/virtio-user: support changing tap interface name

2017-03-27 Thread Wenfeng Liu
Hi Jianfeng, At 2017-03-28 10:05:11, "Tan, Jianfeng" wrote: >Hi Wenfeng, > >Thank you for implementing this. > >On 3/11/2017 11:36 PM, Wenfeng Liu wrote: >> This patch adds a new option 'iface' to change the interface name of >> tap device with vhost-kernel as backend. >> >> Signed-off-by: Wenfen

[dpdk-dev] [PATCH v2] doc: relocate i40e known issues

2017-03-27 Thread Qiming Yang
This patch moved i40e related known issues from doc/guides/rel_notes/ known_issues.rst to doc/guides/nics/i40e.rst, makes us easy to track the issue about i40e. Signed-off-by: Qiming Yang --- doc/guides/nics/i40e.rst | 26 ++ doc/guides/rel_notes/known_issues.rst | 65 --

Re: [dpdk-dev] [PATCH] net/virtio-user: support changing tap interface name

2017-03-27 Thread Tan, Jianfeng
Hi Wenfeng, Thank you for implementing this. On 3/11/2017 11:36 PM, Wenfeng Liu wrote: This patch adds a new option 'iface' to change the interface name of tap device with vhost-kernel as backend. Signed-off-by: Wenfeng Liu --- drivers/net/virtio/virtio_user/virtio_user_dev.c | 12 -

Re: [dpdk-dev] [PATCH 2/5] net/virtio-user: add rxq interrupt mode support

2017-03-27 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Friday, March 17, 2017 2:48 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; david.march...@6wind.com > Subject: Re: [PATCH 2/5] net/virtio-user: add rxq interrupt mode support > > On Fri, Mar 03, 2017 at 05:

Re: [dpdk-dev] [PATCH 1/1] net/i40e: check return value of rte_zmalloc

2017-03-27 Thread Zhang, Helin
Hi Cai He Yes, I agree with you. Please rework your patch, and send out another version. Thank you very much for the good catch! Regards, Helin > -Original Message- > From: caihe [mailto:ca...@huawei.com] > Sent: Saturday, March 25, 2017 8:30 PM > To: Zhang, Helin > Cc: Wu, Jingjing ;

Re: [dpdk-dev] Segm fault to the update acl context

2017-03-27 Thread Ananyev, Konstantin
> > Hi Konstantin, > > Thank you for your questions. Please find below a sample of my code: > > After the program has started, I send sighup signals to update the acl > context, like this: > > if (signup == SIGHUP) >   use_acl_ctx_swap = 1; > ... > During the SIGHUP processes I create a new/

Re: [dpdk-dev] [PATCH] drivers/crypto: fix drivers to use ring size function

2017-03-27 Thread Thomas Monjalon
2017-03-27 15:54, Bruce Richardson: > Rather than reading the size directly from the ring structure, use the > dedicated ring function for that purpose. > Previous commits to do this only did so for the null crypto driver which > was the only one compiled in by default, but all other drivers need t

Re: [dpdk-dev] [PATCH] eal/bsd: query the cpu count only once

2017-03-27 Thread Thomas Monjalon
2017-03-23 15:09, Bruce Richardson: > Rather than querying the number of CPUs on the system multiple times, and > printing out the number each time, just query the value from sysctl once > and store it for future reuse. > > Signed-off-by: Bruce Richardson Applied, thanks

Re: [dpdk-dev] [PATCH] devtools: make log checking script BSD-compatible

2017-03-27 Thread Thomas Monjalon
2017-03-23 15:09, Bruce Richardson: > The -e flag to readlink doesn't exist on FreeBSD so change it to -f instead > which is present on both BSD and Linux. Error reported is: > > readlink: illegal option -- e > usage: readlink [-fn] [file ...] > usage: dirname string [...] > ./devtools/che

Re: [dpdk-dev] [PATCH v2] mk: optimize directory dependencies

2017-03-27 Thread Thomas Monjalon
2017-03-24 14:21, Olivier Matz: > Before this patch, the management of dependencies between directories > had several issues: > > - the generation of .depdirs, done at configuration is slow: it can take > more than one minute on some slow targets (usually ~10s on a standard > PC without -j). >

Re: [dpdk-dev] [PATCH v12 0/6] Expanded statistics reporting

2017-03-27 Thread Stephen Hemminger
On Mon, 27 Mar 2017 21:21:31 +0100 Remy Horton wrote: > This patchset consists of three libraries: A Metrics library for > distributing device information, a library that calculates bit-rate > statistics, and a library that calculates latency statistics. The > latter two libraries make use of the

[dpdk-dev] [PATCH v12 4/6] app/test-pmd: add bitrate statistics calculation

2017-03-27 Thread Remy Horton
Calculate bitrate statistics using the bitrate stats library. The resulting statistics can be viewed via proc_info. Signed-off-by: Remy Horton --- app/test-pmd/testpmd.c | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/tes

[dpdk-dev] [PATCH v12 6/6] app/test-pmd: add latency statistics calculation

2017-03-27 Thread Remy Horton
From: Harry van Haaren This patch adds latency stats commandline argument to testpmd, allowing to specify the lcore to use for latencystats updates. Signed-off-by: Reshma Pattan Signed-off-by: Harry van Haaren Signed-off-by: Remy Horton --- app/test-pmd/parameters.c | 20 +++-

Re: [dpdk-dev] Segm fault to the update acl context

2017-03-27 Thread Victor Detoni
Hi Konstantin, Thank you for your questions. Please find below a sample of my code: After the program has started, I send sighup signals to update the acl context, like this: if (signup == SIGHUP) use_acl_ctx_swap = 1; ... During the SIGHUP processes I create a new/swap acl ctx and data struct

[dpdk-dev] [PATCH v12 5/6] lib: added new library for latency stats

2017-03-27 Thread Remy Horton
From: Harry van Haaren Add a library designed to calculate latency statistics and report them to the application when queried. The library measures minimum, average and maximum latencies, and jitter in nano seconds. The current implementation supports global latency stats, i.e. per application st

[dpdk-dev] [PATCH v12 3/6] lib: add bitrate statistics library

2017-03-27 Thread Remy Horton
This patch adds a library that calculates peak and average data-rate statistics. For ethernet devices. These statistics are reported using the metrics library. Signed-off-by: Remy Horton --- MAINTAINERS| 4 + config/common_base

[dpdk-dev] [PATCH v12 1/6] lib: add information metrics library

2017-03-27 Thread Remy Horton
This patch adds a new information metrics library. This Metrics library implements a mechanism by which producers can publish numeric information for later querying by consumers. Metrics themselves are statistics that are not generated by PMDs, and hence are not reported via ethdev extended statist

[dpdk-dev] [PATCH v12 2/6] app/proc_info: add metrics displaying

2017-03-27 Thread Remy Horton
From: Reshma Pattan Modify the dpdk-procinfo process to display the newly added metrics. Added new command line option "--metrics" to display metrics. Signed-off-by: Reshma Pattan Signed-off-by: Remy Horton --- app/proc_info/main.c | 79 +++- 1

[dpdk-dev] [PATCH v12 0/6] Expanded statistics reporting

2017-03-27 Thread Remy Horton
This patchset consists of three libraries: A Metrics library for distributing device information, a library that calculates bit-rate statistics, and a library that calculates latency statistics. The latter two libraries make use of the first library. Metrics Library --- The Metrics lib

[dpdk-dev] Request for reviews

2017-03-27 Thread Ed Czeck
Atomic Rules LLC has released a PMD for the Atomic Rules Arkville family of devices. We would appreciate review comments and feedback on the driver for integration into the upcoming release 17.05. The patchwork entities are listed below, or are searchable in the dpdk dev archives with the "net/ar

Re: [dpdk-dev] Query for QAT software running in SR-IOV mode at VM

2017-03-27 Thread Trahe, Fiona
Hi Pankaj, See below > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Pankaj Joshi > Sent: Monday, March 27, 2017 5:20 PM > To: qat-linux ; dev@dpdk.org; us...@dpdk.org > Subject: [dpdk-dev] Query for QAT software running in SR-IOV mode at VM > > Hello Team, >

Re: [dpdk-dev] [PATCH v2 1/1] net/mlx4: add port parameter

2017-03-27 Thread Ferruh Yigit
On 3/27/2017 4:41 PM, Gaetan Rivet wrote: > Most ConnectX-3 adapters expose two physical ports on a single PCI bus > address. > > Add a new port parameter allowing the user to choose > either or both physical ports to be used by the application. > > This parameter is used as follows: > > Selecti

Re: [dpdk-dev] [PATCH 3/4] net/i40e: support tunnel filter to VF

2017-03-27 Thread Ferruh Yigit
On 3/9/2017 6:08 AM, Xing, Beilei wrote: > > >> -Original Message- >> From: Yigit, Ferruh >> Sent: Wednesday, March 8, 2017 11:50 PM >> To: Xing, Beilei ; Wu, Jingjing >> >> Cc: Zhang, Helin ; dev@dpdk.org; Iremonger, >> Bernard ; Liu, Yong >> Subject: Re: [dpdk-dev] [PATCH 3/4] net/i4

Re: [dpdk-dev] [PATCH v1] mempool/dpaa2: add DPAA2 hardware offloaded mempool

2017-03-27 Thread Olivier Matz
Hi Hemant, On Fri, 24 Mar 2017 17:42:46 +0100, Olivier Matz wrote: > > > From high level, I'm still a little puzzled by the amount of references > > > to mbuf in a mempool handler code, which should theorically handle any > > > kind of objects. > > > > > > Is it planned to support other kind of

[dpdk-dev] [PATCH] net/i40e: mbuf alloc failed counter not incremented

2017-03-27 Thread Allain Legacy
From: Matt Peters When an mbuf alloc fails during the mempool get operation for the i40e bulk alloc receive function, the rx_mbuf_alloc_failed counter is not incremented to record the error. This fix ensures consistency with the other i40e receive procedures and other net drivers. Signed-off-by

[dpdk-dev] [PATCH] vhost: change mbuf allocation logs to debug

2017-03-27 Thread Allain Legacy
From: Matt Peters The current packet buffer alloc failures of the vhost dequeue operations can flood the log system with error logs due to logging a runtime error condition within the data path. In order to prevent this condition, but still enable debugging, the logs are being changed to debug l

[dpdk-dev] Query for QAT software running in SR-IOV mode at VM

2017-03-27 Thread Pankaj Joshi
Hello Team, I have followed the steps given in section 10.4 in below link : http://dpdk.org/doc/guides/cryptodevs/qat.html 1. Export

Re: [dpdk-dev] [PATCH v5 11/20] event/sw: add start stop and close functions

2017-03-27 Thread Jerin Jacob
On Fri, Mar 24, 2017 at 04:53:06PM +, Harry van Haaren wrote: > From: Bruce Richardson > > Signed-off-by: Bruce Richardson > Signed-off-by: Harry van Haaren > --- > drivers/event/sw/sw_evdev.c | 74 > + > 1 file changed, 74 insertions(+) > > di

[dpdk-dev] [PATCH v2 1/1] net/mlx4: add port parameter

2017-03-27 Thread Gaetan Rivet
Most ConnectX-3 adapters expose two physical ports on a single PCI bus address. Add a new port parameter allowing the user to choose either or both physical ports to be used by the application. This parameter is used as follows: Selecting only the second port: -w 00:00.0,port=1 Selecting bot

  1   2   >