#
e498f3b5 |
| 01-Oct-2024 |
Gagandeep Singh <g.singh@nxp.com> |
net/dpaa: improve port cleanup
During DPAA cleanup in FMCLESS mode, application can see segmentation fault in device close API and in DPAA destructor execution. Segmentation fault in device close is
net/dpaa: improve port cleanup
During DPAA cleanup in FMCLESS mode, application can see segmentation fault in device close API and in DPAA destructor execution. Segmentation fault in device close is because driver reducing the number of queues initialised during device configuration without releasing the actual queues.
And segmentation fault in DPAA destruction is because it is trying to access RTE* devices whose memory has been released in rte_eal_cleanup() call by the application.
This patch improves the behavior.
Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
7e5f49ae |
| 01-Oct-2024 |
Rohit Raj <rohit.raj@nxp.com> |
bus/dpaa: add ONIC port mode
The OH ports can also be used by two application, processing contexts to communicate to each other. This patch enables this mode for dpaa-eth OH port as ONIC port, so th
bus/dpaa: add ONIC port mode
The OH ports can also be used by two application, processing contexts to communicate to each other. This patch enables this mode for dpaa-eth OH port as ONIC port, so that application can use the dpaa-eth to communicate to each other on the same SoC.
Again, this properties is driven by the system device-tree variables.
Signed-off-by: Rohit Raj <rohit.raj@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
a0edbb8a |
| 01-Oct-2024 |
Rohit Raj <rohit.raj@nxp.com> |
bus/dpaa: add OH port mode
NXP DPAA architecture supports the concept of DPAA port as Offline Port - meaning - not connected to an actual MAC. This is an hardware assisted IPC mechanism for communic
bus/dpaa: add OH port mode
NXP DPAA architecture supports the concept of DPAA port as Offline Port - meaning - not connected to an actual MAC. This is an hardware assisted IPC mechanism for communicating between two applications.
Offline(O/H) port is a type of hardware port which is able to dequeue and enqueue from/to a QMan queue. The FMan applies a Parse Classify Distribute (PCD) flow and (if configured to do so) enqueues the frame back in a QMan queue.
The FMan is able to copy the frame into new buffers and enqueue back to the QMan. This means these ports can be used to send and receive packet between two applications.
An O/H port Have two queues. One to receive and one to send the packets. It will loopback all the packets on Tx queue which are received on Rx queue.
This property is completely driven by the device-tree. During the DPAA bus scan, based on the platform device properties as in device-tree, the port can be classified as OH port.
This patch add support in the driver to use dpaa eth port in OH mode as well with DPDK applications.
Signed-off-by: Rohit Raj <rohit.raj@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 ...
|
#
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 ...
|
#
1ec9a3af |
| 03-Jul-2024 |
Hemant Agrawal <hemant.agrawal@nxp.com> |
drivers: remove newline in logs for some NXP drivers
Remove duplicate newline `\n` from the debugging macros to avoid double `\n\n`.
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
|
#
65afdda0 |
| 07-Oct-2022 |
Rohit Raj <rohit.raj@nxp.com> |
net/dpaa: fix jumbo packet Rx in case of VSP
For packet length of size more than 2K bytes, segmented packets were being received in DPDK even if mbuf size was greater than packet length. This is due
net/dpaa: fix jumbo packet Rx in case of VSP
For packet length of size more than 2K bytes, segmented packets were being received in DPDK even if mbuf size was greater than packet length. This is due to the configuration in VSP.
This patch fixes the issue by configuring the VSP according to the mbuf size configured during mempool configuration.
Fixes: e4abd4ff183c ("net/dpaa: support virtual storage profile") Cc: stable@dpdk.org
Signed-off-by: Rohit Raj <rohit.raj@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
295968d1 |
| 22-Oct-2021 |
Ferruh Yigit <ferruh.yigit@intel.com> |
ethdev: add namespace
Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS. Also updated some struct names to
ethdev: add namespace
Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS. Also updated some struct names to have 'rte_eth' prefix.
All internal components switched to using new names.
Syntax fixed on lines that this patch touches.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Acked-by: Jerin Jacob <jerinj@marvell.com> Acked-by: Wisam Jaddo <wisamm@nvidia.com> Acked-by: Rosen Xu <rosen.xu@intel.com> Acked-by: Chenbo Xia <chenbo.xia@intel.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Somnath Kotur <somnath.kotur@broadcom.com>
show more ...
|
#
8d2bf7c1 |
| 19-Jul-2021 |
Nipun Gupta <nipun.gupta@nxp.com> |
net/dpaa: fix headroom in VSP case
This patch fixes providing the correct headroom size when VSP is enabled.
Fixes: e4abd4ff183c ("net/dpaa: support virtual storage profile") Cc: stable@dpdk.org
S
net/dpaa: fix headroom in VSP case
This patch fixes providing the correct headroom size when VSP is enabled.
Fixes: e4abd4ff183c ("net/dpaa: support virtual storage profile") Cc: stable@dpdk.org
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
show more ...
|
#
e4abd4ff |
| 04-Sep-2020 |
Jun Yang <jun.yang@nxp.com> |
net/dpaa: support virtual storage profile
This patch adds support for Virtual Storage profile (VSP) feature. With VSP support when memory pool is created, the hw buffer pool id i.e. bpid is not allo
net/dpaa: support virtual storage profile
This patch adds support for Virtual Storage profile (VSP) feature. With VSP support when memory pool is created, the hw buffer pool id i.e. bpid is not allocated; the bpid is identified by dpaa flow create API. The memory pool of RX queue is attached to specific BMan pool according to the VSP ID when RX queue is setup. For fmlib based hash queue, VSP base ID is assigned to each queue.
Signed-off-by: Jun Yang <jun.yang@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
133332f0 |
| 04-Sep-2020 |
Radu Bulie <radu-andrei.bulie@nxp.com> |
bus/dpaa: support shared MAC
A shared MAC interface is an interface which can be used by both kernel and userspace based on classification configuration It is defined in dts with the compatible stri
bus/dpaa: support shared MAC
A shared MAC interface is an interface which can be used by both kernel and userspace based on classification configuration It is defined in dts with the compatible string "fsl,dpa-ethernet-shared" which bpool will be seeded by the dpdk partition and configured as a netdev by the dpaa Linux eth driver. User space buffers from the bpool will be kmapped by the kernel.
Signed-off-by: Radu Bulie <radu-andrei.bulie@nxp.com> Signed-off-by: Jun Yang <jun.yang@nxp.com> Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|
#
4defbc8c |
| 04-Sep-2020 |
Sachin Saxena <sachin.saxena@nxp.com> |
net/dpaa: support FMCless mode
This patch uses fmlib to configure the FMAN HW for flow and distribution configuration, thus avoiding the need for static FMC tool execution optionally.
Signed-off-by
net/dpaa: support FMCless mode
This patch uses fmlib to configure the FMAN HW for flow and distribution configuration, thus avoiding the need for static FMC tool execution optionally.
Signed-off-by: Sachin Saxena <sachin.saxena@nxp.com> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
show more ...
|