From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f68.google.com (mail-oi0-f68.google.com [209.85.218.68]) by dpdk.org (Postfix) with ESMTP id A81231B555 for ; Fri, 29 Jun 2018 03:55:59 +0200 (CEST) Received: by mail-oi0-f68.google.com with SMTP id v8-v6so7049347oie.5 for ; Thu, 28 Jun 2018 18:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=t9K0HAm7ovX56o3rCITJkVg9YocRDyAImC7Yvmmmhqo=; b=cc7ocdtZHb7Fh7HDnTAOvz8+W6bg2+senm31AM1oTWgRKlOhJTPXSN8EbMXpeMYDI4 dW9uQWL3WhYtVjzR4Wp4KbQrVy33QoMzcFaRZaOzdVk9zc0wvVLqNwikztv/vXZO87NY +v7iNFyKHXrKrOiNppEeu6yOGrQnsHsR88LCeAsMTN95CzTcb7urWTjERUKBBSfFoKaL E+V0TylKT/ce4tzPzxTqIQ/jFFZytSf7KXRyqXbYeG+7H/Zk5O1p1DbVfZpKY/3wN81v qYXoC6joeDtaT4YBDX4DvcVpncTQHghvYRrvapg+ehbLS05kUPMSfuP1uDq7iJnbWdtN DCwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=t9K0HAm7ovX56o3rCITJkVg9YocRDyAImC7Yvmmmhqo=; b=Be/R3qevwK6PJLAALdwj+PdIEXefgxkKkKt6FWDeZRRPlLta6TxxE2cpEVv9XzSN3H l+90iFEyrn3e8FED33pyyCBsAbjX8O9l01n+PGjyGwxjceICKK9tCydbPZTqj7/n6IvH wxTBVZ0sTuZVRbrEwataZ/3xqMEaFQKMVFyWKhdglSDO8VHhR7SsG9TSd7GFlfzv3/8U UIlIeiT2nidH0H4laB6YBsJPgC4euwEAaIZVDlbq4AzOO30T/TDO2bw7k2EOGcYgwMCD 6Hczl9cPFi9S1+i7geDvqH5rA69qmAvCcGC/Ga5rr6GYa0F6tVZQofkmOpbCMX/gtTek o/Kg== X-Gm-Message-State: APt69E0lzLN1CYCNKpsAvZowHqcnYSNBYj0vOuJ7wgdHTyPduidB4/wp G3FWZ8r4FVFV8tia0Iuk7tXzWA== X-Google-Smtp-Source: AAOMgpc38934ZWmKNU9vUYQP06I/8A8hMO2CTcBgszUiIryCLmCQw26gay5PQWqAogD8t6MlyL1mgw== X-Received: by 2002:aca:4c8e:: with SMTP id z136-v6mr5675800oia.170.1530237358926; Thu, 28 Jun 2018 18:55:58 -0700 (PDT) Received: from linux.adax.com (172-11-198-60.lightspeed.sntcca.sbcglobal.net. [172.11.198.60]) by smtp.gmail.com with ESMTPSA id n3-v6sm3941288otk.38.2018.06.28.18.55.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jun 2018 18:55:58 -0700 (PDT) Sender: Dan Gora From: Dan Gora To: ferruh.yigit@intel.com Cc: dev@dpdk.org, Dan Gora Date: Thu, 28 Jun 2018 18:55:06 -0700 Message-Id: <20180629015508.26599-9-dg@adax.com> X-Mailer: git-send-email 2.18.0.rc1.1.g6f333ff2f In-Reply-To: <20180629015508.26599-1-dg@adax.com> References: <20180628224513.18391-1-dg@adax.com> <20180629015508.26599-1-dg@adax.com> Subject: [dpdk-dev] [PATCH v2 08/10] kni: add rte_kni_free to KNI example app X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2018 01:55:59 -0000 Add rte_kni_free to the KNI example application. Signed-off-by: Dan Gora --- examples/kni/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/kni/main.c b/examples/kni/main.c index 4b162debb..75e23cd0f 100644 --- a/examples/kni/main.c +++ b/examples/kni/main.c @@ -883,7 +883,9 @@ kni_free_kni(uint16_t port_id) for (i = 0; i < p[port_id]->nb_kni; i++) { if (rte_kni_release(p[port_id]->kni[i])) - printf("Fail to release kni\n"); + printf("Failed to release kni\n"); + if (rte_kni_free(p[port_id]->kni[i])) + printf("Failed to free kni\n"); p[port_id]->kni[i] = NULL; } rte_eth_dev_stop(port_id); -- 2.18.0.rc1.1.g6f333ff2f