Re: [PATCH v2 net-next] packet: add a generic drop reason for receive

From: Yan Zhai
Date: Fri Dec 01 2023 - 13:30:45 EST


On Fri, Dec 1, 2023 at 12:19 PM Yan Zhai <yan@xxxxxxxxxxxxxx> wrote:
>
> On Fri, Dec 1, 2023 at 11:51 AM Eric Dumazet <edumazet@xxxxxxxxxx> wrote:
> >
> > > bool is_drop_n_account = false;
> >
> > Why keeping is_drop_n_account then ?
>
> Good catch, thanks! Will send a v3 to fix up.
> Meanwhile, I noticed it is compiled with the
> -Wno-unused-but-set-variable flag, is there a reason why we disable
> this warning?

I found the answer in scripts/Makefile.extrawarn. Good to learn how this works!

>
> Yan