Re: [dpdk-dev] [PATCH v2 2/8] net/bnxt: fix to avoid a segfault

2017-07-21 Thread Stephen Hurd
> > Fixes: 36735a932ca7 ("support set VF QOS and MAC anti spoof") > > Signed-off-by: Stephen Hurd > Signed-off-by: Ajit Khaparde > > -- > v1->v2: incorporate review feedback. > --- > drivers/net/bnxt/rte_pmd_bnxt.c | 101 +++---

[dpdk-dev] [PATCH] bnxt: Update MAINTAINERS file for bnxt driver

2016-09-21 Thread Stephen Hurd
On Wed, Sep 21, 2016 at 3:27 PM, Ajit Khaparde wrote: > Add Ajit Khaparde as the maintainer of the bnxt PMD > > CC: Stephen Hurd > Signed-off-by: Ajit Khaparde > Reviewed-by: David Christensen > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > &

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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 description. Reorder the footer

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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 pointed out by checkpatch. v5: Rewrite the

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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 footer. --- drivers/net/bnxt

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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 description. Reorder the footer

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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 pointed out by checkpatch. v5: Rewrite the

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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 Reviewed-by: David Christensen -- v5

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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 footer Rewrite the patch

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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 couple of typos in the commit

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

2016-06-15 Thread Stephen Hurd
-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 v6: Correct typos --- drivers/net/bnxt/bnxt_ethdev.c | 269

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

2016-06-15 Thread Stephen Hurd
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/net/bnxt/bnxt_hwrm.h

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

2016-06-15 Thread Stephen Hurd
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 checkpatch. v5: Reorder the footer. Remove

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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 Reviewed-by: David Christensen

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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: Stephen Hurd Reviewed-by: David

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

2016-06-15 Thread Stephen Hurd
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 Christensen -- v4: Address issues

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

2016-06-15 Thread Stephen Hurd
-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/net/bnxt/hsi_struct_def_dpdk.h | 305

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

2016-06-15 Thread Stephen Hurd
at 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.c | 52 d

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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: Stephen Hurd Reviewed-by: David

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

2016-06-15 Thread Stephen Hurd
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 | 2 ++ drivers/net/bnxt

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

2016-06-15 Thread Stephen Hurd
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 description in commit log Reorder footer

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

2016-06-15 Thread Stephen Hurd
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 --- drivers/net/bnxt/bnxt_hwrm.c

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

2016-06-15 Thread Stephen Hurd
: 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_hwrm.c | 21 + drivers/net

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

2016-06-15 Thread Stephen Hurd
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: Add more description in commit log Reorder

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

2016-06-15 Thread Stephen Hurd
ff-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 | 129 + 3 files changed

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

2016-06-15 Thread Stephen Hurd
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_tx_ring and bnxt_rx_ring, shorten them to

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

2016-06-15 Thread Stephen Hurd
() 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: Stephen Hurd Reviewed-by: David

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

2016-06-15 Thread Stephen Hurd
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/Makefile | 1 + drivers/net/bnxt

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

2016-06-15 Thread Stephen Hurd
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 and fix issues pointed out by checkpatch

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

2016-06-15 Thread Stephen Hurd
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 issues pointed out by checkpatch. v5

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

2016-06-15 Thread Stephen Hurd
. 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 | 1 + drivers/net/bnxt/bnxt_ethdev.c

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

2016-06-15 Thread Stephen Hurd
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 Reviewed-by: David Christensen -- v4

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

2016-06-15 Thread Stephen Hurd
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 fix issues pointed out by checkpatch.

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

2016-06-15 Thread Stephen Hurd
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 --- drivers/net/bnxt/Makefile| 1

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

2016-06-15 Thread Stephen Hurd
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 | 277 + drivers/net/bnxt/bnxt_vnic.h

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

2016-06-15 Thread Stephen Hurd
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 description. Reorder the footer

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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/net/bnxt/bnxt_ethdev.c | 95

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

2016-06-15 Thread Stephen Hurd
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 function descriptions --- drivers/net/bnxt

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

2016-06-15 Thread Stephen Hurd
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 | 1 + drivers/net/bnxt/bnxt.h

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

2016-06-15 Thread Stephen Hurd
From: Ajit Khaparde 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 Christensen -- v4: Fix a warning that the

[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 t

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

2016-06-15 Thread Stephen Hurd
_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 v5 38/38] bnxt: add flow control operations

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde 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 description. Reorder the footer

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

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde 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 pointed out by checkpatch. v5: Rewrite the

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

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde 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 footer. --- drivers/net/bnxt

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

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde 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 description. Reorder the footer

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

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde 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 pointed out by checkpatch. v5: Rewrite the

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

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde 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 Reviewed-by: David Christensen -- v5

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

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde 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 footer Rewrite the patch

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

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde 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 couple of typos in the commit

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

2016-06-14 Thread Stephen Hurd
-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 | 269 + 1 file

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

2016-06-14 Thread Stephen Hurd
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/net/bnxt/bnxt_hwrm.h

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

2016-06-14 Thread Stephen Hurd
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 checkpatch. v5: Reorder the footer. Remove

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

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde 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 Reviewed-by: David Christensen

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

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde 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: Stephen Hurd Reviewed-by: David

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

2016-06-14 Thread Stephen Hurd
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 Christensen -- v4: Address issues

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

2016-06-14 Thread Stephen Hurd
-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/net/bnxt/hsi_struct_def_dpdk.h | 305

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

2016-06-14 Thread Stephen Hurd
at 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.c | 52 d

[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 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: Stephen Hurd Reviewed-by: David

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

2016-06-14 Thread Stephen Hurd
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 | 2 ++ drivers/net/bnxt

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

2016-06-14 Thread Stephen Hurd
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 description in commit log Reorder footer

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

2016-06-14 Thread Stephen Hurd
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 --- drivers/net/bnxt/bnxt_hwrm.c

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

2016-06-14 Thread Stephen Hurd
: 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_hwrm.c | 21 + drivers/net

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

2016-06-14 Thread Stephen Hurd
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: Add more description in commit log Reorder

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

2016-06-14 Thread Stephen Hurd
ff-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 | 129 + 3 files changed

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

2016-06-14 Thread Stephen Hurd
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_tx_ring and bnxt_rx_ring, shorten them to

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

2016-06-14 Thread Stephen Hurd
() 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: Stephen Hurd Reviewed-by: David

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

2016-06-14 Thread Stephen Hurd
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/Makefile | 1 + drivers/net/bnxt

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

2016-06-14 Thread Stephen Hurd
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 and fix issues pointed out by checkpatch

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

2016-06-14 Thread Stephen Hurd
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 issues pointed out by checkpatch. v5

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

2016-06-14 Thread Stephen Hurd
. 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 | 1 + drivers/net/bnxt/bnxt_ethdev.c

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

2016-06-14 Thread Stephen Hurd
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 Reviewed-by: David Christensen -- v4

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

2016-06-14 Thread Stephen Hurd
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 fix issues pointed out by checkpatch.

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

2016-06-14 Thread Stephen Hurd
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/Makefile| 1 + drivers/net/bnxt

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

2016-06-14 Thread Stephen Hurd
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 | 277 + drivers/net/bnxt/bnxt_vnic.h

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

2016-06-14 Thread Stephen Hurd
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 description. Reorder the footer

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

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde 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/net/bnxt/bnxt_ethdev.c | 95

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

2016-06-14 Thread Stephen Hurd
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 function descriptions --- drivers/net/bnxt

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

2016-06-14 Thread Stephen Hurd
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 | 1 + drivers/net/bnxt/bnxt.h

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

2016-06-14 Thread Stephen Hurd
From: Ajit Khaparde 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 Christensen -- v4: Fix a warning that the

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

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde 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: Stephen Hurd --- drivers/net/bnxt/bnxt_cpr.c | 4

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

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde 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 changed, 83 insertions(+) diff --git a/drivers

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

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde 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 | 121 + 1 file

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

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde 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 insertions(+) diff --git a/drivers/net

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

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde 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(+) diff --git a/drivers/net/bnxt

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

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde 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.c | 71 ++ 1

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

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde 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 Reviewed-by: David Christensen Signed-off-by: Stephen Hurd

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

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde 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 changed, 30 insertions(+) diff --git a

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

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde 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.c | 30

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

2016-06-06 Thread Stephen Hurd
-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/net/bnxt/bnxt_ethdev.c index 6888363

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

2016-06-06 Thread Stephen Hurd
ed-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(+) diff --git a/drivers/net

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

2016-06-06 Thread Stephen Hurd
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/net/bnxt/bnxt_ring.c | 119

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

2016-06-06 Thread Stephen Hurd
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_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c

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

2016-06-06 Thread Stephen Hurd
From: Ajit Khaparde Add function and associated structures and definitions to free statistics context from the ASIC. 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

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

2016-06-06 Thread Stephen Hurd
: 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/net/bnxt/hsi_struct_def_dpdk.h | 185

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

2016-06-06 Thread Stephen Hurd
port 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/bnxt_hwrm.h | 7 + drivers/net/

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

2016-06-06 Thread Stephen Hurd
-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, 144 insertions(+) diff --git a/d

[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 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_hwrm.c | 45 +++ drivers/net

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

2016-06-06 Thread Stephen Hurd
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/net/bnxt/hsi_struct_def_dpdk.h | 1 + 3 files

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

2016-06-06 Thread Stephen Hurd
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(+) diff --git a/drivers/net/bnxt

  1   2   3   >