From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 29D4AA054C for ; Fri, 14 Feb 2020 18:04:38 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2187E100C; Fri, 14 Feb 2020 18:04:38 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 9A0CFF72 for ; Fri, 14 Feb 2020 18:04:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581699876; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Vr0ssT01brD9jSGlKhhDyEox3plF2lTIUBymTQfJluI=; b=TfL6LO0yihPS9z+9feB1lig/7FYSgTxgPrtdulUfhWA3Mzp5gaGydWCf90iDU22VhpEpgS aBFviGA9GYjDwfhh2yFqT0JzB81ITJqBiE8NdZXiUvv502MwXc+vT0Va/nSUo2HPRfMFwE dlPHRL4pSaeqBOl/ELkfJiZpGg+s6wM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-121-D7lw9Kl-P1qvnAz2LynEqg-1; Fri, 14 Feb 2020 12:04:29 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 27B2F107ACCA; Fri, 14 Feb 2020 17:04:28 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.13]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4CF198AC46; Fri, 14 Feb 2020 17:04:24 +0000 (UTC) From: Kevin Traynor To: Stephen Hemminger Cc: Ferruh Yigit , dpdk stable Date: Fri, 14 Feb 2020 17:03:03 +0000 Message-Id: <20200214170337.25093-9-ktraynor@redhat.com> In-Reply-To: <20200214170337.25093-1-ktraynor@redhat.com> References: <20200214170337.25093-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: D7lw9Kl-P1qvnAz2LynEqg-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'kni: rename variable with namespace prefix' has been queued to LTS release 18.11.7 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/20/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasi= ng (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/4f62f1d84d03b56390= ff1a514e21e5f67e06cdcc Thanks. Kevin. --- >From 4f62f1d84d03b56390ff1a514e21e5f67e06cdcc Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 20 Dec 2019 17:02:14 -0800 Subject: [PATCH] kni: rename variable with namespace prefix [ upstream commit c793dce9858d9194b999e2af626a2c314ef0cc43 ] All global variables in kernel should be prefixed by the same to avoid any symbol conflics. Rename dflt_carrier to kni_default_carrier. Fixes: 89397a01ce4a ("kni: set default carrier state of interface") Signed-off-by: Stephen Hemminger Acked-by: Ferruh Yigit --- kernel/linux/kni/kni_dev.h | 2 +- kernel/linux/kni/kni_misc.c | 10 +++++----- kernel/linux/kni/kni_net.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/linux/kni/kni_dev.h b/kernel/linux/kni/kni_dev.h index 688f574a4a..c425950646 100644 --- a/kernel/linux/kni/kni_dev.h +++ b/kernel/linux/kni/kni_dev.h @@ -31,5 +31,5 @@ =20 /* Default carrier state for created KNI network interfaces */ -extern uint32_t dflt_carrier; +extern uint32_t kni_dflt_carrier; =20 /** diff --git a/kernel/linux/kni/kni_misc.c b/kernel/linux/kni/kni_misc.c index 8bf0e21038..0f21fd6cbe 100644 --- a/kernel/linux/kni/kni_misc.c +++ b/kernel/linux/kni/kni_misc.c @@ -42,5 +42,5 @@ static uint32_t multiple_kthread_on; /* Default carrier state for created KNI network interfaces */ static char *carrier; -uint32_t dflt_carrier; +uint32_t kni_dflt_carrier; =20 #define KNI_DEV_IN_USE_BIT_NUM 0 /* Bit number for device in use */ @@ -595,12 +595,12 @@ kni_parse_carrier_state(void) { =09if (!carrier) { -=09=09dflt_carrier =3D 0; +=09=09kni_dflt_carrier =3D 0; =09=09return 0; =09} =20 =09if (strcmp(carrier, "off") =3D=3D 0) -=09=09dflt_carrier =3D 0; +=09=09kni_dflt_carrier =3D 0; =09else if (strcmp(carrier, "on") =3D=3D 0) -=09=09dflt_carrier =3D 1; +=09=09kni_dflt_carrier =3D 1; =09else =09=09return -1; @@ -629,5 +629,5 @@ kni_init(void) =09} =20 -=09if (dflt_carrier =3D=3D 0) +=09if (kni_dflt_carrier =3D=3D 0) =09=09pr_debug("Default carrier state set to off.\n"); =09else diff --git a/kernel/linux/kni/kni_net.c b/kernel/linux/kni/kni_net.c index 432d56a19b..f3f2f73c7b 100644 --- a/kernel/linux/kni/kni_net.c +++ b/kernel/linux/kni/kni_net.c @@ -122,5 +122,5 @@ kni_net_open(struct net_device *dev) =20 =09netif_start_queue(dev); -=09if (dflt_carrier =3D=3D 1) +=09if (kni_dflt_carrier =3D=3D 1) =09=09netif_carrier_on(dev); =09else --=20 2.21.1 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092020-02-14 17:02:37.553676172 +0000 +++ 0009-kni-rename-variable-with-namespace-prefix.patch=092020-02-14 17:02= :36.935408272 +0000 @@ -1 +1 @@ -From c793dce9858d9194b999e2af626a2c314ef0cc43 Mon Sep 17 00:00:00 2001 +From 4f62f1d84d03b56390ff1a514e21e5f67e06cdcc Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit c793dce9858d9194b999e2af626a2c314ef0cc43 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -21 +22 @@ -index 5e75c6371f..ca5f92a47b 100644 +index 688f574a4a..c425950646 100644 @@ -24 +25 @@ -@@ -33,5 +33,5 @@ +@@ -31,5 +31,5 @@ @@ -32 +33 @@ -index cda71bde08..2b464c4381 100644 +index 8bf0e21038..0f21fd6cbe 100644 @@ -35 +36 @@ -@@ -40,5 +40,5 @@ static uint32_t multiple_kthread_on; +@@ -42,5 +42,5 @@ static uint32_t multiple_kthread_on; @@ -42 +43 @@ -@@ -555,12 +555,12 @@ kni_parse_carrier_state(void) +@@ -595,12 +595,12 @@ kni_parse_carrier_state(void) @@ -58 +59 @@ -@@ -589,5 +589,5 @@ kni_init(void) +@@ -629,5 +629,5 @@ kni_init(void) @@ -66 +67 @@ -index 1ba9b1b99f..97fe85be9a 100644 +index 432d56a19b..f3f2f73c7b 100644 @@ -69 +70 @@ -@@ -159,5 +159,5 @@ kni_net_open(struct net_device *dev) +@@ -122,5 +122,5 @@ kni_net_open(struct net_device *dev)