X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fdatapath.h;h=03bebd1aec63a778e16ec7a80b58801b2a479cea;hb=0f4d9dce8150fced85070149e0820707d55ee252;hp=93be155ef39970bb77aa62bf30e02eeb3a9758d8;hpb=f14d80834e73e5e91892e4763e01ccfd3a2d3be2;p=openvswitch diff --git a/datapath/datapath.h b/datapath/datapath.h index 93be155e..03bebd1a 100644 --- a/datapath/datapath.h +++ b/datapath/datapath.h @@ -58,7 +58,6 @@ struct dp_stats_percpu { /** * struct datapath - datapath for flow-based packet switching * @rcu: RCU callback head for deferred destruction. - * @dp_ifindex: ifindex of local port. * @list_node: Element in global 'dps' list. * @ifobj: Represents /sys/class/net//brif. Protected by RTNL. * @drop_frags: Drop all IP fragments if nonzero. @@ -70,7 +69,7 @@ struct dp_stats_percpu { * to iterate or modify. * @stats_percpu: Per-CPU datapath statistics. * @sflow_probability: Number of packets out of UINT_MAX to sample to the - * %OVS_PACKET_CMD_SAMPLE multicast group, e.g. (@sflow_probability/UINT_MAX) + * %OVS_PACKET_CMD_SAMPLE upcall, e.g. (@sflow_probability/UINT_MAX) * is the probability of sampling a given packet. * * Context: See the comment on locking at the top of datapath.c for additional @@ -78,14 +77,13 @@ struct dp_stats_percpu { */ struct datapath { struct rcu_head rcu; - int dp_ifindex; struct list_head list_node; struct kobject ifobj; int drop_frags; /* Flow table. */ - struct tbl __rcu *table; + struct flow_table __rcu *table; /* Switch ports. */ struct vport __rcu *ports[DP_MAX_PORTS]; @@ -148,10 +146,8 @@ extern struct genl_multicast_group dp_vport_multicast_group; extern int (*dp_ioctl_hook)(struct net_device *dev, struct ifreq *rq, int cmd); void dp_process_received_packet(struct vport *, struct sk_buff *); -int dp_detach_port(struct vport *); +void dp_detach_port(struct vport *); int dp_upcall(struct datapath *, struct sk_buff *, const struct dp_upcall_info *); -int dp_min_mtu(const struct datapath *dp); -void set_internal_devs_mtu(const struct datapath *dp); struct datapath *get_dp(int dp_idx); const char *dp_name(const struct datapath *dp);