X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fvport.h;h=5f6e7452d50587ba07b2e2d394170eb63b5d87da;hb=31ac1e590b9bb2a2ce7c70cd7c8fd2db0fb8e481;hp=fb3a3e37f31afdba3073be08cd277b86fa359cf3;hpb=d3097efff7c612e25cbbcf4913c703a73b57e523;p=openvswitch diff --git a/datapath/vport.h b/datapath/vport.h index fb3a3e37..5f6e7452 100644 --- a/datapath/vport.h +++ b/datapath/vport.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Nicira Networks. + * Copyright (c) 2010, 2011 Nicira Networks. * Distributed under the terms of the GNU GPL version 2. * * Significant portions of this file may be copied from parts of the Linux @@ -63,6 +63,7 @@ int vport_get_ifindex(const struct vport *); int vport_get_iflink(const struct vport *); int vport_get_mtu(const struct vport *); +void vport_get_config(const struct vport *, void *); int vport_send(struct vport *, struct sk_buff *); @@ -165,10 +166,9 @@ struct vport_parms { * @destroy: Detach and destroy a vport. * @set_mtu: Set the device's MTU. May be null if not supported. * @set_addr: Set the device's MAC address. May be null if not supported. - * @set_stats: Provides stats as an offset to be added to the device stats. - * May be null if not supported. * @get_name: Get the device's name. * @get_addr: Get the device's MAC address. + * @get_config: Get the device's configuration. * @get_kobj: Get the kobj associated with the device (may return null). * @get_stats: Fill in the transmit/receive stats. May be null if stats are * not supported or if generic stats are in use. If defined and @@ -200,11 +200,11 @@ struct vport_ops { int (*set_mtu)(struct vport *, int mtu); int (*set_addr)(struct vport *, const unsigned char *); - int (*set_stats)(const struct vport *, struct rtnl_link_stats64 *); /* Called with rcu_read_lock or RTNL lock. */ const char *(*get_name)(const struct vport *); const unsigned char *(*get_addr)(const struct vport *); + void (*get_config)(const struct vport *, void *); struct kobject *(*get_kobj)(const struct vport *); int (*get_stats)(const struct vport *, struct rtnl_link_stats64 *);