dpif-linux: Choose port numbers more prudently.
authorEthan Jackson <ethan@nicira.com>
Mon, 4 Apr 2011 23:55:34 +0000 (16:55 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 6 Apr 2011 04:07:15 +0000 (21:07 -0700)
commitacae5cd34da321daac7882921d42175f29359bb1
treec3767e0991070e0279280fc9c9f6c74be92185d9
parent0aece026fa151cc48c00cf799c50ef7f8b776db0
dpif-linux: Choose port numbers more prudently.

Before this patch the kernel chose the lowest available number for
newly created datapath ports.  This patch moves the port number
choosing responsibility to user space, and implements a least
recently used port number queue in an attempt to avoid reuse.

Bug #2140.
lib/dpif-linux.c