[PATCH net-next] tcp/dccp: add SLAB_DESTROY_BY_RCU flag for request sockets

2015-10-03 Thread Eric Dumazet
From: Eric Dumazet Before letting request sockets being put in TCP/DCCP regular ehash table, we need to add either : - SLAB_DESTROY_BY_RCU flag to their kmem_cache - add RCU grace period before freeing them. Since we carefully respected the SLAB_DESTROY_BY_RCU protocol

Re: [PATCH 1/3] net: dsa: Use devm_ prefixed allocations

2015-10-03 Thread Neil Armstrong
On 10/03/2015 02:39 PM, Felix Fietkau wrote: > On 2015-10-02 15:30, Neil Armstrong wrote: >> On 10/02/2015 03:29 PM, Sergei Shtylyov wrote: >>> On 10/2/2015 1:48 PM, Neil Armstrong wrote: >>> To simplify and prevent memory leakage when unbinding, use the devm_ memory allocation calls.

[PATCH 05/15] cx88: use pci_set_dma_mask insted of pci_dma_supported

2015-10-03 Thread Christoph Hellwig
This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig --- drivers/media/pci/cx88/cx88-alsa.c | 2 +- drivers/media/pci/cx88/cx88-mpeg.c | 2 +- drivers/media/pci/cx88/cx88-video.c | 2 +- 3 files changed, 3

[PATCH 03/15] saa7164: use pci_set_dma_mask insted of pci_dma_supported

2015-10-03 Thread Christoph Hellwig
This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig --- drivers/media/pci/saa7164/saa7164-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/saa7164/saa7164-core.c

[PATCH 02/15] tw68-core: use pci_set_dma_mask insted of pci_dma_supported

2015-10-03 Thread Christoph Hellwig
This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig --- drivers/media/pci/tw68/tw68-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/tw68/tw68-core.c

[PATCH 04/15] saa7134: use pci_set_dma_mask insted of pci_dma_supported

2015-10-03 Thread Christoph Hellwig
This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig --- drivers/media/pci/saa7134/saa7134-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/saa7134/saa7134-core.c

remove dma_supported and pci_dma_supported as public APIs

2015-10-03 Thread Christoph Hellwig
All driver should be using dma_set_mask / pci_set_dma_mask to try to set the dma mask instead of just querying it. Without that some iommu implementations may not work. pci_dma_supported is removed entirely, but dma_supported stays for dma_ops implementations for now. -- To unsubscribe from

Re: [PATCH net-next v3 2/2] net: Microchip encx24j600 driver

2015-10-03 Thread kbuild test robot
Hi Jon, [auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore] config: mn10300-allmodconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x

[PATCH 01/15] pcnet32: use pci_set_dma_mask insted of pci_dma_supported

2015-10-03 Thread Christoph Hellwig
This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/amd/pcnet32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/amd/pcnet32.c

[PATCH 18/23] spear13xx_pcie_gadget: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/misc/spear13xx_pcie_gadget.c | 216 --- 1 file changed, 71 insertions(+), 145 deletions(-) diff --git a/drivers/misc/spear13xx_pcie_gadget.c b/drivers/misc/spear13xx_pcie_gadget.c index b8374cd..ee120dc

[PATCH 07/23] usb-gadget/f_loopback: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_loopback.c | 31 --- 1 file

[PATCH 12/23] usb-gadget/f_uac1: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_uac1.c | 39 +++- 1 file

[PATCH 09/23] usb-gadget/f_printer: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_printer.c | 30 -- 1 file changed,

[PATCH 23/23] configfs: remove old API

2015-10-03 Thread Christoph Hellwig
Remove the old show_attribute and store_attribute methods and update the documentation. Also replace the two C samples with a single new one in the proper samples directory where people expect to find it. Signed-off-by: Christoph Hellwig --- Documentation/filesystems/Makefile

[PATCH 17/23] dlm: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: David Teigland

[PATCH 13/23] usb-gadget/f_uac2: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_uac2.c | 28 +++- 1 file changed, 11

[PATCH 21/23] ocfs2/cluster: move locking into attribute store methods

2015-10-03 Thread Christoph Hellwig
The test and separate set bit scheme was racy to start with, so move to do a test_and_set_bit after doing the earlier error checks inside the actual store methods. Also remove the locking for the local attribute which already has a different scheme to synchronize. Signed-off-by: Christoph

[PATCH 05/23] usb-gadget/f_acm: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_acm.c | 26 -- 1 file changed, 4

[PATCH 10/23] usb-gadget/f_sourcesink: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_sourcesink.c | 83 +- 1 file

Dear: Account User

2015-10-03 Thread Helpdesk
Dear: Account User, This message is from the System Administrator support center. Be informed that your E-mail account has exceeded the storage limit set by your administrator/database, you are currently running out of context and you may not be able to send or receive some new mail until you

[PATCH 11/23] usb-gadget/f_mass_storage: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_mass_storage.c | 119 +++ 1 file

[PATCH 14/15] pci: remove pci_dma_supported

2015-10-03 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/parisc/ccio-dma.c| 2 -- include/asm-generic/pci-dma-compat.h | 6 -- 2 files changed, 8 deletions(-) diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c index 957b421..8e11fb2 100644 ---

[PATCH 15/15] dma: remove external references to dma_supported

2015-10-03 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- Documentation/DMA-API.txt | 13 - drivers/usb/host/ehci-hcd.c | 2 +- drivers/usb/host/fotg210-hcd.c | 2 +- drivers/usb/host/fusbh200-hcd.c | 2 +- drivers/usb/host/oxu210hp-hcd.c | 2 +- 5 files changed, 4

Re: [PATCH 1/3] net: dsa: Use devm_ prefixed allocations

2015-10-03 Thread Felix Fietkau
On 2015-10-02 15:30, Neil Armstrong wrote: > On 10/02/2015 03:29 PM, Sergei Shtylyov wrote: >> On 10/2/2015 1:48 PM, Neil Armstrong wrote: >> >>> To simplify and prevent memory leakage when unbinding, use >>> the devm_ memory allocation calls. >>> >>> Tested-by: Andrew Lunn >>>

[PATCH 02/23] usb-gadget: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/configfs.c | 295 ++--

Re: [PATCH v2 1/5] net: dsa: add missing kfree on remove

2015-10-03 Thread Sergei Shtylyov
Hello. On 10/3/2015 5:25 PM, Neil Armstrong wrote: To prevent memory leakage on unbinding, add missing kfree calls. Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/dsa/dsa.c

Re: [PATCH net-next 0/4] ravb: Add support for r8a7795 SoC

2015-10-03 Thread David Miller
From: Simon Horman Date: Wed, 30 Sep 2015 15:15:51 +0900 > please consider this series for net-next. > It enhances the ravb driver to support the r8a7795 SoC. Series applied, thanks Simon. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the

Re: [net-next 00/17][pull request] Intel Wired LAN Driver Updates 2015-09-30

2015-10-03 Thread David Miller
From: Jeff Kirsher Date: Wed, 30 Sep 2015 05:52:24 -0700 > This series contains updates to i40e and i40evf only. Pulled, thanks Jeff. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More

Re: [PATCH net-next 00/17] tcp/dccp: lockless listener

2015-10-03 Thread Eric Dumazet
On Sat, 2015-10-03 at 04:48 -0700, David Miller wrote: > This looks amazing, series applied, thanks Eric! Thanks David. While splitting my patches, it seems I somehow missed one change, adding SLAB_DESTROY_BY_RCU flag for request kmem_cache. I will send the patch in few minutes. -- To

[PATCH 22/23] ocfs2/cluster: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/ocfs2/cluster/heartbeat.c | 205 +++ fs/ocfs2/cluster/nodemanager.c | 241 ++--- 2 files changed, 100 insertions(+), 346 deletions(-) diff --git

[PATCH 20/23] netconsole: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
Note that the old code actually used the store_attributes method to do locking, this is moved into the individual methods. Signed-off-by: Christoph Hellwig --- drivers/net/netconsole.c | 271 +++ 1 file changed, 132 insertions(+), 139

[PATCH v2 5/5] net: dsa: exit probe if no switch were found

2015-10-03 Thread Neil Armstrong
If no switch were found in dsa_setup_dst, return -ENODEV and exit the dsa_probe cleanly. Tested-by: Andrew Lunn Tested-by: Florian Fainelli Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 19 +++ 1 file changed,

[PATCH v2 2/5] net: dsa: add missing dsa_switch mdiobus remove

2015-10-03 Thread Neil Armstrong
To prevent memory leakage on unbinding, add missing mdiobus unregister and free calls. Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 12cec40..91918a3 100644 --- a/net/dsa/dsa.c

[PATCH v2 4/5] net: dsa: switch to devm_ calls and remove kfree calls

2015-10-03 Thread Neil Armstrong
Now the kfree calls exists in the the remove functions, remove them in all places except the of_probe functions and replace allocation calls with their devm_ counterparts. Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 17 + 1 file changed, 5

[PATCH v2 1/5] net: dsa: add missing kfree on remove

2015-10-03 Thread Neil Armstrong
To prevent memory leakage on unbinding, add missing kfree calls. Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index c59fa5d..12cec40 100644 --- a/net/dsa/dsa.c +++

[PATCH 03/23] usb-gadget/uvc: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
UVC is a little different from other configfs consumers in that it wants different function and field names from the exposed attribute name, so it keeps it's local macros to define attributes instead of using the common ones. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej

[PATCH 15/23] usb-gadget/f_phonet: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_phonet.c | 25 - 1 file changed, 4

[PATCH 08/23] usb-gadget/f_midi: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_midi.c | 37 1 file

[PATCH 16/23] usb-gadget/f_serial: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_serial.c | 26 -- 1 file changed, 4

[PATCH 14/23] usb-gadget/f_obex: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_obex.c | 26 -- 1 file changed, 4

[PATCH 01/23] configfs: add show and store methods to struct configfs_attribute

2015-10-03 Thread Christoph Hellwig
Add methods to struct configfs_attribute to directly show and store attributes without adding boilerplate code to every user. In addition to the methods this also adds 3 helper macros to define read/write, read-only and write-only attributes with a single line of code. Signed-off-by: Christoph

simplify configfs attributes V2

2015-10-03 Thread Christoph Hellwig
This series consolidates the code to implement configfs attributes by providing the ->show and ->store method in common code and using container_of in the methods to access the containing structure. This reduces source and binary size of configfs consumers a lot. Changes since V1: - a couple

[PATCH 04/23] usb-gadget/f_hid: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_hid.c | 34 ++ 1 file changed,

[PATCH 06/23] usb-gadget/ether: use per-attribute show and store methods

2015-10-03 Thread Christoph Hellwig
To simplify the configfs interface and remove boilerplate code that also causes binary bloat. Signed-off-by: Christoph Hellwig Reviewed-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/f_ecm.c| 8 ++---

[PATCH v2 3/5] net: dsa: complete dsa_switch_destroy

2015-10-03 Thread Neil Armstrong
When unbinding dsa, complete the dsa_switch_destroy to unregister the fixed link phy then cleanly unregister and destroy the net devices. Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 36 1 file changed, 36 insertions(+) diff

[PATCH v2 0/5] net: dsa: complete and fix the dsa unbinding

2015-10-03 Thread Neil Armstrong
In order to cleanly unbind the dsa core, either as a module removal, or a platform device unbind, switch the allocation the their devm_ counterparts and complete the destroy functions. First, the missing kfree were added, the remove function were completed then kfree were removed in favor to

Re: [PATCH v2 1/5] net: dsa: add missing kfree on remove

2015-10-03 Thread Neil Armstrong
On 10/03/2015 04:33 PM, Sergei Shtylyov wrote: > Hello. > > On 10/3/2015 5:25 PM, Neil Armstrong wrote: > >> To prevent memory leakage on unbinding, add missing kfree calls. >> >> Signed-off-by: Neil Armstrong >> --- >> net/dsa/dsa.c | 5 - >> 1 file changed, 4

[PATCH 10/15] nouveau: don't call pci_dma_supported

2015-10-03 Thread Christoph Hellwig
Just try to set a 64-bit DMA mask first and retry with the smaller dma_mask if dma_set_mask failed. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/nouveau/nouveau_ttm.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH 13/15] usbnet: remove ifdefed out call to dma_supported

2015-10-03 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/net/usb/usbnet.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index b4cf107..9497d51 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -1661,12 +1661,6

[PATCH 08/15] netup_unidvb: use pci_set_dma_mask insted of pci_dma_supported

2015-10-03 Thread Christoph Hellwig
This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig --- drivers/media/pci/netup_unidvb/netup_unidvb_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 11/15] sfc: don't call dma_supported

2015-10-03 Thread Christoph Hellwig
dma_set_mask already checks for a supported DMA mask before updating it, the call to dma_supported is redundant. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/sfc/efx.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH 07/15] cx23885: use pci_set_dma_mask insted of pci_dma_supported

2015-10-03 Thread Christoph Hellwig
This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig --- drivers/media/pci/cx23885/cx23885-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/cx23885/cx23885-core.c

[PATCH 12/15] kaweth: remove ifdefed out call to dma_supported

2015-10-03 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/net/usb/kaweth.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c index 1e9cdca..f64b25c 100644 --- a/drivers/net/usb/kaweth.c +++ b/drivers/net/usb/kaweth.c @@ -1177,12 +1177,6

[PATCH 09/15] mpsc: use dma_set_mask insted of dma_supported

2015-10-03 Thread Christoph Hellwig
This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig --- drivers/tty/serial/mpsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/mpsc.c b/drivers/tty/serial/mpsc.c

[PATCH 06/15] cx25821: use pci_set_dma_mask insted of pci_dma_supported

2015-10-03 Thread Christoph Hellwig
This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig --- drivers/media/pci/cx25821/cx25821-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/cx25821/cx25821-core.c

Re: [PATCH net-next 00/17] tcp/dccp: lockless listener

2015-10-03 Thread David Miller
From: Eric Dumazet Date: Fri, 2 Oct 2015 11:43:22 -0700 > TCP listener refactoring : this is becoming interesting ! > > This patch series takes the steps to use normal TCP/DCCP ehash > table to store SYN_RECV requests, instead of the private per-listener > hash table we

Re: [patch net-next v2 0/6] switchdev: bring back switchdev_obj

2015-10-03 Thread David Miller
From: Jiri Pirko Date: Thu, 1 Oct 2015 11:03:40 +0200 > Second version of the patch extends to a patchset. Basically this patchset > brings object structure back which disappeared with recent Vivien's patchset. > Also it does a bit of naming changes in order to get the things

Re: [PATCH v2 1/3] unix: fix use-after-free in unix_dgram_poll()

2015-10-03 Thread Rainer Weikusat
Mathias Krause writes: > On 2 October 2015 at 22:43, Jason Baron wrote: >> The unix_dgram_poll() routine calls sock_poll_wait() not only for the wait >> queue associated with the socket s that we are poll'ing against, but also >> calls [useless

Re: [PATCH v2 3/5] net: dsa: complete dsa_switch_destroy

2015-10-03 Thread Florian Fainelli
Le 03/10/2015 07:26, Neil Armstrong a écrit : > When unbinding dsa, complete the dsa_switch_destroy to unregister the > fixed link phy then cleanly unregister and destroy the net devices. > > Signed-off-by: Neil Armstrong > --- [snip] > + port_dn =

Re: 4.3-rc3: `telnet ::1 ' hangs in SYN-SENT

2015-10-03 Thread Andreas Schwab
Ok, that is already fixed by 31b33df. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a

[PATCH] net: dsa: mv88e6xxx: remove link polling

2015-10-03 Thread Russell King
The link status is polled by the generic phy layer, there's no need to duplicate that polling with additional polling. This additional polling adds additional MDIO traffic, and races with the generic phy layer, resulting in missing or duplicated link status messages. Tested-by: Andrew Lunn

[PATCH] net: dsa: better error reporting

2015-10-03 Thread Russell King
Add additional error reporting to the generic DSA code, so it's easier to debug when things go wrong. This was useful when initially bringing up 88e6176 on a new board. Signed-off-by: Russell King --- net/dsa/dsa.c | 4 ++-- net/dsa/slave.c | 24

[patch - Nicholas's tree] netconsole: Missing unlock on error path

2015-10-03 Thread Dan Carpenter
We added new locking to this function but we missed one error path which needs an unlock. Fixes: cdacad4993f4 ('netconsole: use per-attribute show and store methods') Signed-off-by: Dan Carpenter --- This is going through Nicholas Bellinger's tree not net-next. diff

Re: [PATCH] net: dsa: better error reporting

2015-10-03 Thread Andrew Lunn
On Sat, Oct 03, 2015 at 06:09:07PM +0100, Russell King wrote: > Add additional error reporting to the generic DSA code, so it's easier > to debug when things go wrong. This was useful when initially bringing > up 88e6176 on a new board. > > Signed-off-by: Russell King

[PATCH net-next] net: Add support for filtering neigh dump by device index

2015-10-03 Thread David Ahern
Add support for filtering neighbor dumps by device by adding the NDA_IFINDEX attribute to the dump request. When set the kernel only sends neighbor entries for the given device. Signed-off-by: David Ahern --- net/core/neighbour.c | 17 +++-- 1 file changed,

Re: [PATCH net-next] tcp/dccp: add SLAB_DESTROY_BY_RCU flag for request sockets

2015-10-03 Thread David Miller
From: Eric Dumazet Date: Sat, 03 Oct 2015 06:27:28 -0700 > From: Eric Dumazet > > Before letting request sockets being put in TCP/DCCP regular > ehash table, we need to add either : > > - SLAB_DESTROY_BY_RCU flag to their kmem_cache > - add RCU

Re: [PATCH] Bluetooth: hci_smd: Qualcomm WCNSS HCI driver

2015-10-03 Thread Marcel Holtmann
Hi Bjorn, >>> The Qualcomm WCNSS chip provides two SMD channels to the BT core; one >>> for command and one for event packets. This driver exposes the two >>> channels as a hci device. >>> > [..] >>> diff --git a/drivers/bluetooth/Makefile b/drivers/bluetooth/Makefile >>> index

[PATCH net-next v2] net: Add support for filtering neigh dump by device index

2015-10-03 Thread David Ahern
Add support for filtering neighbor dumps by device by adding the NDA_IFINDEX attribute to the dump request. Signed-off-by: David Ahern --- v2 - fix or on the index as noticed by Eagle-Eye Nikolay net/core/neighbour.c | 17 +++-- 1 file changed, 15

Re: [patch - Nicholas's tree] netconsole: Missing unlock on error path

2015-10-03 Thread kbuild test robot
Hi Dan, [auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore] config: x86_64-allmodconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All error/warnings (new ones prefixed by >>):

Re: [PATCH 05/15] cx88: use pci_set_dma_mask insted of pci_dma_supported

2015-10-03 Thread Mauro Carvalho Chehab
Hi Christoph, Em Sat, 3 Oct 2015 17:19:29 +0200 Christoph Hellwig escreveu: > This ensures the dma mask that is supported by the driver is recorded > in the device structure. For this and the other patches touching at drivers/media: Acked-by: Mauro Carvalho Chehab

Re: [PATCH net-next] net: Add support for filtering neigh dump by device index

2015-10-03 Thread Nikolay Aleksandrov
On 10/03/2015 08:25 PM, David Ahern wrote: > Add support for filtering neighbor dumps by device by adding the > NDA_IFINDEX attribute to the dump request. When set the kernel only > sends neighbor entries for the given device. > > Signed-off-by: David Ahern > --- >

Re: Soft lockup issue in Linux 4.1.9

2015-10-03 Thread Thomas D.
Hi, Holger Hoffstätte wrote: > Greg, any chance you can drop this into the pending 4.1.10? Otherwise people > will get another broken release. For me it looks like the request was too late, the patch is not included in 4.1.10. So don't forget to re-apply the patch when doing the upgrade. Greg,

Re: [PATCH] net/unix: fix logic about sk_peek_offset

2015-10-03 Thread Andrey Vagin
2015-10-02 15:17 GMT+03:00 Aaron Conole : > Andrey Vagin writes: > >> 2015-10-02 0:05 GMT+03:00 Andrey Vagin : >>> From: Andrey Vagin >>> >>> Now send with MSG_PEEK can return data from multiple SKBs. >>> >>>

Re: [PATCH v2 2/5] net: dsa: add missing dsa_switch mdiobus remove

2015-10-03 Thread Florian Fainelli
Le 03/10/2015 07:26, Neil Armstrong a écrit : > To prevent memory leakage on unbinding, add missing mdiobus unregister > and free calls. > > Signed-off-by: Neil Armstrong Reviewed-by: Florian Fainelli -- Florian -- To unsubscribe from this list:

Re: Slow ramp-up for single-stream TCP throughput on 4.2 kernel.

2015-10-03 Thread Neal Cardwell
On Fri, Oct 2, 2015 at 8:21 PM, Ben Greear wrote: > Gah, seems 'cubic' related. That is the default tcp cong ctrl > I was using (same in 3.17, for that matter). There have been recent changes to CUBIC that may account for this. If you could repeat your test with more

4.3-rc3: `telnet ::1 ' hangs in SYN-SENT

2015-10-03 Thread Andreas Schwab
Trying to connect to ::1 on any port (whether or not anything listens) causes the connection to hang in SYN-SENT state. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To

Re: [PATCH] net: dsa: better error reporting

2015-10-03 Thread Florian Fainelli
Le 03/10/2015 10:09, Russell King a écrit : > Add additional error reporting to the generic DSA code, so it's easier > to debug when things go wrong. This was useful when initially bringing > up 88e6176 on a new board. > > Signed-off-by: Russell King > --- [snip]

Re: [PATCH v2 5/5] net: dsa: exit probe if no switch were found

2015-10-03 Thread Florian Fainelli
Le 03/10/2015 07:26, Neil Armstrong a écrit : > If no switch were found in dsa_setup_dst, return -ENODEV and > exit the dsa_probe cleanly. > > Tested-by: Andrew Lunn > Tested-by: Florian Fainelli > Signed-off-by: Neil Armstrong >

Re: [PATCH v2 4/5] net: dsa: switch to devm_ calls and remove kfree calls

2015-10-03 Thread Florian Fainelli
Le 03/10/2015 07:26, Neil Armstrong a écrit : > Now the kfree calls exists in the the remove functions, remove them in all > places except the of_probe functions and replace allocation calls > with their devm_ counterparts. > > Signed-off-by: Neil Armstrong Reviewed-by:

[net] i40e/i40evf: set AQ count after memory allocation

2015-10-03 Thread Jeff Kirsher
From: Mitch Williams The standard way to check if the AQ is enabled is to look at the count field. So we should only set this field after we have successfully allocated memory. To do otherwise is to incite panic among the populace. Signed-off-by: Mitch Williams

Re: Slow ramp-up for single-stream TCP throughput on 4.2 kernel.

2015-10-03 Thread Ben Greear
On 10/03/2015 09:29 AM, Neal Cardwell wrote: On Fri, Oct 2, 2015 at 8:21 PM, Ben Greear wrote: Gah, seems 'cubic' related. That is the default tcp cong ctrl I was using (same in 3.17, for that matter). There have been recent changes to CUBIC that may account for

Re: [PATCH v2 1/5] net: dsa: add missing kfree on remove

2015-10-03 Thread Sergei Shtylyov
On 10/3/2015 6:20 PM, Neil Armstrong wrote: On 10/3/2015 5:25 PM, Neil Armstrong wrote: To prevent memory leakage on unbinding, add missing kfree calls. Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

Re: Slow ramp-up for single-stream TCP throughput on 4.2 kernel.

2015-10-03 Thread Neal Cardwell
On Sat, Oct 3, 2015 at 6:46 PM, Ben Greear wrote: > > > On 10/03/2015 09:29 AM, Neal Cardwell wrote: >> >> On Fri, Oct 2, 2015 at 8:21 PM, Ben Greear >> wrote: >>> >>> Gah, seems 'cubic' related. That is the default tcp cong ctrl >>> I was using

[net-next 3/5] i40e: Fix a memory leak in X722 rss config path

2015-10-03 Thread Jeff Kirsher
From: Anjali Singhai In any case free the memory allocated before exiting. Reported-by: Dan Carpenter Signed-off-by: Anjali Singhai Jain Tested-by: Andrew Bowers Signed-off-by: Jeff

[net-next 4/5] i40e/i40evf: grab the AQ spinlocks before clearing registers

2015-10-03 Thread Jeff Kirsher
From: Shannon Nelson Make sure we have the spinlocks before we clear the ARQ and ASQ management registers. Also, widen the locked portion and make a sanity check earlier in the send function to be sure we're working with safe register values. Change-ID:

[net-next 1/5] i40e: Use numa_mem_id() to better support memoryless node

2015-10-03 Thread Jeff Kirsher
From: Jiang Liu Function i40e_clean_rx_irq() tries to reuse memory pages allocated from the nearest node. To better support memoryless node, use numa_mem_id() instead of numa_node_id() to get the nearest node with memory. This change should only affect performance.

[net-next 2/5] i40evf: Use numa_mem_id() to better support memoryless node

2015-10-03 Thread Jeff Kirsher
From: Jiang Liu Function i40e_clean_rx_irq() tries to reuse memory pages allocated from the nearest node. To better support memoryless node, use numa_mem_id() instead of numa_node_id() to get the nearest node with memory. This change should only affect performance.

[net-next 0/5][pull request] Intel Wired LAN Driver Updates 2015-10-03

2015-10-03 Thread Jeff Kirsher
This series contains updates to i40e and i40evf, some of which are to resolve more Red Hat bugzilla issues. Jiang Liu updates the i40e and i40evf drivers to use numa_mem_id() instead of numa_node_id() to get the nearest node with memory which better supports memoryless nodes. Anjali fixes an

[net-next 5/5] i40evf: don't blow away MAC address

2015-10-03 Thread Jeff Kirsher
From: Mitch Williams Under certain circumstances, we can get an extra VF_RESOURCES message from the PF driver at runtime. When this happens, we need to parse it because our VSI may have changed out from underneath us, and that will affect our relationship with the PF