[PATCH v3] qrtr: add MODULE_ALIAS macro to smd

2018-02-24 Thread Ramon Fried
Added MODULE_ALIAS("rpmsg:IPCRTR") to ensure qrtr-smd and qrtr will load when IPCRTR channel is detected. Signed-off-by: Ramon Fried --- V2: Corrected subject line, this is not a part of a patchset. V3: Placed the changelog under the ---. net/qrtr/smd.c | 1 + 1 file

Re: [PATCH v2] qrtr: add MODULE_ALIAS macro to smd

2018-02-24 Thread Kalle Valo
Ramon Fried writes: > Added MODULE_ALIAS("rpmsg:IPCRTR") to ensure qrtr-smd and qrtr will load > when IPCRTR channel is detected. > > Signed-off-by: Ramon Fried > > V2: Corrected subject line, this is not a part of a patchset. > --- >

[PATCH v2] qrtr: add MODULE_ALIAS macro to smd

2018-02-24 Thread Ramon Fried
Added MODULE_ALIAS("rpmsg:IPCRTR") to ensure qrtr-smd and qrtr will load when IPCRTR channel is detected. Signed-off-by: Ramon Fried V2: Corrected subject line, this is not a part of a patchset. --- net/qrtr/smd.c | 1 + 1 file changed, 1 insertion(+) diff --git

[net] ba4f5b62a2: kernel_BUG_at_net/socket.c

2018-02-24 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: ba4f5b62a2565718cf1b85e736df12da68bbb114 ("net: mark slab's used by ss as UAPI") url: https://github.com/0day-ci/linux/commits/Stephen-Hemminger/mark-some-slabs-as-visible-not-mergeable/20180225-084344 in testcase: trinity with

[PATCH 1/6] qrtr: add MODULE_ALIAS macro to smd

2018-02-24 Thread Ramon Fried
Added MODULE_ALIAS("rpmsg:IPCRTR") to ensure qrtr-smd and qrtr will load when IPCRTR channel is detected. Signed-off-by: Ramon Fried --- net/qrtr/smd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/qrtr/smd.c b/net/qrtr/smd.c index 50615d5efac1..9cf089b9754e

[PATCH net-next 3/5] ipv6: fib6_rules: support for match on sport, dport and ip proto

2018-02-24 Thread Roopa Prabhu
From: Roopa Prabhu support to match on src port, dst port and ip protocol. Signed-off-by: Roopa Prabhu --- net/ipv6/fib6_rules.c | 9 + 1 file changed, 9 insertions(+) diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c

[PATCH net-next 5/5] ipv6: route: dissect flow in input path if fib rules need it

2018-02-24 Thread Roopa Prabhu
From: Roopa Prabhu Dissect flow in fwd path if fib rules require it. Controlled by a flag to avoid penatly for the common case. Flag is set when fib rules with sport, dport and proto match that require flow dissect are installed. Also passes the dissected hash keys to

[PATCH net-next 4/5] ipv4: route: dissect flow in input path if fib rules need it

2018-02-24 Thread Roopa Prabhu
From: Roopa Prabhu Dissect flow in fwd path if fib rules require it. Controlled by a flag to avoid penatly for the common case. Flag is set when fib rules with sport, dport and proto match that require flow dissect are installed. Also passes the dissected hash keys to

[PATCH net-next 2/5] ipv4: fib_rules: support match on sport, dport and ip proto

2018-02-24 Thread Roopa Prabhu
From: Roopa Prabhu support to match on src port, dst port and ip protocol. Signed-off-by: Roopa Prabhu --- net/ipv4/fib_rules.c | 9 + 1 file changed, 9 insertions(+) diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c index

[PATCH net-next 0/5] fib_rules: support sport, dport and ip proto match

2018-02-24 Thread Roopa Prabhu
From: Roopa Prabhu This series extends fib rule match support to include sport, dport and ip proto match (to complete the 5-tuple match support). Common use-cases of Policy based routing in the data center require 5-tuple match. The last 2 patches in the series add a

[PATCH net-next 1/5] net: fib_rules: support for match on ip_proto, sport and dport

2018-02-24 Thread Roopa Prabhu
From: Roopa Prabhu uapi for ip_proto, sport and dport range match in fib rules. Signed-off-by: Roopa Prabhu --- include/net/fib_rules.h| 31 +- include/uapi/linux/fib_rules.h | 8 net/core/fib_rules.c |

Re: [PATCH 2/2] net: mark slab's used by ss as UAPI

2018-02-24 Thread kbuild test robot
Hi Stephen, I love your patch! Perhaps something to improve: [auto build test WARNING on net/master] [also build test WARNING on v4.16-rc2 next-20180223] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] DT: net: renesas,ravb: document R8A77980 bindings

2018-02-24 Thread David Miller
From: Sergei Shtylyov Date: Sat, 24 Feb 2018 21:01:15 +0300 > On 02/01/2018 11:13 PM, Sergei Shtylyov wrote: > >> Renesas R-Car V3H (R8A77980) SoC has the R-Car gen3 compatible EtherAVB >> device, so document the SoC specific bindings. >> >> Signed-off-by:

Re: ss issue on arm not showing UDP listening ports

2018-02-24 Thread Jesse Cooper
Thank you all for your help. This has been very educational. I will change the settings on my build and create a new image. On February 23, 2018 7:58:31 AM CST, Guillaume Nault wrote: >On Thu, Feb 22, 2018 at 12:08:19PM -0500, jesse_coo...@codeholics.com >wrote: >> >>

[PATCH net 3/4] net/sonic: Clean up and modernize log messages

2018-02-24 Thread Finn Thain
Add missing printk severity levels by adopting pr_foo() calls for the platform_driver and dev_foo() calls for the nubus_driver. Avoid KERN_CONT usage as per advice from checkpatch. Avoid #ifdef around printk calls. Don't log driver probe messages after calling register_netdev(). Cc: Thomas

[PATCH net 4/4] net/sonic: Replace custom debug logging with netif_* calls

2018-02-24 Thread Finn Thain
Eliminate duplicated debug code by moving it into the core driver. Don't log the only valid silicon revision number (it's in the source). Cc: Thomas Bogendoerfer Cc: Chris Zankel Tested-by: Stan Johnson Signed-off-by: Finn Thain

[PATCH net 0/4] Fixes, cleanup and modernization for SONIC ethernet drivers

2018-02-24 Thread Finn Thain
Changes since v4 of combined patch series: - Removed redundant and non-portable MACH_IS_MAC tests. - Omitted patches unrelated to SONIC drivers. - Dropped changes to the 'version_printed' logic and debug message text. Finn Thain (4): net/macsonic: Convert to nubus_driver net/macsonic: Drop

[PATCH net 1/4] net/macsonic: Convert to nubus_driver

2018-02-24 Thread Finn Thain
This resolves an old issue preventing any NuBus SONIC NICs from working in a Mac with an on-board SONIC device. Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/net/ethernet/natsemi/macsonic.c | 173 ++-- 1

[PATCH net 2/4] net/macsonic: Drop redundant MACH_IS_MAC test

2018-02-24 Thread Finn Thain
The MACH_IS_MAC test is redundant here because the platform device won't get registered unless MACH_IS_MAC. Cc: Geert Uytterhoeven Signed-off-by: Finn Thain --- drivers/net/ethernet/natsemi/macsonic.c | 3 --- 1 file changed, 3 deletions(-)

[PATCH] netdev: carrier detect ok, don't turn off negotiation

2018-02-24 Thread Denis Du
Sometimes when physical lines have a just good noise to make the protocol handshaking fail, but the carrier detect still good. Then after remove of the noise, nobody will trigger this protocol to be start again to cause the link to never come back. The fix is when the carrier is still on, not

Re: ppp/pppoe, still panic 4.15.3 in ppp_push

2018-02-24 Thread Denys Fedoryshchenko
On 2018-02-23 12:07, Guillaume Nault wrote: On Fri, Feb 23, 2018 at 11:41:43AM +0200, Denys Fedoryshchenko wrote: On 2018-02-23 11:38, Guillaume Nault wrote: > On Thu, Feb 22, 2018 at 08:51:19PM +0200, Denys Fedoryshchenko wrote: > > I'm using accel-ppp that has unit-cache option, i guess for >

Re: [PATCH 0/2] mark some slabs as visible not mergeable

2018-02-24 Thread Matthew Wilcox
On Sat, Feb 24, 2018 at 11:04:52AM -0800, Stephen Hemminger wrote: > This fixes an old bug in iproute2's ss command because it was > reading slabinfo to get statistics. There isn't a better API > to do this, and one can argue that /proc is a UAPI that must > not change. > > Therefore this patch

[PATCH net-next] sh_eth: fix TSU init on SH7734/R8A7740

2018-02-24 Thread Sergei Shtylyov
It appears that the single port Ether controllers having TSU (like SH7734/ R8A7740) need the same kind of treating in sh_eth_tsu_init() as R7S72100 currently has -- they also don't have the TSU registers related e.g. to passing the frames between ports. Add the 'sh_eth_cpu_data::dual_port' flag

[PATCH iproute2 3/3] ss: update slabinfo names and sum IPv4 and IPv6

2018-02-24 Thread Stephen Hemminger
For a long time the name of slabs for TCP sockets have changed. And ss summary was missing them. Also it never handled IPv6. Change the code to sum values from both protocols. Also, print error if slabinfo can not be opened. Typically this is attempt to run 'ss -s' as non-root user and

[PATCH iproute2 2/3] ss: convert socket statistics to unsigned

2018-02-24 Thread Stephen Hemminger
The kernel keeps these values as unsigned not signed integer. Signed-off-by: Stephen Hemminger --- misc/ss.c | 96 +++ 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/misc/ss.c b/misc/ss.c

[PATCH iproute2 0/3] ss: fix slab statistics

2018-02-24 Thread Stephen Hemminger
The ss -s command has been broken in several places since the 2.6.13 kernel. The slab values it is looking for have changed names and kernel started merging the values (see kernel patch for fixing that). Stephen Hemminger (3): ss: drop unused slabstat for skb's ss: convert socket statistics

[PATCH iproute2 1/3] ss: drop unused slabstat for skb's

2018-02-24 Thread Stephen Hemminger
This value is not used anywhere in current code. Signed-off-by: Stephen Hemminger --- misc/ss.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/misc/ss.c b/misc/ss.c index e047f9c04582..fefe5c813c44 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -678,7 +678,6 @@

[PATCH 2/2] net: mark slab's used by ss as UAPI

2018-02-24 Thread Stephen Hemminger
The iproute2 ss command reads /proc/slabinfo as way to get estimates for number of open sockets etc. This has been broken since slab merging went in 3.17. Mark those kmem caches's as non mergeable with new flag. The TCP caches's are already not mergeable because of the RCU flags, but someone

[PATCH 1/2] slab: add flag to block merging of UAPI elements

2018-02-24 Thread Stephen Hemminger
The iproute2 program ss reads /proc/slabinfo to get TCP socket statistics; therefore those kmem cache's can not be merged. This patch adds a new flag to block merging in these kind of cases. Signed-off-by: Stephen Hemminger --- include/linux/slab.h | 6 ++

[PATCH 0/2] mark some slabs as visible not mergeable

2018-02-24 Thread Stephen Hemminger
This fixes an old bug in iproute2's ss command because it was reading slabinfo to get statistics. There isn't a better API to do this, and one can argue that /proc is a UAPI that must not change. Therefore this patch set adds a flag to slab to give another reason to prevent merging, and then uses

Re: tcp_bind_bucket is missing from slabinfo

2018-02-24 Thread Stephen Hemminger
On Sat, 24 Feb 2018 06:35:20 -0800 Matthew Wilcox wrote: > On Fri, Feb 23, 2018 at 10:50:30PM -0800, Stephen Hemminger wrote: > > Somewhere back around 3.17 the kmem cache "tcp_bind_bucket" dropped out > > of /proc/slabinfo. It turns out the ss command was dumpster diving >

[PATCH] xfrm: mark kmem_caches as __ro_after_init

2018-02-24 Thread Alexey Dobriyan
Kmem caches aren't relocated once set up. Signed-off-by: Alexey Dobriyan --- net/xfrm/xfrm_input.c |3 ++- net/xfrm/xfrm_policy.c |2 +- 2 files changed, 3 insertions(+), 2 deletions(-) --- a/net/xfrm/xfrm_input.c +++ b/net/xfrm/xfrm_input.c @@ -9,6 +9,7 @@ */

[PATCH] net: make kmem caches as __ro_after_init

2018-02-24 Thread Alexey Dobriyan
All kmem caches aren't reallocated once set up. Signed-off-by: Alexey Dobriyan --- net/core/net_namespace.c |2 +- net/core/skbuff.c|4 ++-- net/ipv4/fib_trie.c |5 +++-- net/ipv4/inetpeer.c |3 ++- net/ipv4/ipmr.c |3 ++-

Re: [PATCH] DT: net: renesas,ravb: document R8A77980 bindings

2018-02-24 Thread Sergei Shtylyov
On 02/01/2018 11:13 PM, Sergei Shtylyov wrote: > Renesas R-Car V3H (R8A77980) SoC has the R-Car gen3 compatible EtherAVB > device, so document the SoC specific bindings. > > Signed-off-by: Sergei Shtylyov > > --- > The patch is against DaveM's 'net-next.git'

[PATCH net-next] sh_eth: TSU_QTAG0/1 registers the same as TSU_QTAGM0/1

2018-02-24 Thread Sergei Shtylyov
The TSU_QTAG0/1 registers found in the Gigabit Ether controllers actually have the same long name as the TSU_QTAGM0/1 registers in the early Ether controllers: Qtag Addition/Deletion Set Register (Port 0/1 to 1/0); thus there's no need to make a difference in sh_eth_tsu_init() between those

[PATCH V8 2/4] sctp: Add ip option support

2018-02-24 Thread Richard Haines
Add ip option support to allow LSM security modules to utilise CIPSO/IPv4 and CALIPSO/IPv6 services. Signed-off-by: Richard Haines --- All SCTP lksctp-tools/src/func_tests run correctly in enforcing mode. All "./sctp-tests run" obtained from:

[PATCH net-next v2] r8169: improve interrupt handling

2018-02-24 Thread Heiner Kallweit
This patch improves few aspects of interrupt handling: - update to current interrupt allocation API (use pci_alloc_irq_vectors() instead of deprecated pci_enable_msi()) - this implicitly will allocate a MSI-X interrupt if available - get rid of flag RTL_FEATURE_MSI - remove some dead code,

Re: [PATCH net-next] r8169: improve interrupt handling

2018-02-24 Thread Heiner Kallweit
Am 24.02.2018 um 02:35 schrieb Francois Romieu: > Heiner Kallweit : > [...] >> Last but not least it enables a feature which was (I presume accidently) >> disabled before. There are members of the RTL8169 family supporting MSI >> (e.g. RTL8169SB), however MSI never got

Re: tcp_bind_bucket is missing from slabinfo

2018-02-24 Thread Matthew Wilcox
On Fri, Feb 23, 2018 at 10:50:30PM -0800, Stephen Hemminger wrote: > Somewhere back around 3.17 the kmem cache "tcp_bind_bucket" dropped out > of /proc/slabinfo. It turns out the ss command was dumpster diving > in slabinfo to determine the number of bound sockets and now it always > reports 0. >

[no subject]

2018-02-24 Thread Roxana Guerrero Nunez
Herzlichen Glückwunsch, Sie haben € 650.000,00 bei den monatlichen Gewinnspielen von Euro Millions / Google Promo am Februar 2018 gewonnen. Kontaktieren Sie unseren Schadenversicherer E-Mail: eurosilli...@gmail.com 1. Vollständiger Name: 2. Adresse: 3. Sex: 4. Alter: 5. Beruf: 6.

RE: [Crypto v7 03/12] tls: support for inline tls

2018-02-24 Thread Atul Gupta
-Original Message- From: Dave Watson [mailto:davejwat...@fb.com] Sent: Friday, February 23, 2018 11:03 PM To: Atul Gupta Cc: da...@davemloft.net; herb...@gondor.apana.org.au; s...@queasysnail.net; linux-cry...@vger.kernel.org; netdev@vger.kernel.org; Ganesh GR

NETDEV WATCHDOG: eth0 (tg3): transmit queue 0 timed out

2018-02-24 Thread Borislav Petkov
Hi, this didn't happen before but after 4.16-rc1 my tg3 nic stops for whatever reason and the connection to the machine is dead. It didn't show anything in dmesg until today. The IO pagefaults look like it is trying to access something it shouldn't and maybe that's why it times out. It triggers

Re: [for-next 7/7] IB/mlx5: Implement fragmented completion queue (CQ)

2018-02-24 Thread Majd Dibbiny
> On Feb 23, 2018, at 9:13 PM, Saeed Mahameed wrote: > >> On Thu, 2018-02-22 at 16:04 -0800, Santosh Shilimkar wrote: >> Hi Saeed >> >>> On 2/21/2018 12:13 PM, Saeed Mahameed wrote: >>> From: Yonatan Cohen >>> >>> The current implementation of