netdev-linux: Don't treat "system" devices as vports for setting stats.
authorBen Pfaff <blp@nicira.com>
Fri, 3 Dec 2010 20:54:08 +0000 (12:54 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 3 Dec 2010 22:43:38 +0000 (14:43 -0800)
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.

lib/netdev-linux.c

index cbe4222..b7447f8 100644 (file)
@@ -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(