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

2015-12-07 Thread Yankejian (Hackim Yim)
On 2015/12/8 14:30, Du, Fan wrote: > > > On 2015/12/8 14:22, Yankejian (Hackim Yim) wrote: >> >> On 2015/12/7 16:58, Du, Fan wrote: >>> > >>> > >>> >On 2015/12/5 15:32, yankejian wrote: >>here is the patch raising the performance of XGE by: >>1)changes the way page management method

Re: MPLS decap with iproute2

2015-12-07 Thread Sam Russell
Thanks all for your help, I got it working with Robert and Roopa's sysctl settings, the following works: ip route -f mpls add 100 dev lo On 8 December 2015 at 15:37, roopa wrote: > On 12/7/15, 11:42 AM, Sam Russell wrote: >> Hi, >> >> I've had success with the

netlink: Add missing goto statement to netlink_insert

2015-12-07 Thread Herbert Xu
On Mon, Dec 07, 2015 at 07:58:25AM +0100, Stefan Priebe - Profihost AG wrote: > > Thanks, good. Can you help me to get this fix upstream into the stable > lines? Sure. Greg, please apply this patch to fix up the backport for 4.1. ---8<--- The backport of 1f770c0a09da855a2b51af6d19de97fb955eca85

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

2015-12-07 Thread Du, Fan
On 2015/12/8 14:22, Yankejian (Hackim Yim) wrote: On 2015/12/7 16:58, Du, Fan wrote: > > >On 2015/12/5 15:32, yankejian wrote: >>here is the patch raising the performance of XGE by: >>1)changes the way page management method for enet momery, and >>2)reduces the count of rmb, and >>3)adds

[PATCH v2] net: thunderx: Correctly distinguish between VF and LMAC count

2015-12-07 Thread Pavel Fedin
Commit bc69fdfc6c13 ("net: thunderx: Enable BGX LMAC's RX/TX only after VF is up") introduces lmac_cnt member and starts verifying VF number against it. This is plain wrong, and works only because currently we have hardcoded 1:1 mapping between VFs and LMACs, and in this case num_vf_en and

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

2015-12-07 Thread Yankejian (Hackim Yim)
On 2015/12/7 16:58, Du, Fan wrote: > > > On 2015/12/5 15:32, yankejian wrote: >> here is the patch raising the performance of XGE by: >> 1)changes the way page management method for enet momery, and >> 2)reduces the count of rmb, and >> 3)adds Memory prefetching > > Any numbers on how much it

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

2015-12-07 Thread John Fastabend
On 15-12-02 04:15 PM, Tom Herbert wrote: > On Wed, Dec 2, 2015 at 3:35 PM, John Fastabend > wrote: >> [...] >> I wonder why we need protocol generic offloads? I know there are currently a lot of overlay encapsulation protocols. Are there many more

Re: [P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board?

2015-12-07 Thread Denis Kirjanov
On 12/7/15, Christian Zigotzky wrote: > Hi all, > > I have some good news for you. I was able to fix the issue with the P.A. > Semi Ethernet. It was a problem with the new DMA handling. The patch ' > [RFC/PATCH,v2] powerpc/iommu: Support "hybrid" iommu/direct DMA ops for >

Re: Fixing full name in patchwork

2015-12-07 Thread Kalle Valo
Sudip Mukherjee writes: > On Mon, Dec 07, 2015 at 08:03:54PM +0200, Kalle Valo wrote: >> Hi Sudip, >> >> Sudip Mukherjee writes: >> >> > We were dereferencing cmd first and checking for NULL later. Lets first >> > check for NULL. >> > >>

Re: use-after-free in sctp_do_sm

2015-12-07 Thread Dmitry Vyukov
On Mon, Dec 7, 2015 at 2:15 PM, Marcelo Ricardo Leitner wrote: > On Mon, Dec 07, 2015 at 12:26:09PM +0100, Dmitry Vyukov wrote: >> On Sat, Dec 5, 2015 at 5:39 PM, Vlad Yasevich wrote: >> > On 12/04/2015 04:34 PM, Marcelo Ricardo Leitner wrote: >>

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

2015-12-07 Thread Arnd Bergmann
On Monday 07 December 2015 21:37:52 Phil Reid wrote: > On 7/12/2015 5:03 PM, Arnd Bergmann wrote: > > On Monday 07 December 2015 09:38:43 Phil Reid wrote: > >> This adds a debugfs entry to view the current status of the ptp > >> registers. > >> > >> Signed-off-by: Phil Reid

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

2015-12-07 Thread Phil Reid
On 7/12/2015 5:05 PM, Arnd Bergmann wrote: On Monday 07 December 2015 09:38:44 Phil Reid wrote: Signed-off-by: Phil Reid --- Documentation/devicetree/bindings/net/socfpga-dwmac.txt | 2 ++ drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 9 + 2

[PATCH net] vxlan: interpret IP headers for ECN correctly

2015-12-07 Thread Jiri Benc
When looking for outer IP header, use the actual socket address family, not the address family of the default destination which is not set for metadata based interfaces (and doesn't have to match the address family of the received packet even if it was set). Fix also the misleading comment.

[P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board?

2015-12-07 Thread Christian Zigotzky
Hi all, I have some good news for you. I was able to fix the issue with the P.A. Semi Ethernet. It was a problem with the new DMA handling. The patch ' [RFC/PATCH,v2] powerpc/iommu: Support "hybrid" iommu/direct DMA ops for coherent_mask < dma_mask

Re: [PATCH v3 net-next 0/4] Further fix for dsa unbinding

2015-12-07 Thread Andrew Lunn
On Mon, Dec 07, 2015 at 01:57:31PM +0100, Neil Armstrong wrote: > This serie fixes further issues for DSA dynamic unbinding. > The first patch completely removes the PHY link state polling. > The two following cleans up the dsa state upon removal. > The last patch moves slave destroy code as slave

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

2015-12-07 Thread Yoshihiro Kaneko
Hello Sergei, 2015-12-07 4:19 GMT+09:00 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. :-) Thank you always for your help. > >> 2015-12-04 6:09 GMT+09:00

[PATCH 1/4] batman-adv: fix speedy join for DAT cache replies

2015-12-07 Thread Antonio Quartulli
From: Simon Wunderlich DAT Cache replies are answered on behalf of other clients which are not connected to the answering originator. Therefore, we shouldn't add these clients to the answering originators TT table through speed join to avoid bogus entries. Reported-by:

[PATCH 3/4] batman-adv: fix erroneous client entry duplicate detection

2015-12-07 Thread Antonio Quartulli
From: Marek Lindner The translation table implementation, namely batadv_compare_tt(), is used to compare two client entries and deciding if they are the holding the same information. Each client entry is identified by its mac address and its VLAN id (VID).

[PATCH 2/4] batman-adv: avoid keeping false temporary entry

2015-12-07 Thread Antonio Quartulli
From: Simon Wunderlich In the case when a temporary entry is added first and a proper tt entry is added after that, the temporary tt entry is kept in the orig list. However the temporary flag is removed at this point, and therefore the purge function can not find this

[PATCH 4/4] batman-adv: Fix invalid stack access in batadv_dat_select_candidates

2015-12-07 Thread Antonio Quartulli
From: Sven Eckelmann batadv_dat_select_candidates provides an u32 to batadv_hash_dat but it needs a batadv_dat_entry with at least ip and vid filled in. Fixes: 3e26722bc9f2 ("batman-adv: make the Distributed ARP Table vlan aware") Signed-off-by: Sven Eckelmann

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

2015-12-07 Thread Phil Reid
On 7/12/2015 5:03 PM, Arnd Bergmann wrote: On Monday 07 December 2015 09:38:43 Phil Reid wrote: This adds a debugfs entry to view the current status of the ptp registers. Signed-off-by: Phil Reid Your description should explain what this is good for. Why do you

Re: use-after-free in ip6_xmit

2015-12-07 Thread Dmitry Vyukov
Yes, seems to be fixed on master of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git. Just can't pull in all fixes from all trees. Sorry. When will it be merged into Linus tree? On Mon, Dec 7, 2015 at 3:39 PM, Eric Dumazet wrote: > On Mon, 2015-12-07 at 06:36

[PATCH 4.3 078/125] can: Use correct type in sizeof() in nla_put()

2015-12-07 Thread Greg Kroah-Hartman
4.3-stable review patch. If anyone has any objections, please let me know. -- From: Marek Vasut commit 562b103a21974c2f9cd67514d110f918bb3e1796 upstream. The sizeof() is invoked on an incorrect variable, likely due to some copy-paste error, and this might

Re: [RFC PATCH net] vxlan: fix incorrect RCO bit in VXLAN header

2015-12-07 Thread Thomas Graf
On 12/04/15 at 01:54pm, Jiri Benc wrote: > Commit 3511494ce2f3d ("vxlan: Group Policy extension") changed definition of > VXLAN_HF_RCO from 0x0020 to BIT(24). This is obviously incorrect. It's > also in violation with the RFC draft. > > Fixes: 3511494ce2f3d ("vxlan: Group Policy extension") >

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

2015-12-07 Thread Rob Herring
On Sat, Dec 05, 2015 at 03:59:16PM +0800, yankejian wrote: > when enet specisies a reference to dsaf, the correlative config and s/when/When/ > documents needs to update. this patch updates the correlative dtsi file s/this/This/ > and bindings documents . ^ extra space

[PATCH 4.1 62/95] can: Use correct type in sizeof() in nla_put()

2015-12-07 Thread Greg Kroah-Hartman
4.1-stable review patch. If anyone has any objections, please let me know. -- From: Marek Vasut commit 562b103a21974c2f9cd67514d110f918bb3e1796 upstream. The sizeof() is invoked on an incorrect variable, likely due to some copy-paste error, and this might

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

2015-12-07 Thread Bintian
On 2015/12/7 21:16, Rob Herring wrote: On Sat, Dec 05, 2015 at 03:54:48PM +0800, yankejian wrote: This patch adds documentation for the devicetree bindings used by the DT files of Hisilicon Hip05-D02 development board. Signed-off-by: yankejian You may need to configure

Re: [PATCH] I.MX6: Fix Ethernet PHY mode on Ventana boards

2015-12-07 Thread Tim Harvey
On Mon, Dec 7, 2015 at 4:56 AM, Krzysztof HaƂasa wrote: > Gateworks Ventana boards seem to need "RGMII-ID" (internal delay) > PHY mode, instead of simple "RGMII", for their Marvell 88E1510 > transceiver. Otherwise, the Ethernet MAC doesn't work with Marvell PHY > driver (TX

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

2015-12-07 Thread Arnd Bergmann
On Monday 07 December 2015 21:34:29 Phil Reid wrote: > On 7/12/2015 5:05 PM, Arnd Bergmann wrote: > > On Monday 07 December 2015 09:38:44 Phil Reid wrote: > >> Signed-off-by: Phil Reid > >> --- > >> Documentation/devicetree/bindings/net/socfpga-dwmac.txt | 2 ++ > >>

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

2015-12-07 Thread Phil Reid
On 7/12/2015 7:59 PM, Sergei Shtylyov wrote: On 12/07/2015 04:38 AM, Phil Reid wrote: +if(dwmac->f2h_ptp_ref_clk) Please run your patches thru scripts/checkpatch.pl (space needed after *if*). [...] MBR, Sergei Will do. -- Regards Phil Reid -- To unsubscribe from this list:

pull request [net]: batman-adv 20151207

2015-12-07 Thread Antonio Quartulli
Hello David, long time no see :) I know it starts to be a bit late in the release cycle, but I think that these 4 small bug-fixes are still worth being merged. Patch 1 fixes a compatibility issue between our Distributed ARP Table mechanism and the "early client detection" feature. Such issue

Re: rhashtable: Use __vmalloc with GFP_ATOMIC for table allocation

2015-12-07 Thread Thomas Graf
On 12/05/15 at 03:06pm, Herbert Xu wrote: > On Fri, Dec 04, 2015 at 07:15:55PM +0100, Phil Sutter wrote: > > > > > Only one should really do this, while others are waiting. > > > > Sure, that was my previous understanding of how this thing works. > > Yes that's clearly how it should be.

Re: [RFC PATCH V2 0/3] IXGBE/VFIO: Add live migration support for SRIOV NIC

2015-12-07 Thread Lan, Tianyu
On 12/5/2015 1:07 AM, Alexander Duyck wrote: We still need to support Windows guest for migration and this is why our patches keep all changes in the driver since it's impossible to change Windows kernel. That is a poor argument. I highly doubt Microsoft is interested in having to modify all

[PATCH] wlcore/wl12xx: spi: fix oops on firmware load

2015-12-07 Thread Uri Mashiach
The maximum chunks used by the function is (SPI_AGGR_BUFFER_SIZE / WSPI_MAX_CHUNK_SIZE + 1). The original commands array had space for (SPI_AGGR_BUFFER_SIZE / WSPI_MAX_CHUNK_SIZE) commands. When the last chunk is used (len > 4 * WSPI_MAX_CHUNK_SIZE), the last command is stored outside the bounds

Re: use-after-free in ip6_xmit

2015-12-07 Thread Eric Dumazet
On Mon, 2015-12-07 at 06:36 -0800, Eric Dumazet wrote: > Thanks > Also note that Dave Jones reported a SCTP problem fixed by : https://patchwork.ozlabs.org/patch/553068/ -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to

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

2015-12-07 Thread Kalle Valo
Peter Wu writes: > Originally I had the Cc: stable line added, but the SubmittingPatches > document seems to discourage that for networking. Added it again. Yeah, stable wireless patches are handled differently from rest of the networking subsystem. It would be great if

Checksum offload queries

2015-12-07 Thread Edward Cree
Having decided to take Dave Miller's advice to push our hardware guys in the direction of generic checksum offload, I found I wasn't quite sure exactly what's being encouraged. After discussing the subject with a colleague, some questions crystallised. I expect it's mostly a result of

[PATCH 4.2 085/124] can: Use correct type in sizeof() in nla_put()

2015-12-07 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Marek Vasut commit 562b103a21974c2f9cd67514d110f918bb3e1796 upstream. The sizeof() is invoked on an incorrect variable, likely due to some copy-paste error, and this might

Re: use-after-free in ip6_xmit

2015-12-07 Thread Eric Dumazet
On Mon, Dec 7, 2015 at 6:44 AM, Dmitry Vyukov wrote: > Yes, seems to be fixed on master of > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git. Just > can't pull in all fixes from all trees. Sorry. > When will it be merged into Linus tree? > As I said, they are

Re: [RFC PATCH V2 0/3] IXGBE/VFIO: Add live migration support for SRIOV NIC

2015-12-07 Thread Alexander Duyck
On Mon, Dec 7, 2015 at 7:40 AM, Lan, Tianyu wrote: > On 12/5/2015 1:07 AM, Alexander Duyck wrote: >>> >>> >>> We still need to support Windows guest for migration and this is why our >>> patches keep all changes in the driver since it's impossible to change >>> Windows

pull-request: wireless-drivers-next 2015-12-07

2015-12-07 Thread Kalle Valo
Hi Dave, here's the first "real" pull request after the wireless directory reorganisation. Nothing really out ordinary, new features and bugfixes as usual. This time there's a regression in ath10k because of a bugfix in wireless-drivers.git which conflicted with a patch in

[PATCH] r8152: fix lockup when runtime PM is enabled

2015-12-07 Thread Peter Wu
When an interface is brought up which was previously suspended (via runtime PM), it would hang. This happens because napi_disable is called before napi_enable. Solve this by avoiding napi_disable before the device is fully up. While at it, remove WORK_ENABLE check from rtl8152_open (introduced

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

2015-12-07 Thread Yoshihiro Kaneko
Hello, 2015-12-07 4:18 GMT+09:00 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

Re: [RFC PATCH net-next 1/2] tcp: RTO Restart (RTOR)

2015-12-07 Thread Eric Dumazet
On Mon, 2015-12-07 at 10:00 +0100, Per Hurtig wrote: \ > > +static u32 tcp_unsent_pkts(const struct sock *sk) > +{ > + struct sk_buff *skb = tcp_send_head(sk); > + u32 pkts = 0; > + > + if (skb) > + tcp_for_write_queue_from(skb, sk) > + pkts +=

Re: [PATCH v2 8/8] treewide: Remove newlines inside DEFINE_PER_CPU() macros

2015-12-07 Thread Joe Perches
On Mon, 2015-12-07 at 17:53 +0100, Michal Marek wrote: > On 2015-12-07 17:33, David Laight wrote: > > From: Michal Marek > > > Sent: 04 December 2015 15:26 > > > Otherwise make tags can't parse them: > > > > > > ctags: Warning: arch/ia64/kernel/smp.c:60: null expansion of name pattern > > > "\1"

[PATCH RFC 07/26] phy: marvell: 88E1512: add flow control support

2015-12-07 Thread Russell King
The Marvell PHYs support pause frame advertisments, so we should not be masking their support off. Add the necessary flag to the Marvell PHY to allow any MAC level pause frame support to be advertised. Signed-off-by: Russell King --- drivers/net/phy/marvell.c | 2

[PATCH RFC 06/26] phy: provide a hook for link up/link down events

2015-12-07 Thread Russell King
Sometimes, we need to do additional work between the PHY coming up and marking the carrier present - for example, we may need to wait for the PHY to MAC link to finish negotiation. This changes phylib to provide a notification function pointer which avoids the built-in netif_carrier_on() and

[PATCH RFC 11/26] phylink: add phylink infrastructure

2015-12-07 Thread Russell King
The link between the ethernet MAC and its PHY has become more complex as the interface evolves. This is especially true with serdes links, where the part of the PHY is effectively integrated into the MAC. Serdes links can be connected to a variety of devices, including SFF modules soldered down

[PATCH RFC 12/26] phylink: add hooks for SFP support

2015-12-07 Thread Russell King
Add support to phylink for SFP, which needs to control and configure the ethernet MAC link state. Specifically, SFP needs to: 1. set the negotiation mode between SGMII and 1000base-X 2. attach and detach the module PHY 3. prevent the link coming up when errors are reported In the absence of a

[PATCH RFC 10/26] phy: add I2C mdio bus

2015-12-07 Thread Russell King
Add an I2C MDIO bus bridge library, to allow phylib to access PHYs which are connected to an I2C bus instead of the more conventional MDIO bus. Such PHYs can be found in SFP adapters and SFF modules. Signed-off-by: Russell King --- drivers/net/phy/Kconfig| 10

[PATCH RFC 04/26] phy: generate swphy registers on the fly

2015-12-07 Thread Russell King
Generate software phy registers as and when requested, rather than duplicating the state in fixed_phy. This allows us to eliminate the duplicate storage of of the same data, which is only different in format. As fixed_phy_update_regs() no longer updates register state, rename it to

[PATCH RFC 02/26] phy: convert swphy register generation to tabular form

2015-12-07 Thread Russell King
Convert the swphy register generation to tabular form which allows us to eliminate multiple switch() statements. This results in a smaller object code size, more efficient, and easier to add support for faster speeds. Before: Idx Name Size VMA LMA File off Algn 0

[PATCH RFC 09/26] phy: export phy_speed_to_str() for phylink

2015-12-07 Thread Russell King
phylink would like to reuse phy_speed_to_str() to convert the speed to a string. Add a prototype and export this helper function. Signed-off-by: Russell King --- drivers/net/phy/phy.c | 3 ++- include/linux/phy.h | 1 + 2 files changed, 3 insertions(+), 1

[PATCH RFC 03/26] phy: separate swphy state validation from register generation

2015-12-07 Thread Russell King
Separate out the generation of MII registers from the state validation. This allows us to simplify the error handing in fixed_phy() by allowing earlier error detection. Signed-off-by: Russell King --- drivers/net/phy/fixed_phy.c | 15 +++

[PATCH RFC 05/26] phy: improve safety of fixed-phy MII register reading

2015-12-07 Thread Russell King
There is no prevention of a concurrent call to both fixed_mdio_read() and fixed_phy_update_state(), which can result in the state being modified while it's being inspected. Fix this by using a seqcount to detect modifications, and memcpy()ing the state. We remain slightly naughty here, calling

[PATCH RFC 01/26] phy: move fixed_phy MII register generation to a library

2015-12-07 Thread Russell King
Move the fixed_phy MII register generation to a library to allow other software phy implementations to use this code. Signed-off-by: Russell King --- drivers/net/phy/Kconfig | 4 ++ drivers/net/phy/Makefile| 3 +- drivers/net/phy/fixed_phy.c | 95

[PATCH RFC 14/26] sfp: display SFP module information

2015-12-07 Thread Russell King
Signed-off-by: Russell King --- drivers/net/phy/sfp.c | 245 +- 1 file changed, 244 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c index 70a375403e55..678298844203 100644 ---

Re: [RFC PATCH net-next 1/2] tcp: RTO Restart (RTOR)

2015-12-07 Thread Marcelo Ricardo Leitner
On Mon, Dec 07, 2015 at 10:00:11AM +0100, Per Hurtig wrote: > This patch implements the RTO restart modification (RTOR). When data is > ACKed, and the RTO timer is restarted, the time elapsed since the last > outstanding segment was transmitted is subtracted from the calculated RTO > value. This

[PATCH RFC 00/26] Phylink & SFP support

2015-12-07 Thread Russell King - ARM Linux
Hi, SFP modules are hot-pluggable ethernet transceivers; they can be detected at runtime and accordingly configured. There are a range of modules offering many different features. Some SFP modules have PHYs conventional integrated into them, others drive a laser diode from the Serdes bus. Some

Re: IPsec workshop/BoF at netdev1.1?

2015-12-07 Thread Eric Dumazet
On Mon, 2015-12-07 at 13:00 +0100, Steffen Klassert wrote: > Is there any interest in doing an IPsec workshop/BoF at netdev1.1? > > This mail is to probe if we can gather enough discussion topics to run > such a workshop/BoF. So if someone is interested to attend and/or has a > related discussion

[PATCH net] xfrm: take care of request sockets

2015-12-07 Thread Eric Dumazet
From: Eric Dumazet TCP SYNACK messages might now be attached to request sockets. XFRM needs to get back to a listener socket. Adds new helpers that might be used elsewhere : sk_to_full_sk() and sk_const_to_full_sk() Note: We also need to add RCU protection for xfrm

Re: [PATCH v2 8/8] treewide: Remove newlines inside DEFINE_PER_CPU() macros

2015-12-07 Thread Michal Marek
On 2015-12-07 17:33, David Laight wrote: > From: Michal Marek >> Sent: 04 December 2015 15:26 >> Otherwise make tags can't parse them: >> >> ctags: Warning: arch/ia64/kernel/smp.c:60: null expansion of name pattern >> "\1" > ... > > Seems to me you need to fix ctags. I'm sure the maintainers of

Re: [PATCH v2 8/8] treewide: Remove newlines inside DEFINE_PER_CPU() macros

2015-12-07 Thread Michal Marek
On 2015-12-07 18:04, Joe Perches wrote: > On Mon, 2015-12-07 at 17:53 +0100, Michal Marek wrote: >> On 2015-12-07 17:33, David Laight wrote: >>> From: Michal Marek Sent: 04 December 2015 15:26 Otherwise make tags can't parse them: ctags: Warning: arch/ia64/kernel/smp.c:60: null

[PATCH RFC 17/26] phylink: add ethtool nway_reset support

2015-12-07 Thread Russell King
Add ethtool nway_reset support to phylink, to allow userspace to request a re-negotiation of the link. Signed-off-by: Russell King --- drivers/net/phy/phylink.c | 14 ++ include/linux/phylink.h | 1 + 2 files changed, 15 insertions(+) diff --git

[PATCH RFC 23/26] net: mvneta: add EEE support

2015-12-07 Thread Russell King
Add EEE support to mvneta. This allows us to enable the low power idle support at MAC level if there is a PHY attached through phylink which supports LPI. The appropriate ethtool support is provided to allow the feature to be controlled, including ethtool statistics for EEE wakeup errors.

Re: [RFC PATCH V2 0/3] IXGBE/VFIO: Add live migration support for SRIOV NIC

2015-12-07 Thread Michael S. Tsirkin
On Mon, Dec 07, 2015 at 09:12:08AM -0800, Alexander Duyck wrote: > On Mon, Dec 7, 2015 at 7:40 AM, Lan, Tianyu wrote: > > On 12/5/2015 1:07 AM, Alexander Duyck wrote: > >>> > >>> > >>> We still need to support Windows guest for migration and this is why our > >>> patches

[PATCH RFC 16/26] phy: fixed-phy: remove fixed_phy_update_state()

2015-12-07 Thread Russell King
mvneta is the only user of fixed_phy_update_state(), which has been converted to use phylink instead. Remove fixed_phy_update_state(). Signed-off-by: Russell King --- drivers/net/phy/fixed_phy.c | 31 --- include/linux/phy_fixed.h | 9

[PATCH RFC 13/26] sfp: add phylink based SFP module support

2015-12-07 Thread Russell King
Add support for SFP hotpluggable modules via phylink. This supports both copper and optical SFP modules, which require different Serdes modes in order to properly negotiate the link. Optical SFP modules typically require the Serdes link to be talking 1000base-X mode - this is the gigabit

[PATCH RFC 24/26] phylink: add module EEPROM support

2015-12-07 Thread Russell King
Add support for reading module EEPROMs through phylink. Signed-off-by: Russell King --- drivers/net/phy/phylink.c | 66 +++ include/linux/phylink.h | 12 + 2 files changed, 78 insertions(+) diff --git

[PATCH RFC 18/26] net: mvneta: add nway_reset support

2015-12-07 Thread Russell King
Add ethtool nway_reset support to mvneta via phylink, so that userspace can request the link in whatever mode to be renegotiated via ethtool -r ethX. Signed-off-by: Russell King --- drivers/net/ethernet/marvell/mvneta.c | 8 1 file changed, 8 insertions(+)

[PATCH RFC 21/26] net: mvneta: enable flow control for PHY connections

2015-12-07 Thread Russell King
Enable flow control support for PHY connections by indicating our support via the ethtool capabilities. phylink takes care of the appropriate handling. Signed-off-by: Russell King --- drivers/net/ethernet/marvell/mvneta.c | 2 ++ 1 file changed, 2 insertions(+)

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

2015-12-07 Thread Jesse Gross
On Sun, Dec 6, 2015 at 7:02 PM, David Ahern wrote: > 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

Re: use-after-free in ip6_xmit

2015-12-07 Thread Eric Dumazet
On Mon, 2015-12-07 at 11:22 +0100, Dmitry Vyukov wrote: > Hello, > > The following program triggers use-after-free in ip6_xmit: > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > #include > #include > #include > #include > #include > #include > #include > #include >

[PATCH RFC 20/26] net: mvneta: add flow control support via phylink

2015-12-07 Thread Russell King
Add flow control support to mvneta, including the ethtool hooks. This uses the phylink code to calculate the result of autonegotiation where a phy is attached, and to handle the ethtool settings. Signed-off-by: Russell King --- drivers/net/ethernet/marvell/mvneta.c

[PATCH RFC 26/26] sfp/phylink: hook up eeprom functions

2015-12-07 Thread Russell King
Signed-off-by: Russell King --- drivers/net/phy/sfp.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c index 678298844203..feb5f7062b2c 100644 --- a/drivers/net/phy/sfp.c +++

[PATCH RFC 15/26] net: mvneta: convert to phylink

2015-12-07 Thread Russell King
Convert mvneta to use phylink, which models the MAC to PHY link in a generic, reusable form. Signed-off-by: Russell King --- drivers/net/ethernet/marvell/Kconfig | 2 +- drivers/net/ethernet/marvell/mvneta.c | 399 +++--- 2 files

[PATCH RFC 22/26] phylink: add EEE support

2015-12-07 Thread Russell King
Add EEE hooks to phylink to allow the phylib EEE functions for the connected phy to be safely accessed. Signed-off-by: Russell King --- drivers/net/phy/phylink.c | 58 ++- include/linux/phylink.h | 7 +- 2 files

[PATCH RFC 19/26] phylink: add flow control support

2015-12-07 Thread Russell King
Add flow control support, including ethtool support, to phylink. We add support to allow ethtool to get and set the current flow control settings, and the 802.3 specified resolution for the local and remote link partner abilities. Signed-off-by: Russell King ---

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

2015-12-07 Thread Bruno Randolf
On 12/06/2015 09:39 PM, Peter Wu wrote: >>> While using the rtl8192cu driver in monitor mode, somehow 5G of memory >>> was permanently lost (observable via the Available column in `free -m`). >>> >>> This issue has existed since the introduction of this driver in v2.6.x, One more reason to switch

[PATCH net] ipv6: sctp: fix lockdep splat in sctp_v6_get_dst()

2015-12-07 Thread Eric Dumazet
From: Eric Dumazet While cooking the sctp np->opt rcu fixes, I forgot to move one rcu_read_unlock() after the added rcu_dereference() in sctp_v6_get_dst() This gave lockdep warnings reported by Dave Jones. Fixes: c836a8ba9386 ("ipv6: sctp: add rcu protection around

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

2015-12-07 Thread Sergei Shtylyov
Hello. On 12/07/2015 07:59 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:

RE: [PATCH v2 8/8] treewide: Remove newlines inside DEFINE_PER_CPU() macros

2015-12-07 Thread David Laight
From: Michal Marek > Sent: 04 December 2015 15:26 > Otherwise make tags can't parse them: > > ctags: Warning: arch/ia64/kernel/smp.c:60: null expansion of name pattern "\1" ... Seems to me you need to fix ctags. David -- To unsubscribe from this list: send the line "unsubscribe netdev"

Re: Checksum offload queries

2015-12-07 Thread Tom Herbert
On Mon, Dec 7, 2015 at 7:39 AM, Edward Cree wrote: > Having decided to take Dave Miller's advice to push our hardware guys in the > direction of generic checksum offload, I found I wasn't quite sure exactly > what's being encouraged. After discussing the subject with a

[PATCH RFC 08/26] phy: export phy_start_machine() for phylink

2015-12-07 Thread Russell King
phylink will need phy_start_machine exported, so lets export it as a GPL symbol. Documentation/networking/phy.txt indicates that this should be a PHY API function. Signed-off-by: Russell King --- drivers/net/phy/phy.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH v2 next 0/2] dts: hisi: fixes no syscon error when init mdio

2015-12-07 Thread yankejian
this patchset fixes the bug that eth can't initial successful on hip05-D02 because the dts files doesn't match the source code. yankejian (2): dts: hisi: fixes no syscon error when init mdio net: hns: fixes no syscon error when init mdio --- change log: v2: 1) update the related documented

[PATCH v2 next 1/2] dts: hisi: fixes no syscon error when init mdio

2015-12-07 Thread yankejian
Signed-nux start up, we get the log below: "Hi-HNS_MDIO 803c.mdio: no syscon hisilicon,peri-c-subctrl mdio_bus mdio@803c: mdio sys ctl reg has not maped " the source code about the subctrl is dealled with syscon, but dts doesn't. it cause such fault. so this patch adds the syscon

[RFC PATCH net-next 1/2] tcp: RTO Restart (RTOR)

2015-12-07 Thread Per Hurtig
This patch implements the RTO restart modification (RTOR). When data is ACKed, and the RTO timer is restarted, the time elapsed since the last outstanding segment was transmitted is subtracted from the calculated RTO value. This way, the RTO timer will expire after exactly RTO seconds, and not RTO

[RFC PATCH net-next 0/2] tcp: timer restart for tail loss

2015-12-07 Thread Per Hurtig
This is a request for comments. RTO and TLP restart is a modification to the restart process of the RTO and TLP timers in TCP. Currently, both timers are restarted with its corresponding timeout value when an acknowledgment (ACK) for correctly received data is received. In many situations,

[RFC PATCH net-next 2/2] tcp: TLP restart (TLPR)

2015-12-07 Thread Per Hurtig
This patch implements the TLP restart modification (TLPR). When data is ACKed, and TLP's PTO timer is restarted, the time elapsed since the last outstanding segment was transmitted is subtracted from the calculated RTO value to not unnecessarily delay loss probes. Signed-off-by: Per Hurtig

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

2015-12-07 Thread Arnd Bergmann
On Monday 07 December 2015 09:38:44 Phil Reid wrote: > 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

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

2015-12-07 Thread Joe Perches
On Mon, 2015-12-07 at 16:58 +0800, Yankejian (Hackim Yim) wrote: > On 2015/12/7 11:32, Joe Perches wrote: > > 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 <

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

2015-12-07 Thread Arnd Bergmann
On Monday 07 December 2015 09:38:43 Phil Reid wrote: > This adds a debugfs entry to view the current status of the ptp > registers. > > Signed-off-by: Phil Reid > Your description should explain what this is good for. Why do you need to look at this through debugfs?

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

2015-12-07 Thread Yankejian (Hackim Yim)
On 2015/12/7 17:05, Joe Perches wrote: > On Mon, 2015-12-07 at 16:58 +0800, Yankejian (Hackim Yim) wrote: >> On 2015/12/7 11:32, Joe Perches wrote: >>> On Sun, 2015-12-06 at 22:29 -0500, David Miller wrote: > From: yankejian > Date: Sat, 5 Dec 2015 15:32:29 +0800

Re: (4.3.0) r8152: deadlock related to runtime suspend?

2015-12-07 Thread Peter Wu
On Mon, Dec 07, 2015 at 05:11:50PM +0800, Lu Baolu wrote: > Hi Peter, > > Have you ever tried disabling auto-pm? Did things go smoothly if auto-pm is > disabled? > > I always disable usb auto-pm in below way. > > # echo on | tee /sys/bus/usb/devices/*/power/control > # echo on >

Re: ipsec impact on performance

2015-12-07 Thread Steffen Klassert
On Thu, Dec 03, 2015 at 06:38:20AM -0500, Sowmini Varadhan wrote: > On (12/03/15 09:45), Steffen Klassert wrote: > > pcrypt(echainiv(authenc(hmac(sha1-ssse3),cbc-aes-aesni))) > > > > Result: > > > > iperf -c 10.0.0.12 -t 60 > > > >

Re: (4.3.0) r8152: deadlock related to runtime suspend?

2015-12-07 Thread Lu Baolu
Hi Peter, Have you ever tried disabling auto-pm? Did things go smoothly if auto-pm is disabled? I always disable usb auto-pm in below way. # echo on | tee /sys/bus/usb/devices/*/power/control # echo on > /sys/bus/pci/devices//power/control Thanks, Baolu On 12/05/2015 06:59 PM, Peter Wu

Re: [net-next v5 0/8] dpaa_eth: Add the Freescale DPAA Ethernet driver

2015-12-07 Thread Madalin-Cristian Bucur
Hi Timur, I've managed somehow to make got send-email to move the From: line in the body instead of the header, probably typed something wrong when asked to confirm the sender. I've resent the series. Regards, Madalin From: Timur Tabi

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

2015-12-07 Thread Arnd Bergmann
On Monday 07 December 2015 15:14:13 Yankejian wrote: > 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 > >>

[PATCH] prism54: fix compare_const_fl.cocci warnings (fwd)

2015-12-07 Thread Julia Lawall
Move constants to the right of binary operators. Generated by: scripts/coccinelle/misc/compare_const_fl.cocci Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- It looks a little nicer to me because n is the thing we care about.

[PATCH] netfilter: nfnetlink_queue: Unregister pernet subsys in case of init failure

2015-12-07 Thread Nikolay Borisov
Commit 3bfe049807c2403 ('netfilter: nfnetlink_{log,queue}: Register pernet in first place') reorganised the initialisation order of the pernet_subsys to avoid "use-before-initialised" condition. However, in doing so the cleanup logic in nfnetlink_queue got botched in that the pernet_subsys wasn't

  1   2   3   >