DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Marc Sune <marc.sune@bisdn.de>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v5] KNI: use a memzone pool for KNI alloc/release
Date: Tue, 21 Oct 2014 17:35:51 +0200
Message-ID: <2520916.G2E1LsrgoZ@xps13> (raw)
In-Reply-To: <1413888416-14814-1-git-send-email-marc.sune@bisdn.de>

2014-10-21 12:46, Marc Sune:
> The previous implementation of rte_kni_alloc() was allocating memzones with a
> name composed of a fixed string and the interface name. When an application was
> allocating and deallocating multiple interfaces with different names, memzones
> were quickly exhausted, even though memzones from deallocated interfaces were
> never used anymore (unless an interface with the same name was re-allocated).
> As a result, the application was unable to allocate more KNI interfaces with
> different names.
> This patch implements the KNI memzone pool in order to prevent memzone
> exhaustion when allocating/deallocating KNI interfaces. It adds a new API call,
> rte_kni_init(max_kni_ifaces) that shall be called before any call to
> rte_kni_alloc() if KNI is used. The memzones are pre-allocated with interface-
> independent names so that they can be reused.
> Signed-off-by: Marc Sune <marc.sune@bisdn.de>

Previously acked by Helin.



      reply	other threads:[~2014-10-21 15:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-21 10:46 Marc Sune
2014-10-21 15:35 ` Thomas Monjalon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2520916.G2E1LsrgoZ@xps13 \
    --to=thomas.monjalon@6wind.com \
    --cc=dev@dpdk.org \
    --cc=marc.sune@bisdn.de \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git