[0/2] kni: add API to set link status on kernel interface
Message ID | 20180911231404.17148-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 D47DD326D; Wed, 12 Sep 2018 01:14:19 +0200 (CEST) Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) by dpdk.org (Postfix) with ESMTP id 5840B2BFA for <dev@dpdk.org>; Wed, 12 Sep 2018 01:14:18 +0200 (CEST) Received: by mail-qk1-f176.google.com with SMTP id h138-v6so3939qke.8 for <dev@dpdk.org>; Tue, 11 Sep 2018 16:14:18 -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=34rVElDMSWE52LUidSe4Sdv7fQKRmLfpMRJW1qi5yUc=; b=uxd9vR5brbZ2ws9fnBLmzafFFjSoGlSjrgt9lsX9hv2psgRJsJTs/Wv5ZWwpN+nPmA oD39ZBZ/dTCdpzItqwZEEOjirPC1Wvbmt98Wh5otIY2c+KrFNNaOdihKoNh7jjvaiaA7 gKiesXvMqB1UquTZRCs75YOPOggzh51SWf1uM1VGabi8Z9AFPG0SnfsYUd0Tz2A1IIYZ +i4M5zWzGgfojOFv7Yxs6uP5BU/EnwioVPnxTJXYL2Sb4Gv1UB1r18puLxtciYpRi/6V J1ufBaenn3AYsMrIwQ4jOOhE3lhSeImta83IOLkZJQSixluTExIzrxsss3das8EGvToe S6uA== 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=34rVElDMSWE52LUidSe4Sdv7fQKRmLfpMRJW1qi5yUc=; b=DdAPFIXH7+mmcZX4lIimCsKoZ4NTbXDa4UMocNsvIPo2hMDjKJn37VBSqLFoSDgAl7 //X5SXARDqTUKa9QMCAg9R+VmtI33TTcC47KOot0Jlv2dC8Cs98S4pX1DgEVk9DI0+rg gtl5BgRv+YlmY+VsOOpS1Sf6lOzVPZOeWHZ3/3csWrq1YgPaeoLLKIQEp5slxKKOgXQB tC7lzfOUAvLEYwSm1qUzmv4lokSOPEG4NUHd8C+2Uu1h4AVWK1pfdnN4i8FR853mYgOJ bkzR0FKXJ1r9Yepf0Fc40Xn7LWoNJeGBIDFz900AzKVr7r3cwaSqgJYwt6T/yNhmCGVi ni/w== X-Gm-Message-State: APzg51AlwYhWpPzc/VrZ+8Y8KtGGl9CmeDH13uAVRwJijAFdEfd/SJo+ L2lfNCWufiUrU7oFDbq4RjOHm0fB X-Google-Smtp-Source: ANB0VdaqUGNLE9vyBa5+M6hc/X6kEv/5blwXVMo4+llqCA0aRvvxgZYA0Jq3wJLCaYoYLRSR5eyptg== X-Received: by 2002:a37:afc5:: with SMTP id y188-v6mr20639837qke.273.1536707657257; Tue, 11 Sep 2018 16:14:17 -0700 (PDT) Received: from snappy.local.lan (189-46-164-241.dsl.telesp.net.br. [189.46.164.241]) by smtp.gmail.com with ESMTPSA id u86-v6sm13248607qkl.93.2018.09.11.16.14.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Sep 2018 16:14:16 -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: Tue, 11 Sep 2018 20:14:03 -0300 Message-Id: <20180911231404.17148-1-dg@adax.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180629015508.26599-11-dg@adax.com> References: <20180629015508.26599-11-dg@adax.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/2] 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. 11, 2018, 11:14 p.m. UTC
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/<name>/carrier, where <name> is the KNI interface name. These patches supercede: '[PATCH v2 10/10] kni: add API to set link status on kernel interface' Message-Id: <20180629015508.26599-11-dg@adax.com> Dan Gora (2): kni: add API to set link status on kernel interface kni: set default carrier state to 'off' 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 ++++++++++++ 4 files changed, 79 insertions(+)