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: user-mode-linux-devel@lists.sourceforge.net Cc: linux-xtensa@linux-xtensa.org Cc: linux1394-devel@lists.sourceforge.net Cc: linux-rdma@vger.kernel.org Cc: netdev@vger.kernel.org Cc: MPT-FusionLinux.pdl@broadcom.com Cc: linux-scsi@vger.kernel.org Cc: linux-can@vger.kernel.org Cc: linux-parisc@vger.kernel.org Cc: linux-omap@vger.kernel.org Cc: linux-hams@vger.kernel.org Cc: linux-usb@vger.kernel.org Cc: linux-wireless@vger.kernel.org Cc: linux-s390@vger.kernel.org Cc: devel@driverdev.osuosl.org Cc: b.a.t.m.a.n@lists.open-mesh.org Cc: linux-bluetooth@vger.kernel.org Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com> Acked-by: Mugunthan V N <mugunthanvnm@ti.com> Acked-by: Antonio Quartulli <a@unstable.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
このコミットが含まれているのは:
@@ -2954,7 +2954,7 @@ static int __ipw2100_tx_process(struct ipw2100_priv *priv)
|
||||
|
||||
/* A packet was processed by the hardware, so update the
|
||||
* watchdog */
|
||||
priv->net_dev->trans_start = jiffies;
|
||||
netif_trans_update(priv->net_dev);
|
||||
|
||||
break;
|
||||
|
||||
|
@@ -7707,7 +7707,7 @@ static void ipw_handle_data_packet(struct ipw_priv *priv,
|
||||
struct ipw_rx_packet *pkt = (struct ipw_rx_packet *)rxb->skb->data;
|
||||
|
||||
/* We received data from the HW, so stop the watchdog */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
/* We only process data packets if the
|
||||
* interface is open */
|
||||
@@ -7770,7 +7770,7 @@ static void ipw_handle_data_packet_monitor(struct ipw_priv *priv,
|
||||
unsigned short len = le16_to_cpu(pkt->u.frame.length);
|
||||
|
||||
/* We received data from the HW, so stop the watchdog */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
/* We only process data packets if the
|
||||
* interface is open */
|
||||
@@ -7952,7 +7952,7 @@ static void ipw_handle_promiscuous_rx(struct ipw_priv *priv,
|
||||
return;
|
||||
|
||||
/* We received data from the HW, so stop the watchdog */
|
||||
dev->trans_start = jiffies;
|
||||
netif_trans_update(dev);
|
||||
|
||||
if (unlikely((len + IPW_RX_FRAME_SIZE) > skb_tailroom(rxb->skb))) {
|
||||
dev->stats.rx_errors++;
|
||||
|
新しいイシューから参照
ユーザーをブロックする