#
7594cafa |
| 01-Oct-2024 |
Vanshika Shukla <vanshika.shukla@nxp.com> |
net/dpaa: fix reallocate mbuf handling
This patch fixes the bug in the reallocate_mbuf code handling. The source location is corrected when copying the data in the new mbuf.
Fixes: f8c7a17a48c9 ("n
net/dpaa: fix reallocate mbuf handling
This patch fixes the bug in the reallocate_mbuf code handling. The source location is corrected when copying the data in the new mbuf.
Fixes: f8c7a17a48c9 ("net/dpaa: support Tx scatter gather for non-DPAA buffer") Cc: stable@dpdk.org
Signed-off-by: Vanshika Shukla <vanshika.shukla@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
a978a7f6 |
| 01-Oct-2024 |
Jun Yang <jun.yang@nxp.com> |
net/dpaa: improve errata A010022 handling
This patch improves the errata handling for "RTE_LIBRTE_DPAA_ERRATA_LS1043_A010022"
Signed-off-by: Jun Yang <jun.yang@nxp.com> Acked-by: Hemant Agrawal <he
net/dpaa: improve errata A010022 handling
This patch improves the errata handling for "RTE_LIBRTE_DPAA_ERRATA_LS1043_A010022"
Signed-off-by: Jun Yang <jun.yang@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
b0827a40 |
| 01-Oct-2024 |
Gagandeep Singh <g.singh@nxp.com> |
net/dpaa: support mempool debug
This patch adds support to compile time debug the mempool corruptions in dpaa driver.
Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Acked-by: Hemant Agrawal <hema
net/dpaa: support mempool debug
This patch adds support to compile time debug the mempool corruptions in dpaa driver.
Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
480ec5b4 |
| 01-Oct-2024 |
Hemant Agrawal <hemant.agrawal@nxp.com> |
net/dpaa: enhance DPAA frame display
This patch enhances the received packet debugging capability. This help displaying the full packet parsing output.
Signed-off-by: Jun Yang <jun.yang@nxp.com> Si
net/dpaa: enhance DPAA frame display
This patch enhances the received packet debugging capability. This help displaying the full packet parsing output.
Signed-off-by: Jun Yang <jun.yang@nxp.com> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
a350a954 |
| 01-Oct-2024 |
Hemant Agrawal <hemant.agrawal@nxp.com> |
net/dpaa: implement detailed packet parsing
This patch implements the detailed packet parsing using the annotation info from the hardware.
decode parser to set RX muf packet type by dpaa_slow_parsi
net/dpaa: implement detailed packet parsing
This patch implements the detailed packet parsing using the annotation info from the hardware.
decode parser to set RX muf packet type by dpaa_slow_parsing. Support to identify the IPSec ESP, GRE and SCTP packets.
Signed-off-by: Jun Yang <jun.yang@nxp.com> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
615352f5 |
| 01-Oct-2024 |
Vanshika Shukla <vanshika.shukla@nxp.com> |
net/dpaa: support Rx/Tx timestamp read
This patch implements Rx/Tx timestamp read operations for DPAA1 platform.
Signed-off-by: Vanshika Shukla <vanshika.shukla@nxp.com> Acked-by: Hemant Agrawal <h
net/dpaa: support Rx/Tx timestamp read
This patch implements Rx/Tx timestamp read operations for DPAA1 platform.
Signed-off-by: Vanshika Shukla <vanshika.shukla@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
9e97abf2 |
| 01-Oct-2024 |
Jun Yang <jun.yang@nxp.com> |
net/dpaa: share MAC FMC scheme and CC parse
For Shared MAC: 1) Allocate RXQ from VSP scheme. (Virtual Storage Profile) 2) Allocate RXQ from Coarse classifiation (CC) rules to VSP. 2) Remove RXQ allo
net/dpaa: share MAC FMC scheme and CC parse
For Shared MAC: 1) Allocate RXQ from VSP scheme. (Virtual Storage Profile) 2) Allocate RXQ from Coarse classifiation (CC) rules to VSP. 2) Remove RXQ allocated which is reconfigured without VSP. 3) Don't alloc default queue and err queues.
Signed-off-by: Jun Yang <jun.yang@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
d11482d9 |
| 01-Oct-2024 |
Vanshika Shukla <vanshika.shukla@nxp.com> |
net/dpaa: support separating Tx conf queues
This patch separates Tx confirmation queues for kernel and DPDK so as to support the VSP case.
Signed-off-by: Vanshika Shukla <vanshika.shukla@nxp.com> A
net/dpaa: support separating Tx conf queues
This patch separates Tx confirmation queues for kernel and DPDK so as to support the VSP case.
Signed-off-by: Vanshika Shukla <vanshika.shukla@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
58e0420f |
| 01-Oct-2024 |
Vanshika Shukla <vanshika.shukla@nxp.com> |
net/dpaa: support Tx confirmation to enable PTP
TX confirmation provides dedicated confirmation queues for transmitted packets. These queues are used by software to get the status and release transm
net/dpaa: support Tx confirmation to enable PTP
TX confirmation provides dedicated confirmation queues for transmitted packets. These queues are used by software to get the status and release transmitted packets buffers.
This patch also changes the IEEE1588 support as devargs
Signed-off-by: Vanshika Shukla <vanshika.shukla@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
0fcdbde0 |
| 03-Jul-2024 |
Hemant Agrawal <hemant.agrawal@nxp.com> |
drivers: use log macros in NXP drivers
This patch replaces the printf with related log macros and functions at various places in NXP dpaaX drivers.
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp
drivers: use log macros in NXP drivers
This patch replaces the printf with related log macros and functions at various places in NXP dpaaX drivers.
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
0bf99a02 |
| 07-Oct-2022 |
Gagandeep Singh <g.singh@nxp.com> |
net/dpaa: fix buffer freeing in slow path
If there is any error in packet or taildrop feature is enabled, HW can reject those packets and put them in error queue. Driver poll this error queue to fre
net/dpaa: fix buffer freeing in slow path
If there is any error in packet or taildrop feature is enabled, HW can reject those packets and put them in error queue. Driver poll this error queue to free the buffers. DPAA driver has an issue while freeing these rejected buffers. In case of scatter gather packets, it is preparing the mbuf SG list by scanning the HW descriptors and once the mbuf SG list prepared, it free only first segment of the mbuf SG list by calling the API rte_pktmbuf_free_seg(), This will leak the memory of other segments and mempool can be empty.
Also there is one more issue, external buffer's memory may not belong to mempool so driver itself free the external buffer after successfully send the packet to HW to transmit instead of let the HW to free it. So transmit function free all the external buffers. But driver has no check for external buffers while freeing the rejected buffers and this can do double free the memory which can corrupt the user pool and crashes and undefined behaviour of system can be seen.
This patch fixes the above mentioned issue by checking each and every segment and freeing all the segments except external.
Fixes: 9124e65dd3eb ("net/dpaa: enable Tx queue taildrop") Cc: stable@dpdk.org
Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
8716c0ec |
| 07-Oct-2022 |
Gagandeep Singh <g.singh@nxp.com> |
net/dpaa: fix buffer freeing on SG Tx
When using SG list to TX with external and direct buffers, HW free direct buffers and driver free external buffers.
Software scans the complete SG mbuf list to
net/dpaa: fix buffer freeing on SG Tx
When using SG list to TX with external and direct buffers, HW free direct buffers and driver free external buffers.
Software scans the complete SG mbuf list to find the external buffers to free, but this is wrong as hardware can free the direct buffers if any present in the list and same can be re-allocated for other purpose in multi thread or high speed running traffic environment with new data in it. So the software which is scanning the SG mbuf list, if that list has any direct buffer present then that direct buffer's next pointer can give wrong pointer value, if already freed by hardware which can do the mempool corruption or memory leak.
In this patch instead of relying on user given SG mbuf list we are storing the buffers in an internal list which will be scanned by driver after transmit to free non-direct buffers.
This patch also fixes below issues.
Driver is freeing complete SG list by checking external buffer flag in first segment only, but external buffer can be attached to any of the segment. Because of this, driver either can double free buffers or there can be memory leak.
In case of indirect buffers, driver is modifying the original buffer list to free the indirect buffers but this original buffer list is being used by driver even after transmit packets for non-direct buffer cleanup. This can cause the buffer leak issue.
Fixes: f191d5abda54 ("net/dpaa: support external buffers in Tx") Cc: stable@dpdk.org
Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
533c31cc |
| 07-Oct-2022 |
Gagandeep Singh <g.singh@nxp.com> |
net/dpaa: use internal mempool for SG table
Creating and using driver's mempool for allocating the SG table memory required for FD creation.
Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Acked-b
net/dpaa: use internal mempool for SG table
Creating and using driver's mempool for allocating the SG table memory required for FD creation.
Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
e7524271 |
| 07-Oct-2022 |
Gagandeep Singh <g.singh@nxp.com> |
net/dpaa: support ESP type in packet parsing
Add support of ESP packet type in packet receive path.
Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
|
#
a2f1da7d |
| 28-Jul-2022 |
David Marchand <david.marchand@redhat.com> |
bus/dpaa: make driver-only headers private
The dpaa bus interface is for drivers only. Mark as internal and move the header in the driver headers list.
While at it, cleanup internal structures: - r
bus/dpaa: make driver-only headers private
The dpaa bus interface is for drivers only. Mark as internal and move the header in the driver headers list.
While at it, cleanup internal structures: - remove unneeded reference to bus specific singleton object, - remove unneeded list head structure type, - reorder the definitions and macro manipulating the bus singleton object, - remove inclusion of rte_bus.h and update code that relied on it,
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
7be78d02 |
| 29-Nov-2021 |
Josh Soref <jsoref@gmail.com> |
fix spelling in comments and strings
The tool comes from https://github.com/jsoref
Signed-off-by: Josh Soref <jsoref@gmail.com> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
|
#
daa02b5c |
| 15-Oct-2021 |
Olivier Matz <olivier.matz@6wind.com> |
mbuf: add namespace to offload flags
Fix the mbuf offload flags namespace by adding an RTE_ prefix to the name. The old flags remain usable, but a deprecation warning is issued at compilation.
Sign
mbuf: add namespace to offload flags
Fix the mbuf offload flags namespace by adding an RTE_ prefix to the name. The old flags remain usable, but a deprecation warning is issued at compilation.
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Acked-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
f191d5ab |
| 24-Feb-2021 |
Hemant Agrawal <hemant.agrawal@nxp.com> |
net/dpaa: support external buffers in Tx
This patch support tx of external buffers
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
|
#
df96fd0d |
| 29-Jan-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
ethdev: make driver-only headers private
The rte_ethdev_driver.h, rte_ethdev_vdev.h and rte_ethdev_pci.h files are for drivers only and should be a private to DPDK and not installed.
Signed-off-by:
ethdev: make driver-only headers private
The rte_ethdev_driver.h, rte_ethdev_vdev.h and rte_ethdev_pci.h files are for drivers only and should be a private to DPDK and not installed.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Steven Webster <steven.webster@windriver.com>
show more ...
|
#
c9a1c2e5 |
| 28-Oct-2020 |
David Marchand <david.marchand@redhat.com> |
bus/dpaa: switch sequence number to dynamic mbuf field
The dpaa drivers have been hacking the deprecated field seqn for internal features. It is moved to a dynamic mbuf field in order to allow remov
bus/dpaa: switch sequence number to dynamic mbuf field
The dpaa drivers have been hacking the deprecated field seqn for internal features. It is moved to a dynamic mbuf field in order to allow removal of seqn.
Signed-off-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
95d226f0 |
| 24-Sep-2020 |
Nipun Gupta <nipun.gupta@nxp.com> |
net/dpaa: send error packets to application
Send error packets to main queue (rx) to make application enable to receive error packets. Earlier all packets with L3/L4 checksum errors were getting dro
net/dpaa: send error packets to application
Send error packets to main queue (rx) to make application enable to receive error packets. Earlier all packets with L3/L4 checksum errors were getting dropped by the hardware.
Signed-off-by: Rohit Raj <rohit.raj@nxp.com> Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
show more ...
|
#
77393f56 |
| 24-Sep-2020 |
Sachin Saxena <sachin.saxena@oss.nxp.com> |
bus/dpaa: enable Rx/Tx error queues
Enables a debugging queue to fetch error (Rx/Tx) packets to user space. Earlier all packets with L3/L4 checksum errors were getting dropped by the hardware.
Sett
bus/dpaa: enable Rx/Tx error queues
Enables a debugging queue to fetch error (Rx/Tx) packets to user space. Earlier all packets with L3/L4 checksum errors were getting dropped by the hardware.
Setting CONFIG_RTE_LIBRTE_DPAA_DEBUG_DRIVER=y is required which enables following enhancements. 1) Enable TX/RX error queues to check the errors packet. 2) Display error frame information(payload, status, paresr result). 3) Send error packets to application
Signed-off-by: Jun Yang <jun.yang@nxp.com> Signed-off-by: Rohit Raj <rohit.raj@nxp.com> Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Signed-off-by: Sachin Saxena <sachin.saxena@oss.nxp.com>
show more ...
|
#
e5872221 |
| 07-Jul-2020 |
Rohit Raj <rohit.raj@nxp.com> |
drivers/dpaa: optimize thread local storage
Minimize the number of different thread variables
Add all the thread specific variables in dpaa_portal structure to optimize TLS Usage.
Signed-off-by: R
drivers/dpaa: optimize thread local storage
Minimize the number of different thread variables
Add all the thread specific variables in dpaa_portal structure to optimize TLS Usage.
Signed-off-by: Rohit Raj <rohit.raj@nxp.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
9124e65d |
| 07-Jul-2020 |
Gagandeep Singh <g.singh@nxp.com> |
net/dpaa: enable Tx queue taildrop
Enable congestion handling/tail drop for TX queues.
Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
|
#
287f4256 |
| 07-Jul-2020 |
Nipun Gupta <nipun.gupta@nxp.com> |
net/dpaa: fix FD offset data type
On DPAA fd offset is 9 bits, but we are using uint8_t in the SG case. This patch fixes the same.
Fixes: 8cffdcbe85aa ("net/dpaa: support scattered Rx") Cc: stable@
net/dpaa: fix FD offset data type
On DPAA fd offset is 9 bits, but we are using uint8_t in the SG case. This patch fixes the same.
Fixes: 8cffdcbe85aa ("net/dpaa: support scattered Rx") Cc: stable@dpdk.org
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|