From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by dpdk.org (Postfix) with ESMTP id 3B9DCC3B4 for ; Mon, 3 Aug 2015 23:39:54 +0200 (CEST) Received: by labix3 with SMTP id ix3so9191058lab.0 for ; Mon, 03 Aug 2015 14:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=hG+sMdRD24ShzCgD3LAmubgI8+AGlEtJQk5ryA/+kE0=; b=CMBs1U1aFC/i45BX728DUBGVDMd25PZSUNXdoDz1kJzeEYQeBr3qnczZjgbeBmnVoM f4ZXTzY15X5GZh1edjJcXKy1dOdd0aqQkkPHRaLySDIxyEGETrFtnwLjsixyvVuUjV6E 24aeVPm26hPIoMOj+bqW0sufn92/rfSrrRAgv3d0d59/Wd0+2cFjWwdhWsp0uNjMbK+l OxOXpihLGzANsPiJISWbTwUlj3db3v6JfoYJHsrKHgGq+Kql4aKf+MBGM2Dgobu/9MZj QZK43pKuv4Ye9DOlHCCqkGP34+4gHix6abVLuY7Wg1Xew6LIPcdt/D1dO5Jdz74RSWEt heng== MIME-Version: 1.0 X-Received: by 10.112.143.136 with SMTP id se8mr119555lbb.101.1438637993888; Mon, 03 Aug 2015 14:39:53 -0700 (PDT) Received: by 10.112.190.100 with HTTP; Mon, 3 Aug 2015 14:39:53 -0700 (PDT) Date: Tue, 4 Aug 2015 06:39:53 +0900 Message-ID: From: "EaseTheWorld Mr." To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] I want to post my patch about examples/kni X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2015 21:39:54 -0000 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);