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

Ferruh Yigit ferruh.yigit at xilinx.com
Mon Aug 22 17:08:02 CEST 2022


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



More information about the dev mailing list