Re: Asterisk deadlocks since Kernel 4.1

2015-12-06 Thread Philipp Hahn
Hello Stefan, Am 06.12.2015 um 21:56 schrieb Stefan Priebe: > i think i found the issue in 4.1 with netlink. Somebody made a mistake > while backporting or cherry-picking your patch "netlink: Fix autobind > race condition that leads to zero port ID" to 4.1. > > It misses a goto in 4.1. > > This

Re: [PATCH net-next 2/2] net: hns: enet specisies a reference to dsaf (config and documents)

2015-12-06 Thread Yankejian (Hackim Yim)
On 2015/12/6 6:19, Arnd Bergmann wrote: > On Saturday 05 December 2015 14:10:56 yankejian wrote: >> diff --git a/Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt >> b/Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt >> index 80411b2..ecacfa4 100644 >> --- a/Documentation/

Re: Asterisk deadlocks since Kernel 4.1

2015-12-06 Thread Stefan Priebe - Profihost AG
Hi Herbert, Am 07.12.2015 um 02:20 schrieb Herbert Xu: > On Sun, Dec 06, 2015 at 09:56:34PM +0100, Stefan Priebe wrote: >> Hi Herbert, >> >> i think i found the issue in 4.1 with netlink. Somebody made a >> mistake while backporting or cherry-picking your patch "netlink: Fix >> autobind race condi

Re: [PATCH] net: hisilicon: constify hnae_buf_ops and hnae_ae_ops structures

2015-12-06 Thread Julia Lawall
On Sun, 6 Dec 2015, David Miller wrote: > From: Julia Lawall > Date: Sun, 6 Dec 2015 17:24:57 +0100 > > > The hnae_buf_ops and hnae_ae_ops structures are never modified, so declare > > them as const. > > > > Done with the help of Coccinelle. > > > > Signed-off-by: Julia Lawall > > This do

Re: MPLS outbound packets being dropped

2015-12-06 Thread Sam Russell
I can confirm that MPLS packets are sent correctly if the conditional at mpls_iptunnel.c:57-65 is removed and just replaced with lines 58-59: ttl = ip_hdr(skb)->ttl; rt = (struct rtable *)dst; Obviously this isn't sufficient for IPv6, but is a workaround that enables MPLS-encapsulated packets to

[PATCH 2/2] net, thunderx: Remove unnecessary rcv buffer start address management

2015-12-06 Thread Sunil Goutham
From: Sunil Goutham Since we have moved on to using allocated pages to carve receive buffers instead of netdev_alloc_skb() there is no need to store any pointers for later retrieval. Earlier we had to store skb and skb->data pointers which later are used to handover received packet to network sta

[PATCH 1/2] net: thunderx: nicvf_queues: nivc_*_intr: remove duplication

2015-12-06 Thread Sunil Goutham
From: Yury Norov The same switch-case repeates for nivc_*_intr functions. In this patch it is moved to a helper nicvf_int_type_to_mask(). By the way: - Unneeded write to NICVF register dropped if int_type is unknown. - netdev_dbg() is used instead of netdev_err(). Signed-off-by: Yury Norov S

[PATCH 0/2] net: thunderx: Miscellaneous cleanups

2015-12-06 Thread Sunil Goutham
From: Sunil Goutham This patch series contains contains couple of cleanup patches. Sunil Goutham (1): net, thunderx: Remove unnecessary rcv buffer start address management Yury Norov (1): net: thunderx: nicvf_queues: nivc_*_intr: remove duplication drivers/net/ethernet/cavium/thunder/nicv

Re: [PATH 02/02] af_unix: fix unix_dgram_recvmsg entry locking

2015-12-06 Thread David Miller
From: Rainer Weikusat Date: Sun, 06 Dec 2015 21:11:38 + > The current unix_dgram_recvsmg code acquires the u->readlock mutex in > order to protect access to the peek offset prior to calling > __skb_recv_datagram for actually receiving data. This implies that a > blocking reader will go to sle

Re: [PATCH 01/02] core: enable more fine-grained datagram reception control

2015-12-06 Thread David Miller
From: Rainer Weikusat Date: Sun, 06 Dec 2015 21:11:34 + > The __skb_recv_datagram routine in core/ datagram.c provides a general > skb reception factility supposed to be utilized by protocol modules > providing datagram sockets. It encompasses both the actual recvmsg code > and a surrounding

Re: [PATCH net-next] PHY: DP83867: Remove looking in parent device for OF properties

2015-12-06 Thread David Miller
From: Andrew Lunn Date: Mon, 7 Dec 2015 04:38:58 +0100 > Device tree properties for a phy device are expected to be in the phy > node. The current code for the DP83867 also tries to look in the > parent node. The devices binding documentation does not mention this, > no current device tree file

Re: [PATCH 1/1] stmmac: socfpga: Provide dt node to config ptp clk source.

2015-12-06 Thread David Miller
From: Phil Reid Date: Mon, 7 Dec 2015 09:38:40 +0800 > @@ -116,6 +118,9 @@ static int socfpga_dwmac_parse_data(struct socfpga_dwmac > *dwmac, struct device * > return -EINVAL; > } > > + dwmac->f2h_ptp_ref_clk = of_property_read_bool(np, "f2h_ptp_ref_clk"); > + > + Too

Re: [PATCH net-next] net: cdc_ncm: add "ndp_to_end" sysfs attribute

2015-12-06 Thread David Miller
From: Bjørn Mork Date: Sun, 6 Dec 2015 22:47:15 +0100 > Adding a writable sysfs attribute for the "NDP to end" > quirk flag. > > This makes it easier for end users to test new devices for > this firmware bug. We've been lucky so far, but we should > not depend on reporters capable of rebuildin

Re: [PATCH net-next] PHY: DP83867: Remove looking in parent device for OF properties

2015-12-06 Thread Florian Fainelli
Le 06/12/2015 19:38, Andrew Lunn a écrit : > Device tree properties for a phy device are expected to be in the phy > node. The current code for the DP83867 also tries to look in the > parent node. The devices binding documentation does not mention this, > no current device tree file makes use of th

Re: [PATCH] net: hisilicon: constify hnae_buf_ops and hnae_ae_ops structures

2015-12-06 Thread David Miller
From: Julia Lawall Date: Sun, 6 Dec 2015 17:24:57 +0100 > The hnae_buf_ops and hnae_ae_ops structures are never modified, so declare > them as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall This doesn't apply to net-next. > I have the impression that this drive

Re: [PATCH net-next 0/6] Add HA and LAG support for mlx4 SRIOV VFs

2015-12-06 Thread David Miller
From: Or Gerlitz Date: Sun, 6 Dec 2015 18:07:37 +0200 > This series is built upon the code added in commit ce388ff "Merge branch > 'mlx4-next'" which added HA and LAG support to mlx4 RoCE and SRIOV services. > > We add HA and Link Aggregation support to single ported mlx4 Ethernet VFs. Series

Re: [PATCH] VSOCK: fix returnvar.cocci warnings

2015-12-06 Thread David Miller
From: Julia Lawall Date: Sun, 6 Dec 2015 06:56:23 +0100 (CET) > Remove unneeded variable used to store return value. > > Generated by: scripts/coccinelle/misc/returnvar.cocci > > CC: Asias He > Signed-off-by: Fengguang Wu > Signed-off-by: Julia Lawall Applied to net-next, thanks. -- To unsu

[PATCH net-next] PHY: DP83867: Remove looking in parent device for OF properties

2015-12-06 Thread Andrew Lunn
Device tree properties for a phy device are expected to be in the phy node. The current code for the DP83867 also tries to look in the parent node. The devices binding documentation does not mention this, no current device tree file makes use of this, and it is not behaviour we want. So remove look

Re: [PATCH] Set DF bit for IPv4 GRE tunnels with fixed TTL

2015-12-06 Thread David Miller
From: Konstantin Shemyak Date: Sat, 5 Dec 2015 22:55:13 +0200 > The DF bit on IPv4 GRE tunnels with fixed TTL is enforced in order > to prevent networking loops. This was the original behavior of GRE > tunnels, lost in the refactoring. > > Signed-off-by: Konstantin Shemyak Like Pravin said, ip

Re: [PATCH] net: remove unnecessary semicolon in netdev_alloc_pcpu_stats()

2015-12-06 Thread David Miller
From: Felix Fietkau Date: Sat, 5 Dec 2015 13:58:11 +0100 > This semicolon causes a build error if the function call is wrapped in > parentheses. > > Fixes: aabc92bbe3cf ("net: add __netdev_alloc_pcpu_stats() to indicate gfp > flags") > Reported-by: Imre Kaloz > Signed-off-by: Felix Fietkau

Re: [PATCH net-next] net: hns: optimize XGE capability by reducing cpu usage

2015-12-06 Thread Joe Perches
On Sun, 2015-12-06 at 22:29 -0500, David Miller wrote: > From: yankejian > Date: Sat, 5 Dec 2015 15:32:29 +0800 > > > +#if (PAGE_SIZE < 8192) > > + if (hnae_buf_size(ring) == HNS_BUFFER_SIZE_2048) { > > + truesize = hnae_buf_size(ring); > > + } else { > > + truesiz

Re: [PATCH net] sctp: start t5 timer only when peer rwnd is 0 and local state is SHUTDOWN_PENDING

2015-12-06 Thread David Miller
From: Xin Long Date: Sat, 5 Dec 2015 15:35:36 +0800 > when A sends a data to B, then A close() and enter into SHUTDOWN_PENDING > state, if B neither claim his rwnd is 0 nor send SACK for this data, A > will keep retransmitting this data until t5 timeout, Max.Retrans times > can't work anymore, w

Re: [PATCH net-next] net: qmi_wwan: should hold RTNL while changing netdev type

2015-12-06 Thread David Miller
From: Bjørn Mork Date: Sun, 6 Dec 2015 21:25:50 +0100 > The notifier calls were thrown in as a last-minute fix for an > imagined "this device could be part of a bridge" problem. That > revealed a certain lack of locking. Not to mention testing... > > Avoid this splat: ... > Fixes: 32f7adf633b

Re: [PATCH net-next] net: hns: optimize XGE capability by reducing cpu usage

2015-12-06 Thread David Miller
From: yankejian Date: Sat, 5 Dec 2015 15:32:29 +0800 > +#if (PAGE_SIZE < 8192) > + if (hnae_buf_size(ring) == HNS_BUFFER_SIZE_2048) { > + truesize = hnae_buf_size(ring); > + } else { > + truesize = ALIGN(size, L1_CACHE_BYTES); > + last_offset = hnae_pag

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-12-06 Thread David Ahern
On 12/6/15 6:20 PM, Alexander Duyck wrote: That works for Linux to Linux, but what about the cases where you have a non-Linux endpoint on the other end such as something like a Cisco switch? Why does is matter what kind of switch the NIC is connected to? -- To unsubscribe from this list: send t

Re: [PATCH v2] rtlwifi: fix memory leak for USB device

2015-12-06 Thread Larry Finger
On 12/06/2015 06:07 PM, Peter Wu wrote: Free skb for received frames with a wrong checksum. This can happen pretty rapidly, exhausting all memory. This fixes a memleak (detected with kmemleak). Originally found while using monitor mode, but it also appears during managed mode (once the link is u

Re: Double free of dst_entry in ipv4_dst_destroy()

2015-12-06 Thread Eric Dumazet
On Sun, 2015-12-06 at 13:03 -0800, Eric Dumazet wrote: > But then when later we promote a skb->dst to a refctounted one > (skb_dst_force(), we might make sure we abort the operation if __refcnt > == 0 ( and DST_NOCACHE is in dst->flags) > Minimum patch would be : diff --git a/include/net/dst.h

Re: [PATCH] VSOCK: fix returnvar.cocci warnings

2015-12-06 Thread Stefan Hajnoczi
On Sun, Dec 06, 2015 at 06:56:23AM +0100, Julia Lawall wrote: > Remove unneeded variable used to store return value. > > Generated by: scripts/coccinelle/misc/returnvar.cocci > > CC: Asias He > Signed-off-by: Fengguang Wu > Signed-off-by: Julia Lawall > > --- > > vsock.c |3 +-- > 1 fil

[PATCH v2 1/5] stmmac: create of compatible mdio bus for stmacc driver

2015-12-06 Thread Phil Reid
The DSA driver needs to be passed a reference to an mdio bus. Typically the mac is configured to use a fixed link but the mdio bus still needs to be registered so that it con configure the switch. This patch follows the same process as the altera tse ethernet driver for creation of the mdio bus. A

[PATCH v2 3/5] stmmac: Fix calculations for ptp counters when clock input = 50Mhz.

2015-12-06 Thread Phil Reid
stmmac_config_sub_second_increment set the sub second increment to 20ns. Driver is configured to use the fine adjustment method where the sub second register is incremented when the acculumator incremented by the addend register wraps overflows. This accumulator is update on every ptp clk cycle. If

[PATCH 1/1] stmmac: socfpga: Provide dt node to config ptp clk source.

2015-12-06 Thread Phil Reid
Signed-off-by: Phil Reid --- Documentation/devicetree/bindings/net/socfpga-dwmac.txt | 2 ++ drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 10 ++ 2 files changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/net/socfpga-dwmac.txt b/Documentation/devicetre

[PATCH v2 2/5] stmmac: Correct documentation on stmmac clocks.

2015-12-06 Thread Phil Reid
devm_get_clk looks in clock-name property for matching clock. the ptp_ref_clk property is ignored. Acked-by: Rob Herring Signed-off-by: Phil Reid --- Documentation/devicetree/bindings/net/stmmac.txt | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Documentat

[PATCH v2 4/5] stmmac: Add ptp debugfs entry.

2015-12-06 Thread Phil Reid
This adds a debugfs entry to view the current status of the ptp registers. Signed-off-by: Phil Reid --- drivers/net/ethernet/stmicro/stmmac/stmmac.h | 1 + drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 61 +++ drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h | 5

[PATCH v2 5/5] stmmac: socfpga: Provide dt node to config ptp clk source.

2015-12-06 Thread Phil Reid
Signed-off-by: Phil Reid --- Documentation/devicetree/bindings/net/socfpga-dwmac.txt | 2 ++ drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 9 + 2 files changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/net/socfpga-dwmac.txt b/Documentation/devicetree/b

[PATCH v2 0/5] stmmac: Fixed Phy & PTP fixes

2015-12-06 Thread Phil Reid
Provide ability to specify a fixed phy in the device tree and retain the mdio bus if no phy is found. This is needed where a dsa is connected via a fixed phy and uses the mdio bus for config. Fixed ptp ref clock calculatins for the stmmac when ptp ref clock is running at <= 50Mhz. Also add device

Re: [PATCH RESEND net-next 2/3] dts: hisi: fixes no syscon error when init mdio

2015-12-06 Thread Yankejian (Hackim Yim)
On 2015/12/6 6:15, Arnd Bergmann wrote: > On Saturday 05 December 2015 15:56:57 yankejian wrote: >> #size-cells = <0>; >> compatible = "hisilicon,hns-mdio"; >> - reg = <0x0 0x803c 0x0 0x1 >> - 0x0 0x8000 0x0 0x1>;

Re: [PATCH RESEND net-next 3/3] arm64: hip05-d02: Document devicetree bindings for Hisilicon D02 Board

2015-12-06 Thread Yankejian (Hackim Yim)
On 2015/12/6 6:13, Arnd Bergmann wrote: > On Saturday 05 December 2015 15:56:58 yankejian wrote: >> +Required properties: >> +- compatible : "hisilicon,peri-c-subctrl", "syscon"; >> +- reg : Register address and size >> + >> +The HiP05 PERISUB system controller is shared by peripheral controllers

Re: Asterisk deadlocks since Kernel 4.1

2015-12-06 Thread Herbert Xu
On Sun, Dec 06, 2015 at 09:56:34PM +0100, Stefan Priebe wrote: > Hi Herbert, > > i think i found the issue in 4.1 with netlink. Somebody made a > mistake while backporting or cherry-picking your patch "netlink: Fix > autobind race condition that leads to zero port ID" to 4.1. > > It misses a goto

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-12-06 Thread Alexander Duyck
On Sun, Dec 6, 2015 at 1:30 PM, Tom Herbert wrote: > On Sun, Dec 6, 2015 at 10:44 AM, Alexander Duyck > wrote: >> On Sun, Dec 6, 2015 at 8:31 AM, Tom Herbert wrote: The only spot I think you and I disagreed on was the approach. I don't know if the hard push back does anything but puni

[PATCH v2] rtlwifi: fix memory leak for USB device

2015-12-06 Thread Peter Wu
Free skb for received frames with a wrong checksum. This can happen pretty rapidly, exhausting all memory. This fixes a memleak (detected with kmemleak). Originally found while using monitor mode, but it also appears during managed mode (once the link is up). Cc: sta...@vger.kernel.org Signed-off

Re: [PATCH net] macvlan: fix leak in macvlan_handle_frame

2015-12-06 Thread Paul Gortmaker
On Tue, Nov 17, 2015 at 2:40 PM, David Miller wrote: > From: Sabrina Dubroca > Date: Mon, 16 Nov 2015 22:54:20 +0100 > >> Reset pskb in macvlan_handle_frame in case skb_share_check returned a >> clone. >> >> Fixes: 8a4eb5734e8d ("net: introduce rx_handler results and logic around >> that") >> Si

Re: [PATCH] mwifiex: fix semicolon.cocci warnings

2015-12-06 Thread Joe Perches
On Sun, 2015-12-06 at 22:56 +0100, Julia Lawall wrote: > Remove unneeded semicolon. > > Generated by: scripts/coccinelle/misc/semicolon.cocci There are a lot more of these arch/arm/mach-ixp4xx/goramo_mlr.c:78:static u32 hw_bits = 0xFFFD;/* assume all hardware present */; crypto/tgr192.c

Re: [PATCH] rtlwifi: fix gigantic memleak in rtl_usb

2015-12-06 Thread Larry Finger
On 12/06/2015 03:39 PM, Peter Wu wrote: On Sun, Dec 06, 2015 at 02:18:36PM -0600, Larry Finger wrote: On 12/06/2015 11:57 AM, Peter Wu wrote: Free skb for received frames with a wrong checksum. While using the rtl8192cu driver in monitor mode, somehow 5G of memory was permanently lost (observa

[PATCH] mwifiex: fix semicolon.cocci warnings

2015-12-06 Thread Julia Lawall
Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- init.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/marvell/mwifiex/init.c +++ b/drivers/net/wireless/marvell/mw

[PATCH net-next] net: cdc_ncm: add "ndp_to_end" sysfs attribute

2015-12-06 Thread Bjørn Mork
Adding a writable sysfs attribute for the "NDP to end" quirk flag. This makes it easier for end users to test new devices for this firmware bug. We've been lucky so far, but we should not depend on reporters capable of rebuilding the driver. Cc: Enrico Mioso Signed-off-by: Bjørn Mork --- Docu

Re: [PATCH] rtlwifi: fix gigantic memleak in rtl_usb

2015-12-06 Thread Peter Wu
On Sun, Dec 06, 2015 at 02:18:36PM -0600, Larry Finger wrote: > On 12/06/2015 11:57 AM, Peter Wu wrote: > >Free skb for received frames with a wrong checksum. > > > >While using the rtl8192cu driver in monitor mode, somehow 5G of memory > >was permanently lost (observable via the Available column i

Re: [PATCH v2] net: Generalize udp based tunnel offload

2015-12-06 Thread kbuild test robot
Hi Anjali, [auto build test ERROR on net/master] [also build test ERROR on v4.4-rc3 next-20151203] url: https://github.com/0day-ci/linux/commits/Anjali-Singhai-Jain/net-Generalize-udp-based-tunnel-offload/20151124-090500 config: x86_64-randconfig-s0-12070507 (attached as .config) reproduce:

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-12-06 Thread Tom Herbert
On Sun, Dec 6, 2015 at 10:44 AM, Alexander Duyck wrote: > On Sun, Dec 6, 2015 at 8:31 AM, Tom Herbert wrote: >>> The only spot I think you and I disagreed on was the approach. I >>> don't know if the hard push back does anything but punish the users by >>> delaying the time needed to find a reas

[PATH 02/02] af_unix: fix unix_dgram_recvmsg entry locking

2015-12-06 Thread Rainer Weikusat
The current unix_dgram_recvsmg code acquires the u->readlock mutex in order to protect access to the peek offset prior to calling __skb_recv_datagram for actually receiving data. This implies that a blocking reader will go to sleep with this mutex held if there's presently no data to return to user

[PATCH 01/02] core: enable more fine-grained datagram reception control

2015-12-06 Thread Rainer Weikusat
The __skb_recv_datagram routine in core/ datagram.c provides a general skb reception factility supposed to be utilized by protocol modules providing datagram sockets. It encompasses both the actual recvmsg code and a surrounding 'sleep until data is available' loop. This is inconvenient if a protoc

Re: Double free of dst_entry in ipv4_dst_destroy()

2015-12-06 Thread Eric Dumazet
On Sun, 2015-12-06 at 13:26 -0500, dwil...@us.ibm.com wrote: > Hi- > > I am seeing a crash on a distro V4.2.3 kernel caused by a double > release of a dst_entry. In ipv4_dst_destroy() the call to > list_empty() finds a poisoned next pointer, indicating the dst_entry > has already been remov

Re: Asterisk deadlocks since Kernel 4.1

2015-12-06 Thread Stefan Priebe
Hi Herbert, i think i found the issue in 4.1 with netlink. Somebody made a mistake while backporting or cherry-picking your patch "netlink: Fix autobind race condition that leads to zero port ID" to 4.1. It misses a goto in 4.1. This goto is missing in 4.1: diff --git a/net/netlink/af_netli

[PATCH net-next] net: qmi_wwan: should hold RTNL while changing netdev type

2015-12-06 Thread Bjørn Mork
The notifier calls were thrown in as a last-minute fix for an imagined "this device could be part of a bridge" problem. That revealed a certain lack of locking. Not to mention testing... Avoid this splat: RTNL: assertion failed at net/core/dev.c (1639) CPU: 0 PID: 4293 Comm: bash Not tainted 4.4

Re: [PATCH] rtlwifi: fix gigantic memleak in rtl_usb

2015-12-06 Thread Larry Finger
On 12/06/2015 11:57 AM, Peter Wu wrote: Free skb for received frames with a wrong checksum. While using the rtl8192cu driver in monitor mode, somehow 5G of memory was permanently lost (observable via the Available column in `free -m`). Test scenario: ip link set down wlan1 iw wlan1 s

Re: gigaset: freeing an active object

2015-12-06 Thread Paul Bolle
On zo, 2015-12-06 at 16:29 +0100, Tilman Schmidt wrote: > So the solution might be as simple as moving the kfree() call from > gigaset_freecshw() to gigaset_device_release(). Something like this: > > --- a/drivers/isdn/gigaset/ser-gigaset.c > +++ b/drivers/isdn/gigaset/ser-gigaset.c > @@ -370,19 +

Re: [PATCH net-next] ravb: ptp: Add CONFIG mode support

2015-12-06 Thread Sergei Shtylyov
Hello. On 12/05/2015 01:01 PM, Yoshihiro Kaneko wrote: Thanks for your review. From now on, it'll be my duty. :-) 2015-12-04 6:09 GMT+09:00 Sergei Shtylyov : Hello. On 12/01/2015 08:04 PM, Yoshihiro Kaneko wrote: From: Kazuya Mizuguchi This patch makes PTP support active in CONFIG

Re: [PATCH net] ravb: Remove clear unhandled interrupt

2015-12-06 Thread Sergei Shtylyov
Hello. On 12/06/2015 02:42 PM, Yoshihiro Kaneko wrote: From: Kazuya Mizuguchi AVB-DMAC Reception Warning interrupt is not enabled, so it is not necessary to clear the interrupt. Signed-off-by: Kazuya Mizuguchi Signed-off-by: Yoshihiro Kaneko In principle I agree but perhaps we should

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-12-06 Thread Alexander Duyck
On Sun, Dec 6, 2015 at 8:31 AM, Tom Herbert wrote: >> The only spot I think you and I disagreed on was the approach. I >> don't know if the hard push back does anything but punish the users by >> delaying the time needed to find a reasonable solution. I really >> think if we are going to get the

Double free of dst_entry in ipv4_dst_destroy()

2015-12-06 Thread dwilder
Hi- I am seeing a crash on a distro V4.2.3 kernel caused by a double release of a dst_entry. In ipv4_dst_destroy() the call to list_empty() finds a poisoned next pointer, indicating the dst_entry has already been removed from the list and freed. The crash occurs 18 to 24 hours into a r

Re: [PATCH net] sctp: hold the chunks only after the chunk is enqueued in outq

2015-12-06 Thread David Miller
From: Xin Long Date: Sat, 5 Dec 2015 15:15:17 +0800 > When a msg is sent, sctp will hold the chunks of this msg and then try > to enqueue them. But if the chunks are not enqueued in sctp_outq_tail() > because of the invalid state, sctp_cmd_interpreter() may still return > success to sctp_sendmsg

Re: [PATCH net] sctp: only drop the reference on the datamsg after sending a msg

2015-12-06 Thread David Miller
From: Xin Long Date: Sat, 5 Dec 2015 15:19:27 +0800 > If the chunks are enqueued successfully but sctp_cmd_interpreter() > return err to sctp_sendmsg() (mainly because of no mem), the chunks will > get re-queued, but we are dropping the reference and freeing them. > > The fix is to just drop th

[PATCH] rtlwifi: fix gigantic memleak in rtl_usb

2015-12-06 Thread Peter Wu
Free skb for received frames with a wrong checksum. While using the rtl8192cu driver in monitor mode, somehow 5G of memory was permanently lost (observable via the Available column in `free -m`). Test scenario: ip link set down wlan1 iw wlan1 set type monitor ip link set up wlan1

Re: [PATCH] net: qca_spi: fix transmit queue timeout handling

2015-12-06 Thread David Miller
From: Stefan Wahren Date: Fri, 4 Dec 2015 16:29:10 +0100 > In case of a tx queue timeout every transmit is blocked until the > QCA7000 resets himself and triggers a sync which makes the driver > flushs the tx ring. So avoid this blocking situation by triggering > the sync immediately after the t

[PATCH] net: hisilicon: constify hnae_buf_ops and hnae_ae_ops structures

2015-12-06 Thread Julia Lawall
The hnae_buf_ops and hnae_ae_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- I have the impression that this driver is not recorded properly in the MAINTAINERS file. drivers/net/ethernet/hisilicon/hns/hnae.c

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-12-06 Thread Tom Herbert
> The only spot I think you and I disagreed on was the approach. I > don't know if the hard push back does anything but punish the users by > delaying the time needed to find a reasonable solution. I really > think if we are going to get the hardware vendors to change their > behavior we have to

Re: [PATCH v2] Revert "i40e: remove CONFIG_I40E_VXLAN"

2015-12-06 Thread David Miller
From: Jeff Kirsher Date: Sat, 5 Dec 2015 23:13:31 -0800 > On Sat, Dec 5, 2015 at 2:50 PM, David Miller wrote: >> From: Anjali Singhai Jain >> Date: Thu, 3 Dec 2015 23:49:31 -0800 >> >>> This reverts commit 8fe269991aece394a7ed274f525d96c73f94109a. >>> The case where VXLAN is a module and i40e

Re: [net-next v2 00/15][pull request] 100GbE Intel Wired LAN Driver Updates 2015-12-05

2015-12-06 Thread David Miller
From: Jeff Kirsher Date: Sun, 6 Dec 2015 00:01:19 -0800 > This series contains updates to fm10k 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 majordomo info at http://vger.kernel.org/ma

[PATCH net-next 1/6] net/mlx4_core: Use both physical ports to set the VF link state

2015-12-06 Thread Or Gerlitz
In HA mode, the link state for VFs for which the policy is "auto" (i.e. follow the physical link state) should be ORed from both ports. Signed-off-by: Or Gerlitz Reviewed-by: Jack Morgenstein --- drivers/net/ethernet/mellanox/mlx4/fw.c | 12 +++- drivers/net/ethernet/mellanox/mlx4/fw.h

[PATCH net-next 5/6] IB/mlx4: Use the VF base-port when demuxing mad from wire

2015-12-06 Thread Or Gerlitz
Under HA mode, it's possible that the VF registered its GID (and expects to get mads through the PV scheme) on a port which is different from the one this mad arrived on, due to HA fail over. Therefore, if the gid is not matched on the port that the packet arrived on, check for a match on the othe

[PATCH net-next 4/6] net/mlx4_core: Keep VLAN/MAC tables mirrored in multifunc HA mode

2015-12-06 Thread Or Gerlitz
From: Moni Shoua Due to HW limitations, indexes to MAC and VLAN tables are always taken from the table of the actual port. So, if a resource holds an index to a table, it may refer to different values during the lifetime of the resource, unless the tables are mirrored. Also, even when driver is

[PATCH net-next 6/6] net/mlx4_core: Support the HA mode for SRIOV VFs too

2015-12-06 Thread Or Gerlitz
From: Moni Shoua When the mlx4 driver runs in HA mode, and all VFs are single ported ones, we make their single port Highly-Available. This is done by taking advantage of the HA mode properties (following bonding changes with programming the port V2P map, etc) and adding the missing parts which

[PATCH net-next 3/6] net/mlx4_core: Support mirroring VF DMFS rules on both ports

2015-12-06 Thread Or Gerlitz
From: Moni Shoua Under HA mode, steering rules set by VFs should be mirrored on both ports of the device so packets will be accepted no matter on which port they arrived. Since getting into HA mode is done dynamically when the user bonds mlx4 Ethernet netdevs, we keep hold of the VF DMFS rule mb

[PATCH net-next 2/6] net/mlx4_core: Use both physical ports to dispatch link state events to VF

2015-12-06 Thread Or Gerlitz
From: Moni Shoua Under HA mode, the link down event should be sent to VFs only if both ports are down. Signed-off-by: Moni Shoua Reviewed-by: Jack Morgenstein Signed-off-by: Or Gerlitz --- drivers/net/ethernet/mellanox/mlx4/eq.c | 24 1 file changed, 20 insertions(+)

[PATCH net-next 0/6] Add HA and LAG support for mlx4 SRIOV VFs

2015-12-06 Thread Or Gerlitz
Hi Dave, This series is built upon the code added in commit ce388ff "Merge branch 'mlx4-next'" which added HA and LAG support to mlx4 RoCE and SRIOV services. We add HA and Link Aggregation support to single ported mlx4 Ethernet VFs. In this case, the PF Ethernet interfaces are bonded, the VFs

Re: gigaset: freeing an active object

2015-12-06 Thread Tilman Schmidt
Am 06.12.2015 um 14:31 schrieb Paul Bolle: > On wo, 2015-12-02 at 18:48 -0500, Peter Hurley wrote: >> On 11/30/2015 01:01 PM, Paul Bolle wrote: >>> --- a/drivers/isdn/gigaset/ser-gigaset.c >>> +++ b/drivers/isdn/gigaset/ser-gigaset.c >>> @@ -42,8 +42,9 @@ MODULE_PARM_DESC(cidmode, "stay in CID mod

Re: gigaset: freeing an active object

2015-12-06 Thread Paul Bolle
On wo, 2015-12-02 at 18:48 -0500, Peter Hurley wrote: > On 11/30/2015 01:01 PM, Paul Bolle wrote: > > Should (something like) this go into stable too? > > Definitely for stable since it has a userspace triggerable component. Thanks, will do. > > --- a/drivers/isdn/gigaset/ser-gigaset.c > > +++ b

[PATCH net] ravb: Remove clear unhandled interrupt

2015-12-06 Thread Yoshihiro Kaneko
From: Kazuya Mizuguchi AVB-DMAC Reception Warning interrupt is not enabled, so it is not necessary to clear the interrupt. Signed-off-by: Kazuya Mizuguchi Signed-off-by: Yoshihiro Kaneko --- This patch is based on the master branch of David Miller's networking tree. drivers/net/ethernet/ren

MPLS outbound packets being dropped

2015-12-06 Thread Sam Russell
tl;dr mpls_output expects skb->protocol to be set to correct ethertype, but it isn't https://github.com/torvalds/linux/blob/ede2059dbaf9c6557a49d466c8c7778343b208ff/net/mpls/mpls_iptunnel.c#L64 Problem: I set up two interfaces pointed at each other, and added a static arp entry to minimise compl

Random packet loss using IPsec with AES128-SHA1

2015-12-06 Thread Gabriele Beltrame
Hi, I'm running a few Strongswan 5.3.* CentOS (Kernel 3.16.7, 4.2.6, 4.1.*) instances on AWS to terminate VPNs between each other and/or to other devices across the Internet. While investigating some application issues, I've noticed that on every VPNs I have random packet losses (from 1% to 4% ove

[net-next v2 08/15] fm10k: rename mbx_tx_oversized statistic to mbx_tx_dropped

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller Originally this statistic was renamed because the method of dropping was called "drop_oversized_messages", but this logic has changed much, and this counter does actually represent messages which we failed to transmit for a number of reasons. Rename the counter back to tx_dropp

[net-next v2 15/15] fm10k: TRIVIAL cleanup order at top of fm10k_xmit_frame

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller Signed-off-by: Jacob Keller Tested-by: Krishneil Singh Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/fm10k/fm10k_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_main.c b/drivers/net/ethern

[net-next v2 06/15] fm10k: explicitly typecast vlan values to u16

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller Signed-off-by: Jacob Keller Tested-by: Krishneil Singh Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/fm10k/fm10k_pf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_pf.c b/drivers/net/ethernet/i

[net-next v2 07/15] fm10k: add statistics for actual DWORD count of mbmem mailbox

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller A previous bug was uncovered by addition of a debug stat to indicate the actual number of DWORDS we pulled from the mbmem. It turned out this was not the same as the tx_dwords counter. While the previous bug fix should have corrected this in all cases, add some debug stats that

[net-next v2 11/15] fm10k: Update adaptive ITR algorithm

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller The existing adaptive ITR algorithm is overly restrictive. It throttles incorrectly for various traffic rates, and does not produce good performance. The algorithm now allows for more interrupts per second, and does some calculation to help improve for smaller packet loads. In

[net-next v2 09/15] fm10k: Add support for ITR scaling based on PCIe link speed

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller The Intel Ethernet Switch FM1 Host Interface interrupt throttle timers are based on the PCIe link speed. Because of this, the value being programmed into the ITR registers must be scaled accordingly. For the PF, this is as simple as reading the PCIe link speed and storing

[net-next v2 04/15] fm10k: reinitialize queuing scheme after calling init_hw

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller The init_hw function may fail, and in the case of VFs, it might change the number of maximum queues available. Thus, for every flow which checks init_hw, we need to ensure that we clear the queue scheme before, and initialize it after. The fm10k_io_slot_reset path will end up t

[net-next v2 10/15] fm10k: introduce ITR_IS_ADAPTIVE macro

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller Define a macro for identifying when the itr value is dynamic or adaptive. The concept was taken from i40e. This helps make clear what the check is, and reduces the line length to something more reasonable in a few places. Signed-off-by: Jacob Keller Reviewed-by: Bruce Allan

[net-next v2 05/15] fm10k: Correct typecast in fm10k_update_xc_addr_pf

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller Since the resultant data type of the mac_update.mac_upper field is u16, it does not make sense to typecast u8 variables to u32 first. Since we're modifying fm10k_pf.c, also update the copyright year. Reported-by: Matthew Vick Signed-off-by: Jacob Keller Reviewed-by: Bruce Al

[net-next v2 14/15] fm10k: TRIVIAL fix typo of hardware

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller Signed-off-by: Jacob Keller Tested-by: Krishneil Singh Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c b/drivers/net/ethernet/i

[net-next v2 12/15] fm10k: use macro for default Tx and Rx ITR values

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller Signed-off-by: Jacob Keller Reviewed-by: Bruce Allan Tested-by: Krishneil Singh Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/fm10k/fm10k.h | 2 ++ drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 4 ++-- drivers/net/ethernet/intel/fm10k/fm10k_pci.c

[net-next v2 13/15] fm10k: change default Tx ITR to 25usec

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller The current default ITR for Tx is overly restrictive. Using a simple netperf TCP_STREAM test, we top out at about 10Gb/s for a single thread when running using 1500 byte frames. By reducing the ITR value to 25usec (up to 40K interrupts a second from 10K), we are able to achieve

[net-next v2 00/15][pull request] 100GbE Intel Wired LAN Driver Updates 2015-12-05

2015-12-06 Thread Jeff Kirsher
This series contains updates to fm10k only. Jacob provides the remaining fm10k patches in the series. First change ensures that all the logic regarding the setting of netdev features is consolidated in one place of the driver. Fixed an issue where an assumption was being made on how many queues

[net-next v2 03/15] fm10k: always check init_hw for errors

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller A recent change modified init_hw in some flows the function may fail on VF devices. For example, if a VF doesn't yet own its own queues. However, many callers of init_hw didn't bother to check the error code. Other callers checked but only displayed diagnostic messages without

[net-next v2 01/15] fm10k: set netdev features in one location

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller Don't change netdev hw_features later in fm10k_probe, instead set all values inside fm10k_alloc_netdev. To do so, we need to know the MAC type (whether it is PF or VF) in order to determine what to do. This helps ensure that all logic regarding features is co-located. Signed-o

[net-next v2 02/15] fm10k: reset max_queues on init_hw_vf failure

2015-12-06 Thread Jeff Kirsher
From: Jacob Keller VF drivers must detect how many queues are available. Previously, the driver assumed that each VF has at minimum 1 queue. This assumption is incorrect, since it is possible that the PF has not yet assigned the queues to the VF by the time the VF checks. To resolve this, we adde