diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 712231f..5eaccbb 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c @@ -4622,6 +4622,11 @@ static int rtl8169_rx_interrupt(struct net_device *dev, return count; } +static struct { + u16 status[4]; + u16 idx; +} x = { { 0 }, 0 }; + static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance) { struct net_device *dev = dev_instance; @@ -4637,6 +4642,12 @@ static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance) while (status && status != 0xffff) { handled = 1; + x.status[x.idx++ % 4] = status; + if (net_ratelimit()) { + printk(KERN_INFO "%04x %04x %04x %04x\n", + x.status[0], x.status[1], + x.status[2], x.status[3]); + } /* Handle all of the error cases first. These will reset * the chip, so just exit the loop. */ -- 1.7.3.4