Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264052
b: refs/heads/master
c: e03f33a
h: refs/heads/master
v: v3
  • Loading branch information
Francois Romieu committed Sep 17, 2011
1 parent 4b8cdb9 commit 198c76f
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 106633897e086e1b47126996aac1a427eb80eb1b
refs/heads/master: e03f33af79f0772156e1a1a1e36bdddf8012b2e4
7 changes: 6 additions & 1 deletion trunk/drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ enum rtl_register_content {
RxOK = 0x0001,

/* RxStatusDesc */
RxBOVF = (1 << 24),
RxFOVF = (1 << 23),
RxRWT = (1 << 22),
RxRES = (1 << 21),
Expand Down Expand Up @@ -682,6 +683,7 @@ struct rtl8169_private {
struct mii_if_info mii;
struct rtl8169_counters counters;
u32 saved_wolopts;
u32 opts1_mask;

struct rtl_fw {
const struct firmware *fw;
Expand Down Expand Up @@ -3786,6 +3788,9 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
tp->intr_event = cfg->intr_event;
tp->napi_event = cfg->napi_event;

tp->opts1_mask = (tp->mac_version != RTL_GIGA_MAC_VER_01) ?
~(RxBOVF | RxFOVF) : ~0;

init_timer(&tp->timer);
tp->timer.data = (unsigned long) dev;
tp->timer.function = rtl8169_phy_timer;
Expand Down Expand Up @@ -5324,7 +5329,7 @@ static int rtl8169_rx_interrupt(struct net_device *dev,
u32 status;

rmb();
status = le32_to_cpu(desc->opts1);
status = le32_to_cpu(desc->opts1) & tp->opts1_mask;

if (status & DescOwn)
break;
Expand Down

0 comments on commit 198c76f

Please sign in to comment.