Re: kernel panics with net_rx_action on kernels >2.6.26

From: David Miller
Date: Tue Dec 16 2008 - 04:22:51 EST


From: Jarek Poplawski <jarkao2@xxxxxxxxx>
Date: Mon, 15 Dec 2008 13:35:21 +0000

> Could you try this patch, please?
...
> @@ -1503,6 +1503,11 @@ static int __netdev_rx(struct net_device *dev, int *quota)
> desc->status = 0;
> np->rx_done = (np->rx_done + 1) % DONE_Q_SIZE;
> }
> +
> + if (*quota == 0) { /* out of rx quota */
> + retcode = 1;
> + goto out;
> + }
> writew(np->rx_done, np->base + CompletionQConsumerIdx);
>
> out:

Jarek this looks good and it looks to be tested as well.

Could you formally submit this?

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html