diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-21 00:04:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-21 00:04:47 -0400 |
commit | 3b59bf081622b6446db77ad06c93fe23677bc533 (patch) | |
tree | 3f4bb5a27c90cc86994a1f6d3c53fbf9208003cb /drivers/net/wan | |
parent | e45836fafe157df137a837093037f741ad8f4c90 (diff) | |
parent | bbdb32cb5b73597386913d052165423b9d736145 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking merge from David Miller:
"1) Move ixgbe driver over to purely page based buffering on receive.
From Alexander Duyck.
2) Add receive packet steering support to e1000e, from Bruce Allan.
3) Convert TCP MD5 support over to RCU, from Eric Dumazet.
4) Reduce cpu usage in handling out-of-order TCP packets on modern
systems, also from Eric Dumazet.
5) Support the IP{,V6}_UNICAST_IF socket options, making the wine
folks happy, from Erich Hoover.
6) Support VLAN trunking from guests in hyperv driver, from Haiyang
Zhang.
7) Support byte-queue-limtis in r8169, from Igor Maravic.
8) Outline code intended for IP_RECVTOS in IP_PKTOPTIONS existed but
was never properly implemented, Jiri Benc fixed that.
9) 64-bit statistics support in r8169 and 8139too, from Junchang Wang.
10) Support kernel side dump filtering by ctmark in netfilter
ctnetlink, from Pablo Neira Ayuso.
11) Support byte-queue-limits in gianfar driver, from Paul Gortmaker.
12) Add new peek socket options to assist with socket migration, from
Pavel Emelyanov.
13) Add sch_plug packet scheduler whose queue is controlled by
userland daemons using explicit freeze and release commands. From
Shriram Rajagopalan.
14) Fix FCOE checksum offload handling on transmit, from Yi Zou."
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1846 commits)
Fix pppol2tp getsockname()
Remove printk from rds_sendmsg
ipv6: fix incorrent ipv6 ipsec packet fragment
cpsw: Hook up default ndo_change_mtu.
net: qmi_wwan: fix build error due to cdc-wdm dependecy
netdev: driver: ethernet: Add TI CPSW driver
netdev: driver: ethernet: add cpsw address lookup engine support
phy: add am79c874 PHY support
mlx4_core: fix race on comm channel
bonding: send igmp report for its master
fs_enet: Add MPC5125 FEC support and PHY interface selection
net: bpf_jit: fix BPF_S_LDX_B_MSH compilation
net: update the usage of CHECKSUM_UNNECESSARY
fcoe: use CHECKSUM_UNNECESSARY instead of CHECKSUM_PARTIAL on tx
net: do not do gso for CHECKSUM_UNNECESSARY in netif_needs_gso
ixgbe: Fix issues with SR-IOV loopback when flow control is disabled
net/hyperv: Fix the code handling tx busy
ixgbe: fix namespace issues when FCoE/DCB is not enabled
rtlwifi: Remove unused ETH_ADDR_LEN defines
igbvf: Use ETH_ALEN
...
Fix up fairly trivial conflicts in drivers/isdn/gigaset/interface.c and
drivers/net/usb/{Kconfig,qmi_wwan.c} as per David.
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/c101.c | 4 | ||||
-rw-r--r-- | drivers/net/wan/dscc4.c | 8 | ||||
-rw-r--r-- | drivers/net/wan/hdlc_fr.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/hdlc_raw_eth.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/lmc/lmc_main.c | 1 | ||||
-rw-r--r-- | drivers/net/wan/n2.c | 4 | ||||
-rw-r--r-- | drivers/net/wan/pc300too.c | 1 | ||||
-rw-r--r-- | drivers/net/wan/pci200syn.c | 1 | ||||
-rw-r--r-- | drivers/net/wan/wanxl.c | 1 | ||||
-rw-r--r-- | drivers/net/wan/x25_asy.c | 4 |
10 files changed, 7 insertions, 21 deletions
diff --git a/drivers/net/wan/c101.c b/drivers/net/wan/c101.c index 54f995f4a5a3..09a50751763b 100644 --- a/drivers/net/wan/c101.c +++ b/drivers/net/wan/c101.c | |||
@@ -325,10 +325,8 @@ static int __init c101_run(unsigned long irq, unsigned long winbase) | |||
325 | } | 325 | } |
326 | 326 | ||
327 | card = kzalloc(sizeof(card_t), GFP_KERNEL); | 327 | card = kzalloc(sizeof(card_t), GFP_KERNEL); |
328 | if (card == NULL) { | 328 | if (card == NULL) |
329 | pr_err("unable to allocate memory\n"); | ||
330 | return -ENOBUFS; | 329 | return -ENOBUFS; |
331 | } | ||
332 | 330 | ||
333 | card->dev = alloc_hdlcdev(card); | 331 | card->dev = alloc_hdlcdev(card); |
334 | if (!card->dev) { | 332 | if (!card->dev) { |
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c index 058e1697c174..fe8d060d8fff 100644 --- a/drivers/net/wan/dscc4.c +++ b/drivers/net/wan/dscc4.c | |||
@@ -903,10 +903,8 @@ static int dscc4_found1(struct pci_dev *pdev, void __iomem *ioaddr) | |||
903 | int i, ret = -ENOMEM; | 903 | int i, ret = -ENOMEM; |
904 | 904 | ||
905 | root = kcalloc(dev_per_card, sizeof(*root), GFP_KERNEL); | 905 | root = kcalloc(dev_per_card, sizeof(*root), GFP_KERNEL); |
906 | if (!root) { | 906 | if (!root) |
907 | pr_err("can't allocate data\n"); | ||
908 | goto err_out; | 907 | goto err_out; |
909 | } | ||
910 | 908 | ||
911 | for (i = 0; i < dev_per_card; i++) { | 909 | for (i = 0; i < dev_per_card; i++) { |
912 | root[i].dev = alloc_hdlcdev(root + i); | 910 | root[i].dev = alloc_hdlcdev(root + i); |
@@ -915,10 +913,8 @@ static int dscc4_found1(struct pci_dev *pdev, void __iomem *ioaddr) | |||
915 | } | 913 | } |
916 | 914 | ||
917 | ppriv = kzalloc(sizeof(*ppriv), GFP_KERNEL); | 915 | ppriv = kzalloc(sizeof(*ppriv), GFP_KERNEL); |
918 | if (!ppriv) { | 916 | if (!ppriv) |
919 | pr_err("can't allocate private data\n"); | ||
920 | goto err_free_dev; | 917 | goto err_free_dev; |
921 | } | ||
922 | 918 | ||
923 | ppriv->root = root; | 919 | ppriv->root = root; |
924 | spin_lock_init(&ppriv->lock); | 920 | spin_lock_init(&ppriv->lock); |
diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index eb2028187fbe..7c6cb4f31798 100644 --- a/drivers/net/wan/hdlc_fr.c +++ b/drivers/net/wan/hdlc_fr.c | |||
@@ -1087,7 +1087,7 @@ static int fr_add_pvc(struct net_device *frad, unsigned int dlci, int type) | |||
1087 | } | 1087 | } |
1088 | 1088 | ||
1089 | if (type == ARPHRD_ETHER) | 1089 | if (type == ARPHRD_ETHER) |
1090 | random_ether_addr(dev->dev_addr); | 1090 | eth_hw_addr_random(dev); |
1091 | else { | 1091 | else { |
1092 | *(__be16*)dev->dev_addr = htons(dlci); | 1092 | *(__be16*)dev->dev_addr = htons(dlci); |
1093 | dlci_to_q922(dev->broadcast, dlci); | 1093 | dlci_to_q922(dev->broadcast, dlci); |
diff --git a/drivers/net/wan/hdlc_raw_eth.c b/drivers/net/wan/hdlc_raw_eth.c index 05c9b0b96239..3ab72b3082de 100644 --- a/drivers/net/wan/hdlc_raw_eth.c +++ b/drivers/net/wan/hdlc_raw_eth.c | |||
@@ -101,7 +101,7 @@ static int raw_eth_ioctl(struct net_device *dev, struct ifreq *ifr) | |||
101 | old_qlen = dev->tx_queue_len; | 101 | old_qlen = dev->tx_queue_len; |
102 | ether_setup(dev); | 102 | ether_setup(dev); |
103 | dev->tx_queue_len = old_qlen; | 103 | dev->tx_queue_len = old_qlen; |
104 | random_ether_addr(dev->dev_addr); | 104 | eth_hw_addr_random(dev); |
105 | netif_dormant_off(dev); | 105 | netif_dormant_off(dev); |
106 | return 0; | 106 | return 0; |
107 | } | 107 | } |
diff --git a/drivers/net/wan/lmc/lmc_main.c b/drivers/net/wan/lmc/lmc_main.c index b7f2358d23be..76a8a4a522e9 100644 --- a/drivers/net/wan/lmc/lmc_main.c +++ b/drivers/net/wan/lmc/lmc_main.c | |||
@@ -497,7 +497,6 @@ int lmc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/ | |||
497 | 497 | ||
498 | data = kmalloc(xc.len, GFP_KERNEL); | 498 | data = kmalloc(xc.len, GFP_KERNEL); |
499 | if (!data) { | 499 | if (!data) { |
500 | printk(KERN_WARNING "%s: Failed to allocate memory for copy\n", dev->name); | ||
501 | ret = -ENOMEM; | 500 | ret = -ENOMEM; |
502 | break; | 501 | break; |
503 | } | 502 | } |
diff --git a/drivers/net/wan/n2.c b/drivers/net/wan/n2.c index 5129ad514d26..315bf09d6a20 100644 --- a/drivers/net/wan/n2.c +++ b/drivers/net/wan/n2.c | |||
@@ -358,10 +358,8 @@ static int __init n2_run(unsigned long io, unsigned long irq, | |||
358 | } | 358 | } |
359 | 359 | ||
360 | card = kzalloc(sizeof(card_t), GFP_KERNEL); | 360 | card = kzalloc(sizeof(card_t), GFP_KERNEL); |
361 | if (card == NULL) { | 361 | if (card == NULL) |
362 | pr_err("unable to allocate memory\n"); | ||
363 | return -ENOBUFS; | 362 | return -ENOBUFS; |
364 | } | ||
365 | 363 | ||
366 | card->ports[0].dev = alloc_hdlcdev(&card->ports[0]); | 364 | card->ports[0].dev = alloc_hdlcdev(&card->ports[0]); |
367 | card->ports[1].dev = alloc_hdlcdev(&card->ports[1]); | 365 | card->ports[1].dev = alloc_hdlcdev(&card->ports[1]); |
diff --git a/drivers/net/wan/pc300too.c b/drivers/net/wan/pc300too.c index c49c1b3c7aad..5fe246e060d7 100644 --- a/drivers/net/wan/pc300too.c +++ b/drivers/net/wan/pc300too.c | |||
@@ -320,7 +320,6 @@ static int __devinit pc300_pci_init_one(struct pci_dev *pdev, | |||
320 | 320 | ||
321 | card = kzalloc(sizeof(card_t), GFP_KERNEL); | 321 | card = kzalloc(sizeof(card_t), GFP_KERNEL); |
322 | if (card == NULL) { | 322 | if (card == NULL) { |
323 | pr_err("unable to allocate memory\n"); | ||
324 | pci_release_regions(pdev); | 323 | pci_release_regions(pdev); |
325 | pci_disable_device(pdev); | 324 | pci_disable_device(pdev); |
326 | return -ENOBUFS; | 325 | return -ENOBUFS; |
diff --git a/drivers/net/wan/pci200syn.c b/drivers/net/wan/pci200syn.c index 1ce21163c776..9659fcaa34ed 100644 --- a/drivers/net/wan/pci200syn.c +++ b/drivers/net/wan/pci200syn.c | |||
@@ -299,7 +299,6 @@ static int __devinit pci200_pci_init_one(struct pci_dev *pdev, | |||
299 | 299 | ||
300 | card = kzalloc(sizeof(card_t), GFP_KERNEL); | 300 | card = kzalloc(sizeof(card_t), GFP_KERNEL); |
301 | if (card == NULL) { | 301 | if (card == NULL) { |
302 | pr_err("unable to allocate memory\n"); | ||
303 | pci_release_regions(pdev); | 302 | pci_release_regions(pdev); |
304 | pci_disable_device(pdev); | 303 | pci_disable_device(pdev); |
305 | return -ENOBUFS; | 304 | return -ENOBUFS; |
diff --git a/drivers/net/wan/wanxl.c b/drivers/net/wan/wanxl.c index 44b707197258..feb7541b33fb 100644 --- a/drivers/net/wan/wanxl.c +++ b/drivers/net/wan/wanxl.c | |||
@@ -604,7 +604,6 @@ static int __devinit wanxl_pci_init_one(struct pci_dev *pdev, | |||
604 | alloc_size = sizeof(card_t) + ports * sizeof(port_t); | 604 | alloc_size = sizeof(card_t) + ports * sizeof(port_t); |
605 | card = kzalloc(alloc_size, GFP_KERNEL); | 605 | card = kzalloc(alloc_size, GFP_KERNEL); |
606 | if (card == NULL) { | 606 | if (card == NULL) { |
607 | pr_err("%s: unable to allocate memory\n", pci_name(pdev)); | ||
608 | pci_release_regions(pdev); | 607 | pci_release_regions(pdev); |
609 | pci_disable_device(pdev); | 608 | pci_disable_device(pdev); |
610 | return -ENOBUFS; | 609 | return -ENOBUFS; |
diff --git a/drivers/net/wan/x25_asy.c b/drivers/net/wan/x25_asy.c index 8a10bb730d5a..e862369b4a6d 100644 --- a/drivers/net/wan/x25_asy.c +++ b/drivers/net/wan/x25_asy.c | |||
@@ -786,10 +786,8 @@ static int __init init_x25_asy(void) | |||
786 | 786 | ||
787 | x25_asy_devs = kcalloc(x25_asy_maxdev, sizeof(struct net_device *), | 787 | x25_asy_devs = kcalloc(x25_asy_maxdev, sizeof(struct net_device *), |
788 | GFP_KERNEL); | 788 | GFP_KERNEL); |
789 | if (!x25_asy_devs) { | 789 | if (!x25_asy_devs) |
790 | pr_warn("Can't allocate x25_asy_ctrls[] array! Uaargh! (-> No X.25 available)\n"); | ||
791 | return -ENOMEM; | 790 | return -ENOMEM; |
792 | } | ||
793 | 791 | ||
794 | return tty_register_ldisc(N_X25, &x25_ldisc); | 792 | return tty_register_ldisc(N_X25, &x25_ldisc); |
795 | } | 793 | } |