From 98563392dba5c82a9b952c421dec8b16c8a24023 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 3 Dec 2010 12:54:08 -0800 Subject: [PATCH] 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. --- lib/netdev-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.30.2