net: ibmveth: force reconfiguring checksum settings on startup
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Thu, 28 Apr 2011 01:59:15 +0000 (11:59 +1000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2011 20:45:41 +0000 (13:45 -0700)
Commit b9367bf3ee6d ("net: ibmveth: convert to hw_features") accidentally
removed call to ibmveth_set_csum_offload() in ibmveth_probe(). Put the
call back where it was, but with additional error checking provided
by ibmveth_set_features().

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
[sfr: dev -> netdev]
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ibmveth.c

index 4855f1f..be3fe71 100644 (file)
@@ -1397,6 +1397,8 @@ static int __devinit ibmveth_probe(struct vio_dev *dev,
 
        netdev_dbg(netdev, "registering netdev...\n");
 
+       ibmveth_set_features(netdev, netdev->features);
+
        rc = register_netdev(netdev);
 
        if (rc) {