[dpdk-dev] [PATCH v6 02/14] net/avf: initialization of avf PMD

Stephen Hemminger stephen at networkplumber.org
Wed Jan 10 18:15:25 CET 2018


On Wed, 10 Jan 2018 14:15:49 +0800
Wenzhuo Lu <wenzhuo.lu at intel.com> wrote:

> +
> +#define AVF_MAX_NUM_QUEUES       16
> +/* Vlan table size */
> +#define AVF_VLAN_TB_SIZE               (4096 / (CHAR_BIT * sizeof(uint32_t)))

You could use ETHER_MAX_VLAN_ID (which is 4095).
Also it is most efficient if bit tables use unsigned long to access.


More information about the dev mailing list