[dpdk-dev] [PATCH 01/17] net/qede/base: fix to handle stag update event

2018-09-08 Thread Rasesh Mody
This fix adds a ecore_mcp_update_stag() handler to handle the STAG update events from management FW and program the STAG value. It also clears the stag config on PF, when management FW invalidates the stag value. Fixes: ec94dbc57362 ("qede: add base driver") Cc: sta...@dpdk.org Signed-off-by: Ras

[dpdk-dev] [PATCH 00/17] net/qede: add enhancements and fixes

2018-09-08 Thread Rasesh Mody
This patchset adds enhancements and fixes for QEDE PMD. Rasesh Mody (8): net/qede/base: fix to handle stag update event net/qede/base: add support for OneView APIs net/qede/base: get pre-negotiated values for stag and bw net/qede: fix to program HW regs with ether type net/qede/base: lim

[dpdk-dev] [PATCH 02/17] net/qede/base: add support for OneView APIs

2018-09-08 Thread Rasesh Mody
Add support for the following OneView APIs: - ecore_mcp_ov_update_mtu() - Send MTU value to the management FW. - ecore_mcp_ov_update_mac() - Send MAC address to the management FW. - ecore_mcp_ov_update_eswitch() - Send eswitch_mode to management FW after the firmware load. Signed-off-by: Ras

[dpdk-dev] [PATCH 03/17] net/qede/base: get pre-negotiated values for stag and bw

2018-09-08 Thread Rasesh Mody
Request management FW for STAG and bandwidth values negotiated prior to the driver load. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 14 ++ drivers/net/qede/base/mcp_public.h |3 +++ 2 files changed, 17 insertions(+) diff --git a/drivers/net/qede/base/e

[dpdk-dev] [PATCH 06/17] net/qede/base: correct MCP error handler's log verbosity

2018-09-08 Thread Rasesh Mody
Correct the verbosity for slowpath message from DCB to SP. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_mcp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/qede/base/ecore_mcp.c b/drivers/net/qede/base/ecore_mcp.c index 1b6fc0a..1b6eb94 100644

[dpdk-dev] [PATCH 07/17] net/qede/base: fix logic for sfp get/set

2018-09-08 Thread Rasesh Mody
Fix logic for sfp get rx_los, tx_fault, tx_disable, and sfp set tx_disable. Fixes: bdc40630a8eb ("net/qede/base: add APIs for xcvr") Cc: sta...@dpdk.org Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_mcp.c | 37 - drivers/net/qede/base/ecore_mcp

[dpdk-dev] [PATCH 08/17] net/qede/base: use trust mode for forced MAC limitations

2018-09-08 Thread Rasesh Mody
From: Shahed Shaikh When trust mode is set to ON, VF can change it's MAC address inspite PF has set a forced MAC for that VF from HV. Earlier similar functionality is provided by module parameter "allow_vf_mac_change_mode" of qed. This change makes few changes in behavior of VF shadow config -

[dpdk-dev] [PATCH 04/17] net/qede: fix to program HW regs with ether type

2018-09-08 Thread Rasesh Mody
Fix to program the HW registers with proper ether type. Fixes: 36f45bce2537 ("net/qede/base: fix to support OVLAN mode") Cc: sta...@dpdk.org Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_dev.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/net/q

[dpdk-dev] [PATCH 05/17] net/qede/base: limit number of non ethernet queues to 64

2018-09-08 Thread Rasesh Mody
Limit the number of non ethernet queues to 64, allowing a max queues to status block ratio of 2:1 in case of storage target. Theoretically a non-target storage PF can have 128 queues and SBs. This change is to support 64 entries for a target iSCSI/FCoE PF and 128 for a non-target. Signed-off-by:

[dpdk-dev] [PATCH 09/17] net/qede/base: use pointer for bytes len read

2018-09-08 Thread Rasesh Mody
Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_mcp.c |4 ++-- drivers/net/qede/base/ecore_mcp_api.h |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/qede/base/ecore_mcp.c b/drivers/net/qede/base/ecore_mcp.c index ea71d07..364c146 100644 --

[dpdk-dev] [PATCH 11/17] net/qede: fix flow director bug for IPv6 filter

2018-09-08 Thread Rasesh Mody
From: Shahed Shaikh - PMD does not fill vtc_flow field of IPv6 header while constructing a packet for IPv6 filter. Hence filter was not getting applied properly. - IPv6 addresses got swapped while copying src and dst addresses. - Same issue with UDP and TCP port ids. Fixes: 622075356e8f ("ne

[dpdk-dev] [PATCH 10/17] net/qede: reorganize filter code

2018-09-08 Thread Rasesh Mody
From: Shahed Shaikh - rename qede_fdir.c to qede_filter.c - move all filter code to qede_filter.c Signed-off-by: Shahed Shaikh --- drivers/net/qede/Makefile |2 +- drivers/net/qede/qede_ethdev.c | 687 +--- drivers/net/qede/qede_ethdev.h | 25 +- drivers/net/q

[dpdk-dev] [PATCH 13/17] net/qede: add support for generic flow API

2018-09-08 Thread Rasesh Mody
From: Shahed Shaikh - Add support for rte_flow_validate(), rte_flow_create() and rte_flow_destroy() APIs - This patch adds limited support for the flow items because of the limited filter profiles supported by HW. - Only 4 tuples - src and dst IP (v4 or v6) addresses and src

[dpdk-dev] [PATCH 14/17] net/qede: fix Rx buffer size calculation

2018-09-08 Thread Rasesh Mody
From: Shahed Shaikh - HW does not include CRC in received frame when passed to host, so no need to consider CRC length while calculating Rx buffer size. - In scattered Rx mode, driver may allocate Rx buffer larger than the size of mbuf because it tries to adjust the buffer size to cache

[dpdk-dev] [PATCH 16/17] net/qede/base: fix MFW FLR flow bug

2018-09-08 Thread Rasesh Mody
From: Shahed Shaikh Management firmware does not properly clean IGU block in PF FLR flow which may result in undelivered attentions for link events from default status block. Add a workaround in PMD to execute extra IGU cleanup right after PF FLR is done. Fixes: 9e2f08a4ad5f ("net/qede/base: add

[dpdk-dev] [PATCH 12/17] net/qede: refactor fdir code into generic aRFS

2018-09-08 Thread Rasesh Mody
From: Shahed Shaikh - In order to prepare the base for RTE FLOW support, convert common code used for flow director support into common aRFS code. Signed-off-by: Shahed Shaikh --- drivers/net/qede/base/ecore_l2.c | 26 ++- drivers/net/qede/base/ecore_l2_api.h | 11 +- drivers/net/q

[dpdk-dev] [PATCH 17/17] net/qede: add support for dev reset

2018-09-08 Thread Rasesh Mody
From: Shahed Shaikh Implement eth_dev_ops->dev_reset callback. Signed-off-by: Shahed Shaikh --- drivers/net/qede/qede_ethdev.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 322400c..36a51f6 100644

[dpdk-dev] [PATCH 15/17] net/qede: add support for Rx descriptor status

2018-09-08 Thread Rasesh Mody
From: Shahed Shaikh This patch implement eth_dev_ops->rx_descriptor_status callback. Walk through receive completion ring to calculate receive descriptors used by firmware and then provide the status of offset accordingly. Signed-off-by: Shahed Shaikh --- drivers/net/qede/qede_ethdev.c |2