[dpdk-dev] [PATCH] app/test-pmd: Detect NUMA socket count

2015-08-20 Thread Stephen Hurd
max number of sockets is required. Signed-off-by: Stephen Hurd --- app/test-pmd/parameters.c | 12 ++-- app/test-pmd/testpmd.c| 17 + app/test-pmd/testpmd.h| 3 +-- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/app/test-pmd/parameters.c b/app

[dpdk-dev] [PATCH v4 02/39] bnxt: add HWRM init code

2016-06-06 Thread Stephen Hurd
nsures the response space is large enough for the largest possible response. bnxt_hwrm_queue_qportcfg: Required to get the default queue ID. v4: Fix few issues highlighted by checkpatch. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- d

[dpdk-dev] [PATCH v4 03/39] bnxt: add driver register/unregister support

2016-06-06 Thread Stephen Hurd
Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt.h| 1 + drivers/net/bnxt/bnxt_ethdev.c | 38 - drivers/net/bnxt/bnxt_hwrm.c | 50 ++ drivers/net/bnxt/bnxt_hwrm.h | 3 + d

[dpdk-dev] [PATCH v4 04/39] bnxt: add dev infos get operation

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Gets device info from the bp structure filled in the init() function. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt.h| 3 ++ drivers/net/bnxt/bnxt_ethdev.

[dpdk-dev] [PATCH v4 05/39] bnxt: add dev configure operation

2016-06-06 Thread Stephen Hurd
ed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt.h| 32 +++ drivers/net/bnxt/bnxt_ethdev.c | 24 ++ drivers/net/bnxt/bnxt_hwrm.c | 232 +++- drivers/net/bnxt/bnxt_hwrm.h | 1 + drivers/net/bnxt/hsi_struct_def_dpdk.h

[dpdk-dev] [PATCH v4 07/39] bnxt: declare ring structs and free() func

2016-06-06 Thread Stephen Hurd
aparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/Makefile| 1 + drivers/net/bnxt/bnxt_ring.c | 47 ++ drivers/net/bnxt/bnxt_ring.h | 92 3 files changed, 140 insertions(+) create mode 100644 d

[dpdk-dev] [PATCH v4 13/39] bnxt: initial Tx code implementation

2016-06-06 Thread Stephen Hurd
Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/Makefile | 1 + drivers/net/bnxt/bnxt_cpr.h| 4 +- drivers/net/bnxt/bnxt_ethdev.c | 3 +- drivers/net/bnxt/bnxt_ring.c | 145 ++ d

[dpdk-dev] [PATCH v4 12/39] bnxt: Add statistics operations

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Add get and clear staitstics operations and the asociated HWRM calls. v4: Address review comments and fix issues pointed out by checkpatch. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- d

[dpdk-dev] [PATCH v4 09/39] bnxt: add L2 filter alloc/init/free

2016-06-06 Thread Stephen Hurd
which then allows the ASIC to direct the incoming traffic to an appropriate VNIC or Rx ring. v4: Address review comments and fix issues pointed out by checkpatch. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/Makefile

[dpdk-dev] [PATCH v4 06/39] bnxt: add vnic functions and structs

2016-06-06 Thread Stephen Hurd
in use. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/Makefile | 1 + drivers/net/bnxt/bnxt.h| 14 ++ drivers/net/bnxt/bnxt_vnic.c | 277 + drivers/ne

[dpdk-dev] [PATCH v4 08/39] bnxt: add completion ring support

2016-06-06 Thread Stephen Hurd
tware. v4: Address review comments and fix issues pointed out by checkpatch. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/Makefile | 1 + drivers/net/bnxt/bnxt.h| 5 + drivers/net/bnxt/

[dpdk-dev] [PATCH v4 11/39] bnxt: add Rx queue create/destroy operations

2016-06-06 Thread Stephen Hurd
viewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/Makefile | 1 + drivers/net/bnxt/bnxt.h| 2 + drivers/net/bnxt/bnxt_ethdev.c | 3 + drivers/net/bnxt/bnxt_rxq.c| 288 + drivers/ne

[dpdk-dev] [PATCH v4 32/39] bnxt: add all multicast enable/disable operations

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> This patch adds dev_ops to enable/disable multicast traffic. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_ethdev.c | 30 ++ 1 file chang

[dpdk-dev] [PATCH v4 30/39] bnxt: add start/stop/link update operations

2016-06-06 Thread Stephen Hurd
efault completion ring is created. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_ethdev.c | 269 + 1 file changed, 269 insertions(+) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/ne

[dpdk-dev] [PATCH v4 31/39] bnxt: add promiscuous enable/disable operations

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> This patch adds the promiscuous mode enable and disable dev_ops. v4: Fix couple of typos in the commit message. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_ethdev.

[dpdk-dev] [PATCH v4 22/39] bnxt: add API for L2 Rx mask set/clear functions

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> These HWRM APIs allow setting and clearing of Rx masks in L2 context per VNIC. v4: Address review comments. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_

[dpdk-dev] [PATCH v4 10/39] bnxt: add Tx queue operations (nonfunctional)

2016-06-06 Thread Stephen Hurd
aparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/Makefile | 1 + drivers/net/bnxt/bnxt_ethdev.c | 3 + drivers/net/bnxt/bnxt_txq.c| 125 + drivers/net/bnxt/bnxt_txq.h| 75 + 4

[dpdk-dev] [PATCH v4 26/39] bnxt: add HWRM stat context free function

2016-06-06 Thread Stephen Hurd
ed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_hwrm.c | 44 ++ drivers/net/bnxt/bnxt_hwrm.h | 3 ++ drivers/net/bnxt/hsi_struct_def_dpdk.h | 81 ++ 3 files changed, 128 insertions(+) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drive

[dpdk-dev] [PATCH v4 33/39] bnxt: free memory in close operation

2016-06-06 Thread Stephen Hurd
Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_ethdev.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index d3a624f..4254531 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/ne

[dpdk-dev] [PATCH v4 15/39] bnxt: Code to alloc/free ring

2016-06-06 Thread Stephen Hurd
David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_cpr.c | 28 +++- drivers/net/bnxt/bnxt_cpr.h | 2 +- drivers/net/bnxt/bnxt_ring.c | 4 drivers/net/bnxt/bnxt_ring.h | 1 + drivers/net/bnxt/bnxt_rxq.c | 22 +- drivers/ne

[dpdk-dev] [PATCH v4 18/39] bnxt: add HWRM vnic free function

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Frees a vnic allocated by vnic_alloc in the previous patch. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_hwrm.c | 21 + drivers/net/bnxt/bnxt_

[dpdk-dev] [PATCH v4 23/39] bnxt: add HWRM stats context allocation

2016-06-06 Thread Stephen Hurd
ned-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_hwrm.c | 52 drivers/net/bnxt/bnxt_hwrm.h | 3 ++ drivers/net/bnxt/hsi_struct_def_dpdk.h | 89 ++ 3 files changed

[dpdk-dev] [PATCH v4 19/39] bnxt: add HWRM vnic configure function

2016-06-06 Thread Stephen Hurd
ctions of the vnic allocated by vnic_alloc function from the previous patch. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_hwrm.c | 34 drivers/net/bnxt/bnxt_hwrm.h | 3 +- drivers/ne

[dpdk-dev] [PATCH v4 24/39] bnxt: add HWRM ring alloc/free functions

2016-06-06 Thread Stephen Hurd
mitted & received packets, report errors, status changes to the host software. v4: Address review comments. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_hwrm.c | 108 drivers/net/bnxt/b

[dpdk-dev] [PATCH v4 14/39] bnxt: initial Rx code implementation

2016-06-06 Thread Stephen Hurd
viewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/Makefile | 1 + drivers/net/bnxt/bnxt_ethdev.c | 3 +- drivers/net/bnxt/bnxt_ring.c | 60 ++--- drivers/net/bnxt/bnxt_rxq.c| 34 ++- drivers/net/bnxt/bnxt_rxr.c

[dpdk-dev] [PATCH v4 27/39] bnxt: Add HWRM API to set and clear filters

2016-06-06 Thread Stephen Hurd
istics context. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_hwrm.c | 69 drivers/net/bnxt/bnxt_hwrm.h | 6 2 files changed, 75 insertions(+) diff --git a/drivers/net/bnxt/bnxt_hw

[dpdk-dev] [PATCH v4 21/39] bnxt: add HWRM API to configure RSS

2016-06-06 Thread Stephen Hurd
efined in this patch will be used to enable RSS configuration of the VNIC. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_hwrm.c | 24 drivers/net/bnxt/bnxt_hwrm.h | 2 ++ drivers/ne

[dpdk-dev] [PATCH v4 17/39] bnxt: add HWRM vnic alloc function

2016-06-06 Thread Stephen Hurd
X path of the chip and is used to setup various target actions such as RSS, MAC filtering etc.. for the physical function in use. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt.h| 2 + drivers/net/bnxt/bnxt_

[dpdk-dev] [PATCH v4 37/39] bnxt: add RSS device operations

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Add rss_hash_update and rss_hash_conf_get dev_ops v4: Fix issues pointed out by checkpatch. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_ethdev.c

[dpdk-dev] [PATCH v4 16/39] bnxt: add HWRM function reset command

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Add bnxt_hwrm_func_reset() function and supporting structs and macros. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_hwrm.c | 17 + drivers/net/bnxt/bnxt_

[dpdk-dev] [PATCH v4 36/39] bnxt: add reta update/query operations

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Add code to Update/query reta dev_ops Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_ethdev.c | 56 ++ 1 file changed, 56 inse

[dpdk-dev] [PATCH v4 35/39] bnxt: add set link up/down operations

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Adds dev_ops to set link UP or DOWN as appropriate. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_ethdev.c | 20 1 file changed, 20 insertions(+)

[dpdk-dev] [PATCH v4 20/39] bnxt: add API to allow configuration of vnic

2016-06-06 Thread Stephen Hurd
: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_hwrm.c | 38 drivers/net/bnxt/bnxt_hwrm.h | 2 + drivers/net/bnxt/hsi_struct_def_dpdk.h | 153 + 3 files changed, 193 insertions(+)

[dpdk-dev] [PATCH v4 38/39] bnxt: add flow control operations

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Add flow_ctrl_get and flow_ctrl_set dev_ops. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_ethdev.c | 83 ++ 1 file chang

[dpdk-dev] [PATCH v4 28/39] bnxt: add ring alloc, free and group init

2016-06-06 Thread Stephen Hurd
patch into this to avoid a compilation issue. Fix issues pointed out by checkpatch. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_hwrm.c | 112 +++- drivers/net/bnxt/bnxt_hwrm.h | 1 + drivers/ne

[dpdk-dev] [PATCH v4 25/39] bnxt: add ring group alloc/free functions

2016-06-06 Thread Stephen Hurd
ing id and a statistics context. v4: Address issues pointed out by checkpatch. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_hwrm.c | 84 +++ drivers/net/bnxt/bnxt_hwrm.h | 4 + drivers/ne

[dpdk-dev] [PATCH v4 29/39] bnxt: add HWRM port PHY config call and helpers

2016-06-06 Thread Stephen Hurd
ed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_hwrm.c | 120 + drivers/net/bnxt/bnxt_hwrm.h | 1 + drivers/net/bnxt/hsi_struct_def_dpdk.h | 790 + 3 files changed, 911 insertions(+)

[dpdk-dev] [PATCH v4 34/39] bnxt: add MAC address add/remove dev_ops

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> This patch adds dev_ops to Add/Remove MAC addresses. v4: Fix issues pointed out by checkpatch. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephen Hurd --- drivers/net/bnxt/bnxt_ethdev.

[dpdk-dev] [PATCH v4 39/39] bnxt: Replace bnxt_ring_struct with bnxt_ring

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> As pointed in the previous round of review, Having struct at the end of the structure bnxt_ring_struct is a redundant. Replace it with bnxt_ring. Signed-off-by: Ajit Khaparde Reviewed-by: David Christensen Signed-off-by: Stephe

[dpdk-dev] [PATCH v5 03/38] bnxt: add driver register/unregister support

2016-06-14 Thread Stephen Hurd
e HWRM. bnxt_hwrm_func_driver_unregister: This command is used by the function driver to unregister with the HWRM. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comment regarding removal of bnxt_dev_close_op v5: Reformat footer Add HWRM fu

[dpdk-dev] [PATCH v5 02/38] bnxt: add HWRM init code

2016-06-14 Thread Stephen Hurd
ration of a port. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Fix few issues highlighted by checkpatch. v5: Fix footer formatting Switch to using the HWRM function descriptions from the source documentation --- drivers/net/bnxt/Makefile

[dpdk-dev] [PATCH v5 07/38] bnxt: declare generic ring structs and free() func

2016-06-14 Thread Stephen Hurd
eneric ring structure is shared all the ring types and tracks the the host Buffer Descriptors (BDs) and the HWRM assigned ID. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address checkpatch warnings. v5: Reorder footer --- drivers/net/bnxt/Ma

[dpdk-dev] [PATCH v5 05/38] bnxt: add dev configure operation

2016-06-14 Thread Stephen Hurd
hy_cfg() to issue the HWRM call. New HWRM calls: bnxt_hwrm_port_phy_cfg: This command configures the PHY device for the port. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Fixed few issues identified by checkpatch. v5: Rewrite the patch descr

[dpdk-dev] [PATCH v5 08/38] bnxt: add completion ring support

2016-06-14 Thread Stephen Hurd
PF monitor and control VF access to the HWRM interface if needed. New HWRM Calls: bnxt_hwrm_exec_fwd_resp: Execute an encapsulated command and forward the response. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments and

[dpdk-dev] [PATCH v5 10/38] bnxt: add Tx queue operations (nonfunctional)

2016-06-14 Thread Stephen Hurd
e ASIC for subsequent transmission. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments and fix issues pointed out by checkpatch. v5: Add more description in commit log Reorder footer --- drivers/net/bnxt/Makefile

[dpdk-dev] [PATCH v5 12/38] bnxt: add statistics operations

2016-06-14 Thread Stephen Hurd
e used in the follow on patches to free the memory allocated by the driver for statistics. New HWRM calls: bnxt_hwrm_stat_clear: This command clears statistics of a context Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments a

[dpdk-dev] [PATCH v5 36/38] bnxt: add reta update/query operations

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Add code to Update/query reta dev_ops Uses the bnxt_hwrm_vnic_rss_cfg() HWRM API added earlier. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Rewrite the patch description. Reorder the

[dpdk-dev] [PATCH v5 38/38] bnxt: add flow control operations

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Add flow_ctrl_get and flow_ctrl_set dev_ops. Uses the bnxt_set_hwrm_link_config() HWRM API added in earlier patch. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Rewrite the patch descr

[dpdk-dev] [PATCH v5 30/38] bnxt: add start/stop/link update operations

2016-06-14 Thread Stephen Hurd
ed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Fix issues pointed out by checkpatch. Shorten the string passed for reserving memzone when default completion ring is created. v5: Reorder footer --- drivers/net/bnxt/bnxt_ethdev.c

[dpdk-dev] [PATCH v5 26/38] bnxt: add HWRM stat context free function

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Add function and associated structures and definitions to free statistics context from the ASIC. New HWRM call: bnxt_hwrm_stat_ctx_free This command is used to free a stat context. Signed-off-by: Ajit Khaparde Signed-off-by: Stephe

[dpdk-dev] [PATCH v5 22/38] bnxt: add API for L2 Rx mask set/clear functions

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Add API to set/clear L2 Rx mask. New HWRM calls: bnxt_hwrm_cfa_l2_clear_rx_mask bnxt_hwrm_cfa_l2_set_rx_mask These HWRM APIs allow setting and clearing of Rx masks in L2 context per VNIC. Signed-off-by: Ajit Khaparde Signed-off-by: Stephe

[dpdk-dev] [PATCH v5 18/38] bnxt: add HWRM vnic free function

2016-06-14 Thread Stephen Hurd
in use. New HWRM call: bnxt_hwrm_vnic_free: Frees a vnic allocated by the bnxt_hwrm_vnic_alloc() function. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Add more description in commit log Reorder footer --- drivers/net/bnxt/bnxt_

[dpdk-dev] [PATCH v5 20/38] bnxt: add API to allow configuration of vnic

2016-06-14 Thread Stephen Hurd
te COS/Load Balance context of VNIC bnxt_hwrm_vnic_ctx_free: Used to free COS/Load Balance context of VNIC Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments and fix issues pointed out by checkpatch. v5: More descr

[dpdk-dev] [PATCH v5 15/38] bnxt: add code to alloc/free Tx Rx and cmpl rings

2016-06-14 Thread Stephen Hurd
erform a graceful cleanup in case memory allocation fails. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments and fix issues pointed out by checkpatch. Change the argument passed to bnxt_alloc_rings. Instead of passing bnxt_t

[dpdk-dev] [PATCH v5 17/38] bnxt: add HWRM vnic alloc function

2016-06-14 Thread Stephen Hurd
s used to setup various target actions such as RSS, MAC filtering etc.. for the physical function in use. New HWRM call: bnxt_hwrm_vnic_alloc: Allocates a VNIC resource in the hardware. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Ad

[dpdk-dev] [PATCH v5 04/38] bnxt: add dev infos get operation

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Gets device info from the bp structure filled in the init() function. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Reorder footer --- drivers/net/bnxt/bnxt.h| 3 ++ drivers/ne

[dpdk-dev] [PATCH v5 23/38] bnxt: add HWRM API for stats context allocation

2016-06-14 Thread Stephen Hurd
s and does basic preparation for a stat context. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments and fix issues pointed out by checkpatch. v5: Rewrite the patch description. Reorder the footer. --- drivers/net/bnxt/bnxt_hwrm.

[dpdk-dev] [PATCH v5 06/38] bnxt: add vnic functions and structs

2016-06-14 Thread Stephen Hurd
in use. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Reorder footer --- drivers/net/bnxt/Makefile | 1 + drivers/net/bnxt/bnxt.h| 14 ++ drivers/net/bnxt/bnxt_vnic.c

[dpdk-dev] [PATCH v5 32/38] bnxt: add all multicast enable/disable operations

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> This patch adds dev_ops to enable/disable multicast traffic. Uses the bnxt_hwrm_cfa_l2_set_rx_mask() API added in the earlier patch. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Reorder

[dpdk-dev] [PATCH v5 31/38] bnxt: add promiscuous enable/disable operations

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> This patch adds the promiscuous mode enable and disable dev_ops. Uses the bnxt_hwrm_cfa_l2_set_rx_mask() API added in the earlier patch. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Fix

[dpdk-dev] [PATCH v5 25/38] bnxt: add ring group alloc/free functions

2016-06-14 Thread Stephen Hurd
ing id and a statistics context. New HWRM calls: bnxt_hwrm_ring_grp_alloc Allocates and does basic preparation for a ring group bnxt_hwrm_ring_grp_free Frees and does cleansup resources of a ring group Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Chris

[dpdk-dev] [PATCH v5 37/38] bnxt: add RSS device operations

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Add rss_hash_update and rss_hash_conf_get dev_ops Uses the bnxt_hwrm_vnic_rss_cfg() HWRM API added in the previous patch. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Fix issues point

[dpdk-dev] [PATCH v5 01/38] bnxt: new driver for Broadcom NetXtreme-C devices

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> This patch adds the initial skeleton for bnxt driver along with the nic guide to tie into the build system. At this point, the driver simply fails init. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Chris

[dpdk-dev] [PATCH v5 28/38] bnxt: allocate and free all HWRM rings and groups

2016-06-14 Thread Stephen Hurd
should be the last functionality needed to add start/stop device operations. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comment to merge another patch into this to avoid a compilation issue. Fix issues pointed out by checkpatc

[dpdk-dev] [PATCH v5 35/38] bnxt: add set link up/down operations

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Adds dev_ops to set link UP or DOWN as appropriate. Uses the bnxt_set_hwrm_link_config() API added in previous patch. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Rewrite the patch descr

[dpdk-dev] [PATCH v5 27/38] bnxt: add HWRM API to set and clear filters

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> New HWRM call: bnxt_clear_hwrm_vnic_filters This patch adds code to set and clear L2 filters from the corresponding VNIC. These filters will determine the Rx flows Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Re

[dpdk-dev] [PATCH v5 13/38] bnxt: add initial Tx code implementation

2016-06-14 Thread Stephen Hurd
embers of the structure before starting Tx operations. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments and fix issues pointed out by checkpatch. v5: Expand the patch description Reorder footer --- drivers/net/bnxt/Ma

[dpdk-dev] [PATCH v5 21/38] bnxt: add HWRM API to configure RSS

2016-06-14 Thread Stephen Hurd
Used to enable RSS configuration of the VNIC. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Expand the commit log Reorder footer --- drivers/net/bnxt/bnxt_hwrm.c | 24 drivers/net/bnxt/bnxt_hwrm.h

[dpdk-dev] [PATCH v5 19/38] bnxt: add HWRM vnic configure function

2016-06-14 Thread Stephen Hurd
ctions of the vnic allocated by vnic_alloc function from the previous patch. bnxt_hwrm_vnic_cfg: Configure the VNIC structure in hardware. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Add more description in commit log Reorder footer --- d

[dpdk-dev] [PATCH v5 11/38] bnxt: add Rx queue create/destroy operations

2016-06-14 Thread Stephen Hurd
which will be used in subsequent patches. We are also adding hwrm_vnic_rss_cfg_* structures, which will be used in subsequent patches to enable RSS configuration. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments and fix

[dpdk-dev] [PATCH v5 16/38] bnxt: add HWRM function reset command

2016-06-14 Thread Stephen Hurd
ed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- More descriptive commit log Reorder footer --- drivers/net/bnxt/bnxt_hwrm.c | 17 + drivers/net/bnxt/bnxt_hwrm.h | 1 + drivers/net/bnxt/hsi_struct_def_dpdk.h

[dpdk-dev] [PATCH v5 09/38] bnxt: add L2 filter alloc/init/free

2016-06-14 Thread Stephen Hurd
which then allows the ASIC to direct the incoming traffic to an appropriate VNIC or Rx ring. New HWRM calls: bnxt_hwrm_clear_filter: Free a L2 filter. bnxt_hwrm_set_filter Allocate an An L2 filter or a L2 context. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Re

[dpdk-dev] [PATCH v5 14/38] bnxt: add initial Rx code implementation

2016-06-14 Thread Stephen Hurd
s like bnxt_init_one_rx_ring() bnxt_init_rx_ring_struct() which initializes various structures before a Rx can begin. bnxt_init_rxbds() initializes the Rx Buffer Descriptors while bnxt_alloc_rx_data() allocates a buffer in the host to receive the incoming packet. Signed-off-by: Ajit Khaparde Signed-off-by: Stephe

[dpdk-dev] [PATCH v5 29/38] bnxt: add HWRM port PHY config call and helpers

2016-06-14 Thread Stephen Hurd
config() and bnxt_parse_hw_link_speed() parse the link state. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Fix issues pointed out by checkpatch. v5: Reorder footer Rewrite the patch description. --- drivers/net/bnxt/bnxt_hwrm.c | 120 + drivers/ne

[dpdk-dev] [PATCH v5 24/38] bnxt: add HWRM ring alloc/free functions

2016-06-14 Thread Stephen Hurd
ed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments. v5: Rewrite the patch description. Reorder the footer. --- drivers/net/bnxt/bnxt_hwrm.c | 108 drivers/net/bnxt/bnxt_hwrm.h | 7 + drivers/ne

[dpdk-dev] [PATCH v5 33/38] bnxt: free memory in close operation

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> This patch adds code to free all resources except the one corresponding to HWRM, which are required to notify the HWRM that the driver is unloaded (these are freed in uninit()). Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Re

[dpdk-dev] [PATCH v5 34/38] bnxt: add MAC address add/remove dev ops

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> This patch adds dev_ops to Add/Remove MAC addresses. These use the bnxt_hwrm_set_filter() defined in the previous patch. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Fix issues point

[dpdk-dev] [PATCH v5 02/38] bnxt: add HWRM init code

2016-06-15 Thread Stephen Hurd
:MACRO_WITH_FLOW_CONTROL > This is intentional, is this style of copy/paste avoidance not allowed? -- Stephen Hurd Principal Engineer - Software Development Broadcom Corporation 949-926-8039 stephen.hurd at broadcom.com

[dpdk-dev] [PATCH v6 00/38] new bnxt poll mode driver library

2016-06-15 Thread Stephen Hurd
The bnxt poll mode library (librte_pmd_bnxt) implements support for Broadcom NetXtreme C-Series. These adapters support Standards- compliant 10/25/50Gbps 30MPPS full-duplex throughput. Information about this family of adapters can be found in the NetXtreme Brand section https://goo.gl/4H7q63 of

[dpdk-dev] [PATCH v6 01/38] bnxt: new driver for Broadcom NetXtreme-C devices

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> This patch adds the initial skeleton for bnxt driver along with the nic guide to tie into the build system. At this point, the driver simply fails init. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Chris

[dpdk-dev] [PATCH v6 04/38] bnxt: add dev infos get operation

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Gets device info from the bp structure filled in the init() function. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Reorder footer --- drivers/net/bnxt/bnxt.h| 3 ++ drivers/ne

[dpdk-dev] [PATCH v6 06/38] bnxt: add vnic functions and structs

2016-06-15 Thread Stephen Hurd
in use. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Reorder footer --- drivers/net/bnxt/Makefile | 1 + drivers/net/bnxt/bnxt.h| 14 ++ drivers/net/bnxt/bnxt_vnic.c

[dpdk-dev] [PATCH v6 07/38] bnxt: declare generic ring structs and free() func

2016-06-15 Thread Stephen Hurd
eneric ring structure is shared all the ring types and tracks the the host Buffer Descriptors (BDs) and the HWRM assigned ID. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address checkpatch warnings. v5: Reorder footer v6: Correct typo --- drive

[dpdk-dev] [PATCH v6 05/38] bnxt: add dev configure operation

2016-06-15 Thread Stephen Hurd
hy_cfg() to issue the HWRM call. New HWRM calls: bnxt_hwrm_port_phy_cfg: This command configures the PHY device for the port. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Fixed few issues identified by checkpatch. v5: Rewrite the patch descr

[dpdk-dev] [PATCH v6 03/38] bnxt: add driver register/unregister support

2016-06-15 Thread Stephen Hurd
e HWRM. bnxt_hwrm_func_driver_unregister: This command is used by the function driver to unregister with the HWRM. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comment regarding removal of bnxt_dev_close_op v5: Reformat footer Add HWRM fu

[dpdk-dev] [PATCH v6 15/38] bnxt: add code to alloc/free Tx Rx and cmpl rings

2016-06-15 Thread Stephen Hurd
erform a graceful cleanup in case memory allocation fails. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments and fix issues pointed out by checkpatch. Change the argument passed to bnxt_alloc_rings. Instead of passing bnxt_t

[dpdk-dev] [PATCH v6 13/38] bnxt: add initial Tx code implementation

2016-06-15 Thread Stephen Hurd
embers of the structure before starting Tx operations. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments and fix issues pointed out by checkpatch. v5: Expand the patch description Reorder footer --- drivers/net/bnxt/Ma

[dpdk-dev] [PATCH v6 16/38] bnxt: add HWRM function reset command

2016-06-15 Thread Stephen Hurd
ed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- More descriptive commit log Reorder footer --- drivers/net/bnxt/bnxt_hwrm.c | 17 + drivers/net/bnxt/bnxt_hwrm.h | 1 + drivers/net/bnxt/hsi_struct_def_dpdk.h

[dpdk-dev] [PATCH v6 10/38] bnxt: add Tx queue operations (nonfunctional)

2016-06-15 Thread Stephen Hurd
e ASIC for subsequent transmission. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments and fix issues pointed out by checkpatch. v5: Add more description in commit log Reorder footer --- drivers/net/bnxt/Makefile

[dpdk-dev] [PATCH v6 11/38] bnxt: add Rx queue create/destroy operations

2016-06-15 Thread Stephen Hurd
which will be used in subsequent patches. We are also adding hwrm_vnic_rss_cfg_* structures, which will be used in subsequent patches to enable RSS configuration. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments and fix

[dpdk-dev] [PATCH v6 17/38] bnxt: add HWRM vnic alloc function

2016-06-15 Thread Stephen Hurd
s used to setup various target actions such as RSS, MAC filtering etc.. for the physical function in use. New HWRM call: bnxt_hwrm_vnic_alloc: Allocates a VNIC resource in the hardware. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Ad

[dpdk-dev] [PATCH v6 26/38] bnxt: add HWRM stat context free function

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Add function and associated structures and definitions to free statistics context from the ASIC. New HWRM call: bnxt_hwrm_stat_ctx_free This command is used to free a stat context. Signed-off-by: Ajit Khaparde Signed-off-by: Stephe

[dpdk-dev] [PATCH v6 20/38] bnxt: add API to allow configuration of vnic

2016-06-15 Thread Stephen Hurd
te COS/Load Balance context of VNIC bnxt_hwrm_vnic_ctx_free: Used to free COS/Load Balance context of VNIC Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments and fix issues pointed out by checkpatch. v5: More descr

[dpdk-dev] [PATCH v6 12/38] bnxt: add statistics operations

2016-06-15 Thread Stephen Hurd
e used in the follow on patches to free the memory allocated by the driver for statistics. New HWRM calls: bnxt_hwrm_stat_clear: This command clears statistics of a context Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Address review comments a

[dpdk-dev] [PATCH v6 25/38] bnxt: add ring group alloc/free functions

2016-06-15 Thread Stephen Hurd
ing id and a statistics context. New HWRM calls: bnxt_hwrm_ring_grp_alloc Allocates and does basic preparation for a ring group bnxt_hwrm_ring_grp_free Frees and does cleanup resources of a ring group Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Chris

[dpdk-dev] [PATCH v6 19/38] bnxt: add HWRM vnic configure function

2016-06-15 Thread Stephen Hurd
ctions of the vnic allocated by vnic_alloc function from the previous patch. bnxt_hwrm_vnic_cfg: Configure the VNIC structure in hardware. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Add more description in commit log Reorder footer --- d

[dpdk-dev] [PATCH v6 27/38] bnxt: add HWRM API to set and clear filters

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> New HWRM call: bnxt_clear_hwrm_vnic_filters This patch adds code to set and clear L2 filters from the corresponding VNIC. These filters will determine the Rx flows Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Re

[dpdk-dev] [PATCH v6 29/38] bnxt: add HWRM port PHY config call and helpers

2016-06-15 Thread Stephen Hurd
config() and bnxt_parse_hw_link_speed() parse the link state. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v4: Fix issues pointed out by checkpatch. v5: Reorder footer Rewrite the patch description. --- drivers/net/bnxt/bnxt_hwrm.c | 120 + drivers/ne

[dpdk-dev] [PATCH v6 38/38] bnxt: add flow control operations

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> Add flow_ctrl_get and flow_ctrl_set dev_ops. Uses the bnxt_set_hwrm_link_config() HWRM API added in earlier patch. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Rewrite the patch descr

[dpdk-dev] [PATCH v6 32/38] bnxt: add all multicast enable/disable operations

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde <ajit.khapa...@broadcom.com> This patch adds dev_ops to enable/disable multicast traffic. Uses the bnxt_hwrm_cfa_l2_set_rx_mask() API added in the earlier patch. Signed-off-by: Ajit Khaparde Signed-off-by: Stephen Hurd Reviewed-by: David Christensen -- v5: Reorder

  1   2   3   >