From patchwork Fri Jan 5 23:54:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13512619 Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC7C2360AB for ; Fri, 5 Jan 2024 23:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="N3MnAkcJ" Received: by mail-qt1-f180.google.com with SMTP id d75a77b69052e-42973ec97e1so767661cf.2 for ; Fri, 05 Jan 2024 15:54:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1704498897; x=1705103697; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=8cVvWRvZZ4DthfB1fWWsIUg5zYhgCAVhsLn4ewddet8=; b=N3MnAkcJp/bvmyzXoeaAQ0a3YGyQhUoYrGO+UlyuqGoBowLxwURWsP7031uBKgJN3D PWRw0OqGtQyr66evrQjXwMIgbUc5wtdVrGtPW8zgsuyTLrWo9oiKkvB9ACoX7PHJRHT6 +1j/V6rtNBa1JMKMx2+u1Kk53stzSR5vuvjhg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704498897; x=1705103697; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8cVvWRvZZ4DthfB1fWWsIUg5zYhgCAVhsLn4ewddet8=; b=GLzc8rdsnxgYjSRxmEXhpS3/RgV22lHZ9omU8y1dzHirNihvQOniBRRQhtSbF+1S0E AArGAZ2/+Vyc8G29nOsgMbJdzp1nuO/t6ChcZHnlIs8o/NWyH0FF84/3q9NMD0+mwxFG oSIXKLtRYMcno2C00LIjAFHtIYC/KbWCdJUkikgXoYhlcH/7BKDcs94xnXZOZHD6jCFy ep7OMaRnAFJXcdBMDGFTJMkB5K0IPwac4r4MoVih9d9Et5xsGE+rc2jzGOT/ABNHn+p0 t1wzNvqkUJ64smkeUT09lZuojBY69zaSCZYbX70qBXHCZ1Y4+B2jtGauIq6QcaAThbcX Qokg== X-Gm-Message-State: AOJu0YwFo017j9EVFJQhgQYG4BVRn+5iHshVlagbvc9rRBpmCtWkuONW /TeBuVsVbHKoBHIXAsPWQ3869uDWpSqv X-Google-Smtp-Source: AGHT+IEWWw2rEXJEvXQbR02qZ3Fs8QE/Kk1jXbHhdk4wAYaQwpCfGiuIsYjxVdqBMs/7EMM/PFLzXQ== X-Received: by 2002:a05:622a:1710:b0:427:ec65:b3e with SMTP id h16-20020a05622a171000b00427ec650b3emr356594qtk.49.1704498896697; Fri, 05 Jan 2024 15:54:56 -0800 (PST) Received: from lvnvda5233.lvn.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id fb27-20020a05622a481b00b00427f0fdcd44sm1185612qtb.1.2024.01.05.15.54.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2024 15:54:56 -0800 (PST) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, pavan.chebbi@broadcom.com, andrew.gospodarek@broadcom.com, horms@kernel.org Subject: [PATCH net-next 0/3] bnxt_en: ntuple filter fixes Date: Fri, 5 Jan 2024 15:54:36 -0800 Message-Id: <20240105235439.28282-1-michael.chan@broadcom.com> X-Mailer: git-send-email 2.32.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org The first patch is to remove an unneeded variable. The next 2 patches are to release RCU lock correctly after accesing the RCU protected filter structure. Patch 2 also re-arranges the code to look cleaner. Michael Chan (3): bnxt_en: Remove unneeded variable in bnxt_hwrm_clear_vnic_filter() bnxt_en: Fix RCU locking for ntuple filters in bnxt_srxclsrldel() bnxt_en: Fix RCU locking for ntuple filters in bnxt_rx_flow_steer() drivers/net/ethernet/broadcom/bnxt/bnxt.c | 7 ++----- .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 21 ++++++++++--------- 2 files changed, 13 insertions(+), 15 deletions(-)