Re: [PATCH] usb: gadget: rndis: add multi packages support for rndis

From: 庞苏荣 (Surong Pang)
Date: Tue Mar 26 2024 - 06:53:09 EST


Dear Greg,

These values are just used to recorded water mask of received packages per transfer.
Just to print the water mask information, they can be deleted.

Anyway, if rndis will be deleted entirely, this patch can be abandoned.

>
>
> On Wed, Mar 06, 2024 at 01:49:49PM +0800, Surong Pang wrote:
> > --- a/drivers/usb/gadget/function/rndis.c
> > +++ b/drivers/usb/gadget/function/rndis.c
> > @@ -39,6 +39,8 @@
> >
> > #include "rndis.h"
> >
> > +static int max_out_pkts_per_xfer;
> > +static int max_out_size_per_xfer;
>
> Note, this will not work, you can't have device-specific variables as a single entry, otherwise multiple devices at the same time will not
> work at all.
>
> thanks,
>
> greg k-h