dpif-linux: Generalize dpif_linux_recv_set() to synchronize channels.
authorBen Pfaff <blp@nicira.com>
Wed, 4 Dec 2013 21:37:31 +0000 (13:37 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Dec 2013 22:52:46 +0000 (14:52 -0800)
commit8381a3d36c45ebfdcf3e0dc3c5dace94912216ba
tree5e187db6418e6bad4d54006687a0c925240caaa2
parent222837c45fc65f559cc08a634cc286099f74709c
dpif-linux: Generalize dpif_linux_recv_set() to synchronize channels.

Until now, the code in dpif_linux_recv_set() has assumed it is starting
from a clean slate with no channels at all.  This commit generalizes it to
compare the existing set of channels against the ones that should exist
given the vports that the kernel has, adding any new ones that are missing
and removing any that should not exist.  A followup commit will make good
use of this functionality.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/dpif-linux.c