Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290452
b: refs/heads/master
c: 79d0c1d
h: refs/heads/master
v: v3
  • Loading branch information
Ben Greear authored and Jeff Kirsher committed Feb 24, 2012
1 parent 3a6e253 commit f2a66ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6bbe021d405fff46b64a08dca51b06897b897a67
refs/heads/master: 79d0c1d26e1eac0dc5b201e66b65cc5e4e706743
6 changes: 5 additions & 1 deletion trunk/drivers/net/ethernet/realtek/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -4186,6 +4186,7 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
dev->hw_features &= ~NETIF_F_HW_VLAN_RX;

dev->hw_features |= NETIF_F_RXALL;
dev->hw_features |= NETIF_F_RXFCS;

tp->hw_start = cfg->hw_start;
tp->event_slow = cfg->event_slow;
Expand Down Expand Up @@ -5773,7 +5774,10 @@ static int rtl_rx(struct net_device *dev, struct rtl8169_private *tp, u32 budget

process_pkt:
addr = le64_to_cpu(desc->addr);
pkt_size = (status & 0x00003fff) - 4;
if (likely(!(dev->features & NETIF_F_RXFCS)))
pkt_size = (status & 0x00003fff) - 4;
else
pkt_size = status & 0x00003fff;

/*
* The driver does not support incoming fragmented
Expand Down

0 comments on commit f2a66ea

Please sign in to comment.