#
f03e66cb |
| 13-Nov-2019 |
Somnath Kotur <somnath.kotur@broadcom.com> |
net/bnxt: limit queue count for NS3/Stingray devices
Cap max queue count to 128 for NS3 devices and ensure that same count is reported as part of dev_info_get_op as well
Signed-off-by: Somnath Kotu
net/bnxt: limit queue count for NS3/Stingray devices
Cap max queue count to 128 for NS3 devices and ensure that same count is reported as part of dev_info_get_op as well
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Rahul Gupta <rahul.gupta@broadcom.com>
show more ...
|
#
aadae082 |
| 13-Nov-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: add checks for firmware reset
Driver should fail the eth_dev_ops callbacks and accessing Tx and Rx queues when device is in reset or in error state. Added missing checks for fw reset in fe
net/bnxt: add checks for firmware reset
Driver should fail the eth_dev_ops callbacks and accessing Tx and Rx queues when device is in reset or in error state. Added missing checks for fw reset in few routines.
Fixes: be14720def9c ("net/bnxt: support FW reset")
Reviewed-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
8b945a7f |
| 11-Nov-2019 |
Pavan Nikhilesh <pbhagavatula@marvell.com> |
drivers/net: update Rx RSS hash offload capabilities
Add DEV_RX_OFFLOAD_RSS_HASH flag for all PMDs that support RSS hash delivery.
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com> Reviewed
drivers/net: update Rx RSS hash offload capabilities
Add DEV_RX_OFFLOAD_RSS_HASH flag for all PMDs that support RSS hash delivery.
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com> Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Jerin Jacob <jerinj@marvell.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
90bdf795 |
| 04-Nov-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: fix initialization
During initialization sequence in bnxt_alloc_mem() if bnxt_alloc_async_cp_ring() fails, driver invokes bnxt_free_mem() which in turn call bnxt_free_vnic_mem() which caus
net/bnxt: fix initialization
During initialization sequence in bnxt_alloc_mem() if bnxt_alloc_async_cp_ring() fails, driver invokes bnxt_free_mem() which in turn call bnxt_free_vnic_mem() which causes the error logs "bnxt_free_vnic_mem(): VNIC is not freed yet!". This is because vnic memory is allocated but not initialized yet.
Fix this by moving bnxt_init_vnics() from bnxt_init_nic() to bnxt_alloc_vnic_mem(). Also get rid of bnxt_init_nic() as the initialization is done in respective functions now.
Fixes: 1bf01f5135f8 ("net/bnxt: prevent device access when device is in reset")
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
4602a432 |
| 04-Nov-2019 |
Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> |
net/bnxt: fix VNIC allocation on port toggle
bnxt_init_chip called on port start keeps incrementing rx_cosq_cnt. Hence more vnics are allocated with less number of rings on each port stop/start oper
net/bnxt: fix VNIC allocation on port toggle
bnxt_init_chip called on port start keeps incrementing rx_cosq_cnt. Hence more vnics are allocated with less number of rings on each port stop/start operation. Eventually vnic allocation fails due to incorrect ring group as no ring gets allocated to the vnic.
Fixes: 84d49664b5b2 ("net/bnxt: support CoS classification")
Signed-off-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
938a87db |
| 04-Nov-2019 |
Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> |
net/bnxt: fix redundant MAC address check
filter->mac_index is used to check, if a same mac is already programmed. Hence, filter->dflt member is not needed which is also used for mac addr redundancy
net/bnxt: fix redundant MAC address check
filter->mac_index is used to check, if a same mac is already programmed. Hence, filter->dflt member is not needed which is also used for mac addr redundancy check.
This patch fixes it by moving mac_index based redundant check from bnxt_mac_addr_add_op to bnxt_add_mac_filter
Fixes: 6118503d8071 ("net/bnxt: fix VLAN filtering") Cc: stable@dpdk.org
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 ...
|
#
41c59e11 |
| 06-Nov-2019 |
Kevin Traynor <ktraynor@redhat.com> |
net/bnxt: remove commented out code
This commented out todo and code is old. Remove it.
Fixes: b7435d660a8c ("net/bnxt: add ntuple filtering support") Cc: stable@dpdk.org
Signed-off-by: Kevin Tray
net/bnxt: remove commented out code
This commented out todo and code is old. Remove it.
Fixes: b7435d660a8c ("net/bnxt: add ntuple filtering support") Cc: stable@dpdk.org
Signed-off-by: Kevin Traynor <ktraynor@redhat.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
5f5ccaa0 |
| 24-Oct-2019 |
Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> |
net/bnxt: uninit locks during resource cleanup
Currently, bnxt_uninit_locks is called inside bnxt_dev_uninit. However, the more appropriate place to call it is inside bnxt_uninit_resources. This is
net/bnxt: uninit locks during resource cleanup
Currently, bnxt_uninit_locks is called inside bnxt_dev_uninit. However, the more appropriate place to call it is inside bnxt_uninit_resources. This is more logical, as all the resources uninitialization is happening inside bnxt_uninit_resources.
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
f5019a53 |
| 24-Oct-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: fix memory leak
During hot fw upgrade or error recovery, driver does cleanup and reallocation of resources. But driver reallocates memory for ring group info table without freeing the allo
net/bnxt: fix memory leak
During hot fw upgrade or error recovery, driver does cleanup and reallocation of resources. But driver reallocates memory for ring group info table without freeing the allocated memory during device init.
Fix this memory leak by moving the freeing of ring group info table to bnxt_free_mem() in bnxt_uninit_resources().
Fixes: c09f57b49c13 ("net/bnxt: add start/stop/link update operations") Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
show more ...
|
#
34f2f8ad |
| 24-Oct-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: add wrapper function for Thor device check
This patch adds a wrapper function bnxt_thor_device() which checks for the pci device is Thor family.
Signed-off-by: Kalesh AP <kalesh-anakkur.p
net/bnxt: add wrapper function for Thor device check
This patch adds a wrapper function bnxt_thor_device() which checks for the pci device is Thor family.
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
show more ...
|
#
382e273a |
| 24-Oct-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: add PCI IDs for 57500 series NPAR devices
Add PCI IDs for 57500 series NPAR devices
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Somnath Kotur <somnath.ko
net/bnxt: add PCI IDs for 57500 series NPAR devices
Add PCI IDs for 57500 series NPAR devices
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
8937597c |
| 24-Oct-2019 |
Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> |
net/bnxt: fix crash after removing and adding slaves
On removing the slave interface, slave_remove in bonding module calls _rte_eth_dev_reset which in turn frees both Tx and Rx queues. 1. segfault i
net/bnxt: fix crash after removing and adding slaves
On removing the slave interface, slave_remove in bonding module calls _rte_eth_dev_reset which in turn frees both Tx and Rx queues. 1. segfault is seen after removing/adding the slave interface and starting bond interface. In this below path, when mtu is set for the slave interface, queues are not created yet and driver reference to queue[0] causes the segfault. slave_configure: rte_eth_dev_set_mtu rte_eth_dev_configure rte_eth_rx_queue_setup
2. segfault is seen on starting the port after removing from bond device. This is a testpmd bug where in, on starting the port, testpmd is supposed to recreate the queues before starting the port.
Fixed these by adding check for queues created before accessing them.
Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Cc: stable@dpdk.org
Signed-off-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
a73b8e93 |
| 24-Oct-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: fix race between start and interrupt handler
During port start, driver enables interrupts. At the end of port start driver schedules the alarm for fw health check. This can cause race betw
net/bnxt: fix race between start and interrupt handler
During port start, driver enables interrupts. At the end of port start driver schedules the alarm for fw health check. This can cause race between interrupt handler and schedule fw health check alarm thread which falsely detects FW error.
Fixes: 9d0cbaecc91a ("net/bnxt: support periodic FW health monitoring")
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
037cc747 |
| 24-Oct-2019 |
Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> |
net/bnxt: fix default MAC check
bnxt_set_hwrm_vnic_filters programs default mac addr and the same default mac is added by mac_add_addr_op routine as well. This redundant mac add is avoided by checki
net/bnxt: fix default MAC check
bnxt_set_hwrm_vnic_filters programs default mac addr and the same default mac is added by mac_add_addr_op routine as well. This redundant mac add is avoided by checking if the default mac is already added.
However, that check is wrong. The check should consider the mac index as well to determine the default mac. This patch fixes it by using mac index to determine the default mac.
Fixes: 68f589f2c728 ("net/bnxt: fix setting primary MAC address") Cc: stable@dpdk.org
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
ce0ed702 |
| 24-Oct-2019 |
Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> |
net/bnxt: fix RSS configuration for Thor controller
rss_table structure stores receive, completion ring IDs for Thor based controllers and receive queue id for others. Below commit accidentally left
net/bnxt: fix RSS configuration for Thor controller
rss_table structure stores receive, completion ring IDs for Thor based controllers and receive queue id for others. Below commit accidentally left the old code and hence was always overwriting receive ring id with queue id for Thor. This causes subsequent VNIC_RSS_CFG command to fail.
Fixes: 38412304b50a ("net/bnxt: enable RSS for thor-based controllers") Cc: stable@dpdk.org
Signed-off-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Lance Richardson <lance.richardson@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
7d4e9e26 |
| 24-Oct-2019 |
Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> |
net/bnxt: fix ping with MTU change
Driver was setting maximum receive unit differently in bnxt_mtu_set_op and bnxt_hwrm_vnic_alloc. Moreover firmware adds the 4 bytes for FCS. Fixed it by setting co
net/bnxt: fix ping with MTU change
Driver was setting maximum receive unit differently in bnxt_mtu_set_op and bnxt_hwrm_vnic_alloc. Moreover firmware adds the 4 bytes for FCS. Fixed it by setting correct maximum receive unit value.
Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Cc: stable@dpdk.org
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Signed-off-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
5526c802 |
| 11-Oct-2019 |
Somnath Kotur <somnath.kotur@broadcom.com> |
net/bnxt: fix race between interrupt handler and dev config
Fix a possible that while interrupt handler is in the middle of processing, dev_configure_op() might come in and try to destroy/realloc th
net/bnxt: fix race between interrupt handler and dev config
Fix a possible that while interrupt handler is in the middle of processing, dev_configure_op() might come in and try to destroy/realloc the default completion ring on which interrupt completions arrive. Synchronize the two so they don't race each other
Fixes: 7bc8e9a227cc ("net/bnxt: support async link notification") Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
9924dfd6 |
| 10-Oct-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: move macro definitions to header file
Move device and vendor ids macro definition from bnxt_ethdev.c to bnxt.h. There is no functionality impact.
Fixes: 882aa9c6e2e1 ("net/bnxt: move PCI
net/bnxt: move macro definitions to header file
Move device and vendor ids macro definition from bnxt_ethdev.c to bnxt.h. There is no functionality impact.
Fixes: 882aa9c6e2e1 ("net/bnxt: move PCI device ids to the driver") Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Lance Richardson <lance.richardson@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
99635597 |
| 10-Oct-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: fix coding style
- Remove unnecessary new line - Remove unnecessary blank lines - Align rte_* header file inclusion at one place
Fixes: 37d6161a68ba ("net/bnxt: add ring group alloc/free"
net/bnxt: fix coding style
- Remove unnecessary new line - Remove unnecessary blank lines - Align rte_* header file inclusion at one place
Fixes: 37d6161a68ba ("net/bnxt: add ring group alloc/free") Fixes: ec77c6298301 ("net/bnxt: add stats context allocation") 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 ...
|
#
e0d86535 |
| 10-Oct-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: enable interrupts according interface status
Driver issues hwrm_if_change when the port is started. This command returns whether the fw has undergone a reset while port was down and driver
net/bnxt: enable interrupts according interface status
Driver issues hwrm_if_change when the port is started. This command returns whether the fw has undergone a reset while port was down and driver does re-init of resources if fw has undergone a reset. Fix to enable interrupts only after this check.
Fixes: c023cd5b2192 ("net/bnxt: fix async link handling and update") Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
e9ccabda |
| 10-Oct-2019 |
Rahul Gupta <rahul.gupta@broadcom.com> |
net/bnxt: reduce cleanup time during reset recovery
In stop_op(), don't wait for link down event's ASYNC response from FW.
Fixes: c023cd5b2192 ("net/bnxt: fix async link handling and update") Cc: s
net/bnxt: reduce cleanup time during reset recovery
In stop_op(), don't wait for link down event's ASYNC response from FW.
Fixes: c023cd5b2192 ("net/bnxt: fix async link handling and update") Cc: stable@dpdk.org
Signed-off-by: Rahul Gupta <rahul.gupta@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
f7b1b6b1 |
| 10-Oct-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: remove redundant header file inclusion
bnxt.h header includes bnxt_cpr.h and bnxt_util.h. There is no need to include these headers file explicitly.
This commit does not cause any functio
net/bnxt: remove redundant header file inclusion
bnxt.h header includes bnxt_cpr.h and bnxt_util.h. There is no need to include these headers file explicitly.
This commit does not cause any functional change.
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
acf2f2a4 |
| 10-Oct-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: return error if setting link up fails
Currently bnxt driver does not return error in case setting link up fails.
Fixes: 5c206086feaa ("net/bnxt: add link state operations") Cc: stable@dpd
net/bnxt: return error if setting link up fails
Currently bnxt driver does not return error in case setting link up fails.
Fixes: 5c206086feaa ("net/bnxt: add link state operations") Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
6d178ea0 |
| 10-Oct-2019 |
Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> |
net/bnxt: free default completion ring before VF config
If the VF resources need to be reconfigured using the bnxt_hwrm_func_reserve_vf_resc, make sure that the default completion ring is freed firs
net/bnxt: free default completion ring before VF config
If the VF resources need to be reconfigured using the bnxt_hwrm_func_reserve_vf_resc, make sure that the default completion ring is freed first before the resources are reserved.
Reallocate the ring once the VF resources are configured.
Fixes: 7bc8e9a227cc ("net/bnxt: support async link notification") Cc: stable@dpdk.org
Signed-off-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
94d4afd2 |
| 04-Oct-2019 |
Lance Richardson <lance.richardson@broadcom.com> |
net/bnxt: advertise scatter Rx offload capability
Scattered receive is supported but not included in receive offload capabilities. Fix by adding it and including in scattered receive calculation.
F
net/bnxt: advertise scatter Rx offload capability
Scattered receive is supported but not included in receive offload capabilities. Fix by adding it and including in scattered receive calculation.
Fixes: 9c1507d96ab8 ("net/bnxt: switch to the new offload API") Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|