2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

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.
This commit is contained in:
Ben Pfaff
2010-12-03 12:54:08 -08:00
parent a181129613
commit 98563392db

View 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(