Re: [dpdk-dev] [PATCH 4/8] net/i40e: set TC strict priority mode

2017-03-24 Thread Lu, Wenzhuo
Hi Jingjing, > -Original Message- > From: Wu, Jingjing > Sent: Friday, March 24, 2017 1:20 PM > To: Lu, Wenzhuo; dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: RE: [dpdk-dev] [PATCH 4/8] net/i40e: set TC strict priority mode > > > > > -Original Message- > > From: dev [mailto:dev-boun

Re: [dpdk-dev] [PATCH 0/2] lib: add TCP IPv4 GRO support

2017-03-24 Thread Yuanhan Liu
On Fri, Mar 24, 2017 at 06:18:48AM +, Wiles, Keith wrote: > >> I think that having a separate library for GRO is a step in a right > >> direction. > >>> From my perspective - it provides a clean and flexible way to use that > >>> feature. > >> If later someone would like to put GRO into ethde

[dpdk-dev] [PATCH v3 00/61] net/qede/base: qede PMD enhancements

2017-03-24 Thread Rasesh Mody
Hi Ferruh, This patch set adds support for new firmware 8.18.9.0, new features and bug fixes. Please apply to dpdk-net-next for 17.05 release. v1..v3 - address all the review comments received so far including addressal of clang and 32-bit compilation errors. Thanks! Rasesh Harish Patil (3

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

2017-03-24 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 03/61] net/qede/base: mask Rx buffer attention bits

2017-03-24 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 v3 02/61] net/qede/base: send FW version driver state to MFW

2017-03-24 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 v3 07/61] net/qede/base: decrease maximum HW func per device

2017-03-24 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 v3 04/61] net/qede/base: print various indication on Tx-timeouts

2017-03-24 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

[dpdk-dev] [PATCH v3 10/61] net/qede/base: add nvram options

2017-03-24 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 v3 09/61] net/qede/base: remove attribute from update current config

2017-03-24 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 v3 08/61] net/qede/base: move mask constants defining NIC type

2017-03-24 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 v3 15/61] net/qede/base: prevent device init failure

2017-03-24 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 v3 14/61] net/qede/base: update MFW when default MTU is changed

2017-03-24 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 v3 11/61] net/qede/base: add comment

2017-03-24 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 v3 16/61] net/qede/base: read card personality via MFW commands

2017-03-24 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 v3 13/61] net/qede/base: change queue/sb-id from 8 bit to 16 bit

2017-03-24 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 v3 19/61] net/qede/base: allow only trusted VFs to be promisc

2017-03-24 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 v3 17/61] net/qede/base: allow probe to succeed with minor HW-issues

2017-03-24 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 v3 12/61] net/qede/base: use default MTU from shared memory

2017-03-24 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 v3 18/61] net/qede/base: remove unneeded step in HW init

2017-03-24 Thread Rasesh Mody
There is no need to close the OUT_EN NIG registers, so remove that. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/net/qede/base/ecore_dev.c b/drivers/net/qede/base/ecore_dev.c index 907566c..e2d4132 10

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

2017-03-24 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 v3 20/61] net/qede/base: qm initialization revamp

2017-03-24 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 v3 24/61] net/qede/base: prevent driver laod with invalid resources

2017-03-24 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 v3 25/61] net/qede/base: add interfaces for MFW TLV request processing

2017-03-24 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 v3 22/61] net/qede/base: check active VF queues before stopping

2017-03-24 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 v3 23/61] net/qede/base: set driver type before sending load request

2017-03-24 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 v3 26/61] net/qede/base: code refactoring of SP queues

2017-03-24 Thread Rasesh Mody
Maintain slowpath event queue and consumer queue within HW function structure, update corresponding alloc and free APIs accordingly. Cleanup unused code under CONFIG_ECORE_LL2 ifdef. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 43 +++-- drivers/ne

[dpdk-dev] [PATCH v3 27/61] net/qede/base: make L2 queues handle based

2017-03-24 Thread Rasesh Mody
L2 handler changes: This is change to remove the queue-id/qzone difference for Tx queues. It does that by mainly doing: a. VFs queues are no longer determined by the SBs they're using. Instead, the ecore-client needs to maintain those and choose the values to be used by VF when initializing it.

[dpdk-dev] [PATCH v3 28/61] net/qede/base: add support for handling TLV request from MFW

2017-03-24 Thread Rasesh Mody
Add support for handling the TLV request from Management FW. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/bcm_osal.h |3 + drivers/net/qede/base/ecore_mcp.c |6 - drivers/net/qede/base/ecore_mcp.h |8 + drivers/net/qede/base/ecore_mcp_api.h | 44 +- drivers/net

[dpdk-dev] [PATCH v3 29/61] net/qede/base: optimize cache-line access

2017-03-24 Thread Rasesh Mody
Optimize cache-line access in ecore_chain - re-arrange fields so that fields that are needed for fastpath [mostly produce/consume and their derivatives] are in the first cache line, and the rest are in the second. This is true for both PBL and NEXT_PTR kind of chains. Advancing a page in a SINGLE_

[dpdk-dev] [PATCH v3 31/61] net/qede/base: revise tunnel APIs/structs

2017-03-24 Thread Rasesh Mody
Revise tunnel APIs/structs. - Unite tunnel start and update params in single struct "ecore_tunnel_info" - Remove A0 chip tunnelling support. - Added per tunnel info - removed bitmasks. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h | 57 ++--- drivers/net/qede/b

[dpdk-dev] [PATCH v3 30/61] net/qede/base: infrastructure changes for VF tunnelling

2017-03-24 Thread Rasesh Mody
Infrastructure changes for VF tunnelling. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/bcm_osal.h |3 +- drivers/net/qede/base/ecore.h | 14 - drivers/net/qede/base/ecore_sp_commands.c | 87 +++-- drivers/net/qede/qede_if.h

[dpdk-dev] [PATCH v3 32/61] net/qede/base: add tunnelling support for VFs

2017-03-24 Thread Rasesh Mody
Add new tunnelling support for VFs. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/bcm_osal.h |3 +- drivers/net/qede/base/ecore_dev.c | 15 ++- drivers/net/qede/base/ecore_sp_commands.c | 15 ++- drivers/net/qede/base/ecore_sriov.c | 144 +++

[dpdk-dev] [PATCH v3 33/61] net/qede/base: formatting changes

2017-03-24 Thread Rasesh Mody
Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h | 14 +-- drivers/net/qede/base/mcp_public.h | 176 ++-- 2 files changed, 96 insertions(+), 94 deletions(-) diff --git a/drivers/net/qede/base/ecore.h b/drivers/net/qede/base/ecore.h index f86f7c

[dpdk-dev] [PATCH v3 34/61] net/qede/base: prevent transmitter stuck condition

2017-03-24 Thread Rasesh Mody
Change OOO TC properly to prevent transmitter stuck condition due to credit underruns. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h |4 +--- drivers/net/qede/base/ecore_dcbx.c |6 ++ drivers/net/qede/base/ecore_dev.c | 19 ++- drivers/net/qede/

[dpdk-dev] [PATCH v3 35/61] net/qede/base: add mask/shift defines for resource command

2017-03-24 Thread Rasesh Mody
Add several mask/shift defines for the resource command Signed-off-by: Rasesh Mody --- drivers/net/qede/base/mcp_public.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/qede/base/mcp_public.h b/drivers/net/qede/base/mcp_public.h index bd34557..1b1ecd2 100644

[dpdk-dev] [PATCH v3 36/61] net/qede/base: add API for using MFW resource lock

2017-03-24 Thread Rasesh Mody
Add base driver API for using the Management FW resource lock Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h |9 +++ drivers/net/qede/base/ecore_dcbx.h |3 - drivers/net/qede/base/ecore_mcp.c | 143 drivers/net/qede/base/ecore_mcp

[dpdk-dev] [PATCH v3 37/61] net/qede/base: remove clock slowdown option

2017-03-24 Thread Rasesh Mody
Remove clock slowdown NVM config option as this is not supported for current chipsets. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/nvm_cfg.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/qede/base/nvm_cfg.h b/drivers/net/qede/base/nvm_cfg.h

[dpdk-dev] [PATCH v3 39/61] net/qede/base: use L2-handles for RSS configuration

2017-03-24 Thread Rasesh Mody
Move RSS configuration into using L2-handles instead of queue-ids. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_l2.c | 48 ++--- drivers/net/qede/base/ecore_l2.h |2 ++ drivers/net/qede/base/ecore_l2_api.h |4 ++- drivers/net/qede/base/ecore_sr

[dpdk-dev] [PATCH v3 38/61] net/qede/base: add new image types

2017-03-24 Thread Rasesh Mody
Add new image types - RECOVERY and PK (Public Key) towards the second phase of NVRAM security support. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/mcp_public.h |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/qede/base/mcp_public.h b/drivers/net/qede/base/mcp_pub

[dpdk-dev] [PATCH v3 40/61] net/qede/base: change valloc to vzalloc

2017-03-24 Thread Rasesh Mody
Change OSAL_VALLOC() into OSAL_VZALLOC() which would also zero memory. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/bcm_osal.h |2 +- drivers/net/qede/base/ecore_dev.c |3 +-- drivers/net/qede/base/ecore_l2.c |3 +-- drivers/net/qede/base/ecore_mng_tlv.c |5

[dpdk-dev] [PATCH v3 41/61] net/qede/base: add support for previous driver unload

2017-03-24 Thread Rasesh Mody
New driver/management fw load request sequence for handling previous driver unload. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h | 13 ++ drivers/net/qede/base/ecore_dev.c | 43 ++-- drivers/net/qede/base/ecore_dev_api.h | 30 ++- drivers/net/qede/base/ecore_mcp

[dpdk-dev] [PATCH v3 42/61] net/qede/base: add non-L2 dcbx tlv application support

2017-03-24 Thread Rasesh Mody
Add non-l2 dcbx tlv application support. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dcbx.c | 30 ++ drivers/net/qede/base/ecore_dcbx.h |1 + drivers/net/qede/base/ecore_dcbx_api.h |4 +++- drivers/net/qede/base/ecore_proto_if.h |3

[dpdk-dev] [PATCH v3 43/61] net/qede/base: update bulletin board during VF init

2017-03-24 Thread Rasesh Mody
Updated bulletin board with link state during VF initialization. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_sriov.c | 88 --- 1 file changed, 51 insertions(+), 37 deletions(-) diff --git a/drivers/net/qede/base/ecore_sriov.c b/drivers/net/qede/

[dpdk-dev] [PATCH v3 44/61] net/qede/base: add coalescing support for VFs

2017-03-24 Thread Rasesh Mody
Add coalescing support for VFs. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 83 ++--- drivers/net/qede/base/ecore_dev_api.h | 43 ++--- drivers/net/qede/base/ecore_sriov.c | 66 +- drivers/net/qede

[dpdk-dev] [PATCH v3 45/61] net/qede/base: add macro got resource value message

2017-03-24 Thread Rasesh Mody
Add macro got resource value message Signed-off-by: Rasesh Mody --- drivers/net/qede/base/mcp_public.h |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/qede/base/mcp_public.h b/drivers/net/qede/base/mcp_public.h index 7f94ba1..6f0e2f9 100644 --- a/drivers/

[dpdk-dev] [PATCH v3 47/61] net/qede/base: add macro for unsupported command

2017-03-24 Thread Rasesh Mody
Add a macro for upsupported management FW command Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_mcp.c |6 ++ drivers/net/qede/base/mcp_public.h |1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/qede/base/ecore_mcp.c b/drivers/net/qede/bas

[dpdk-dev] [PATCH v3 48/61] net/qede/base: set max values for soft resoruces

2017-03-24 Thread Rasesh Mody
Add support for the new interface with the Management FW for setting max values of "soft" resoruces. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h |2 + drivers/net/qede/base/ecore_dev.c | 282 ++-- drivers/net/qede/base/ecore_mcp.c | 287

[dpdk-dev] [PATCH v3 46/61] net/qede/base: add mailbox for resource allocation

2017-03-24 Thread Rasesh Mody
Add the Management FW mailbox for getting non-l2 resource allocation information. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h |1 + drivers/net/qede/base/ecore_dev.c | 60 drivers/net/qede/base/mcp_public.h |1 + 3 files chang

[dpdk-dev] [PATCH v3 49/61] net/qede/base: add return code check

2017-03-24 Thread Rasesh Mody
Add a check of the return code of ecore_mcp_cmd_and_union() in ecore_mcp_send_protocol_stats() Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_mcp.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/qede/base/ecore_mcp.c b/drivers/net/qede/base/ec

[dpdk-dev] [PATCH v3 50/61] net/qede/base: zero out MFW mailbox data

2017-03-24 Thread Rasesh Mody
Zero the whole union data of the Management FW mailbox before copying the actual union member Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c |4 +- drivers/net/qede/base/ecore_mcp.c | 296 - drivers/net/qede/base/ecore_mcp.h | 19 ++-

[dpdk-dev] [PATCH v3 52/61] net/qede/base: add PF parameter

2017-03-24 Thread Rasesh Mody
Add a common enum to pf_params for RDMA. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_cxt.c |1 + drivers/net/qede/base/ecore_proto_if.h |7 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/net/qede/base/ecore_cxt.c b/drivers/net/qede/base/ecore_cxt.c in

[dpdk-dev] [PATCH v3 54/61] net/qede/base: add udp ports in bulletin board message

2017-03-24 Thread Rasesh Mody
Add udp ports in bulletin board message. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_iov_api.h |2 ++ drivers/net/qede/base/ecore_sriov.c | 33 + drivers/net/qede/base/ecore_vf.c | 12 drivers/net/qede/base/ecore_vf_api.h

[dpdk-dev] [PATCH v3 53/61] net/qede/base: allow PMD to control vport and RSS engine ids

2017-03-24 Thread Rasesh Mody
Let PMD have control over the vport-id and rss-eng-id of a given VF during initializaion. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_iov_api.h | 15 --- drivers/net/qede/base/ecore_sriov.c | 46 + drivers/net/qede/base/ecore_sriov.h

[dpdk-dev] [PATCH v3 55/61] net/qede/base: prevent DMAE transactions during recovery

2017-03-24 Thread Rasesh Mody
Prevent DMA engine transactions during recovery phase. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_hw.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/qede/base/ecore_hw.c b/drivers/net/qede/base/ecore_hw.c index 396edc2..2bcc32d 100644 --- a/drive

[dpdk-dev] [PATCH v3 51/61] net/qede/base: move code bits

2017-03-24 Thread Rasesh Mody
Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_vf.h | 41 +++--- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/drivers/net/qede/base/ecore_vf.h b/drivers/net/qede/base/ecore_vf.h index 228bbf0..f471388 100644 --- a/drivers/net/qede/b

[dpdk-dev] [PATCH v3 56/61] net/qede/base: multi-Txq support on same queue-zone for VFs

2017-03-24 Thread Rasesh Mody
A step toward having multi-Txq support on same queue-zone for VFs. This change takes care of: - VFs assume a single CID per-queue, where queue X receives CID X. Switch to a model similar to that of PF - I.e., Use different CIDs for Rx/Tx, and use mapping to acquire/release those. Each VF

[dpdk-dev] [PATCH v3 58/61] net/qede/base: semantic changes

2017-03-24 Thread Rasesh Mody
Make APIs static and other semantic changes. A step toward cleaning 'make C=1' with GCC 4.8.3. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_cxt.c |5 +- drivers/net/qede/base/ecore_cxt.h | 11 drivers/net/qede/base/ecore_dcbx.c |2 +- drivers/net/qede/base/ecore_de

[dpdk-dev] [PATCH v3 59/61] net/qede/base: add support for arfs mode

2017-03-24 Thread Rasesh Mody
From: Harish Patil Add base driver APIs to enable accelerated RFS[aRFS] mode and ramrod to configure rfs and ntuple filter. Signed-off-by: Harish Patil --- drivers/net/qede/base/ecore_cxt.c | 49 +++- drivers/net/qede/base/ecore_init_fw_funcs.c | 31 ++ driver

[dpdk-dev] [PATCH v3 57/61] net/qede/base: prevent race condition during unload

2017-03-24 Thread Rasesh Mody
Merge hw_stop and hw_reset into one function. Prevent race condition between MFW attentions and pf stop command during unload flow that causes an ASSERT. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/bcm_osal.h |1 + drivers/net/qede/base/ecore_dev.c | 175 --

[dpdk-dev] [PATCH v3 60/61] net/qede: add ntuple and flow director filter support

2017-03-24 Thread Rasesh Mody
From: Harish Patil Add limited support for ntuple filter and flow director configuration. The filtering is based on 4-tuples viz src-ip, dst-ip, src-port, dst-port. The mask fields, tcp_flags, flex masks, priority fields, Rx queue drop etc are not supported. Signed-off-by: Harish Patil --- doc

[dpdk-dev] [PATCH v3 61/61] net/qede: add LRO/TSO offloads support

2017-03-24 Thread Rasesh Mody
From: Harish Patil This patch includes slowpath configuration and fastpath changes to support LRO and TSO. A bit of revamping is needed in order to make use of existing packet classification schemes in Rx fastpath and for SG element processing in Tx. Signed-off-by: Harish Patil --- doc/guides/

[dpdk-dev] [PATCH 1/3] net/qede: fix missing UDP protocol in RSS offload types

2017-03-24 Thread Rasesh Mody
From: Harish Patil Both UDP and TCP based RSS offload types are supported by the device. This patch adds UDP protocol which got missed out in the original patch. Fixes: 4c98f2768eef ("net/qede: support RSS hash configuration") Signed-off-by: Harish Patil --- drivers/net/qede/qede_ethdev.c |

[dpdk-dev] [PATCH 2/3] net/qede: fix VF's RSS configuration failure

2017-03-24 Thread Rasesh Mody
From: Harish Patil The newer SR-IOV PF drivers expects RX/TX queues to be created before applying RSS configuration. This patch addresses this requirement by deferring RSS configuration till the queues are created. Even though this issue is only seen in SR-IOV context, the changes will be made ap

[dpdk-dev] [PATCH 3/3] net/qede: prevent crash while changing MTU dynamically

2017-03-24 Thread Rasesh Mody
From: Harish Patil The driver can handle dynamic MTU change without needing the port to be stopped explicitly by the application. However, there is currently no check to prevent I/Os from happening on a different thread while the port is going thru' reset internally. This patch fixes this issue b

Re: [dpdk-dev] [PATCH v2 00/61] net/qede/base: qede PMD enhancements

2017-03-24 Thread Mody, Rasesh
Hi Ferruh, > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Monday, March 20, 2017 9:59 AM > To: Mody, Rasesh ; dev@dpdk.org > Cc: Dept-Eng DPDK Dev > Subject: Re: [PATCH v2 00/61] net/qede/base: qede PMD enhancements > > On 3/18/2017 7:05 AM, Rasesh Mody wrote: > > Hi, > > > > This p

Re: [dpdk-dev] [PATCH 0/2] lib: add TCP IPv4 GRO support

2017-03-24 Thread Jiayu Hu
On Fri, Mar 24, 2017 at 03:22:30PM +0800, Yuanhan Liu wrote: > On Fri, Mar 24, 2017 at 06:18:48AM +, Wiles, Keith wrote: > > >> I think that having a separate library for GRO is a step in a right > > >> direction. > > >>> From my perspective - it provides a clean and flexible way to use that

Re: [dpdk-dev] [PATCH] net/mlx5: fix TSO header size in case of VLAN insertion

2017-03-24 Thread Nélio Laranjeiro
On Thu, Mar 23, 2017 at 02:42:11PM +0200, Shahaf Shuler wrote: > When VLAN insertion is requested the vlan size must be added to the > calculation of the TSO header size, as it is not embedded within the > mbuf l2 length. > > Fixes: 98083fd482a2 ("net/mlx5: add hardware TSO support") > Cc: sta...@

Re: [dpdk-dev] [PATCH 3/3] net/i40e: implement device reset on port

2017-03-24 Thread Wu, Jingjing
> > > > > +static int > > > +i40evf_handle_vf_reset(struct rte_eth_dev *dev) { > > > + struct i40e_adapter *adapter = > > > + I40E_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private); > > > + > > > + if (!dev->data->dev_started) > > > + return 0; > > > + > > > + adapter->reset_number = 1

Re: [dpdk-dev] [RFC 0/8] mbuf: structure reorganization

2017-03-24 Thread Jerin Jacob
On Wed, Mar 22, 2017 at 05:42:12PM +, Ananyev, Konstantin wrote: > > Hi Olivier, > > > > > > > > Another thing that doesn't look very convenient to me here - > > > > > > > We can have 2 different values of timestamp (both normalized and > > > > > > > not) > > > > > > > and there is no clear

Re: [dpdk-dev] [PATCH 3/3] net/i40e: implement device reset on port

2017-03-24 Thread Wu, Jingjing
> /* > * Structure to store private data specific for VF instance. > */ > @@ -708,6 +718,10 @@ struct i40e_adapter { > struct rte_timecounter systime_tc; > struct rte_timecounter rx_tstamp_tc; > struct rte_timecounter tx_tstamp_tc; > + > + /* For VF reset */ > + vola

[dpdk-dev] [PATCH v3 1/2] cryptodev: add api for attach-detach session with queue pair

2017-03-24 Thread akhil.goyal
From: Akhil Goyal HW based crypto drivers may only support limited number of sessions per queue pair. This requires support for attaching sessions to specific queue pair. New APIs are introduced to attach/detach a session with/from a particular queue pair. These are optional APIs. Application

[dpdk-dev] [PATCH v3 2/2] examples/ipsec-secgw: attach session-qp

2017-03-24 Thread akhil.goyal
From: Akhil Goyal adding support for attaching session to queue pairs. This is required as underlying crypto driver may only support limited number of sessions per queue pair if max_nb_sessions_per_qp > 0, session should be attached to a particular qp. Signed-off-by: Akhil Goyal Acked-by: Sergi

Re: [dpdk-dev] [PATCH 4/8] net/i40e: set TC strict priority mode

2017-03-24 Thread Wu, Jingjing
> -Original Message- > From: Lu, Wenzhuo > Sent: Friday, March 24, 2017 3:07 PM > To: Wu, Jingjing ; dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH 4/8] net/i40e: set TC strict priority mode > > Hi Jingjing, > > > -Original Message- > > From: Wu, Jingjing > > Sent: Friday, March

Re: [dpdk-dev] [PATCH 0/1] proposed minor change in rte_flow_validate semantics

2017-03-24 Thread Adrien Mazarguil
Hi John, On Thu, Mar 23, 2017 at 07:36:58PM -0700, John Daley wrote: > Hi, > > In implementing rte_flow_validate() for the Cisco enic, I got to wondering > if the semantics might be slightly off given how I see apps using it. > > Please forgive me if this has already been discussed, but during r

Re: [dpdk-dev] [PATCH v3 2/3] net/i40e: configurable PTYPE mapping

2017-03-24 Thread Wu, Jingjing
> diff --git a/drivers/net/i40e/rte_pmd_i40e.h > b/drivers/net/i40e/rte_pmd_i40e.h index a0ad88c..1e25270 100644 > --- a/drivers/net/i40e/rte_pmd_i40e.h > +++ b/drivers/net/i40e/rte_pmd_i40e.h > @@ -65,6 +65,13 @@ struct rte_pmd_i40e_mb_event_param { > uint16_t msglen; /**< length of the me

Re: [dpdk-dev] [PATCH 08/39] event/octeontx: add mailbox support

2017-03-24 Thread Jerin Jacob
On Thu, Mar 23, 2017 at 04:46:07PM +, Eads, Gage wrote: > Hi Jerin, Thanks Gage for the review. > > I identified a few issues below. > > Thanks, > Gage > > > > > +static inline void > > +mbox_send_requeust(struct mbox *m, struct octeontx_mbox_hdr *hdr, > > + const voi

Re: [dpdk-dev] [PATCH v2 1/3] app/testpmd: add support for MPLS and GRE items

2017-03-24 Thread Adrien Mazarguil
On Fri, Mar 24, 2017 at 02:17:42AM +, Xing, Beilei wrote: > Hi Adrien, > > > -Original Message- > > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > > Sent: Friday, March 24, 2017 3:39 AM > > To: Xing, Beilei > > Cc: Wu, Jingjing ; Zhang, Helin > > ; dev@dpdk.org > > Subje

[dpdk-dev] [PATCH v4 0/5] pipeline personalization profile support

2017-03-24 Thread Beilei Xing
Due to limited resources of X*710 (parser and analyzer configuration tables, number of packet classification types, number of packet types, filters configuration tables, etc.), it's impossible to simultaneously support all protocols/filters required for different parts on network. To enable protoco

[dpdk-dev] [PATCH v4 1/5] net/i40e: add pipeline personalization profile processing

2017-03-24 Thread Beilei Xing
Add support for adding a pipeline personalization profile package. Signed-off-by: Beilei Xing --- app/test-pmd/cmdline.c| 1 + drivers/net/i40e/i40e_ethdev.c| 198 ++ drivers/net/i40e/rte_pmd_i40e.h | 51 drivers/n

[dpdk-dev] [PATCH v4 2/5] app/testpmd: add command for loading a profile

2017-03-24 Thread Beilei Xing
This patch is to add testpmd CLI for loading a pipeline personalization profile. Signed-off-by: Beilei Xing --- app/test-pmd/cmdline.c | 73 ++ app/test-pmd/config.c | 67 + app/test-pmd/testpmd.h | 3 +

[dpdk-dev] [PATCH v4 4/5] app/testpmd: add command for getting loaded profiles

2017-03-24 Thread Beilei Xing
This patch is to add testpmd CLI for getting all loaded profiles. Signed-off-by: Beilei Xing --- app/test-pmd/cmdline.c | 91 ++ 1 file changed, 91 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 86177fb..7dafff3 1

[dpdk-dev] [PATCH v4 5/5] doc: add pipeline personalization profile support for i40e

2017-03-24 Thread Beilei Xing
Signed-off-by: Beilei Xing --- doc/guides/rel_notes/release_17_05.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_17_05.rst b/doc/guides/rel_notes/release_17_05.rst index 3e48224..f17e03b 100644 --- a/doc/guides/rel_notes/release_17_05.rst +++ b/doc/guide

[dpdk-dev] [PATCH v4 3/5] net/i40e: add get all loaded profiles

2017-03-24 Thread Beilei Xing
This patch is to add get all loaded profiles function. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c| 28 drivers/net/i40e/rte_pmd_i40e.h | 12 drivers/net/i40e/rte_pmd_i40e_version.map | 1 + 3 files changed, 41 in

Re: [dpdk-dev] [PATCH] cryptodev: add API note

2017-03-24 Thread Declan Doherty
On 23/03/2017 5:36 PM, Fiona Trahe wrote: Add note to cryptodev API that chained mbufs are not supported in DOCSISBPI mode. Signed-off-by: Fiona Trahe --- ... Hey Fiona, Is this really a limitation of DOCSISBPI mode or just the PMDs which currently support these operations. I don't see

Re: [dpdk-dev] [PATCH v3 41/61] net/qede/base: add support for previous driver unload

2017-03-24 Thread Ferruh Yigit
On 3/24/2017 7:28 AM, Rasesh Mody wrote: > New driver/management fw load request sequence for handling previous > driver unload. > > Signed-off-by: Rasesh Mody Hi Rasesh, Patch by patch build broken with this patch with following build error, and fixed back with patch 50/61: .../drivers/net/qe

Re: [dpdk-dev] [PATCH v3 00/61] net/qede/base: qede PMD enhancements

2017-03-24 Thread Ferruh Yigit
On 3/24/2017 7:27 AM, Rasesh Mody wrote: > Hi Ferruh, > > This patch set adds support for new firmware 8.18.9.0, new features and > bug fixes. > > Please apply to dpdk-net-next for 17.05 release. > > v1..v3 > - address all the review comments received so far including addressal of >clang an

Re: [dpdk-dev] [PATCH 19/39] event/octeontx: add support worker dequeue function

2017-03-24 Thread Jerin Jacob
On Thu, Mar 23, 2017 at 06:51:07PM +, Eads, Gage wrote: > Hi Jerin, Hi Gage, > > > > > +force_inline uint16_t __hot > > +ssows_deq_timeout(void *port, struct rte_event *ev, uint64_t > > +timeout_ticks) { > > + struct ssows *ws = port; > > + uint64_t iter; > > + uint16_t ret = 1; >

Re: [dpdk-dev] [PATCH v2 00/46] LiquidIO PMD

2017-03-24 Thread Shijith Thotton
On Tue, Mar 21, 2017 at 12:38:18PM +, Ferruh Yigit wrote: > On 3/2/2017 11:32 AM, Shijith Thotton wrote: > > The patch series provides initial version of virtual function poll mode > > driver for Cavium LiquidIO II server adapters. This version adds support > > for LiquidIO II CN23XX 210SV adap

Re: [dpdk-dev] [PATCH 0/2] lib: add TCP IPv4 GRO support

2017-03-24 Thread Ananyev, Konstantin
> -Original Message- > From: Hu, Jiayu > Sent: Friday, March 24, 2017 8:07 AM > To: Yuanhan Liu > Cc: Wiles, Keith ; Ananyev, Konstantin > ; Richardson, Bruce > ; Stephen Hemminger ; > Yigit, Ferruh ; > dev@dpdk.org; Liang, Cunming ; Thomas Monjalon > > Subject: Re: [dpdk-dev] [PATCH

[dpdk-dev] [PATCH v2] ether: use a default for max Rx frame size in configure()

2017-03-24 Thread Andriy Berestovskyy
At the moment rte_eth_dev_configure() behaves inconsistent: - for normal frames: out of range max_rx_pkt_len uses a default - for jumbo frames: out of range max_rx_pkt_len gives an error This patch fixes this inconsistency by using a default value for max_rx_pkt_len both for normal and jumbo fra

Re: [dpdk-dev] [PATCH v2 61/61] net/qede: add LRO/TSO offloads support

2017-03-24 Thread Ferruh Yigit
On 3/18/2017 7:06 AM, Rasesh Mody wrote: > From: Harish Patil > > This patch includes slowpath configuration and fastpath changes > to support LRO and TSO. A bit of revamping is needed in order > to make use of existing packet classification schemes in Rx fastpath > and for SG element processing

[dpdk-dev] [PATCH v2 00/22] NXP DPAA2 FSLMC Bus driver

2017-03-24 Thread Hemant Agrawal
(This patches has been split from DPAA2 PMD v8 series [1] as per comments received on ML [2].) The patchset introduces NXP’s QorIQ-Layerscape DPAA2 Architecture based fsl-mc bus driver. This version of the driver supports NXP LS208xA, LS204xA and LS108x family of Network SoCs. This driver is base

[dpdk-dev] [PATCH v2 01/22] mk/dpaa2: add the crc support to the machine type

2017-03-24 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal Acked-by: Jerin Jacob --- mk/machine/dpaa2/rte.vars.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mk/machine/dpaa2/rte.vars.mk b/mk/machine/dpaa2/rte.vars.mk index 8541633..e4735c2 100644 --- a/mk/machine/dpaa2/rte.vars.mk +++ b/mk/mach

[dpdk-dev] [PATCH v2 02/22] mk: handle intra drivers dependencies for shared build

2017-03-24 Thread Hemant Agrawal
From: Shreyansh Jain Suggested-by: Ferruh Yigit Signed-off-by: Shreyansh Jain --- mk/rte.lib.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index 5b72475..9486204 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -87,7 +87,7 @@ endif # T

[dpdk-dev] [PATCH v2 03/22] bus/fslmc: introducing fsl-mc bus driver

2017-03-24 Thread Hemant Agrawal
The fslmc bus driver is a rte_bus driver which scans the fsl-mc bus for NXP DPAA2 SoCs. Signed-off-by: Hemant Agrawal --- MAINTAINERS | 4 + config/common_base | 5 + config/defconfig_arm64-dpaa2-linuxapp-gcc | 8 +- drivers/Makefi

[dpdk-dev] [PATCH v2 04/22] bus/fslmc: add QBMAN driver to bus

2017-03-24 Thread Hemant Agrawal
QBMAN, is a hardware block which interfaces with the other accelerating hardware blocks (For e.g., WRIOP) on NXP's DPAA2 SoC for queue, buffer and packet scheduling. This patch introduces a userspace driver for interfacing with the QBMAN hw block. The qbman-portal component provides APIs to do th

[dpdk-dev] [PATCH v2 05/22] bus/fslmc: introduce MC object functions

2017-03-24 Thread Hemant Agrawal
This patch intoduces the DPAA2 MC(Management complex Driver). This is a minimal set of low level functions to send and receive commands to the fsl-mc. It includes support for basic management commands and commands to manipulate MC objects. This is common to be used by various DPAA2 PMDs. e.g.net,

[dpdk-dev] [PATCH v2 06/22] bus/fslmc: add mc dpio object support

2017-03-24 Thread Hemant Agrawal
This patch adds the DPIO object support in MC driver. DPIO - Data Path Input Output represent the processing context to access the QBMAN HW for packet I/O. Signed-off-by: Alex Marginean Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile | 1 + drivers/bus/fslmc/mc/

[dpdk-dev] [PATCH v2 07/22] bus/fslmc: add mc dpbp object support

2017-03-24 Thread Hemant Agrawal
DPBP object represent a hw based buffer pool instance in the DPAA2 hardware. Signed-off-by: Alex Marginean Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile | 1 + drivers/bus/fslmc/mc/dpbp.c | 261 drivers/bus/fslmc/mc/

  1   2   3   >