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 52816A0547 for ; Thu, 29 Apr 2021 15:59:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D53A406FF; Thu, 29 Apr 2021 15:59:16 +0200 (CEST) Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) by mails.dpdk.org (Postfix) with ESMTP id 8601D406FF for ; Thu, 29 Apr 2021 15:59:15 +0200 (CEST) Received: by mail-ot1-f54.google.com with SMTP id 65-20020a9d03470000b02902808b4aec6dso56671033otv.6 for ; Thu, 29 Apr 2021 06:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3pHUtGUTLGoPWY29zE7EbEEpzLoBjhfBmvavR26/HDo=; b=NI+S66/Wkg6OlPhfzcjklBgCynD6Q0SrZjWjOLWcdCljA0vvgeCbiwuclD8gU1CBdi XCo4krxarZNekjbjW0ES7GRjfDm106HRfvgCIcllxGB8u+EjESNL5GzSiQCJTa9uShEk l16Th7fR8BBN5H5/hlLI9S6yPLbosObwlAkIA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3pHUtGUTLGoPWY29zE7EbEEpzLoBjhfBmvavR26/HDo=; b=qA3qHdBGXOyKBVDFLCLyMBuTbdt6Lrbcg+FL0333wFsztcUaFnJVqbLEFbZbnMBOyW LKCoiMx3jINONgQM1rB7TwpQG7tNDr7VVbCbSUykUnpOzKoTtReguMPwz6UtGOtlXxun +hznsq8xcVpXJXze6/lKTj6XmLVmYpAj22i5S34PCFy3jR8a6v+59H1UPWy3gM18rxXu 1Lqf+EYrDnYSYnGioyQq0RxIGdafzkCZNA6mAbbnzb6r0sa52UqY8UAulhUAsBOWQS+Z 9gVvZ8U4dzArTRHfjKF1HtNy9VrJ0UlWSQPPlT0Ik6oy1FH+96WcNJ+aKZTGzY+SGSWU QCgQ== X-Gm-Message-State: AOAM5334JmtFvrKDtsoDwF/H8JAkpiN7R/DvVdCTY9m31+pDj17ts3d8 usMdKI2/5RpUX1vbC0VntIG7IPUKBODZ4abCqRHiXQ== X-Google-Smtp-Source: ABdhPJyPuLsMVzf8mwmnCs67SkmvHrzPjusK0Bk09OoMXvume6PPIMMFfiZrWs53gREaPDnb0E2jCFjiuhq8dhRPvzM= X-Received: by 2002:a9d:5e0a:: with SMTP id d10mr27621178oti.44.1619704754769; Thu, 29 Apr 2021 06:59:14 -0700 (PDT) MIME-Version: 1.0 References: <20210428220403.10115-1-lance.richardson@broadcom.com> In-Reply-To: From: Lance Richardson Date: Thu, 29 Apr 2021 09:59:00 -0400 Message-ID: To: Ajit Khaparde , Somnath Kotur Cc: dev@dpdk.org, dpdk stable , Kalesh Anakkur Purayil Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000091593905c11ce6eb" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-stable] [PATCH] net/bnxt: fix initialization of filter struct 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" --00000000000091593905c11ce6eb Content-Type: text/plain; charset="UTF-8" On Thu, Apr 29, 2021 at 9:43 AM Lance Richardson wrote: > > On Wed, Apr 28, 2021 at 6:04 PM Lance Richardson > wrote: > > > > Initialize filter structure to all zeroes on allocation. > > > > Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops") > > Cc: stable@dpdk.org > > Signed-off-by: Lance Richardson > > Reviewed-by: Ajit Kumar Khaparde > > --- > > drivers/net/bnxt/bnxt_filter.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/net/bnxt/bnxt_filter.c b/drivers/net/bnxt/bnxt_filter.c > > index 1d08e03b2f..6aadfa9526 100644 > > --- a/drivers/net/bnxt/bnxt_filter.c > > +++ b/drivers/net/bnxt/bnxt_filter.c > > @@ -188,6 +188,7 @@ struct bnxt_filter_info *bnxt_get_unused_filter(struct bnxt *bp) > > return NULL; > > } > > STAILQ_REMOVE_HEAD(&bp->free_filter_list, next); > > + memset(filter, 0, sizeof(*filter)); > > > > return filter; > > } > > -- > > 2.25.1 > > > Self-NAK, will send a v2 shortly. Let's drop this patch, this is already fixed in upstream via commit 7105de7085b0 ("net/bnxt: reset filter indices on free"), but that commit should be applied to -stable branches. --00000000000091593905c11ce6eb--