Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360791
b: refs/heads/master
c: 02e7112
h: refs/heads/master
i:
  360789: b0a0d16
  360787: 85ba583
  360783: 159e91f
v: v3
  • Loading branch information
Hauke Mehrtens authored and David S. Miller committed Feb 28, 2013
1 parent 7947c1d commit c0c91d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2a431915d19893f047e0dd149d0c1b9d2a0b960
refs/heads/master: 02e711276d444343656c25b91b42996c62726712
4 changes: 4 additions & 0 deletions trunk/drivers/net/ethernet/broadcom/bgmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,16 @@ static int bgmac_dma_rx_read(struct bgmac *bgmac, struct bgmac_dma_ring *ring,
bgmac_err(bgmac, "Found poisoned packet at slot %d, DMA issue!\n",
ring->start);
} else {
/* Omit CRC. */
len -= ETH_FCS_LEN;

new_skb = netdev_alloc_skb_ip_align(bgmac->net_dev, len);
if (new_skb) {
skb_put(new_skb, len);
skb_copy_from_linear_data_offset(skb, BGMAC_RX_FRAME_OFFSET,
new_skb->data,
len);
skb_checksum_none_assert(skb);
new_skb->protocol =
eth_type_trans(new_skb, bgmac->net_dev);
netif_receive_skb(new_skb);
Expand Down

0 comments on commit c0c91d4

Please sign in to comment.