On Sat, 13 Nov 2021 10:01:40 +0530
Apeksha Gupta wrote:
> + if (mbuf)
> + rte_pktmbuf_free(mbuf);
Null check is unnecessary. rte_pktmbuf_free(NULL) is defined
to be safe, like free(NULL).
On Sat, 13 Nov 2021 10:01:39 +0530
Apeksha Gupta wrote:
> + /* Tx deferred start is not supported */
> + if (tx_conf->tx_deferred_start) {
> + ENETFEC_PMD_ERR("%p:Tx deferred start not supported",
> + (void *)dev);
Small observations:
1. Cast to void *
When testing using ASAN or valgrind with DPDK; there are lots of leftover
memory and file descriptors. This makes it hard to find application
leaks versus internal DPDK leaks.
The DPDK has a function that applications can use to tell it
to cleanup resources on shutdown (rte_eal_cleanup). But the
c
When application calls rte_eal_cleanup on shutdown,
the DPDK log should be closed and cleaned up.
This helps reduce false reports from tools like ASAN
and valgrind that track memory leaks.
Signed-off-by: Stephen Hemminger
---
lib/eal/common/eal_common_log.c | 13 +
lib/eal/common/ea
When rte_eal_cleanup is called, all control threads should exit.
For the mp thread, this best handled by closing the mp_socket
and letting the thread see that.
This also fixes potential problems where the mp_socket gets
another hard error, and the thread runs away repeating itself
by reading the s
When rte_eal_cleanup is called the rte_mp_action for VFIO
should be freed.
Fixes: edf73dd33072 ("ipc: handle unsupported IPC in action register")
Cc: anatoly.bura...@intel.com
Cc: sta...@dpdk.org
Signed-off-by: Stephen Hemminger
Acked-by: Anatoly Burakov
---
lib/eal/linux/eal.c | 4
When rte_eal_cleanup is called, hotplug should unregister the
resources associated with the multi-process server.
Signed-off-by: Stephen Hemminger
---
lib/eal/common/hotplug_mp.c | 5 +
lib/eal/common/hotplug_mp.h | 6 ++
lib/eal/linux/eal.c | 1 +
3 files changed, 12 insertions(
The mp action resources in malloc should be cleaned up via
rte_eal_cleanup.
Signed-off-by: Stephen Hemminger
Acked-by: Anatoly Burakov
---
lib/eal/common/malloc_heap.c | 6 ++
lib/eal/common/malloc_heap.h | 3 +++
lib/eal/common/malloc_mp.c | 12
lib/eal/common/malloc_mp.h
This test looks bogus it is doing something that DPDK as a library
really shouldn't allow:
/* use fork() to test rte_exit() */
static int
test_exit_val(int exit_val)
{
int pid;
int status;
/* manually cleanup EAL memory, as the fork() below would otherwise
* caus
Users are confused with a feature with "P", added necessary
explaination for this.
Signed-off-by: Qi Zhang
---
doc/guides/nics/features/ice.ini | 3 +++
1 file changed, 3 insertions(+)
diff --git a/doc/guides/nics/features/ice.ini b/doc/guides/nics/features/ice.ini
index 00ace32398..a15f42f94c
Users are confused with a feature with "P", added necessary
explanation for this.
Signed-off-by: Qi Zhang
---
v2:
- fix spell.
doc/guides/nics/features/ice.ini | 3 +++
1 file changed, 3 insertions(+)
diff --git a/doc/guides/nics/features/ice.ini b/doc/guides/nics/features/ice.ini
index 00ace
11 matches
Mail list logo