#
9f702636 |
| 02-Jul-2020 |
Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> |
net/bnxt: add port default rules for ingress and egress
ingress & egress port default rules are needed to send the packet from port_to_dpdk & dpdk_to_port respectively.
Signed-off-by: Venkat Duvvur
net/bnxt: add port default rules for ingress and egress
ingress & egress port default rules are needed to send the packet from port_to_dpdk & dpdk_to_port respectively.
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
d0eaabd4 |
| 02-Jul-2020 |
Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> |
net/bnxt: fill mapper parameters with default rules
Default rules are needed for the packets to be punted between the following entities in the non-offloaded path 1. Device PORT to DPDK App 2. DPDK
net/bnxt: fill mapper parameters with default rules
Default rules are needed for the packets to be punted between the following entities in the non-offloaded path 1. Device PORT to DPDK App 2. DPDK App to Device PORT 3. VF Representor to VF 4. VF to VF Representor
This patch fills all the relevant information in the computed fields & the act_prop fields for the flow mapper to create the necessary tables in the hardware to enable the default rules.
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
3b453e4e |
| 02-Jul-2020 |
Somnath Kotur <somnath.kotur@broadcom.com> |
net/bnxt: parse representors along with other devargs
Representor dev-args need to be parsed during pci probe as they determine subsequent probe of VF representor ports as well.
Signed-off-by: Venk
net/bnxt: parse representors along with other devargs
Representor dev-args need to be parsed during pci probe as they determine subsequent probe of VF representor ports as well.
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
45e8e1d4 |
| 02-Jul-2020 |
Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> |
net/bnxt: enhance port DB
1. Add "enum bnxt_ulp_intf_type” as the second parameter for the port & func helper functions 2. Return vfrep related port & func information in the helper functions 3.
net/bnxt: enhance port DB
1. Add "enum bnxt_ulp_intf_type” as the second parameter for the port & func helper functions 2. Return vfrep related port & func information in the helper functions 3. Allocate phy_port_list dynamically based on port count 4. Introduce ulp_func_id_tbl array for book keeping func related information indexed by func_id
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
88b7442d |
| 02-Jul-2020 |
Kishore Padmanabha <kishore.padmanabha@broadcom.com> |
net/bnxt: disable Tx vector mode on TruFlow
The vector mode in the tx handler is disabled when truflow is enabled since truflow now requires bd action record support.
Signed-off-by: Kishore Padmana
net/bnxt: disable Tx vector mode on TruFlow
The vector mode in the tx handler is disabled when truflow is enabled since truflow now requires bd action record support.
Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
4e3f887b |
| 02-Jul-2020 |
Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> |
net/bnxt: support HWRM port PHY qcaps
Issue HWRM_PORT_PHY_QCAPS to the firmware to get the physical port count of the device.
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Review
net/bnxt: support HWRM port PHY qcaps
Issue HWRM_PORT_PHY_QCAPS to the firmware to get the physical port count of the device.
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
b81654df |
| 02-Jul-2020 |
Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> |
net/bnxt: get port and function info
add helper functions to get port & function related information like parif, physical port id & vport id.
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broa
net/bnxt: get port and function info
add helper functions to get port & function related information like parif, physical port id & vport id.
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
3fb93bc7 |
| 02-Jul-2020 |
Lance Richardson <lance.richardson@broadcom.com> |
net/bnxt: initialize parent PF information
Add support to query parent PF information (MAC address, function ID, port ID and default VNIC) from firmware.
Current firmware returns zero for parent de
net/bnxt: initialize parent PF information
Add support to query parent PF information (MAC address, function ID, port ID and default VNIC) from firmware.
Current firmware returns zero for parent default vnic, a temporary Wh+-specific workaround is included until that can be fixed.
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
6dc83230 |
| 02-Jul-2020 |
Somnath Kotur <somnath.kotur@broadcom.com> |
net/bnxt: support port representor data path
Added code to support Tx/Rx from a VF representor port. The VF-reps use the RX/TX rings of the Trusted VF/PF. For each VF-rep, the Trusted VF/PF driver i
net/bnxt: support port representor data path
Added code to support Tx/Rx from a VF representor port. The VF-reps use the RX/TX rings of the Trusted VF/PF. For each VF-rep, the Trusted VF/PF driver issues a VFR_ALLOC FW cmd that returns "cfa_code" and "cfa_action" values. The FW sets up the filter tables in such a way that VF traffic by default (in absence of other rules) gets punted to the parent function i.e. either the Trusted VF or the PF. The cfa_code value in the RX-compl informs the driver of the source VF. For traffic being transmitted from the VF-rep, the TX BD is tagged with a cfa_action value that informs the HW to punt it to the corresponding VF.
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
322bd6e7 |
| 02-Jul-2020 |
Somnath Kotur <somnath.kotur@broadcom.com> |
net/bnxt: add port representor infrastructure
Defines data structures and code to init/uninit VF representors during pci_probe and pci_remove respectively. Most of the dev_ops for the VF representor
net/bnxt: add port representor infrastructure
Defines data structures and code to init/uninit VF representors during pci_probe and pci_remove respectively. Most of the dev_ops for the VF representor are just stubs for now and will be will be filled out in next patch.
To create a representor using testpmd: testpmd -c 0xff -wB:D.F,representor=1 -- -i testpmd -c 0xff -w05:02.0,representor=[1] -- -i
To create a representor using ovs-dpdk: 1. First add the trusted VF port to a bridge ovs-vsctl add-port ovsbr0 vf_rep1 -- set Interface vf_rep1 type=dpdk options:dpdk-devargs=0000:06:02.0 2. Add the representor port to the bridge ovs-vsctl add-port ovsbr0 vf_rep1 -- set Interface vf_rep1 type=dpdk options:dpdk-devargs=0000:06:02.0,representor=1
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
9c99878a |
| 01-Jul-2020 |
Jerin Jacob <jerinj@marvell.com> |
log: introduce logtype register macro
Introduce the RTE_LOG_REGISTER macro to avoid the code duplication in the logtype registration process.
It is a wrapper macro for declaring the logtype, regist
log: introduce logtype register macro
Introduce the RTE_LOG_REGISTER macro to avoid the code duplication in the logtype registration process.
It is a wrapper macro for declaring the logtype, registering it and setting its level in the constructor context.
Signed-off-by: Jerin Jacob <jerinj@marvell.com> Acked-by: Adam Dybkowski <adamx.dybkowski@intel.com> Acked-by: Sachin Saxena <sachin.saxena@nxp.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
show more ...
|
#
ba404aac |
| 12-Jun-2020 |
Shuanglin Wang <shuanglin.wang@broadcom.com> |
net/bnxt: set maximum flow count
User could set max flow count by passing a devarg "-w 0000:0d:00.0,max_num_kflows=64" to a DPDK application; The value must be not less than 32K and be power-of-2; t
net/bnxt: set maximum flow count
User could set max flow count by passing a devarg "-w 0000:0d:00.0,max_num_kflows=64" to a DPDK application; The value must be not less than 32K and be power-of-2; the default value is 32K.
Signed-off-by: Shuanglin Wang <shuanglin.wang@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
83b4bf39 |
| 22-May-2020 |
Ajit Khaparde <ajit.khaparde@broadcom.com> |
net/bnxt: fix crash during close
We are freeing flow_stats a little early. This results in a segfault when the driver accesses the members during cleanup. Move the call to bnxt_free_flow_stats_info(
net/bnxt: fix crash during close
We are freeing flow_stats a little early. This results in a segfault when the driver accesses the members during cleanup. Move the call to bnxt_free_flow_stats_info() to prevent this.
Fixes: 02a95625fe9c ("net/bnxt: add flow stats in extended stats") Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
0466d286 |
| 22-May-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: fix setting link speed
bnxt PMD uses the macro BNXT_SUPPORTED_SPEEDS to validate the user requested speed. But this has all the speed values supported by the PMD and is not chip specific.
net/bnxt: fix setting link speed
bnxt PMD uses the macro BNXT_SUPPORTED_SPEEDS to validate the user requested speed. But this has all the speed values supported by the PMD and is not chip specific.
The check against this macro returns success when the user tries set the speed to 100G on a port even if the chip does not support 100G speed.
Fixed it to use bnxt_get_speed_capabilities() to check the supported speeds by the chip.
Fixes: 1d0704f4d793 ("net/bnxt: add device configure operation") Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
86015ee3 |
| 12-May-2020 |
Mike Baucom <michael.baucom@broadcom.com> |
net/bnxt: fix allocation of ULP context
Fix to allocate bnxt ulp context when TRUFLOW is enabled. This patch reduces the size of struct bnxt.
Fixes: 313ac35ac701 ("net/bnxt: support ULP session man
net/bnxt: fix allocation of ULP context
Fix to allocate bnxt ulp context when TRUFLOW is enabled. This patch reduces the size of struct bnxt.
Fixes: 313ac35ac701 ("net/bnxt: support ULP session manager init")
Signed-off-by: Mike Baucom <michael.baucom@broadcom.com> Reviewed-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
86421846 |
| 15-May-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: fix storing MAC address twice
We are maintaining MAC address twice which is unnecessary. This patch removes the copy which helps reduce size of bnxt structure.
Fixes: b7778e8a1c00 ("net/b
net/bnxt: fix storing MAC address twice
We are maintaining MAC address twice which is unnecessary. This patch removes the copy which helps reduce size of bnxt structure.
Fixes: b7778e8a1c00 ("net/bnxt: refactor to properly allocate resources for PF/VF") Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
39395b9d |
| 15-May-2020 |
Ajit Khaparde <ajit.khaparde@broadcom.com> |
net/bnxt: fix using RSS config struct
There is no need to maintain local copy. This helps reduce the size of the bnxt structure.
Fixes: fcc0aa1edc10 ("net/bnxt: add RSS hash configuration") Cc: sta
net/bnxt: fix using RSS config struct
There is no need to maintain local copy. This helps reduce the size of the bnxt structure.
Fixes: fcc0aa1edc10 ("net/bnxt: add RSS hash configuration") Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
show more ...
|
#
e8fe0e06 |
| 15-May-2020 |
Ajit Khaparde <ajit.khaparde@broadcom.com> |
net/bnxt: fix allocation of PF info struct
Fixes: 804e746c7b73 ("net/bnxt: add hardware resource manager init code") Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Si
net/bnxt: fix allocation of PF info struct
Fixes: 804e746c7b73 ("net/bnxt: add hardware resource manager init code") Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
986fa3ba |
| 15-May-2020 |
Ajit Khaparde <ajit.khaparde@broadcom.com> |
net/bnxt: fix allocation of link info struct
Dynamically alloc link info structure.
Fixes: 1d0704f4d793 ("net/bnxt: add device configure operation") Cc: stable@dpdk.org
Signed-off-by: Ajit Khapard
net/bnxt: fix allocation of link info struct
Dynamically alloc link info structure.
Fixes: 1d0704f4d793 ("net/bnxt: add device configure operation") Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
1e2f8aca |
| 15-May-2020 |
Ajit Khaparde <ajit.khaparde@broadcom.com> |
net/bnxt: fix allocation of flow stat related structs
Consolidate flow stat related structs for performance improvement. The intention of this patch is to reduce the size struct bnxt which had grown
net/bnxt: fix allocation of flow stat related structs
Consolidate flow stat related structs for performance improvement. The intention of this patch is to reduce the size struct bnxt which had grown because of recent changes and was impacting performance.
Fixes: 02a95625fe9c ("net/bnxt: add flow stats in extended stats")
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
96477b5d |
| 15-May-2020 |
Ajit Khaparde <ajit.khaparde@broadcom.com> |
net/bnxt: fix allocation of COS queue info
Fixes: 698aa7e95325 ("net/bnxt: add code to determine the Tx COS queue") Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Sig
net/bnxt: fix allocation of COS queue info
Fixes: 698aa7e95325 ("net/bnxt: add code to determine the Tx COS queue") Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
205b7429 |
| 15-May-2020 |
Ajit Khaparde <ajit.khaparde@broadcom.com> |
net/bnxt: fix allocation of LED config info
Dynamically allocate bnxt_led_cfg. This helps reduces memory footprint of struct bnxt.
Fixes: bb81e07323bb ("net/bnxt: support LED on/off") Cc: stable@dp
net/bnxt: fix allocation of LED config info
Dynamically allocate bnxt_led_cfg. This helps reduces memory footprint of struct bnxt.
Fixes: bb81e07323bb ("net/bnxt: support LED on/off") Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
b27f9e90 |
| 13-May-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: support 200G link speed
When the driver is loaded on a 200G NIC, the port speed is not displayed correctly. Parse the 200G speed before displaying it.
Signed-off-by: Kalesh AP <kalesh-ana
net/bnxt: support 200G link speed
When the driver is loaded on a 200G NIC, the port speed is not displayed correctly. Parse the 200G speed before displaying it.
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
cfa9e98d |
| 07-May-2020 |
Ajit Khaparde <ajit.khaparde@broadcom.com> |
net/bnxt: fix FW version query
bnxt_fw_version_get is not indicating the complete FW version. Fix it to indicate complete version string.
Fixes: e2652b0a20a0 ("net/bnxt: support get FW version") Cc
net/bnxt: fix FW version query
bnxt_fw_version_get is not indicating the complete FW version. Fix it to indicate complete version string.
Fixes: e2652b0a20a0 ("net/bnxt: support get FW version") Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
2f8cc21f |
| 06-May-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: fix TQM ring context memory size
The current formulas to calculate the TQM slow path and fast path ring context memory sizes are not quite correct. TQM slow path entry is array index 0 of
net/bnxt: fix TQM ring context memory size
The current formulas to calculate the TQM slow path and fast path ring context memory sizes are not quite correct. TQM slow path entry is array index 0 of ctx->tqm_mem[]. The other array entries are for fast path. Fix these sizes according to firmware spec. for 57500 and newer chips.
Fixes: cc5e26b8ef98 ("net/bnxt: increase TQM entry allocation") Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|