From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH RFC net-next] net: SAIL based FIB lookup for XDP Date: Sun, 18 Nov 2018 18:52:53 +0100 Message-ID: <20181118175253.GB7446@lunn.ch> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Md. Islam" , Netdev , Jesper Dangaard Brouer , David Miller , Stephen Hemminger , john fastabend , Alexey Kuznetsov To: David Ahern Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:39597 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbeKSENv (ORCPT ); Sun, 18 Nov 2018 23:13:51 -0500 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: > > + * The router can have upto 255 ports. This limitation > > + * allows us to represent netdev_index as an u8 > > + */ > > +#define NETDEV_COUNT_MAX 255 > > ... 255 is high for a physical port count but not a logical device > count. In the presence of VLANs 255 is nothing and VLANs are an > essential deployment feature. I agree with David here. Doing some network simulation work using namespaces, i've had more than 255 devices in the root namespace. Andrew