[ovs-dev] [PATCH] ovs-tcpdump: handle large interface names on linux

Ben Pfaff blp at ovn.org
Mon Nov 13 17:02:30 UTC 2017


On Fri, Nov 10, 2017 at 05:33:20PM -0500, Aaron Conole wrote:
> Linux has a fixed size interface name, which will not change.  This means
> that attempts to dump interfaces whose names are larger than the max size
> will result in an error making the tap device.
> 
> This commit brings a new function.  When the generated name would be too
> large, use a random number prefixed by 'ovsmi' instead.
> 
> Reported-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
> Signed-off-by: Aaron Conole <aconole at redhat.com>

I applied this to master, thanks!

I am not sure whether it is worthwhile making this platform-specific,
since most Unix-like platforms I know of have the same limit as Linux,
and every platform I know of supports interface names at least 15 bytes
long.


More information about the dev mailing list