napatech / dpdk Goto Github PK
View Code? Open in Web Editor NEWNapatech DPDK additions (Cloned from git://dpdk.org/dpdk)
Napatech DPDK additions (Cloned from git://dpdk.org/dpdk)
DPDK is a set of libraries and drivers for fast packet processing. It supports many processor architectures and both FreeBSD and Linux. The DPDK uses the Open Source BSD-3-Clause license for the core libraries and drivers. The kernel components are GPL-2.0 licensed. Please check the doc directory for release notes, API documentation, and sample application information. For questions and usage discussions, subscribe to: [email protected] Report bugs and issues to the development mailing list: [email protected]
When rte_flow_create
fails due to an error in DoNtpl
, the next DPDK call can hang due to a deadlock.
In my case I tried to clean up after the failed rte_flow_create
by calling rte_flow_flush
, which hangs indefinitely (waiting for a lock).
I believe the cause is a missing NTACC_UNLOCK(&internals->configlock);
when an error occurs in DoNtpl
:
dpdk/drivers/net/ntacc/rte_eth_ntacc.c
Lines 2314 to 2322 in 3f97df1
We can store the pcap with pdump, if we are in a need of dissection, is there any good way to do it?
Hi, developers, thank you for your checking. The lock &sh->txpp.mutex may be not released correctly the method returns at the branch !sh->txpp.refcnt || --sh->txpp.refcnt
satisfies. The fix is to insert pthread_mutex_lock(&sh->txpp.mutex);
before returning.
dpdk/drivers/net/mlx5/mlx5_txpp.c
Line 951 in a384ad1
dpdk/drivers/net/mlx5/mlx5_txpp.c
Line 956 in a384ad1
void
mlx5_txpp_stop(struct rte_eth_dev *dev)
{
struct mlx5_priv *priv = dev->data->dev_private;
struct mlx5_dev_ctx_shared *sh = priv->sh;
int ret;
if (!priv->txpp_en) {
return;
}
priv->txpp_en = 0;
ret = pthread_mutex_lock(&sh->txpp.mutex); // the lock
MLX5_ASSERT(!ret);
RTE_SET_USED(ret);
MLX5_ASSERT(sh->txpp.refcnt);
if (!sh->txpp.refcnt || --sh->txpp.refcnt)
return; // return without releasing
mlx5_txpp_destroy(sh);
ret = pthread_mutex_unlock(&sh->txpp.mutex);
MLX5_ASSERT(!ret);
RTE_SET_USED(ret);
}
Hi, developers, I found a lock acquisition with releasing in the function createoptimizedFilter. Is it ture? Thank you for your checking.
dpdk/drivers/net/ntacc/filter_ntacc.c
Line 849 in 3f97df1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.