[dpdk-dev] [PATCH] net/bnxt: fix initialization of filter struct

Lance Richardson lance.richardson at broadcom.com
Thu Apr 29 15:59:00 CEST 2021


On Thu, Apr 29, 2021 at 9:43 AM Lance Richardson
<lance.richardson at broadcom.com> wrote:
>
> On Wed, Apr 28, 2021 at 6:04 PM Lance Richardson
> <lance.richardson at broadcom.com> wrote:
> >
> > Initialize filter structure to all zeroes on allocation.
> >
> > Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops")
> > Cc: stable at dpdk.org
> > Signed-off-by: Lance Richardson <lance.richardson at broadcom.com>
> > Reviewed-by: Ajit Kumar Khaparde <ajit.khaparde at broadcom.com>
> > ---
> >  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.


More information about the dev mailing list