Skip to content

Commit 8a10944

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull networking fixes from David Miller: 1) OpenVswitch's lookup_datapath() returns error pointers, so don't check against NULL. From Jiri Pirko. 2) pfkey_compile_policy() code path tries to do a GFP_KERNEL allocation under RCU locks, fix by using GFP_ATOMIC when necessary. From Nikolay Aleksandrov. 3) phy_suspend() indirectly passes uninitialized data into the ethtool get wake-on-land implementations. Fix from Sebastian Hesselbarth. 4) CPSW driver unregisters CPTS twice, fix from Benedikt Spranger. 5) If SKB allocation of reply packet fails, vxlan's arp_reduce() defers a NULL pointer. Fix from David Stevens. 6) IPV6 neigh handling in vxlan doesn't validate the destination address properly, and it builds a packet with the src and dst reversed. Fix also from David Stevens. 7) Fix spinlock recursion during subscription failures in TIPC stack, from Erik Hugne. 8) Revert buggy conversion of davinci_emac to devm_request_irq, from Chrstian Riesch. 9) Wrong flags passed into forwarding database netlink notifications, from Nicolas Dichtel. 10) The netpoll neighbour soliciation handler checks wrong ethertype, needs to be ETH_P_IPV6 rather than ETH_P_ARP. Fix from Li RongQing. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (34 commits) tipc: fix spinlock recursion bug for failed subscriptions vxlan: fix nonfunctional neigh_reduce() net: davinci_emac: Fix rollback of emac_dev_open() net: davinci_emac: Replace devm_request_irq with request_irq netpoll: fix the skb check in pkt_is_ns net: micrel : ks8851-ml: add vdd-supply support ip6mr: fix mfc notification flags ipmr: fix mfc notification flags rtnetlink: fix fdb notification flags tcp: syncookies: do not use getnstimeofday() netlink: fix setsockopt in mmap examples in documentation openvswitch: Correctly report flow used times for first 5 minutes after boot. via-rhine: Disable device in error path ATHEROS-ATL1E: Convert iounmap to pci_iounmap vxlan: fix potential NULL dereference in arp_reduce() cnic: Update version to 2.5.20 and copyright year. cnic,bnx2i,bnx2fc: Fix inconsistent use of page size cnic: Use proper ulp_ops for per device operations. net: cdc_ncm: fix control message ordering ipv6: ip6_append_data_mtu do not handle the mtu of the second fragment properly ...
2 parents 774868c + a5d0e7c commit 8a10944

File tree

47 files changed

+508
-306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+508
-306
lines changed

Documentation/devicetree/bindings/net/micrel-ks8851.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ Required properties:
77

88
Optional properties:
99
- local-mac-address : Ethernet mac address to use
10+
- vdd-supply: supply for Ethernet mac

Documentation/networking/netlink_mmap.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ Ring setup:
226226
void *rx_ring, *tx_ring;
227227

228228
/* Configure ring parameters */
229-
if (setsockopt(fd, NETLINK_RX_RING, &req, sizeof(req)) < 0)
229+
if (setsockopt(fd, SOL_NETLINK, NETLINK_RX_RING, &req, sizeof(req)) < 0)
230230
exit(1);
231-
if (setsockopt(fd, NETLINK_TX_RING, &req, sizeof(req)) < 0)
231+
if (setsockopt(fd, SOL_NETLINK, NETLINK_TX_RING, &req, sizeof(req)) < 0)
232232
exit(1)
233233

234234
/* Calculate size of each individual ring */

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4545,6 +4545,7 @@ M: Greg Rose <[email protected]>
45454545
M: Alex Duyck <[email protected]>
45464546
M: John Ronciak <[email protected]>
45474547
M: Mitch Williams <[email protected]>
4548+
M: Linux NICS <[email protected]>
45484549
45494550
W: http://www.intel.com/support/feedback.htm
45504551
W: http://e1000.sourceforge.net/

drivers/isdn/capi/Kconfig

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ config CAPI_TRACE
1616
This will increase the size of the kernelcapi module by 20 KB.
1717
If unsure, say Y.
1818

19+
config ISDN_CAPI_CAPI20
20+
tristate "CAPI2.0 /dev/capi support"
21+
help
22+
This option will provide the CAPI 2.0 interface to userspace
23+
applications via /dev/capi20. Applications should use the
24+
standardized libcapi20 to access this functionality. You should say
25+
Y/M here.
26+
1927
config ISDN_CAPI_MIDDLEWARE
2028
bool "CAPI2.0 Middleware support"
21-
depends on TTY
29+
depends on ISDN_CAPI_CAPI20 && TTY
2230
help
2331
This option will enhance the capabilities of the /dev/capi20
2432
interface. It will provide a means of moving a data connection,
2533
established via the usual /dev/capi20 interface to a special tty
2634
device. If you want to use pppd with pppdcapiplugin to dial up to
2735
your ISP, say Y here.
2836

29-
config ISDN_CAPI_CAPI20
30-
tristate "CAPI2.0 /dev/capi support"
31-
help
32-
This option will provide the CAPI 2.0 interface to userspace
33-
applications via /dev/capi20. Applications should use the
34-
standardized libcapi20 to access this functionality. You should say
35-
Y/M here.
36-
3737
config ISDN_CAPI_CAPIDRV
3838
tristate "CAPI2.0 capidrv interface support"
3939
depends on ISDN_I4L

drivers/net/ethernet/atheros/alx/main.c

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,19 +1248,13 @@ static int alx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
12481248
* shared register for the high 32 bits, so only a single, aligned,
12491249
* 4 GB physical address range can be used for descriptors.
12501250
*/
1251-
if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)) &&
1252-
!dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64))) {
1251+
if (!dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64))) {
12531252
dev_dbg(&pdev->dev, "DMA to 64-BIT addresses\n");
12541253
} else {
1255-
err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
1254+
err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
12561255
if (err) {
1257-
err = dma_set_coherent_mask(&pdev->dev,
1258-
DMA_BIT_MASK(32));
1259-
if (err) {
1260-
dev_err(&pdev->dev,
1261-
"No usable DMA config, aborting\n");
1262-
goto out_pci_disable;
1263-
}
1256+
dev_err(&pdev->dev, "No usable DMA config, aborting\n");
1257+
goto out_pci_disable;
12641258
}
12651259
}
12661260

drivers/net/ethernet/atheros/atl1e/atl1e_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,7 +2436,7 @@ static int atl1e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
24362436
err_register:
24372437
err_sw_init:
24382438
err_eeprom:
2439-
iounmap(adapter->hw.hw_addr);
2439+
pci_iounmap(pdev, adapter->hw.hw_addr);
24402440
err_init_netdev:
24412441
err_ioremap:
24422442
free_netdev(netdev);
@@ -2474,7 +2474,7 @@ static void atl1e_remove(struct pci_dev *pdev)
24742474
unregister_netdev(netdev);
24752475
atl1e_free_ring_resources(adapter);
24762476
atl1e_force_ps(&adapter->hw);
2477-
iounmap(adapter->hw.hw_addr);
2477+
pci_iounmap(pdev, adapter->hw.hw_addr);
24782478
pci_release_regions(pdev);
24792479
free_netdev(netdev);
24802480
pci_disable_device(pdev);

0 commit comments

Comments
 (0)