[Patch v4 11/17] net/mana: implement the hardware layer operations

Long Li longli at microsoft.com
Mon Aug 22 20:28:24 CEST 2022


> Subject: Re: [Patch v4 11/17] net/mana: implement the hardware layer
> operations
> 
> On 7/9/2022 12:49 AM, longli at linuxonhyperv.com wrote:
> 
> >
> > From: Long Li <longli at microsoft.com>
> >
> > The hardware layer of MANA understands the device queue and doorbell
> > formats. Those functions are implemented for use by packet RX/TX code.
> >
> > Signed-off-by: Long Li <longli at microsoft.com>
> > ---
> > Change log:
> > v2:
> > Remove unused header files.
> > Rename a camel case.
> >
> 
> <...>
> 
> > +/* NDIS HASH Types */
> > +#define BIT(nr)                (1 << (nr))
> > +#define NDIS_HASH_IPV4          BIT(0)
> > +#define NDIS_HASH_TCP_IPV4      BIT(1)
> > +#define NDIS_HASH_UDP_IPV4      BIT(2)
> > +#define NDIS_HASH_IPV6          BIT(3)
> > +#define NDIS_HASH_TCP_IPV6      BIT(4)
> > +#define NDIS_HASH_UDP_IPV6      BIT(5)
> > +#define NDIS_HASH_IPV6_EX       BIT(6)
> > +#define NDIS_HASH_TCP_IPV6_EX   BIT(7)
> > +#define NDIS_HASH_UDP_IPV6_EX   BIT(8)
> 
> Can use RTE_BIT32/64 instead of defining new macro

Will fix this.



More information about the dev mailing list