[TR]: Use tr_hdr() were appropriate
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
7c81fd8bfb
commit
c1a4b86e39
@@ -1607,10 +1607,12 @@ static void streamer_arb_cmd(struct net_device *dev)
|
||||
frame_data, buffer_len);
|
||||
} while (next_ptr && (buff_off = next_ptr));
|
||||
|
||||
mac_frame->dev = dev;
|
||||
mac_frame->protocol = tr_type_trans(mac_frame, dev);
|
||||
#if STREAMER_NETWORK_MONITOR
|
||||
printk(KERN_WARNING "%s: Received MAC Frame, details: \n",
|
||||
dev->name);
|
||||
mac_hdr = (struct trh_hdr *) mac_frame->data;
|
||||
mac_hdr = tr_hdr(mac_frame);
|
||||
printk(KERN_WARNING
|
||||
"%s: MAC Frame Dest. Addr: %02x:%02x:%02x:%02x:%02x:%02x \n",
|
||||
dev->name, mac_hdr->daddr[0], mac_hdr->daddr[1],
|
||||
@@ -1622,8 +1624,6 @@ static void streamer_arb_cmd(struct net_device *dev)
|
||||
mac_hdr->saddr[2], mac_hdr->saddr[3],
|
||||
mac_hdr->saddr[4], mac_hdr->saddr[5]);
|
||||
#endif
|
||||
mac_frame->dev = dev;
|
||||
mac_frame->protocol = tr_type_trans(mac_frame, dev);
|
||||
netif_rx(mac_frame);
|
||||
|
||||
/* Now tell the card we have dealt with the received frame */
|
||||
|
Reference in New Issue
Block a user