From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Gora Subject: [PATCH v2 0/5] kni: add API to set link status on kernel interface Date: Wed, 19 Sep 2018 16:55:44 -0300 Message-ID: <20180919195549.5585-1-dg@adax.com> References: <20180911232906.18352-1-dg@adax.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Igor Ryzhov , Stephen Hemminger , Dan Gora To: dev@dpdk.org Return-path: Received: from mail-qt0-f195.google.com (mail-qt0-f195.google.com [209.85.216.195]) by dpdk.org (Postfix) with ESMTP id 478261B11A for ; Wed, 19 Sep 2018 21:56:17 +0200 (CEST) Received: by mail-qt0-f195.google.com with SMTP id n6-v6so6328785qtl.4 for ; Wed, 19 Sep 2018 12:56:17 -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 2 of a patchset to add a new API function to set the link status on kernel interfaces created with the KNI kernel module. -dan 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 > Hi All, > > The following patches are to add support for DPDK applications to be > able to change the carrier state of Linux network interfaces in the > KNI kernel module. > > The carrier state is changed by writing to the Linux /sys file: > /sys/devices/virtual/net//carrier, where is the KNI > interface name. > > These patches supercede: > '[PATCH v2 10/10] kni: add API to set link status on kernel interface' > https://mails.dpdk.org/archives/dev/2018-August/110383.html Dan Gora (5): kni: add API to set link status on kernel interface 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 | 104 ++++++++++++++++------------- 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 | 100 ++++++++++++++++++++++++++- 8 files changed, 244 insertions(+), 47 deletions(-) -- 2.19.0