[ovs-dev] [netlink v4 30/52] datapath: Drop port information from odp_stats.
Jesse Gross
jesse at nicira.com
Sun Jan 16 12:34:03 UTC 2011
On Wed, Jan 12, 2011 at 12:49 AM, Ben Pfaff <blp at nicira.com> wrote:
> diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
> index a3a8d32..4d068a2 100644
> --- a/ofproto/ofproto.c
> +++ b/ofproto/ofproto.c
> @@ -476,7 +476,7 @@ ofproto_create(const char *datapath, const char *datapath_type,
> p->netdev_monitor = netdev_monitor_create();
> hmap_init(&p->ports);
> shash_init(&p->port_by_name);
> - p->max_ports = stats.max_ports;
> + p->max_ports = dpif_get_max_ports(dpif);
Do we still need to fetch the stats in ofproto_create()? It doesn't
look like anything uses them anymore.
Otherwise:
Acked-by: Jesse Gross <jesse at nicira.com>
More information about the dev
mailing list