diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/if_tunnel.h | 9 | ||||
| -rw-r--r-- | include/linux/netdevice.h | 11 |
2 files changed, 10 insertions, 10 deletions
diff --git a/include/linux/if_tunnel.h b/include/linux/if_tunnel.h index f4e56ecd0b1a..712710bc0580 100644 --- a/include/linux/if_tunnel.h +++ b/include/linux/if_tunnel.h | |||
| @@ -13,13 +13,4 @@ | |||
| 13 | #define for_each_ip_tunnel_rcu(pos, start) \ | 13 | #define for_each_ip_tunnel_rcu(pos, start) \ |
| 14 | for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next)) | 14 | for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next)) |
| 15 | 15 | ||
| 16 | /* often modified stats are per cpu, other are shared (netdev->stats) */ | ||
| 17 | struct pcpu_tstats { | ||
| 18 | u64 rx_packets; | ||
| 19 | u64 rx_bytes; | ||
| 20 | u64 tx_packets; | ||
| 21 | u64 tx_bytes; | ||
| 22 | struct u64_stats_sync syncp; | ||
| 23 | }; | ||
| 24 | |||
| 25 | #endif /* _IF_TUNNEL_H_ */ | 16 | #endif /* _IF_TUNNEL_H_ */ |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index bec60c481966..51c0fe258163 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -1409,7 +1409,7 @@ struct net_device { | |||
| 1409 | union { | 1409 | union { |
| 1410 | void *ml_priv; | 1410 | void *ml_priv; |
| 1411 | struct pcpu_lstats __percpu *lstats; /* loopback stats */ | 1411 | struct pcpu_lstats __percpu *lstats; /* loopback stats */ |
| 1412 | struct pcpu_tstats __percpu *tstats; /* tunnel stats */ | 1412 | struct pcpu_sw_netstats __percpu *tstats; |
| 1413 | struct pcpu_dstats __percpu *dstats; /* dummy stats */ | 1413 | struct pcpu_dstats __percpu *dstats; /* dummy stats */ |
| 1414 | struct pcpu_vstats __percpu *vstats; /* veth stats */ | 1414 | struct pcpu_vstats __percpu *vstats; /* veth stats */ |
| 1415 | }; | 1415 | }; |
| @@ -1685,6 +1685,15 @@ struct packet_offload { | |||
| 1685 | struct list_head list; | 1685 | struct list_head list; |
| 1686 | }; | 1686 | }; |
| 1687 | 1687 | ||
| 1688 | /* often modified stats are per cpu, other are shared (netdev->stats) */ | ||
| 1689 | struct pcpu_sw_netstats { | ||
| 1690 | u64 rx_packets; | ||
| 1691 | u64 rx_bytes; | ||
| 1692 | u64 tx_packets; | ||
| 1693 | u64 tx_bytes; | ||
| 1694 | struct u64_stats_sync syncp; | ||
| 1695 | }; | ||
| 1696 | |||
| 1688 | #include <linux/notifier.h> | 1697 | #include <linux/notifier.h> |
| 1689 | 1698 | ||
| 1690 | /* netdevice notifier chain. Please remember to update the rtnetlink | 1699 | /* netdevice notifier chain. Please remember to update the rtnetlink |
