[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:
committed by
David S. Miller
parent
029720f15d
commit
4c13eb6657
@ -920,7 +920,6 @@ static void fast_rx_path(struct atmel_private *priv,
|
||||
memcpy(&skbp[6], header->addr2, 6); /* source address */
|
||||
|
||||
priv->dev->last_rx = jiffies;
|
||||
skb->dev = priv->dev;
|
||||
skb->protocol = eth_type_trans(skb, priv->dev);
|
||||
skb->ip_summed = CHECKSUM_NONE;
|
||||
netif_rx(skb);
|
||||
@ -1028,7 +1027,6 @@ static void frag_rx_path(struct atmel_private *priv,
|
||||
priv->rx_buf,
|
||||
priv->frag_len + 12);
|
||||
priv->dev->last_rx = jiffies;
|
||||
skb->dev = priv->dev;
|
||||
skb->protocol = eth_type_trans(skb, priv->dev);
|
||||
skb->ip_summed = CHECKSUM_NONE;
|
||||
netif_rx(skb);
|
||||
|
Reference in New Issue
Block a user