#
e12a0166 |
| 14-May-2024 |
Tyler Retzlaff <roretzla@linux.microsoft.com> |
drivers: use stdatomic API
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional rte stdatomic API.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microso
drivers: use stdatomic API
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional rte stdatomic API.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
show more ...
|
#
bea231c8 |
| 24-Oct-2023 |
Stephen Hemminger <stephen@networkplumber.org> |
remove unnecessary null checks before free
This is the latest round of places that are checking for NULL pointer before calling free or rte_free. It is result of applying the nullfree.cocci script.
remove unnecessary null checks before free
This is the latest round of places that are checking for NULL pointer before calling free or rte_free. It is result of applying the nullfree.cocci script.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
show more ...
|
#
38689022 |
| 05-Jun-2023 |
Ophir Munk <ophirmu@nvidia.com> |
eal: set maximum number of memzone segments
Currently, the max memzones count constant (RTE_MAX_MEMZONE) is used to decide how many memzones a DPDK application can have. This value could technically
eal: set maximum number of memzone segments
Currently, the max memzones count constant (RTE_MAX_MEMZONE) is used to decide how many memzones a DPDK application can have. This value could technically be changed by manually editing `rte_config.h` before compilation, but if DPDK is already compiled, that option is not useful. There are certain use cases that would benefit from making this value configurable.
This commit addresses the issue by adding a new API to set the max number of memzones before EAL initialization (while using the old constant as default value), as well as an API to get current maximum number of memzones.
Signed-off-by: Ophir Munk <ophirmu@nvidia.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Alok Prasad <palok@marvell.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
show more ...
|
#
cb056611 |
| 15-Oct-2020 |
Stephen Hemminger <stephen@networkplumber.org> |
eal: rename lcore master and slave
Replace master lcore with main lcore and replace slave lcore with worker lcore.
Keep the old functions and macros but mark them as deprecated for this release.
T
eal: rename lcore master and slave
Replace master lcore with main lcore and replace slave lcore with worker lcore.
Keep the old functions and macros but mark them as deprecated for this release.
The "--master-lcore" command line option is also deprecated and any usage will print a warning and use "--main-lcore" as replacement.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
5700d0f0 |
| 25-Sep-2020 |
Manish Chopra <manishc@marvell.com> |
net/qede: support VF FLR
This patch adds required bit to handle VF FLR indication from Management FW (MFW) of the device
With that VFs were able to load in VM (VF attached as PCI passthrough to the
net/qede: support VF FLR
This patch adds required bit to handle VF FLR indication from Management FW (MFW) of the device
With that VFs were able to load in VM (VF attached as PCI passthrough to the guest VM) followed by FLR successfully
Updated the docs/guides with the feature support
Signed-off-by: Manish Chopra <manishc@marvell.com> Signed-off-by: Igor Russkikh <irusskikh@marvell.com> Signed-off-by: Rasesh Mody <rmody@marvell.com>
show more ...
|
#
d459b043 |
| 25-Sep-2020 |
Manish Chopra <manishc@marvell.com> |
net/qede: add infrastructure support for VF load
This patch adds necessary infrastructure support (required to handle messages from VF and sending ramrod on behalf of VF's configuration request from
net/qede: add infrastructure support for VF load
This patch adds necessary infrastructure support (required to handle messages from VF and sending ramrod on behalf of VF's configuration request from alarm handler context) to start/load the VF-PMD driver instance on top of PF-PMD driver instance.
Signed-off-by: Manish Chopra <manishc@marvell.com> Signed-off-by: Igor Russkikh <irusskikh@marvell.com> Signed-off-by: Rasesh Mody <rmody@marvell.com>
show more ...
|
#
a50d7cbb |
| 08-Jul-2020 |
Rasesh Mody <rmody@marvell.com> |
net/qede: support registers dump
Add support for .get_reg eth_dev ops which will be used to collect the firmware debug data.
PMD on detecting on some HW errors will collect the FW/HW Dump to a buff
net/qede: support registers dump
Add support for .get_reg eth_dev ops which will be used to collect the firmware debug data.
PMD on detecting on some HW errors will collect the FW/HW Dump to a buffer and then it will save it to a file implemented in qede_save_fw_dump().
Dump file location and name: Location: <RTE_SDK> or DPDK root Name: qede_pmd_dump_mm-dd-yy_hh-mm-ss.bin
DPDK applications can initiate a debug data collection by invoking DPDK library’s rte_eth_dev_get_reg_info() API. This API invokes .get_reg() interface in the PMD.
PMD implementation of .get_reg() collects the FW/HW Dump, saves it to data field of rte_dev_reg_info and passes it to the application. It’s the responsibility of the application to save the FW/HW Dump to a file. We recommendation using the file name format used by qede_save_fw_dump().
Signed-off-by: Rasesh Mody <rmody@marvell.com> Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
show more ...
|
#
2352f348 |
| 08-Jul-2020 |
Rasesh Mody <rmody@marvell.com> |
net/qede/base: add changes for debug data collection
This patch adds base driver APIs required for debug data collection. It adds support for dumping internal lookup tables(ilt), reading nvram image
net/qede/base: add changes for debug data collection
This patch adds base driver APIs required for debug data collection. It adds support for dumping internal lookup tables(ilt), reading nvram image, register definitions.
Signed-off-by: Rasesh Mody <rmody@marvell.com> Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
show more ...
|
#
5018f1fc |
| 27-Apr-2020 |
Joyce Kong <joyce.kong@arm.com> |
net/qede: use common bit operations API
Remove its own bit operation APIs and use the common one, this can reduce the code duplication largely.
Signed-off-by: Joyce Kong <joyce.kong@arm.com> Review
net/qede: use common bit operations API
Remove its own bit operation APIs and use the common one, this can reduce the code duplication largely.
Signed-off-by: Joyce Kong <joyce.kong@arm.com> Reviewed-by: Gavin Hu <gavin.hu@arm.com>
show more ...
|
#
7ed1cd53 |
| 06-Oct-2019 |
Rasesh Mody <rmody@marvell.com> |
net/qede/base: update HSI
Update hardware software common base driver code in preparation to update the firmware to version 8.40.25.0.
Signed-off-by: Rasesh Mody <rmody@marvell.com>
|
#
f4be6a9a |
| 10-May-2019 |
Michael Santana <msantana@redhat.com> |
fix off-by-one errors in snprintf
snprintf guarantees to always correctly place a null terminator in the buffer string. So manually placing a null terminator in a buffer right after a call to snprin
fix off-by-one errors in snprintf
snprintf guarantees to always correctly place a null terminator in the buffer string. So manually placing a null terminator in a buffer right after a call to snprintf is redundant code.
Additionally, there is no need to use 'sizeof(buffer) - 1' in snprintf as this means we are not using the last character in the buffer. 'sizeof(buffer)' is enough.
Cc: stable@dpdk.org
Signed-off-by: Michael Santana <msantana@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
b74fd6b8 |
| 28-Oct-2018 |
Ferruh Yigit <ferruh.yigit@intel.com> |
add missing static keyword to globals
Some global variables can indeed be static, add static keyword to them.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Jerin Jacob <jerin.jacob
add missing static keyword to globals
Some global variables can indeed be static, add static keyword to them.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
show more ...
|
#
3126df22 |
| 14-Jul-2018 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede: move SPDX tags to source files
We were using LICENSE.qede_pmd to reference inclusion of SPDX licensing tag from all the source file. Remove the LICENSE.qede_pmd file and directly include S
net/qede: move SPDX tags to source files
We were using LICENSE.qede_pmd to reference inclusion of SPDX licensing tag from all the source file. Remove the LICENSE.qede_pmd file and directly include SPDX tags in source files.
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
7105b24f |
| 07-Jun-2018 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede: fix memory alloc for multiple port reconfig
Multiple port reconfigurations can lead to memory allocation failures due to hitting RTE memzone limit or no more room in config while reserving
net/qede: fix memory alloc for multiple port reconfig
Multiple port reconfigurations can lead to memory allocation failures due to hitting RTE memzone limit or no more room in config while reserving memzone.
When freeing memzones, update the memzone mapping and the memzone count. Release Rx and Tx queue rings allocated during queue setup.
Fixes: a39001d90dbd ("net/qede: fix DMA memory leak") Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com> Reviewed-by: Kevin Traynor <ktraynor@redhat.com>
show more ...
|
#
9adde217 |
| 23-May-2018 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede: change copyright info to Cavium
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
|
#
17a4cd24 |
| 11-Apr-2018 |
Anatoly Burakov <anatoly.burakov@intel.com> |
net/qede: use contiguous allocation for DMA memory
All hardware drivers should allocate IOVA-contiguous memzones for their hardware resources.
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.
net/qede: use contiguous allocation for DMA memory
All hardware drivers should allocate IOVA-contiguous memzones for their hardware resources.
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com> Acked-by: Harish Patil <harish.patil@cavium.com> Tested-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> Tested-by: Hemant Agrawal <hemant.agrawal@nxp.com> Tested-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
show more ...
|
#
368b1118 |
| 26-Feb-2018 |
Pascal Mazon <pascal.mazon@6wind.com> |
net/qede: fix alloc from socket 0
In case osal_dma_alloc_coherent() or osal_dma_alloc_coherent_aligned() are called from a management thread, core_id turn out to be LCORE_ID_ANY, and the resulting s
net/qede: fix alloc from socket 0
In case osal_dma_alloc_coherent() or osal_dma_alloc_coherent_aligned() are called from a management thread, core_id turn out to be LCORE_ID_ANY, and the resulting socket for alloc will be socket 0.
This is not desirable when using a NIC from socket 1 which might very likely be configured to use memory from that socket only. In that case, allocation will fail.
To address this, use master lcore instead when called from mgmt thread. The associated socket should have memory available.
Fixes: ec94dbc57362 ("qede: add base driver") Cc: stable@dpdk.org
Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com> Acked-by: Harish Patil <harish.patil@cavium.com> Acked-by: Harish Patil <harish.patil@cavium.com>
show more ...
|
#
f17ca787 |
| 04-Nov-2017 |
Thomas Monjalon <thomas@monjalon.net> |
memzone: rename address from physical to IOVA
The struct rte_memzone field .phys_addr is renamed to .iova. The deprecated name is kept in an anonymous union to avoid breaking the API.
Signed-off-by
memzone: rename address from physical to IOVA
The struct rte_memzone field .phys_addr is renamed to .iova. The deprecated name is kept in an anonymous union to avoid breaking the API.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
show more ...
|
#
03637634 |
| 19-Sep-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede/base: use crc32 OSAL macro
Move ecore_crc32() macro to within base driver to qede_crc32() and use OSAL_CRC32() where required.
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
|
#
9c1aa3e1 |
| 24-Jul-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede/base: fix for adapter specific stats
Handle different MAC statistic fields between two chip variants by reading the MAC counters from the adapter suitable statistics bins.
Fixes: ec94dbc57
net/qede/base: fix for adapter specific stats
Handle different MAC statistic fields between two chip variants by reading the MAC counters from the adapter suitable statistics bins.
Fixes: ec94dbc57362 ("qede: add base driver") Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
e8fb98d6 |
| 01-Jul-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede: add comments traces and format changes
Changes include - comment modifications - adds tracing during initialization - adds/removes new lines
Signed-off-by: Rasesh Mody <rasesh.mody@cav
net/qede: add comments traces and format changes
Changes include - comment modifications - adds tracing during initialization - adds/removes new lines
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
e1c9b999 |
| 01-Jul-2017 |
Harish Patil <harish.patil@cavium.com> |
net/qede: add notifying HW errors
Log HW errmsg on the stdout and do minimal handling to prevent HW attentions from being reasserted.
Signed-off-by: Harish Patil <harish.patil@cavium.com> Signed-of
net/qede: add notifying HW errors
Log HW errmsg on the stdout and do minimal handling to prevent HW attentions from being reasserted.
Signed-off-by: Harish Patil <harish.patil@cavium.com> Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
a39001d9 |
| 01-Jul-2017 |
Harish Patil <harish.patil@cavium.com> |
net/qede: fix DMA memory leak
Implement the macro OSAL_DMA_FREE_COHERENT to release DMA memories. Track all DMA memory allocations using an array of memzone pointers and use that to free memory reso
net/qede: fix DMA memory leak
Implement the macro OSAL_DMA_FREE_COHERENT to release DMA memories. Track all DMA memory allocations using an array of memzone pointers and use that to free memory resources along with other resource deallocation. With this change there is no need to alter the base code to additionally pass an unique string needed for memzone creation.
Fixes: ec94dbc57362 ("qede: add base driver") Cc: stable@dpdk.org
Signed-off-by: Harish Patil <harish.patil@cavium.com> Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
9a671097 |
| 25-Apr-2017 |
Rasesh Mody <rasesh.mody@cavium.com> |
net/qede/base: fix find zero bit macro
Use appropriate operator for if condition
Coverity issue: 1379399 Coverity issue: 1379404 Fixes: ec94dbc57362 ("qede: add base driver") Cc: stable@dpdk.org
S
net/qede/base: fix find zero bit macro
Use appropriate operator for if condition
Coverity issue: 1379399 Coverity issue: 1379404 Fixes: ec94dbc57362 ("qede: add base driver") Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
show more ...
|
#
7d178e9e |
| 19-Oct-2016 |
Rasesh Mody <rasesh.mody@qlogic.com> |
net/qede: remove zlib dependency and enable PMD
The QEDE PMD now uses unzipped firmware file eliminating the dependency on zlib. Hence remove LDLIBS entry form the Makefile and enable qede PMD by de
net/qede: remove zlib dependency and enable PMD
The QEDE PMD now uses unzipped firmware file eliminating the dependency on zlib. Hence remove LDLIBS entry form the Makefile and enable qede PMD by default.
Fixes: 6adac0bf30b3 ("qede: add missing external dependency and disable by default")
Signed-off-by: Rasesh Mody <rasesh.mody@qlogic.com>
show more ...
|