From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f43.google.com (mail-pg0-f43.google.com [74.125.83.43]) by dpdk.org (Postfix) with ESMTP id 11D191B1C5 for ; Wed, 10 Jan 2018 18:15:33 +0100 (CET) Received: by mail-pg0-f43.google.com with SMTP id f14so8735763pga.10 for ; Wed, 10 Jan 2018 09:15:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zpS0SyPVehGdjq8Wzb87i8iyxpyeNmyLzbYz05O4rQA=; b=bCf2DouCn9SnzTOAsXVWIgL0m6794TfUX8kotcYm5gW15oLO0O+9BR2h3Y/Uulvu/9 tJAgkVADRLk6iBpms6QUXVHurCjyonOV3gF983t1baKkmAboaRDEoJHs0czbQXXI97W/ 4Q7/HMmi149zKWIvc6TjnQ7uIEkWUulmD9N1jxJLnFSayFuPc0iQaWd6LVSO81byrJlp qR+VU/wGKywVvyGu4/wq2wkQWLk29RM0mOj5XqZHWRk7n6rvjIFo4MQlyB4ejKvVeyMg HEoxwoanjU92PEEQ7miby8nXl1UngILXpUUYr33gUfZLFryt/Oth5Y0zri71Zo9knjFn cYpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zpS0SyPVehGdjq8Wzb87i8iyxpyeNmyLzbYz05O4rQA=; b=Oy8XUkCYC3B0rrks7Tf1+G+LQvy6Sa1A4PhYmdw9Wp42YgJRGr4PRzHxYlL5Xdnu1Z QMWdq+VL2oXABW2XLXB1CJq1Jhekq4UpOfXur+zEAhqG5Gu7Mp/3kAY3wuh4eyFKYEp9 B/jHahGjdXfvacqk6M+OjM5INhR+Io7TlhXYjXVoqOxlgvypJ5hxeRqqHc5pPCNBP2UY YGYZhwOPhtdINO3E5tXBhcgxrAM240gXL2W0IVd7JM3Ci9Ke0vkmUxjPvTztIG6HXKC1 d2K/x9e0cJin0y1+UAmsdZ5pqefXFaswvFoezI6P8orGGGCqDrSW8SJ6sB0MK/WuYN2Y SERw== X-Gm-Message-State: AKGB3mIwdgE1RAd9dknq975OXvYaw9KlNAl+G8+TfgR7bHfsOjde0lR5 qtuBXFaNshlio7dXK3M8RC5hZw== X-Google-Smtp-Source: ACJfBovAXzA9R7sJNRk+h/2qo90qyg6t1Mph68oAFXOqqjAHbKK9NGLBhUWmP85OESlcc1WsyT5eQg== X-Received: by 10.101.88.206 with SMTP id e14mr6952229pgu.441.1515604533021; Wed, 10 Jan 2018 09:15:33 -0800 (PST) Received: from xeon-e3 (204-195-18-133.wavecable.com. [204.195.18.133]) by smtp.gmail.com with ESMTPSA id z19sm34192243pfh.39.2018.01.10.09.15.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Jan 2018 09:15:32 -0800 (PST) Date: Wed, 10 Jan 2018 09:15:25 -0800 From: Stephen Hemminger To: Wenzhuo Lu Cc: dev@dpdk.org, Jingjing Wu Message-ID: <20180110091525.7f6abb3b@xeon-e3> In-Reply-To: <1515564961-79227-3-git-send-email-wenzhuo.lu@intel.com> References: <1515388414-16214-1-git-send-email-wenzhuo.lu@intel.com> <1515564961-79227-1-git-send-email-wenzhuo.lu@intel.com> <1515564961-79227-3-git-send-email-wenzhuo.lu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v6 02/14] net/avf: initialization of avf PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2018 17:15:34 -0000 On Wed, 10 Jan 2018 14:15:49 +0800 Wenzhuo Lu 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.