From: Ben Pfaff Date: Fri, 3 Dec 2010 20:54:08 +0000 (-0800) Subject: netdev-linux: Don't treat "system" devices as vports for setting stats. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98563392dba5c82a9b952c421dec8b16c8a24023;p=openvswitch netdev-linux: Don't treat "system" devices as vports for setting stats. Linux kernel datapath vports have a "set_stats" method. Until now, internal vports have been handled in the userspace netdev library as type "system", so the "system" netdevs would try to use the vport "set_stats" method. Now, however, internal netdevs have been broken out as a separate netdev type, so only that new type of netdev has to be able to call into "set_stats". This commit, therefore, removes it from the "system" netdevs. --- diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index cbe4222c..b7447f8e 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -2184,7 +2184,7 @@ const struct netdev_class netdev_linux_class = "system", netdev_linux_create, netdev_linux_enumerate, - netdev_vport_set_stats); + NULL); /* set_stats */ const struct netdev_class netdev_tap_class = NETDEV_LINUX_CLASS(