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 0C76945BB6 for ; Wed, 23 Oct 2024 23:20:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 071904330A; Wed, 23 Oct 2024 23:20:22 +0200 (CEST) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mails.dpdk.org (Postfix) with ESMTP id CABE140261 for ; Wed, 23 Oct 2024 23:20:20 +0200 (CEST) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-37d55f0cf85so114347f8f.3 for ; Wed, 23 Oct 2024 14:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729718420; x=1730323220; 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=lKiHj5klDV6vFaiUdFgu38Ot78WqSIq3EG5Z+CeuMdA=; b=ZGHdGNBF+tnfSUhd2EWrL/AzGbRhiOSG+DPexCXaHJwWNDgh8bBxm2Cu9pEykl8br6 8aedNDRIseoCiWk+KAakjA3lDkXLDytxX4A6daQ5yrzRwcp7WZiX/sdXzMLzjGSs2aKt stmaEoYkD1jcGZeKV61wPZPX/doE85sZYwxFXGxXGnBHY486R/Z9a3hKnR5IH0lQkYa6 gFtAPub6vSt8BsoBW/4f5a2D5NeiUfMQo/9JZq8pUcil2sK6X9TF5MRx9YdbB33IbSK7 FinvlIrh9mujLSARiXoKMhaIJwOIIHgKO5QLQcEGjFBGBL4AvKHpL8kDtLzMKv2tml91 EAcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729718420; x=1730323220; 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=lKiHj5klDV6vFaiUdFgu38Ot78WqSIq3EG5Z+CeuMdA=; b=h02jAfGZ+apSaaUNYHkCrwqtAVB/SiXLHjZ1prcibSDPd5YZ+ySoId0ernYSmmUftH jtO6djEziZWM+BL+ijrUH6VrlW47pxL3/X1Nyrmy04a8mTJjDumL4L7LTTaxtURMiNzA QfRxFEi0BYx1i7zX6Z48HW0Z/xFtuqN6CadPtiTG2qirgv8IVP+AC9N8tP+1W5WO6NRN RWEBPCkJsVsvpx5ivCycn6n7zGyFtgWhN6ZP5p1zfsxLEWR4ywE/+Wgqt7S+oDFC2eh/ ypp/tcbzlF8TYc9G6Rt03gpQhthGJ6Bvv0eMnWROcJXTniL7zi3icj+rjadVPHJjaloD GVWg== X-Forwarded-Encrypted: i=1; AJvYcCVQHt6PjrhLNS7pJGIqgnKyglS/xh8U3LBEN6UG6Afka+L1OA4FBQqWQkyJu4a5q3O4I13/ra8=@dpdk.org X-Gm-Message-State: AOJu0YzUNqrMsQbY2sw0EnQ5HO51f4MeeZ0FGYGvZsCT7n70//YDyfV0 LDgsShUgAnSzdFgV4s4xaNj4RZfpuAOQyChknfPviI5q3Jb8h7VDcdfJOeHL X-Google-Smtp-Source: AGHT+IG/B4CNaOGOfWcB3R/yDTK0qxOirJV5c1yH96uwoXLR/VXI36TPqUg2JqnEjhhfXm2n56B0Pw== X-Received: by 2002:adf:e0c2:0:b0:37d:4744:9d1d with SMTP id ffacd0b85a97d-37efcf34f36mr2481708f8f.35.1729718420268; Wed, 23 Oct 2024 14:20:20 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:21cd:def0:a01d:d2aa]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43186c50ab9sm26807465e9.42.2024.10.23.14.20.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 14:20:19 -0700 (PDT) From: luca.boccassi@gmail.com To: Jie Hai Cc: Huisong Li , Chengwen Feng , dpdk stable Subject: patch 'net/hns3: remove some basic address dump' has been queued to stable release 22.11.7 Date: Wed, 23 Oct 2024 22:16:33 +0100 Message-ID: <20241023211704.1216956-53-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241023211704.1216956-1-luca.boccassi@gmail.com> References: <20241023211704.1216956-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 10/25/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/849ffb29c6f4c4bf6895cde965dc0bd51382ed61 Thanks. Luca Boccassi --- >From 849ffb29c6f4c4bf6895cde965dc0bd51382ed61 Mon Sep 17 00:00:00 2001 From: Jie Hai Date: Thu, 26 Sep 2024 20:42:44 +0800 Subject: [PATCH] net/hns3: remove some basic address dump [ upstream commit c8b7bec0ef23f53303c9cf03cfea44f1eb208738 ] For security reasons, some address registers are not suitable to be exposed, remove them. Signed-off-by: Jie Hai Acked-by: Huisong Li Acked-by: Chengwen Feng --- drivers/net/hns3/hns3_regs.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/net/hns3/hns3_regs.c b/drivers/net/hns3/hns3_regs.c index 5d6f92e4bb..4997c10ae3 100644 --- a/drivers/net/hns3/hns3_regs.c +++ b/drivers/net/hns3/hns3_regs.c @@ -17,13 +17,9 @@ static int hns3_get_dfx_reg_line(struct hns3_hw *hw, uint32_t *lines); -static const uint32_t cmdq_reg_addrs[] = {HNS3_CMDQ_TX_ADDR_L_REG, - HNS3_CMDQ_TX_ADDR_H_REG, - HNS3_CMDQ_TX_DEPTH_REG, +static const uint32_t cmdq_reg_addrs[] = {HNS3_CMDQ_TX_DEPTH_REG, HNS3_CMDQ_TX_TAIL_REG, HNS3_CMDQ_TX_HEAD_REG, - HNS3_CMDQ_RX_ADDR_L_REG, - HNS3_CMDQ_RX_ADDR_H_REG, HNS3_CMDQ_RX_DEPTH_REG, HNS3_CMDQ_RX_TAIL_REG, HNS3_CMDQ_RX_HEAD_REG, @@ -44,9 +40,7 @@ static const uint32_t common_vf_reg_addrs[] = {HNS3_MISC_VECTOR_REG_BASE, HNS3_FUN_RST_ING, HNS3_GRO_EN_REG}; -static const uint32_t ring_reg_addrs[] = {HNS3_RING_RX_BASEADDR_L_REG, - HNS3_RING_RX_BASEADDR_H_REG, - HNS3_RING_RX_BD_NUM_REG, +static const uint32_t ring_reg_addrs[] = {HNS3_RING_RX_BD_NUM_REG, HNS3_RING_RX_BD_LEN_REG, HNS3_RING_RX_EN_REG, HNS3_RING_RX_MERGE_EN_REG, @@ -57,8 +51,6 @@ static const uint32_t ring_reg_addrs[] = {HNS3_RING_RX_BASEADDR_L_REG, HNS3_RING_RX_FBD_OFFSET_REG, HNS3_RING_RX_STASH_REG, HNS3_RING_RX_BD_ERR_REG, - HNS3_RING_TX_BASEADDR_L_REG, - HNS3_RING_TX_BASEADDR_H_REG, HNS3_RING_TX_BD_NUM_REG, HNS3_RING_TX_EN_REG, HNS3_RING_TX_PRIORITY_REG, -- 2.45.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-10-23 22:16:42.537110089 +0100 +++ 0053-net-hns3-remove-some-basic-address-dump.patch 2024-10-23 22:16:40.511943208 +0100 @@ -1 +1 @@ -From c8b7bec0ef23f53303c9cf03cfea44f1eb208738 Mon Sep 17 00:00:00 2001 +From 849ffb29c6f4c4bf6895cde965dc0bd51382ed61 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit c8b7bec0ef23f53303c9cf03cfea44f1eb208738 ] + @@ -9,2 +10,0 @@ -Cc: stable@dpdk.org - @@ -19 +19 @@ -index 955bc7e3af..8793f61153 100644 +index 5d6f92e4bb..4997c10ae3 100644