Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c net/ipv6/ip6_tunnel.c net/ipv6/ip6_vti.c ipv6 tunnel statistic bug fixes conflicting with consolidation into generic sw per-cpu net stats. qlogic conflict between queue counting bug fix and the addition of multiple MAC address support. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
56a4342dfe
347 changed files with 3697 additions and 1791 deletions
|
@ -260,9 +260,7 @@ int netvsc_recv_callback(struct hv_device *device_obj,
|
|||
struct sk_buff *skb;
|
||||
|
||||
net = ((struct netvsc_device *)hv_get_drvdata(device_obj))->ndev;
|
||||
if (!net) {
|
||||
netdev_err(net, "got receive callback but net device"
|
||||
" not initialized yet\n");
|
||||
if (!net || net->reg_state != NETREG_REGISTERED) {
|
||||
packet->status = NVSP_STAT_FAIL;
|
||||
return 0;
|
||||
}
|
||||
|
@ -434,19 +432,11 @@ static int netvsc_probe(struct hv_device *dev,
|
|||
SET_ETHTOOL_OPS(net, ðtool_ops);
|
||||
SET_NETDEV_DEV(net, &dev->device);
|
||||
|
||||
ret = register_netdev(net);
|
||||
if (ret != 0) {
|
||||
pr_err("Unable to register netdev.\n");
|
||||
free_netdev(net);
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* Notify the netvsc driver of the new device */
|
||||
device_info.ring_size = ring_size;
|
||||
ret = rndis_filter_device_add(dev, &device_info);
|
||||
if (ret != 0) {
|
||||
netdev_err(net, "unable to add netvsc device (ret %d)\n", ret);
|
||||
unregister_netdev(net);
|
||||
free_netdev(net);
|
||||
hv_set_drvdata(dev, NULL);
|
||||
return ret;
|
||||
|
@ -455,7 +445,13 @@ static int netvsc_probe(struct hv_device *dev,
|
|||
|
||||
netif_carrier_on(net);
|
||||
|
||||
out:
|
||||
ret = register_netdev(net);
|
||||
if (ret != 0) {
|
||||
pr_err("Unable to register netdev.\n");
|
||||
rndis_filter_device_remove(dev);
|
||||
free_netdev(net);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue