Re: [PATCH net-next] net/packet: Fix a comment about hard_header_len and add a warning for it
From: Willem de Bruijn
Date: Sun Sep 13 2020 - 04:11:25 EST
On Sat, Sep 12, 2020 at 1:37 AM Xie He <xie.he.0141@xxxxxxxxx> wrote:
>
> On Fri, Sep 11, 2020 at 7:32 AM Willem de Bruijn
> <willemdebruijn.kernel@xxxxxxxxx> wrote:
> >
> > From a quick scan, a few device types that might trigger this
> >
> > net/atm/clip.c
> > drivers/net/wan/hdlc_fr.c
> > drivers/net/appletalk/ipddp.c
> > drivers/net/ppp/ppp_generic.c
> > drivers/net/net_failover.c
>
> I have recently fixed this problem in the "net" tree in hdlc_fr.c.
>
> Glad to see the number of drivers that have this problem is not very big.
I am concerned about adding a WARN_ON_ONCE that we already expect to
fire on some platforms.
Probably better to add the documentation without the warning.
I know I suggested the check before, sorry for the churn, but I hadn't
checked the existing state yet.