GithubHelp home page GithubHelp logo

napatech / dpdk Goto Github PK

View Code? Open in Web Editor NEW
24.0 11.0 4.0 181.84 MB

Napatech DPDK additions (Cloned from git://dpdk.org/dpdk)

Makefile 0.04% C 99.10% Python 0.22% C++ 0.04% Shell 0.11% Meson 0.45% Awk 0.01% SmPL 0.02% Ruby 0.01% Io 0.01%

dpdk's Introduction

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]

dpdk's People

Contributors

tmonjalo avatar bruce-richardson avatar qzhan16 avatar david-marchand avatar shemminger avatar pablodelara avatar ol-andrewr avatar anatolyburakov avatar ferruhy avatar jerinjacobk avatar hemantagr avatar olivier-matz-6wind avatar pavannikhilesh avatar ajitkhaparde avatar am6 avatar mcoquelin avatar wenzhuol avatar viacheslavo avatar cristian-dumitrescu avatar ol-ivanmal avatar wujingji avatar matan1559 avatar kananyev avatar michaelbaum1 avatar jasvinderd avatar helin-zhang avatar royzhang1980 avatar nithind1988 avatar beileix avatar smou-mlnx avatar

Stargazers

Tianyuan Sun avatar  avatar sam bacha avatar Tim Skov Jacobsen avatar  avatar Quinton Pike avatar Sam Kottler avatar Dimitrije Petrovic avatar Justin Chouinard avatar Shuwen Sun avatar David Richmond avatar  avatar Rogelio Domínguez Hernández avatar  avatar IHAB ABDELRHMAN MAHMOUD GENO avatar  avatar  avatar  avatar  avatar  avatar Charles avatar Aws Ismail avatar  avatar Uffe Jakobsen avatar

Watchers

Peter Ring avatar James Cloos avatar Uffe Jakobsen avatar Justas avatar  avatar Charles avatar  avatar  avatar  avatar  avatar  avatar

dpdk's Issues

Deadlock when rte_flow_create fails

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:

if (CreateOptimizedFilter(ntpl_buf, internals, flow, &filterContinue, typeMask, list_queues, nb_queues, key, &color, error) != 0) {
NTACC_UNLOCK(&internals->configlock);
goto FlowError;
}
if (!reuse) {
if (DoNtpl(ntpl_buf, &ntplID, internals, NULL) != 0) {
goto FlowError;
}

Potential deadlock error due to the unrelased lock &sh->txpp.mutex

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.

ret = pthread_mutex_lock(&sh->txpp.mutex);

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);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.