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 44A1DA0093 for ; Tue, 19 May 2020 15:06:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3BB781D603; Tue, 19 May 2020 15:06:32 +0200 (CEST) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 47BD11D603 for ; Tue, 19 May 2020 15:06:31 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id e16so15819943wra.7 for ; Tue, 19 May 2020 06:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fFKnvcQzR7cdnKHeAmknzX4Cv+i94/1Krd0rt5B/G64=; b=u4Y9DNs8H9gVWpaqsFTZ17CmPIaqzX8d6qQdg8X7Rw72gOFKiMzV7ac3DPWEQXy3k8 euELgPDDTdNvlDGcfCJjXe5Y4n//38wKf7MoG72JEdf3XLijrt1muSSpOYx0fJE7apit JkhxfhHRHsbPDsigY1VC72vCqJer72PayYbqwNiEs69qLwhE0q69QeyjZVxT57wuOax0 IhksP7Ke1Ss9cojBVF0JDahzh6HLmmyIZOZGb7w5eESjGkNzgeZbV3lmHGxzvcc4yrDx dgkG3dlIxN1t2bOt3srWBo5Rp6h0Ra2oeo9G65AqtC2Jnk+5pLYugR1J05dr8xE382Jw 4kAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fFKnvcQzR7cdnKHeAmknzX4Cv+i94/1Krd0rt5B/G64=; b=rABBAPd8UrO34uBoyM8B6SZdHwT280ADp8ilqYZgiSSSVpK66ekaU49x4/TyQ3RmfC 23VOlSSaZ9CUCxGTxMYr5GMtWIjis+FyLTzoi+aCs6jZ+BmZ/pLPX7vngPwL8/1Tn4ML CKBFiCe+T/CInm5mqZaJ0QPqSRhNOu8GvtmxYI0m9suCPeJ0WVmJQq0OX7hY+AFXpzcR GrdOozfyug6xMGetV4lnHsHfqCqPesRBmamk9PkIp9XoA16uOS6M5FjVu2Rm/p/8IDtK 00AT1Dpcv1qVkDLv9m1joGcDSNZY7pxzrAgzpfuFIU755GAL7VjzXZnEpk6U5c9VSLqi 8AMQ== X-Gm-Message-State: AOAM533fjobXZq0qv4FqTQ+c+P8hksbSesxFiXvdBMlshZrOTgkIWwXf Sepvz07wUjO0uKxF73NdeL0= X-Google-Smtp-Source: ABdhPJwgih9eVeBZCOqPW02p58cRO6tPILtZ+dIeGY81mYUv80KP+GCk9KkvRJ0HBnEFm51bxNOaTw== X-Received: by 2002:a5d:6085:: with SMTP id w5mr25567917wrt.322.1589893590982; Tue, 19 May 2020 06:06:30 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id t82sm4076470wmf.10.2020.05.19.06.06.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 06:06:30 -0700 (PDT) From: luca.boccassi@gmail.com To: Andy Pei Cc: Rosen Xu , dpdk stable Date: Tue, 19 May 2020 14:02:26 +0100 Message-Id: <20200519130549.112823-11-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200519130549.112823-1-luca.boccassi@gmail.com> References: <20200519125804.104349-1-luca.boccassi@gmail.com> <20200519130549.112823-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/ipn3ke: use control thread to check link status' has been queued to stable release 19.11.3 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 stable release 19.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/21/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 rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 7953227c1937e42300cc308ce8b3ff8f547ee8e0 Mon Sep 17 00:00:00 2001 From: Andy Pei Date: Mon, 16 Mar 2020 14:07:17 +0800 Subject: [PATCH] net/ipn3ke: use control thread to check link status [ upstream commit e5791726338ea4b83e329fd59e9d1af7066b7c0b ] ipn3ke driver creates a thread to check link status. Before this patch, pthread_create() is used to create thread, leaving the new thread unrestrained wrt cpu affinity. After this patch, rte_ctrl_thread_create() is used to create thread. The affinity of the new thread is based on the CPU affinity retrieved at the time rte_eal_init() was called, the dataplane and service lcores are then excluded. Fixes: 70d6b7f550f4 ("net/ipn3ke: add representor") Signed-off-by: Andy Pei Reviewed-by: Rosen Xu --- drivers/net/ipn3ke/ipn3ke_representor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ipn3ke/ipn3ke_representor.c b/drivers/net/ipn3ke/ipn3ke_representor.c index 80122e3fc5..b673c49149 100644 --- a/drivers/net/ipn3ke/ipn3ke_representor.c +++ b/drivers/net/ipn3ke/ipn3ke_representor.c @@ -2598,7 +2598,8 @@ ipn3ke_rpst_scan_check(void) int ret; if (ipn3ke_rpst_scan_num == 1) { - ret = pthread_create(&ipn3ke_rpst_scan_thread, + ret = rte_ctrl_thread_create(&ipn3ke_rpst_scan_thread, + "ipn3ke scanner", NULL, ipn3ke_rpst_scan_handle_request, NULL); if (ret) { -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-05-19 14:04:45.033794767 +0100 +++ 0011-net-ipn3ke-use-control-thread-to-check-link-status.patch 2020-05-19 14:04:44.072645761 +0100 @@ -1,8 +1,10 @@ -From e5791726338ea4b83e329fd59e9d1af7066b7c0b Mon Sep 17 00:00:00 2001 +From 7953227c1937e42300cc308ce8b3ff8f547ee8e0 Mon Sep 17 00:00:00 2001 From: Andy Pei Date: Mon, 16 Mar 2020 14:07:17 +0800 Subject: [PATCH] net/ipn3ke: use control thread to check link status +[ upstream commit e5791726338ea4b83e329fd59e9d1af7066b7c0b ] + ipn3ke driver creates a thread to check link status. Before this patch, pthread_create() is used to create @@ -16,7 +18,6 @@ excluded. Fixes: 70d6b7f550f4 ("net/ipn3ke: add representor") -Cc: stable@dpdk.org Signed-off-by: Andy Pei Reviewed-by: Rosen Xu