Re: [PATCH net] net: usb: rtl8150: Fix frame padding

From: Simon Horman

Date: Mon Oct 13 2025 - 08:35:11 EST


On Mon, Oct 13, 2025 at 12:50:43PM +0200, Michal Pecio wrote:
> On Mon, 13 Oct 2025 10:57:51 +0100, Simon Horman wrote:
> > Hi Michal,
> >
> > I think this should also increment a dropped counter.
> > As this driver already uses dev->netdev->stats [*]
> > I think that would be:
> >
> > dev->netdev->stats.tx_dropped++;
> >
> > [*] I specifically mention this, for the record because,
> > new users are discouraged. But this driver is an existing user
> > so I think we are ok.
>
> Thanks, makes sense, will do.
>
> I will only drop "dev->" because it's superfluous - we already have
> 'netdev' here, which was used to obtain 'dev' in the first place.

Sounds good, sorry for missing that detail.