From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; Wed, 12 Sep 2018 01:14:18 +0200 (CEST) Received: by mail-qk1-f176.google.com with SMTP id h138-v6so3939qke.8 for ; 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) Sender: Dan Gora From: Dan Gora To: dev@dpdk.org Cc: Igor Ryzhov , Stephen Hemminger , Ferruh Yigit , Dan Gora 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2018 23:14:18 -0000 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' 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(+) -- 2.19.0