diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/netdevice.h | 3 | ||||
| -rw-r--r-- | include/uapi/linux/if_link.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 34cae3ee74f1..45537ed7a5b3 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -1308,6 +1308,9 @@ struct net_device { | |||
| 1308 | atomic_long_t rx_dropped; | 1308 | atomic_long_t rx_dropped; |
| 1309 | atomic_long_t tx_dropped; | 1309 | atomic_long_t tx_dropped; |
| 1310 | 1310 | ||
| 1311 | /* Stats to monitor carrier on<->off transitions */ | ||
| 1312 | atomic_t carrier_changes; | ||
| 1313 | |||
| 1311 | #ifdef CONFIG_WIRELESS_EXT | 1314 | #ifdef CONFIG_WIRELESS_EXT |
| 1312 | /* List of functions to handle Wireless Extensions (instead of ioctl). | 1315 | /* List of functions to handle Wireless Extensions (instead of ioctl). |
| 1313 | * See <net/iw_handler.h> for details. Jean II */ | 1316 | * See <net/iw_handler.h> for details. Jean II */ |
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h index 16410b6e7819..9a7f7ace6649 100644 --- a/include/uapi/linux/if_link.h +++ b/include/uapi/linux/if_link.h | |||
| @@ -144,6 +144,7 @@ enum { | |||
| 144 | IFLA_NUM_RX_QUEUES, | 144 | IFLA_NUM_RX_QUEUES, |
| 145 | IFLA_CARRIER, | 145 | IFLA_CARRIER, |
| 146 | IFLA_PHYS_PORT_ID, | 146 | IFLA_PHYS_PORT_ID, |
| 147 | IFLA_CARRIER_CHANGES, | ||
| 147 | __IFLA_MAX | 148 | __IFLA_MAX |
| 148 | }; | 149 | }; |
| 149 | 150 | ||
