mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
treewide: replace dev->trans_start update with helper
Replace all trans_start updates with netif_trans_update helper. change was done via spatch: struct net_device *d; @@ - d->trans_start = jiffies + netif_trans_update(d) Compile tested only. Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Florian Westphal <[email protected]> Acked-by: Felipe Balbi <[email protected]> Acked-by: Mugunthan V N <[email protected]> Acked-by: Antonio Quartulli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ba162f8eed
commit
860e9538a9
156 changed files with 232 additions and 232 deletions
|
|
@ -127,7 +127,7 @@ net_send_packet(struct sk_buff *skb, struct net_device *dev)
|
|||
if (lp->in_idx >= MAX_SKB_BUFFERS)
|
||||
lp->in_idx = 0; /* wrap around */
|
||||
lp->sk_count++; /* adjust counter */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
/* If we just used up the very last entry in the
|
||||
* TX ring on this device, tell the queueing
|
||||
|
|
|
|||
|
|
@ -1153,7 +1153,7 @@ static void isdn_net_tx_timeout(struct net_device *ndev)
|
|||
* ever called --KG
|
||||
*/
|
||||
}
|
||||
ndev->trans_start = jiffies;
|
||||
netif_trans_update(ndev);
|
||||
netif_wake_queue(ndev);
|
||||
}
|
||||
|
||||
|
|
@ -1291,7 +1291,7 @@ isdn_net_start_xmit(struct sk_buff *skb, struct net_device *ndev)
|
|||
}
|
||||
} else {
|
||||
/* Device is connected to an ISDN channel */
|
||||
ndev->trans_start = jiffies;
|
||||
netif_trans_update(ndev);
|
||||
if (!lp->dialstate) {
|
||||
/* ISDN connection is established, try sending */
|
||||
int ret;
|
||||
|
|
|
|||
|
|
@ -278,7 +278,7 @@ static int isdn_x25iface_xmit(struct concap_proto *cprot, struct sk_buff *skb)
|
|||
case X25_IFACE_DATA:
|
||||
if (*state == WAN_CONNECTED) {
|
||||
skb_pull(skb, 1);
|
||||
cprot->net_dev->trans_start = jiffies;
|
||||
netif_trans_update(cprot->net_dev);
|
||||
ret = (cprot->dops->data_req(cprot, skb));
|
||||
/* prepare for future retransmissions */
|
||||
if (ret) skb_push(skb, 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue