git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Use generic struct pcpu_tstats.
[sliver-openvswitch.git]
/
datapath
/
vport.h
diff --git
a/datapath/vport.h
b/datapath/vport.h
index
6781cf6
..
5c213e9
100644
(file)
--- a/
datapath/vport.h
+++ b/
datapath/vport.h
@@
-19,6
+19,7
@@
#ifndef VPORT_H
#define VPORT_H 1
#ifndef VPORT_H
#define VPORT_H 1
+#include <linux/if_tunnel.h>
#include <linux/list.h>
#include <linux/netlink.h>
#include <linux/openvswitch.h>
#include <linux/list.h>
#include <linux/netlink.h>
#include <linux/openvswitch.h>
@@
-53,14
+54,6
@@
int ovs_vport_send(struct vport *, struct sk_buff *);
/* The following definitions are for implementers of vport devices: */
/* The following definitions are for implementers of vport devices: */
-struct vport_percpu_stats {
- u64 rx_bytes;
- u64 rx_packets;
- u64 tx_bytes;
- u64 tx_packets;
- struct u64_stats_sync sync;
-};
-
struct vport_err_stats {
u64 rx_dropped;
u64 rx_errors;
struct vport_err_stats {
u64 rx_dropped;
u64 rx_errors;
@@
-94,7
+87,7
@@
struct vport {
struct hlist_node dp_hash_node;
const struct vport_ops *ops;
struct hlist_node dp_hash_node;
const struct vport_ops *ops;
- struct
vport_percpu_
stats __percpu *percpu_stats;
+ struct
pcpu_t
stats __percpu *percpu_stats;
spinlock_t stats_lock;
struct vport_err_stats err_stats;
spinlock_t stats_lock;
struct vport_err_stats err_stats;