Re: Regression: myri10ge driver in 2.6.26

Brice Goglin
2008-07-23T20:17:57Z

Lukas Hejtmanek wrote:
> Hello,
>
> On Wed, Jul 23, 2008 at 10:17:54AM +0200, Brice Goglin wrote:
>
>> Thanks for testing, I just sent the patch to stable@
>>
>
> it seems, I got another problem with the driver from 2.6.26:
>

Does this help ?

--- linux.old/drivers/net/myri10ge/myri10ge.c 2008-07-23 17:13:20.000000000 +0200
+++ linux/drivers/net/myri10ge/myri10ge.c 2008-07-23 22:07:58.000000000 +0200
@@ -3126,6 +3126,8 @@ static int myri10ge_probe(struct pci_dev

mgp = netdev_priv(netdev);
mgp->dev = netdev;
+ mgp->ss.mgp = mgp;
+ mgp->ss.dev = mgp->dev;
netif_napi_add(netdev, &mgp->ss.napi, myri10ge_poll, myri10ge_napi_weight);
mgp->pdev = pdev;
mgp->csum_flag = MXGEFW_FLAGS_CKSUM;