dev->last_rx equal to jiffies.
}
skb->protocol = eth_type_trans(skb, dev);
netif_rx(skb);
+ dev->last_rx = jiffies;
sp->stats.rx_packets++;
sp->stats.rx_bytes += pkt_len;
}
skb->mac.raw = skb->data;
skb->protocol = htons(ETH_P_AX25);
netif_rx(skb);
- dev->last_rx = jiffies;
+ sp->dev->last_rx = jiffies;
sp->stats.rx_packets++;
}
/* Initialize 6pack control device -- register 6pack line discipline */
static char msg_banner[] __initdata = KERN_INFO "AX.25: 6pack driver, " SIXPACK_VERSION " (dynamic channels, max=%d)\n";
-static char msg_invparm[] __initdata = KERN_ERR "6pack: sixpack_maxdev parameter too large.\n";
static char msg_nomem[] __initdata = KERN_ERR "6pack: can't allocate sixpack_ctrls[] array! No 6pack available.\n";
static char msg_regfail[] __initdata = KERN_ERR "6pack: can't register line discipline (err = %d)\n";
skb->protocol = ntohs(ETH_P_AX25);
skb->mac.raw = skb->data;
netif_rx(skb);
+ priv->dev->last_rx = jiffies;
priv->stats.rx_packets++;
priv->stats.rx_bytes += cb;
}
skb->mac.raw = skb->data;
skb->protocol = htons(ETH_P_AX25);
netif_rx(skb);
- dev->last_rx = jiffies;
+ tmp_ax->dev->last_rx = jiffies;
tmp_ax->rx_packets++;
}
skb->pkt_type = PACKET_HOST;
netif_rx(skb);
- dev->last_rx = jiffies;
+ scc->dev->last_rx = jiffies;
return;
}
sa1100_irda_rx_alloc(si);
netif_rx(skb);
+ dev->last_rx = jiffies;
} else {
/*
* Remap the buffer.
#ifdef EXT_COUNTERS
strip_info->rx_bytes += packetlen;
#endif
+ skb->dev->last_rx = jiffies;
netif_rx(skb);
}
}
stats->rx_bytes += pkt_len;
skb->tail += pkt_len;
skb->len = pkt_len;
- if (netif_running(dev))
+ if (netif_running(dev))
skb->protocol = htons(ETH_P_HDLC);
+ skb->dev->last_rx = jiffies;
netif_rx(skb);
try_get_rx_skb(dpriv, cur, dev);
} else {
#endif
port->hdlc.stats.rx_packets++;
port->hdlc.stats.rx_bytes += skb->len;
+ skb->dev->last_rx = jiffies;
skb->mac.raw = skb->data;
skb->dev = hdlc_to_dev(&port->hdlc);
skb->protocol = htons(ETH_P_HDLC);