dpif-linux: Choose port numbers more prudently.
authorEthan Jackson <ethan@nicira.com>
Mon, 4 Apr 2011 23:55:34 +0000 (16:55 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 6 Apr 2011 03:40:27 +0000 (20:40 -0700)
commit773cd53821425ae2380fb741c85172a0ff8cb478
tree6d6e8006d0acc3fd1534267927c1e57c5f55e0a9
parentc804cadfe92268da4658d3089ad8fb99c35121f3
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