#
72ab1dc1 |
| 21-May-2024 |
Stephen Hemminger <stephen@networkplumber.org> |
net/tap: do not duplicate file descriptors
The TAP device can use same file descriptor for both Rx and Tx queues which reduces the number of FD's required.
MP process support passes file descriptor
net/tap: do not duplicate file descriptors
The TAP device can use same file descriptor for both Rx and Tx queues which reduces the number of FD's required.
MP process support passes file descriptors from primary to secondary process; but because of the restriction on max FD's passed RTE_MP_MAX_FD_NUM (8) the TAP device was restricted to only 4 queues if using secondary. This allows up to 8 queues (versus 4).
The restriction on max FD's should be changed in EAL in future, but it will break ABI compatibility. The max Linux supports which is SCM_MAX_FD (253).
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
show more ...
|
#
0809d870 |
| 03-May-2022 |
Quentin Armitage <quentin@armitage.org.uk> |
net/tap: fix interrupt handler freeing
rte_pmd_tun/tap_probe() allocates pmd->intr_handle in eth_dev_tap_create() and it should not be freed until rte_pmd_tap_remove() is called.
Inspection of tap_
net/tap: fix interrupt handler freeing
rte_pmd_tun/tap_probe() allocates pmd->intr_handle in eth_dev_tap_create() and it should not be freed until rte_pmd_tap_remove() is called.
Inspection of tap_rx_intr_vec_set() shows that the call to tap_tx_intr_vec_uninstall() was calling rte_intr_instance_free() but tap_tx_intr_vec_install() can then be immediately called, and this then uses pmd->intr_handle without it being reallocated.
Move rte_intr_instance_free() call from tap_tx_intr_vec_uninstall() to rte_pmd_tap_remove().
Fixes: d61138d4f0e2 ("drivers: remove direct access to interrupt handle") Cc: stable@dpdk.org
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk> Reviewed-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
d61138d4 |
| 22-Oct-2021 |
Harman Kalra <hkalra@marvell.com> |
drivers: remove direct access to interrupt handle
Removing direct access to interrupt handle structure fields, rather use respective get set APIs for the same. Making changes to all the drivers acce
drivers: remove direct access to interrupt handle
Removing direct access to interrupt handle structure fields, rather use respective get set APIs for the same. Making changes to all the drivers access the interrupt handle fields.
Signed-off-by: Harman Kalra <hkalra@marvell.com> Acked-by: Hyong Youb Kim <hyonkim@cisco.com> Signed-off-by: David Marchand <david.marchand@redhat.com> Tested-by: Raslan Darawsheh <rasland@nvidia.com>
show more ...
|
#
2ce7bc96 |
| 22-Apr-2021 |
Chengchang Tang <tangchengchang@huawei.com> |
net/tap: fix interrupt vector array size
The size of the current interrupt vector array is fixed to an integer.
This patch will create an interrupt vector array based on the number of rxqs.
Fixes:
net/tap: fix interrupt vector array size
The size of the current interrupt vector array is fixed to an integer.
This patch will create an interrupt vector array based on the number of rxqs.
Fixes: 4870a8cdd968 ("net/tap: support Rx interrupt") Cc: stable@dpdk.org
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com> Signed-off-by: Min Hu (Connor) <humin29@huawei.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
13b698d1 |
| 17-Apr-2020 |
Yunjian Wang <wangyunjian@huawei.com> |
net/tap: fix queues fd check before close
The fd is possibly a negative value while it is passed as an argument to function "close". Fix the check to the fd.
Fixes: ed8132e7c912 ("net/tap: move fds
net/tap: fix queues fd check before close
The fd is possibly a negative value while it is passed as an argument to function "close". Fix the check to the fd.
Fixes: ed8132e7c912 ("net/tap: move fds of queues to be in process private") Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
252566da |
| 25-Mar-2020 |
Yunjian Wang <wangyunjian@huawei.com> |
net/tap: remove unused assert
The assert checks is not necessary, the gso_ctx is always non-NULL.
Fixes: 050316a88313 ("net/tap: support TSO (TCP Segment Offload)") Cc: stable@dpdk.org
Signed-off-
net/tap: remove unused assert
The assert checks is not necessary, the gso_ctx is always non-NULL.
Fixes: 050316a88313 ("net/tap: support TSO (TCP Segment Offload)") Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
ed8132e7 |
| 18-Oct-2018 |
Raslan Darawsheh <rasland@mellanox.com> |
net/tap: move fds of queues to be in process private
fd's cannot be shared between processes, and each process need to have it's own fd's pointer.
Signed-off-by: Raslan Darawsheh <rasland@mellanox.
net/tap: move fds of queues to be in process private
fd's cannot be shared between processes, and each process need to have it's own fd's pointer.
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
1b3b7cae |
| 25-Apr-2018 |
Stephen Hemminger <stephen@networkplumber.org> |
net/tap: convert to dynamic logging
Use new logging macro to convert all calls to RTE_LOG() into new dynamic log type.
Also fix whitespace.
Signed-off-by: Stephen Hemminger <stephen@networkplumber
net/tap: convert to dynamic logging
Use new logging macro to convert all calls to RTE_LOG() into new dynamic log type.
Also fix whitespace.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
5feecc57 |
| 20-Mar-2018 |
Shahaf Shuler <shahafs@mellanox.com> |
align SPDX Mellanox copyrights
Aligning Mellanox SPDX copyrights to a single format. In addition replace to SPDX licence files which were missed.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
align SPDX Mellanox copyrights
Aligning Mellanox SPDX copyrights to a single format. In addition replace to SPDX licence files which were missed.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
show more ...
|
#
4870a8cd |
| 28-Jan-2018 |
Moti Haimovsky <motih@mellanox.com> |
net/tap: support Rx interrupt
This patch adds support for registering and waiting for Rx interrupts. This allows applications to wait for Rx events from the PMD using the DPDK rte_epoll subsystem.
net/tap: support Rx interrupt
This patch adds support for registering and waiting for Rx interrupts. This allows applications to wait for Rx events from the PMD using the DPDK rte_epoll subsystem.
Signed-off-by: Moti Haimovsky <motih@mellanox.com> Acked-by: Pascal Mazon <pascal.mazon@6wind.com>
show more ...
|