DPDK patches and discussions
 help / color / mirror / Atom feed
From: "EaseTheWorld Mr." <easetheworld@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] I want to post my patch about examples/kni
Date: Tue, 4 Aug 2015 06:39:53 +0900	[thread overview]
Message-ID: <CAJzQz-G5vqq-FE752GWiqw28htyO+FuEBD_suA4x4HYzCnHS_A@mail.gmail.com> (raw)

but I don't have smtp server... Can anybody help with this?

diff --git a/examples/kni/main.c b/examples/kni/main.c
index 6f74d8e..6d434ad 100644
--- a/examples/kni/main.c
+++ b/examples/kni/main.c
@@ -830,9 +830,9 @@ kni_free_kni(uint8_t port_id)
        if (port_id >= RTE_MAX_ETHPORTS || !p[port_id])
                return -1;

-       for (i = 0; i < p[i]->nb_kni; i++) {
-               rte_kni_release(p[i]->kni[i]);
-               p[i]->kni[i] = NULL;
+       for (i = 0; i < p[port_id]->nb_kni; i++) {
+               rte_kni_release(p[port_id]->kni[i]);
+               p[port_id]->kni[i] = NULL;
        }
        rte_eth_dev_stop(port_id);

             reply	other threads:[~2015-08-03 21:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03 21:39 EaseTheWorld Mr. [this message]
2015-08-03 22:10 ` Thomas Monjalon
2015-08-04  2:08 ` [dpdk-dev] Could DPDK ring provide peek interface or any comments for this function? Yan, Liming (Nokia - CN/Hangzhou)
2015-08-04  2:20 ` Yan, Liming (Nokia - CN/Hangzhou)
2015-08-04 12:57   ` Olivier MATZ
2015-08-04 16:14     ` Stephen Hemminger
2015-08-05  3:08     ` Yan, Liming (Nokia - CN/Hangzhou)

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=CAJzQz-G5vqq-FE752GWiqw28htyO+FuEBD_suA4x4HYzCnHS_A@mail.gmail.com \
    --to=easetheworld@gmail.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).