[ETH]: Make eth_type_trans set skb->dev like the other *_type_trans
One less thing for drivers writers to worry about. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

کامیت شده توسط
David S. Miller

والد
029720f15d
کامیت
4c13eb6657
@@ -421,7 +421,6 @@ static void meth_rx(struct net_device* dev, unsigned long int_status)
|
||||
/* Write metadata, and then pass to the receive level */
|
||||
skb_put(skb_c, len);
|
||||
priv->rx_skbs[priv->rx_write] = skb;
|
||||
skb_c->dev = dev;
|
||||
skb_c->protocol = eth_type_trans(skb_c, dev);
|
||||
dev->last_rx = jiffies;
|
||||
priv->stats.rx_packets++;
|
||||
|
مرجع در شماره جدید
Block a user