[v3,0/6] kni: add API to set link status on kernel interface
Message ID | 20180927003256.6901-1-dg@adax.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 140B61B1AD; Thu, 27 Sep 2018 02:34:03 +0200 (CEST) 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 <dev@dpdk.org>; Thu, 27 Sep 2018 02:34:01 +0200 (CEST) Received: by mail-qt1-f194.google.com with SMTP id m15-v6so945587qtp.8 for <dev@dpdk.org>; Wed, 26 Sep 2018 17:34:01 -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 :mime-version:content-transfer-encoding; bh=/gRgMc+CEieAFRrA1eqaLgm05z2l7thXq9PeVozNWVc=; b=PVpZMQQAXOvy/dafmpRH8Xz3NdT9ozTGqDBKCLPVNX31eRLNRBkSaRBcSv8XxdwEd2 gMYFsrFlsCXpTOHke6VG+t1Uporr0FL2bvqHF4x45o/mqGMuvcny6Zq8d0hoDgd+TzW0 EpFmPZ9xGZmaUaAWWaFIrxhBrXXTWh+iDfKqoYYV71m7DE6dVLrTmLOdmraQnSlTcBsa wt3MnQk3haY6A0q6/k2BZquv5bWJNpf1IMvb0DATWBQ3ixn4+nMyIxrfTxoOQpwm8q/Y DBlFT663UBka7VtShmO6rZGlZd57au/BiXiVUs+cM6BuyVAq4KPmfYAhmh0+eT24r1Lc Bjtg== 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:mime-version:content-transfer-encoding; bh=/gRgMc+CEieAFRrA1eqaLgm05z2l7thXq9PeVozNWVc=; b=p7C2isCFsBnolvWO4C1YrRtsIVc5JRoEuhp+aKm1B0+PE6nTlUwI0CXm7UqnmF3C8w 7r+EXI79IL9h6r9I8xTrptz1waAlediVTGBTgyGW4fWqFSWwt8otLhgEqR0EvbtpvU1k wv04hSiPzMgCb3oThL025olMe+yqTivlv7z2F/zbL+GZxXvB3faTYaOcBgSGWx/0SVII shzpK0ni+a0Ai3Y4NLW95/xn8MXfvHPhE/rCbdHNQ29/27GP6v+sJ26/LFRxkACue6GM TVc81S1k8RrhHn22FvruGj+m049bwBZjcBj2vOnbzSHnmZoSd8fV3U0rvNuCtsJ2uKM1 Eb8g== X-Gm-Message-State: ABuFfojAW00Zu7YZZTp0ZQKsT6qtuhtUxGWDnP/ywvJ0Mkg4WwH3onJS 9iN8I7xbL5akDqqCATTGpytTL6ba X-Google-Smtp-Source: ACcGV63SxhSNpiQvb5VZp9y1VYFetGYILUIwgNH/v3BFu0wu3vzSKpnOs8l8t2iCbrHdhgtwxv6WcQ== X-Received: by 2002:aed:3de5:: with SMTP id j34-v6mr3765225qtf.266.1538008440329; Wed, 26 Sep 2018 17:34:00 -0700 (PDT) Received: from snappy.local.lan (189-46-124-178.dsl.telesp.net.br. [189.46.124.178]) by smtp.gmail.com with ESMTPSA id x26-v6sm463053qth.15.2018.09.26.17.33.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Sep 2018 17:33:59 -0700 (PDT) From: Dan Gora <dg@adax.com> To: dev@dpdk.org Cc: Igor Ryzhov <iryzhov@nfware.com>, Stephen Hemminger <stephen@networkplumber.org>, Ferruh Yigit <ferruh.yigit@intel.com>, Dan Gora <dg@adax.com> Date: Wed, 26 Sep 2018 21:32:50 -0300 Message-Id: <20180927003256.6901-1-dg@adax.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180911232906.18352-1-dg@adax.com> References: <20180911232906.18352-1-dg@adax.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 0/6] kni: add API to set link status on kernel interface X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Message
Dan Gora
Sept. 27, 2018, 12:32 a.m. UTC
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(-)