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 605EB45D5D for ; Thu, 21 Nov 2024 00:43:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5AC4840296; Thu, 21 Nov 2024 00:43:05 +0100 (CET) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mails.dpdk.org (Postfix) with ESMTP id 452D540296 for ; Thu, 21 Nov 2024 00:43:04 +0100 (CET) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4316a44d1bbso1990775e9.3 for ; Wed, 20 Nov 2024 15:43:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732146184; x=1732750984; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cQ8UoNhx+QHMDhTIOBh8wq+SIAlSkWcShyvav0M+f10=; b=P4+2VkOG8CwoUHVlbnWpNPz8mGS9DuRAcfSGUUqY7xUygHYl1/jUjOIKGDOg1uLEYh o7URGi5DjM+BpWgmhEwDXPzGxcOXOg8r86iEuQdBMNpRvY09oxzVWdu0BNXwEMBNbcs/ wkcYjL1FXrU7JEzIPesVE/WY7kvCXLM3ecTl08DXwgznPsfa4btE1n1QIrGBU3Reav1L 0Ho0ilNKUCDTFt7g5ybTOIO/Xs2+OGtK/KWlsCl9+eji0/jM9wCL81EQE7eJMgCa3e10 CqIuMXXupiUW9H9e4bZ4Sm2IhZ3Xp4FpU8clgALdOjHElhqeQTkyu8O/BkX4Zxt9m2Zf gr/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732146184; x=1732750984; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cQ8UoNhx+QHMDhTIOBh8wq+SIAlSkWcShyvav0M+f10=; b=dLHZQoeUCxHSK1pPm2zyNvDzqjj+h/bIsXN4AUPQKABdS9YbcHJ+OSEEQ0PBghAA6x JeUaX6QdlaHJB1xgAw4HmEN912ked2QMYiB8fM9G3dKLwsyYYJUX6yioNOeoHnmXLw/p G4qu01VMTpJcnR3bevMYLwNhfYAHfgjCny46evRGPh0VuUPjMLN/hO2xkByUpS3RZoSX wnLIKmMVKThUJkuLo9n2nvV8mxBjQcSbN6UuWv64Q1tGu0BvhY/IC7/UmFQ5jX9qtAJl w5UHSK8UZUrvXzbpjvMYfPzXJ2LvpTkBJU+lyJQbJa8kQIs+03Wb2D0XOOt8AvXCtl10 gFPA== X-Gm-Message-State: AOJu0YyUFwRbgCqS/1itYYlm3Z9SZbcIuhE7xYgC9xREFJ131DfSbmbe 247TIZstPtvIb5CFfqOSsLqU58tDenTN3kF6Y1GDHzNUeO9YjkTV7hGCfx2K X-Google-Smtp-Source: AGHT+IHksrav1Zxia0tXL6HdjPO/blaEwsdeypiY9q8FoEWWYKqfhFmLU3fhUoOtQDFMyNqpo1DatQ== X-Received: by 2002:a05:600c:1d83:b0:431:5bf2:2d4 with SMTP id 5b1f17b1804b1-4334f02c7c6mr37928285e9.29.1732146183790; Wed, 20 Nov 2024 15:43:03 -0800 (PST) Received: from localhost ([2a01:4b00:d036:ae00:21cd:def0:a01d:d2aa]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38254933d2esm3349160f8f.82.2024.11.20.15.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2024 15:43:02 -0800 (PST) From: luca.boccassi@gmail.com To: Sunil Kumar Kori Cc: dpdk stable Subject: patch 'net/cnxk: fix build on Ubuntu 24.04' has been queued to stable release 22.11.7 Date: Wed, 20 Nov 2024 23:41:36 +0000 Message-ID: <20241120234215.233355-11-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241120234215.233355-1-luca.boccassi@gmail.com> References: <20241112220754.666489-40-luca.boccassi@gmail.com> <20241120234215.233355-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Hi, FYI, your patch has been queued to stable release 22.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 11/22/24. 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/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/0bb02c5a2f86b59f79adc1d8f10ff07742b2c526 Thanks. Luca Boccassi --- >From 0bb02c5a2f86b59f79adc1d8f10ff07742b2c526 Mon Sep 17 00:00:00 2001 From: Sunil Kumar Kori Date: Thu, 14 Nov 2024 13:08:16 +0530 Subject: [PATCH] net/cnxk: fix build on Ubuntu 24.04 [ upstream commit b9799fb5e7a38c824c91b88d3c89250d23c783e6 ] Due to implicit unsigned to signed integer conversion, actual value gets wrapped and becomes higher than its size. Bugzilla ID: 1513 Fixes: 03b152389fb1 ("net/cnxk: add option to enable custom inbound SA") Fixes: 7df4ead35436 ("net/cnxk: support parsing custom SA action") Fixes: 47cca253d605 ("net/cnxk: support Rx inject") Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev_devargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cnxk/cnxk_ethdev_devargs.c b/drivers/net/cnxk/cnxk_ethdev_devargs.c index 0c89e0424f..fda619ac5f 100644 --- a/drivers/net/cnxk/cnxk_ethdev_devargs.c +++ b/drivers/net/cnxk/cnxk_ethdev_devargs.c @@ -269,7 +269,7 @@ cnxk_ethdev_parse_devargs(struct rte_devargs *devargs, struct cnxk_eth_dev *dev) uint16_t custom_sa_act = 0; struct rte_kvargs *kvlist; uint16_t no_inl_dev = 0; - uint8_t lock_rx_ctx = 0; + uint16_t lock_rx_ctx = 0; memset(&sdp_chan, 0, sizeof(sdp_chan)); memset(&pre_l2_info, 0, sizeof(struct flow_pre_l2_size_info)); -- 2.45.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-20 23:41:23.111046007 +0000 +++ 0011-net-cnxk-fix-build-on-Ubuntu-24.04.patch 2024-11-20 23:41:22.708195467 +0000 @@ -1 +1 @@ -From b9799fb5e7a38c824c91b88d3c89250d23c783e6 Mon Sep 17 00:00:00 2001 +From 0bb02c5a2f86b59f79adc1d8f10ff07742b2c526 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit b9799fb5e7a38c824c91b88d3c89250d23c783e6 ] + @@ -13 +14,0 @@ -Cc: stable@dpdk.org @@ -17,2 +18,2 @@ - drivers/net/cnxk/cnxk_ethdev_devargs.c | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) + drivers/net/cnxk/cnxk_ethdev_devargs.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) @@ -21 +22 @@ -index 5bd50bb9a1..ecc2ea8b77 100644 +index 0c89e0424f..fda619ac5f 100644 @@ -24,3 +25 @@ -@@ -305,12 +305,12 @@ cnxk_ethdev_parse_devargs(struct rte_devargs *devargs, struct cnxk_eth_dev *dev) - uint16_t scalar_enable = 0; - uint16_t tx_compl_ena = 0; +@@ -269,7 +269,7 @@ cnxk_ethdev_parse_devargs(struct rte_devargs *devargs, struct cnxk_eth_dev *dev) @@ -28,2 +26,0 @@ -- uint8_t custom_inb_sa = 0; -+ uint16_t custom_inb_sa = 0; @@ -31,3 +27,0 @@ - uint32_t meta_buf_sz = 0; -+ uint16_t lock_rx_ctx = 0; -+ uint16_t rx_inj_ena = 0; @@ -36 +30 @@ -- uint8_t rx_inj_ena = 0; ++ uint16_t lock_rx_ctx = 0;