[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
@@ -170,7 +170,6 @@ static int fs_enet_rx_napi(struct net_device *dev, int *budget)
|
||||
skbn = dev_alloc_skb(ENET_RX_FRSIZE);
|
||||
|
||||
if (skbn != NULL) {
|
||||
skb->dev = dev;
|
||||
skb_put(skb, pkt_len); /* Make room */
|
||||
skb->protocol = eth_type_trans(skb, dev);
|
||||
received++;
|
||||
@@ -304,7 +303,6 @@ static int fs_enet_rx_non_napi(struct net_device *dev)
|
||||
skbn = dev_alloc_skb(ENET_RX_FRSIZE);
|
||||
|
||||
if (skbn != NULL) {
|
||||
skb->dev = dev;
|
||||
skb_put(skb, pkt_len); /* Make room */
|
||||
skb->protocol = eth_type_trans(skb, dev);
|
||||
received++;
|
||||
@@ -516,7 +514,6 @@ void fs_init_bds(struct net_device *dev)
|
||||
break;
|
||||
}
|
||||
fep->rx_skbuff[i] = skb;
|
||||
skb->dev = dev;
|
||||
CBDW_BUFADDR(bdp,
|
||||
dma_map_single(fep->dev, skb->data,
|
||||
L1_CACHE_ALIGN(PKT_MAXBUF_SIZE),
|
||||
|
Reference in New Issue
Block a user