#
90c957ef |
| 28-Jan-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: remove a redundant variable
Use "dev->data->dev_started" state, instead of local "dev_stopped" to check whether port has been started or not.
Fixes: 316e412299fd ("net/bnxt: fix crash whe
net/bnxt: remove a redundant variable
Use "dev->data->dev_started" state, instead of local "dev_stopped" to check whether port has been started or not.
Fixes: 316e412299fd ("net/bnxt: fix crash when closing") Cc: stable@dpdk.org
Reviewed-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
show more ...
|
#
925e3cbd |
| 28-Jan-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: remove redundant macro
Use "dev->data->dev_started" state, instead of local BNXT_FLAG_INIT_DONE to check whether device has been initialised or not.
Fixes: ed2ced6fe927 ("net/bnxt: check
net/bnxt: remove redundant macro
Use "dev->data->dev_started" state, instead of local BNXT_FLAG_INIT_DONE to check whether device has been initialised or not.
Fixes: ed2ced6fe927 ("net/bnxt: check initialization before accessing stats") Cc: stable@dpdk.org
Reviewed-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
show more ...
|
#
cc73dfd0 |
| 28-Jan-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: remove redundant if statement
Since "eth_dev->data->dev_started" has been assigned to 0 at the beginning of bnxt_dev_stop_op() routine, the code inside the if() condition is redundant. Rem
net/bnxt: remove redundant if statement
Since "eth_dev->data->dev_started" has been assigned to 0 at the beginning of bnxt_dev_stop_op() routine, the code inside the if() condition is redundant. Remove it.
Anyways "eth_dev->data->dev_link.link_status" will be set to 0 in bnxt_dev_set_link_down_op() later in the routine.
Fixes: 316e412299fd ("net/bnxt: fix crash when closing") 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: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
db8241fe |
| 28-Jan-2020 |
Somnath Kotur <somnath.kotur@broadcom.com> |
net/bnxt: allow group ID 0 for RSS action
Allow RSS action with group ID 0. The RSS match check will ensure if requested RSS action configuration parameters should be allowed as per the VNIC's RSS c
net/bnxt: allow group ID 0 for RSS action
Allow RSS action with group ID 0. The RSS match check will ensure if requested RSS action configuration parameters should be allowed as per the VNIC's RSS configuration or not and if it does match as it is by design in OVS-DPDK use case, the default vnic can be used to create the filter. As part of this ensure that rx_queue_cnt for the default vnic is setup during init as this field was being set only for non-zero vnics while handling RSS action for flow create. Check for out of bounds error while accessing the vnic array.
Fixes: adc0f81c6552 ("net/bnxt: support RSS action") Cc: stable@dpdk.org
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
47840e2f |
| 16-Jan-2020 |
Somnath Kotur <somnath.kotur@broadcom.com> |
net/bnxt: release port upon close
Set RTE_ETH_DEV_CLOSE_REMOVE upon probe so all the private resources for the port can be freed by rte_eth_dev_close().
Signed-off-by: Somnath Kotur <somnath.kotur@
net/bnxt: release port upon close
Set RTE_ETH_DEV_CLOSE_REMOVE upon probe so all the private resources for the port can be freed by rte_eth_dev_close().
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
537a053a |
| 16-Jan-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: use macro for PCI log format
Fixes: 19e6af01bb36 ("net/bnxt: support get/set EEPROM") Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somna
net/bnxt: use macro for PCI log format
Fixes: 19e6af01bb36 ("net/bnxt: support get/set EEPROM") Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
d5999236 |
| 16-Jan-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: fix a memory leak in port stop
The memory for mark table is allocated during port start. But the allocated memory is freed only during port close or driver unload which in turn causes a me
net/bnxt: fix a memory leak in port stop
The memory for mark table is allocated during port start. But the allocated memory is freed only during port close or driver unload which in turn causes a memory leakage on each port start/stop.
Fixed it by moving the memory free to port stop.
Fixes: 94eb699bc82e ("net/bnxt: support flow mark action")
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
1c251033 |
| 16-Jan-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: handle HW filter setting when port is stopped
Driver destroy the VNIC when the port is brought down. Port HW filter setting such as promiscuos, allmulti and VLAN filtering will be applied
net/bnxt: handle HW filter setting when port is stopped
Driver destroy the VNIC when the port is brought down. Port HW filter setting such as promiscuos, allmulti and VLAN filtering will be applied when port is started.
Fixed to return success silently for these callbacks when port is stopped. Also fixed to clear "bp->dev_stopped" before invoking bnxt_vlan_offload_set_op() in bnxt_dev_start_op().
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
show more ...
|
#
cfadfee4 |
| 16-Jan-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: fix VLAN strip
HWRM_VNIC_CFG command to configure VNIC dynamically with traffic running is not working. Driver has to free and recreate the VNIC and then reconfigure the VNIC filters.
Fix
net/bnxt: fix VLAN strip
HWRM_VNIC_CFG command to configure VNIC dynamically with traffic running is not working. Driver has to free and recreate the VNIC and then reconfigure the VNIC filters.
Fixes: 7fe5668d2ea3 ("net/bnxt: support VLAN filter and strip") Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
39b88344 |
| 16-Jan-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: fix enable/disable VLAN filtering
There is no condition check for the user requested operation for VLAN filtering. As a result, VLAN filtering is getting disabled when the user enables/dis
net/bnxt: fix enable/disable VLAN filtering
There is no condition check for the user requested operation for VLAN filtering. As a result, VLAN filtering is getting disabled when the user enables/disables VLAN stripping on same port.
The function bnxt_hwrm_clear_l2_filter() didn't actually free L2 filter in HW if the reference count of filter is zero.
Fixed it by incrementing the reference count of filter in bnxt_alloc_filter() routine.
Because of the recent changes in bnxt_hwrm_clear_l2_filter(), change was needed in the routine bnxt_set_default_mac_addr_op() to destroy and re-create the default filter when the user changes the default MAC of the port.
Fixes: 5c1171c97216 ("net/bnxt: refactor filter/flow") Fixes: 6118503d8071 ("net/bnxt: fix VLAN filtering") 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 ...
|
#
8f3224f2 |
| 16-Jan-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: fix IOVA mapping
Use rte_malloc_virt2iova() to obtain the IO address of a virtual address obtained through rte_malloc().
Fixed to use the iova address returned by rte_memzone_reserve_alig
net/bnxt: fix IOVA mapping
Use rte_malloc_virt2iova() to obtain the IO address of a virtual address obtained through rte_malloc().
Fixed to use the iova address returned by rte_memzone_reserve_aligned() as the call always returns with populating "mz->iova" with rte_malloc_virt2iova(mz->addr).
Removed redundant rte_mem_lock_page() call to lock the pages.
Fixes: f55e12f33416 ("net/bnxt: support extended port counters") 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 ...
|
#
d9fc6a0d |
| 16-Jan-2020 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: fix probe in FreeBSD
In FreeBSD environment, nic_uio driver does not support interrupts and rte_intr_callback_register() will fail to register interrupts which in turn causes bnxt driver p
net/bnxt: fix probe in FreeBSD
In FreeBSD environment, nic_uio driver does not support interrupts and rte_intr_callback_register() will fail to register interrupts which in turn causes bnxt driver probe failure.
Fixed driver to ignore interrupt callback failures in FreeBSD. Also fixed to not use a dedicated completion ring for async events from FW and process these events on RXQ0 in FreeBSD.
Fixes: 6de4c538b393 ("net/bnxt: fix error handling in port start") Fixes: 43f78b380f89 ("net/bnxt: retry IRQ callback deregistration") 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> Reviewed-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
show more ...
|
#
94eb699b |
| 21-Dec-2019 |
Ajit Khaparde <ajit.khaparde@broadcom.com> |
net/bnxt: support flow mark action
Add support for RTE_FLOW_ACTION_TYPE_MARK. Use the flow_id provided by FW during flow creation to lookup the mark id provided by the application.
Signed-off-by: A
net/bnxt: support flow mark action
Add support for RTE_FLOW_ACTION_TYPE_MARK. Use the flow_id provided by FW during flow creation to lookup the mark id provided by the application.
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
show more ...
|
#
074cacb9 |
| 21-Dec-2019 |
Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> |
net/bnxt: fix link during port toggle
We need to wait for up to 500ms to receive async event notification after forcing link down. Similarly we need to wait for up to 10s for link to come up after c
net/bnxt: fix link during port toggle
We need to wait for up to 500ms to receive async event notification after forcing link down. Similarly we need to wait for up to 10s for link to come up after configuring the hardware for link up.
Fixes: c09f57b49c13 ("net/bnxt: add start/stop/link update operations") Cc: stable@dpdk.org
Signed-off-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
839dee40 |
| 10-Dec-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: add a field for FW capabilities
The purpose of this patch is used to add a new field "fw_cap" in bnxt structure. The new "fw_cap" field store all the capabilities reported by the FW. This
net/bnxt: add a field for FW capabilities
The purpose of this patch is used to add a new field "fw_cap" in bnxt structure. The new "fw_cap" field store all the capabilities reported by the FW. This information will help us to determine the device capabilities when registering feature support with FW.
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
7105de70 |
| 10-Dec-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: reset filter indices on free
Fix bnxt_free_filter() to ensure that the filter indices are reset correctly when a filter is freed.
This change helps in avoiding few duplicate code as well.
net/bnxt: reset filter indices on free
Fix bnxt_free_filter() to ensure that the filter indices are reset correctly when a filter is freed.
This change helps in avoiding few duplicate code as well.
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 ...
|
#
fd36aa85 |
| 10-Dec-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: remove unnecessary macro for unused variables
Remove "__rte_unused" instances that are not required.
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Rahul Gupt
net/bnxt: remove unnecessary macro for unused variables
Remove "__rte_unused" instances that are not required.
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Rahul Gupta <rahul.gupta@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
151c8240 |
| 10-Dec-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: restore VLAN filters during reset recovery
Older Firmware could have state information such as MAC Filters, VLAN settings etc configured by user. But new Firmware is unaware of this state
net/bnxt: restore VLAN filters during reset recovery
Older Firmware could have state information such as MAC Filters, VLAN settings etc configured by user. But new Firmware is unaware of this state information and as a result driver should restore these settings during reset recovery.
This patch restores the user configured vlan settings prior to hot FW upgrade or FW error.
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
b02f1573 |
| 10-Dec-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: restore MAC filters during reset recovery
Older Firmware could have state information such as MAC Filters, VLAN settings etc configured by user. But new Firmware is unaware of this state i
net/bnxt: restore MAC filters during reset recovery
Older Firmware could have state information such as MAC Filters, VLAN settings etc configured by user. But new Firmware is unaware of this state information and as a result driver should restore these settings during reset recovery.
This patch restores the user configured mac addresses prior to hot FW upgrade or FW error.
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 ...
|
#
fb590010 |
| 02-Dec-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: use macro for getting default VNIC
BNXT_GET_DEFAULT_VNIC macro returns the default VNIC of the function and fixed all occurrences of code to use the macro.
Signed-off-by: Kalesh AP <kales
net/bnxt: use macro for getting default VNIC
BNXT_GET_DEFAULT_VNIC macro returns the default VNIC of the function and fixed all occurrences of code to use the macro.
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
3f6d59b0 |
| 02-Dec-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
net/bnxt: refactor chip type selection
Use switch-case statement to replace if-else statement.
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kot
net/bnxt: refactor chip type selection
Use switch-case statement to replace if-else statement.
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
d9aa878b |
| 19-Nov-2019 |
Lance Richardson <lance.richardson@broadcom.com> |
net/bnxt: fix vector Rx selection
Take DEV_RX_OFFLOAD_RSS_HASH into account when deciding whether vector mode receive can be enabled.
Fixes: 8b945a7f7dcb ("drivers/net: update Rx RSS hash offload c
net/bnxt: fix vector Rx selection
Take DEV_RX_OFFLOAD_RSS_HASH into account when deciding whether vector mode receive can be enabled.
Fixes: 8b945a7f7dcb ("drivers/net: update Rx RSS hash offload capabilities")
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
41a9d881 |
| 15-Nov-2019 |
Rahul Gupta <rahul.gupta@broadcom.com> |
net/bnxt: fix jumbo frame configuration in firmware
In order to prevent reconfiguration of firmware resources for every MTU change, configure FW with max MTU value using hwrm_func_cfg to support all
net/bnxt: fix jumbo frame configuration in firmware
In order to prevent reconfiguration of firmware resources for every MTU change, configure FW with max MTU value using hwrm_func_cfg to support all frame sizes. There is no need to overwrite the driver level MTU variable data->mtu with the FW MTU.
Fixes: 905cd45ce30e ("net/bnxt: use configured MTU during load") Cc: stable@dpdk.org
Signed-off-by: Rahul Gupta <rahul.gupta@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
73fb89dd |
| 14-Nov-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
drivers/net: fix RSS hash offload flag if no RSS
By default RSS hash delivery (offload) is bound to RSS mode and it is incorrect to advertise it as enabled if Rx multi-queue mode has no RSS.
Fixes:
drivers/net: fix RSS hash offload flag if no RSS
By default RSS hash delivery (offload) is bound to RSS mode and it is incorrect to advertise it as enabled if Rx multi-queue mode has no RSS.
Fixes: 8b945a7f7dcb ("drivers/net: update Rx RSS hash offload capabilities")
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
ae6a941d |
| 13-Nov-2019 |
Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> |
net/bnxt: fix log message level
When an existing mac_addr is tried to get programmed again, a message is displayed that the mac_addr already exists. However the message is of type ERR. This patch ch
net/bnxt: fix log message level
When an existing mac_addr is tried to get programmed again, a message is displayed that the mac_addr already exists. However the message is of type ERR. This patch changes the message to type DEBUG
Fixes: 938a87db4324 ("net/bnxt: fix redundant MAC address check") 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 ...
|