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
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
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
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.
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
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
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
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
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
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
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/
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
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
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
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.
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_
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
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
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
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
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_
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
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
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
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
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
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
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_
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
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_
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
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(+)
: 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(+)
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
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
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
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(+)
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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_
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
: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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 230 matches
Mail list logo