diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 2af89b662ca..cd547d04a8c 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -470,6 +470,10 @@ struct netdev_queue { | |||
470 | */ | 470 | */ |
471 | spinlock_t _xmit_lock ____cacheline_aligned_in_smp; | 471 | spinlock_t _xmit_lock ____cacheline_aligned_in_smp; |
472 | int xmit_lock_owner; | 472 | int xmit_lock_owner; |
473 | /* | ||
474 | * please use this field instead of dev->trans_start | ||
475 | */ | ||
476 | unsigned long trans_start; | ||
473 | } ____cacheline_aligned_in_smp; | 477 | } ____cacheline_aligned_in_smp; |
474 | 478 | ||
475 | 479 | ||
@@ -819,6 +823,11 @@ struct net_device | |||
819 | * One part is mostly used on xmit path (device) | 823 | * One part is mostly used on xmit path (device) |
820 | */ | 824 | */ |
821 | /* These may be needed for future network-power-down code. */ | 825 | /* These may be needed for future network-power-down code. */ |
826 | |||
827 | /* | ||
828 | * trans_start here is expensive for high speed devices on SMP, | ||
829 | * please use netdev_queue->trans_start instead. | ||
830 | */ | ||
822 | unsigned long trans_start; /* Time (in jiffies) of last Tx */ | 831 | unsigned long trans_start; /* Time (in jiffies) of last Tx */ |
823 | 832 | ||
824 | int watchdog_timeo; /* used by dev_watchdog() */ | 833 | int watchdog_timeo; /* used by dev_watchdog() */ |
@@ -1541,6 +1550,8 @@ static inline int netif_carrier_ok(const struct net_device *dev) | |||
1541 | return !test_bit(__LINK_STATE_NOCARRIER, &dev->state); | 1550 | return !test_bit(__LINK_STATE_NOCARRIER, &dev->state); |
1542 | } | 1551 | } |
1543 | 1552 | ||
1553 | extern unsigned long dev_trans_start(struct net_device *dev); | ||
1554 | |||
1544 | extern void __netdev_watchdog_up(struct net_device *dev); | 1555 | extern void __netdev_watchdog_up(struct net_device *dev); |
1545 | 1556 | ||
1546 | extern void netif_carrier_on(struct net_device *dev); | 1557 | extern void netif_carrier_on(struct net_device *dev); |