From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 64025A0A0E for ; Mon, 10 May 2021 18:11:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5A0724003E; Mon, 10 May 2021 18:11:01 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2057.outbound.protection.outlook.com [40.107.220.57]) by mails.dpdk.org (Postfix) with ESMTP id 924B64003E for ; Mon, 10 May 2021 18:10:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GV2fKuYER+9jcCpfoinyQiHDqLTwgclDUlDgutKv3omEHTLN2F3Wb8Fr0QlhJqavGO68fztQhy2nNR322hgpLELlUD6RjiaxkE5TnTK3K3MwsxMVmTCM85HOWjZzA986yzeuq4VqkF29MmX1pV/9hHCCO7eQzBdKPzS7xjFAjz6OC+HqvcEpANDKHARxbAB4UM+ZpYGxL/GqLUBeayFnWgwxMKUFVMa8k9VlqCu7Ch3M42NWDbhHNxnwjVjBxO2OG4bZSi9H7+BI4PNvNcoiNpbqPcTt+9ep/VQ0g/Jqy0xe5KItcY0CnArZ9UBSZahR27r2rnU/T+e7FZnNCNSj0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=msXcj7vBWA+1v+7ZBbGnNbMaEQRx3Yu45eESAob0WtU=; b=Yo/WCwuO0mMlDfQEhxA5H4LJZdMDxWkpsuMnZD0d0SrMH94lZjilvvCx673bgBYA/P9bSyWMFYNmPVYBtz7p07MUEFhtXYT451EV3ZfeImghd53Dx0mW9a2NKR8OfGxBibONhhNMAugSo7KX5zCUOWrrxkVa9NHLKB3R9lPCk7DcLmxASk2E4yZN2++fHZLY8s+2AxwtgJV64FMKIl618tVwulyaO8dy0ixiqlK/T1XIcCw3jQiN3rbLauzSuCxZwqOu3s+yMCbbq41yLUnPmg1eeT/ZID3KpfFlUEcvVZsT7aeOwKatWkQmGCSvZ08cCCRReCoCFpYoISN474qJ9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=oktetlabs.ru smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=msXcj7vBWA+1v+7ZBbGnNbMaEQRx3Yu45eESAob0WtU=; b=Pn/2cvgfElWF1Nbc5qV26JeYYNKdFQJTjWwEOKURKHQU7ccIq2/VhmTfKrjy8ga18e+9JlRq/pJqjSwLck8YWp/3y9Oul0A9yqbL5TuoO6LqwIdY/11Ko87NRe+8sZuea1Faja+YANi1jIlkQI4D/YUkVLhiHH2NOYKHFbZRYDnfRKlPBt0NOFN6hBeIWmLUO/7MU0JSVJViLW67AKfxI2woc5IvuzwEn01lhSaA9i8+vJ02I7urcLbs4hop8ZtIpT21ygFkQTuoc9x1ZiNvLmbelaDmPYF7QMBXMwJMWJNc5AovEYcfGGAf8Wf/W16g2vQdSs2sWAeH3hmQ4Q4kCw== Received: from MW4PR03CA0087.namprd03.prod.outlook.com (2603:10b6:303:b6::32) by BN6PR12MB1923.namprd12.prod.outlook.com (2603:10b6:404:107::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.28; Mon, 10 May 2021 16:10:57 +0000 Received: from CO1NAM11FT048.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b6:cafe::15) by MW4PR03CA0087.outlook.office365.com (2603:10b6:303:b6::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:10:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; oktetlabs.ru; dkim=none (message not signed) header.d=none;oktetlabs.ru; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by CO1NAM11FT048.mail.protection.outlook.com (10.13.175.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:10:56 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 May 2021 16:10:53 +0000 From: Xueming Li To: Natanael Copa CC: Luca Boccassi , =?UTF-8?q?Morten=20Br=C3=B8rup?= , Thomas Monjalon , Andrew Rybchenko , David Marchand , dpdk stable Date: Tue, 11 May 2021 00:00:26 +0800 Message-ID: <20210510160258.30982-77-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510160258.30982-1-xuemingl@nvidia.com> References: <20210510160258.30982-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 102d5570-96e1-4f4a-cf77-08d913ce319a X-MS-TrafficTypeDiagnostic: BN6PR12MB1923: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: x8cQfPDe595BqnJhsobHs9g/PQm22mwoTwtmFruydj+iS44Edkf8V0Napc11jPeYMW/n/8V9Te6Qm6jy+sYdOAX/AmjYRk+X09ceALjeX34fPlICuOYs9cvOTpgGra0HhhQYMbpG6SUMvFd+4CbTj2E+s0jK4HukNJ4HNXH06LiEKX0iH6S9vMqCFmfov+gJiQ+jSzwyBVsXVENy5KHrhxzG0YMKiU3YHCZpJFMRY79rGk8AJqu8OLsQdiWujDlOKIjy/8m6+hJYKNdD3/3bS6kaC500ZVLF9RhIHAdQN/EQipK7Fbaw4QfL/m6xK/wnVn8hFg0DZ+tby556r0DGdY6OZkwNVDJP+6TJD21yOJjXThHemF7DCYQfsHfb1psYIQZQYK5iIjzOM9qrfpMG05f07ncYT0k7X7JFUqfmenfrCmjHSOqmpLplxVII8fme4lVitM4xlX3pSxl5bdHbrZiFhyoiyCPDgYOuKHW7khN7ox/E9Ma4WaYCKLtzPgHczT0mOI82oIGtRJjL9zcmwEL3/kqAONbvIFscx1G6W6PAlLWoDRp8Xhvt0tJYq++klc152DtjHOG6imqhu+GXPX1kfswwCOc9Z/uF6kneBDYK8HOlNyuGoUvwbYUVKCfrc5iC/VWM+99MfKzmYWx5jAOGNwWMy6ZZxgzc/Iw1AJ7VutQ2k2SuoBUYA0HSATZhyHeIi/kAmY2wFoFQBy6jqfdWiQhHjShFbCrJWujhO7M+6yinWrLdcbt/aSo3sJgsi8mQ4HUiJ/29zw6iIkIOTQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(346002)(396003)(376002)(39860400002)(136003)(36840700001)(46966006)(2906002)(8936002)(53546011)(336012)(86362001)(316002)(186003)(36906005)(6916009)(8676002)(4326008)(356005)(47076005)(70206006)(7636003)(6286002)(26005)(82740400003)(6666004)(66574015)(966005)(16526019)(82310400003)(70586007)(478600001)(5660300002)(36756003)(1076003)(7696005)(54906003)(36860700001)(426003)(55016002)(83380400001)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 16:10:56.4946 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 102d5570-96e1-4f4a-cf77-08d913ce319a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT048.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1923 Subject: [dpdk-stable] patch 'app/testpmd: fix build with musl' has been queued to stable release 20.11.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 20.11.2 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/12/21. 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. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/ba7c3d6befb03931531112f69105c880370f497e Thanks. Xueming Li --- >From ba7c3d6befb03931531112f69105c880370f497e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 5 Nov 2020 22:17:09 +0100 Subject: [PATCH] app/testpmd: fix build with musl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Luca Boccassi [ upstream commit 3529e8f3a5e62919c6528457c68f0c5c26cfdada ] 1/ Improve portability by avoiding use of non-standard 'uint'. Use uint8_t for hash_key_len as rss_key_len is a uint8_t type. This solves following build error when building with musl libc: app/test-pmd/testpmd.h:813:29: error: unknown type name 'uint' 2/ In musl libc, stdout is of type (FILE * const). Because of the const qualifier, a dark magic cast must be achieved through uintptr_t. Fixes: 8205e241b2b0 ("app/testpmd: add missing type to RSS hash commands") Fixes: e977e4199a8d ("app/testpmd: add commands to load/unload BPF filters") Signed-off-by: Natanael Copa Reviewed-by: Morten Brørup Signed-off-by: Thomas Monjalon Acked-by: Andrew Rybchenko Acked-by: David Marchand --- app/test-pmd/bpf_cmd.c | 2 +- app/test-pmd/config.c | 2 +- app/test-pmd/testpmd.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/bpf_cmd.c b/app/test-pmd/bpf_cmd.c index 066619e115..6980291f07 100644 --- a/app/test-pmd/bpf_cmd.c +++ b/app/test-pmd/bpf_cmd.c @@ -20,7 +20,7 @@ static const struct rte_bpf_xsym bpf_xsym[] = { .name = RTE_STR(stdout), .type = RTE_BPF_XTYPE_VAR, .var = { - .val = &stdout, + .val = (void *)(uintptr_t)&stdout, .desc = { .type = RTE_BPF_ARG_PTR, .size = sizeof(stdout), diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 336d3e59b1..5f147ec711 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -2963,7 +2963,7 @@ port_rss_hash_conf_show(portid_t port_id, int show_rss_key) void port_rss_hash_key_update(portid_t port_id, char rss_type[], uint8_t *hash_key, - uint hash_key_len) + uint8_t hash_key_len) { struct rte_eth_rss_conf rss_conf; int diag; diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h index 2f8f5a92e4..1c276f4644 100644 --- a/app/test-pmd/testpmd.h +++ b/app/test-pmd/testpmd.h @@ -934,7 +934,7 @@ int set_vf_rate_limit(portid_t port_id, uint16_t vf, uint16_t rate, void port_rss_hash_conf_show(portid_t port_id, int show_rss_key); void port_rss_hash_key_update(portid_t port_id, char rss_type[], - uint8_t *hash_key, uint hash_key_len); + uint8_t *hash_key, uint8_t hash_key_len); int rx_queue_id_is_invalid(queueid_t rxq_id); int tx_queue_id_is_invalid(queueid_t txq_id); void setup_gro(const char *onoff, portid_t port_id); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-10 23:59:28.633442500 +0800 +++ 0078-app-testpmd-fix-build-with-musl.patch 2021-05-10 23:59:26.440000000 +0800 @@ -1 +1 @@ -From 3529e8f3a5e62919c6528457c68f0c5c26cfdada Mon Sep 17 00:00:00 2001 +From ba7c3d6befb03931531112f69105c880370f497e Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Luca Boccassi + +[ upstream commit 3529e8f3a5e62919c6528457c68f0c5c26cfdada ] @@ -20 +22,0 @@ -Cc: stable@dpdk.org @@ -47 +49 @@ -index 4ce75a8e73..ef0b9784d0 100644 +index 336d3e59b1..5f147ec711 100644 @@ -50 +52 @@ -@@ -2674,7 +2674,7 @@ port_rss_hash_conf_show(portid_t port_id, int show_rss_key) +@@ -2963,7 +2963,7 @@ port_rss_hash_conf_show(portid_t port_id, int show_rss_key) @@ -60 +62 @@ -index af40859170..a87ccb0f0f 100644 +index 2f8f5a92e4..1c276f4644 100644 @@ -63 +65 @@ -@@ -936,7 +936,7 @@ int set_vf_rate_limit(portid_t port_id, uint16_t vf, uint16_t rate, +@@ -934,7 +934,7 @@ int set_vf_rate_limit(portid_t port_id, uint16_t vf, uint16_t rate,