From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Gora Subject: [PATCH v3 0/6] kni: add API to set link status on kernel interface Date: Wed, 26 Sep 2018 21:32:50 -0300 Message-ID: <20180927003256.6901-1-dg@adax.com> References: <20180911232906.18352-1-dg@adax.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Igor Ryzhov , Stephen Hemminger , Ferruh Yigit , Dan Gora To: dev@dpdk.org Return-path: Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) by dpdk.org (Postfix) with ESMTP id 5AB061B126 for ; Thu, 27 Sep 2018 02:34:01 +0200 (CEST) Received: by mail-qt1-f194.google.com with SMTP id m15-v6so945587qtp.8 for ; Wed, 26 Sep 2018 17:34:01 -0700 (PDT) In-Reply-To: <20180911232906.18352-1-dg@adax.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi All, Attached is version 3 of a patchset to add a new API function to set the link status on kernel interfaces created with the KNI kernel module. v3 ==== * Use separate function to test rte_kni_update_link() in 'test' app. * Separate changes to 'test' app into separate patch to facilitate possible merge with https://patches.dpdk.org/patch/44730/ * Remove changes to set KNI interfaces to 'up' in example/kni > v2 > ==== > > * Fix bug where "Fixed" and "AutoNeg" were transposed in the link > status log message. > > * Add rte_kni_update_link() to rte_kni_version.map > > * Add rte_kni_update_link() tests to kni_autotest > > * Update examples/kni to continuously monitor link status and > update the corresponding kernel interface with > rte_kni_update_link(). > > * Minor improvements to examples/kni: Add log message showing how > to show/zero stats. Improve zeroing statistics. > > Note that checkpatches.sh compains about patch 1/5, but this appears > to be a bug with check-symbol-change or something. If I move the > fragment of the patch modifying rte_kni_version.map to the bottom of > the patch file, it doesn't complain any more... I just don't really > have time to investigate this right now. thanks dan Dan Gora (6): kni: add API to set link status on kernel interface kni: add link status test kni: set default carrier state to 'off' examples/kni: monitor and update link status continually examples/kni: add log msgs to show and clear stats examples/kni: improve zeroing statistics examples/kni/Makefile | 2 + examples/kni/main.c | 95 ++++++++++----------- kernel/linux/kni/kni_misc.c | 2 + kernel/linux/kni/kni_net.c | 2 + lib/librte_kni/rte_kni.c | 57 +++++++++++++ lib/librte_kni/rte_kni.h | 18 ++++ lib/librte_kni/rte_kni_version.map | 6 ++ test/test/test_kni.c | 131 +++++++++++++++++++++++++++++ 8 files changed, 264 insertions(+), 49 deletions(-) -- 2.19.0