Re: [PATCH RFC net-next 0/7] net/ipv6: Add support for path selection using hash of 5-tuple

2018-02-13 Thread Or Gerlitz
On Tue, Feb 13, 2018 at 2:05 AM, David Ahern wrote: > Hardware supports multipath selection using the standard L4 5-tuple > instead of just L3 and the flow label. In addition, some network > operators prefer IPv6 path selection to use the 5-tuple. The HW supports using flow

[PATCHv2 net 1/2] sctp: rename sctp_diag.c as diag.c

2018-02-13 Thread Xin Long
Remove 'sctp_' prefix for diag file, to keep consistent with other files' names. Signed-off-by: Xin Long --- net/sctp/Makefile| 2 + net/sctp/diag.c | 526 +++ net/sctp/sctp_diag.c | 526

[PATCHv2 net 0/2] sctp: rename sctp diag file and add file comments for it

2018-02-13 Thread Xin Long
This patchset is to remove the sctp_ prefix for sctp diag file, and also to add the missing file comments for it. v1->v2: split them into two patches as Marcelo suggested. Xin Long (2): sctp: rename sctp_diag.c as diag.c sctp: add file comments in diag.c net/sctp/Makefile| 2 +

[PATCHv2 net 2/2] sctp: add file comments in diag.c

2018-02-13 Thread Xin Long
This patch is to add the missing file comments for sctp diag file. Signed-off-by: Xin Long --- net/sctp/diag.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/net/sctp/diag.c b/net/sctp/diag.c index a72a7d9..078f01a 100644 ---

Re: [PATCH RFC net-next 0/7] net/ipv6: Add support for path selection using hash of 5-tuple

2018-02-13 Thread Or Gerlitz
On Tue, Feb 13, 2018 at 2:42 PM, Ido Schimmel wrote: > On Tue, Feb 13, 2018 at 01:03:14PM +0200, Or Gerlitz wrote: >> On Tue, Feb 13, 2018 at 2:05 AM, David Ahern wrote: >> > Hardware supports multipath selection using the standard L4 5-tuple >> > instead of

[bpf-next PATCH] net: avoid including xdp.h in filter.h

2018-02-13 Thread Jesper Dangaard Brouer
If is sufficient with a forward declaration of struct xdp_rxq_info in linux/filter.h, which avoids including net/xdp.h. This was originally suggested by John Fastabend during the review phase, but wasn't included in the final patchset revision. Thus, this followup. Suggested-by: John Fastabend

Re: Re: Commit 05cf0d1bf4 ("net: stmmac: free an skb first when there are no longer any descriptors using it") breaks stmmac?

2018-02-13 Thread Niklas Cassel
Hello Jose, I remember that you had a problem with a use after free in stmmac_tx_clean(). I still don't think that it is related to commit 05cf0d1bf4, however, when comparing the stmmac driver to the amd-xgbe driver I realized that: xgbe_tx_poll() has both a smp_rmb() after fetching cur_tx, and

[PATCHv2 net] sctp: fix some copy-paste errors for file comments

2018-02-13 Thread Xin Long
This patch is to fix the file comments in stream.c and stream_interleave.c v1->v2: rephrase the comment for stream.c according to Neil's suggestion. Fixes: a83863174a61 ("sctp: prepare asoc stream for stream reconf") Fixes: 0c3f6f655487 ("sctp: implement make_datafrag for

Re: [PATCH 1/2] net: phy: dp83867: Add binding for the CLK_OUT pin muxing option

2018-02-13 Thread Andrew Lunn
On Tue, Feb 13, 2018 at 10:42:31AM +0100, Daniel Schultz wrote: > From: Wadim Egorov > > The DP83867 has a muxing option for the CLK_OUT pin. It is possible > to set CLK_OUT for different channels. > Create a binding to select a specific clock for CLK_OUT pin. > >

Re: [PATCHv2 net] sctp: fix some copy-paste errors for file comments

2018-02-13 Thread Neil Horman
On Tue, Feb 13, 2018 at 07:29:13PM +0800, Xin Long wrote: > This patch is to fix the file comments in stream.c and > stream_interleave.c > > v1->v2: > rephrase the comment for stream.c according to Neil's suggestion. > > Fixes: a83863174a61 ("sctp: prepare asoc stream for stream reconf") >

Re: [PATCHv2 net 0/2] sctp: rename sctp diag file and add file comments for it

2018-02-13 Thread Neil Horman
On Tue, Feb 13, 2018 at 07:33:19PM +0800, Xin Long wrote: > This patchset is to remove the sctp_ prefix for sctp diag file, > and also to add the missing file comments for it. > > v1->v2: > split them into two patches as Marcelo suggested. > > Xin Long (2): > sctp: rename sctp_diag.c as

Re: [PATCH] ravb: add support for changing MTU

2018-02-13 Thread Niklas Söderlund
Hi Sergei, Thanks for your feedback. On 2018-02-13 13:01:04 +0300, Sergei Shtylyov wrote: > Hello! > > On 02/12/2018 11:00 PM, Niklas Söderlund wrote: > > > Allow for chancing the MTU within the limit of the maximum size of a > >Changing. :-) Yes :-) > > > descriptor (2048 bytes). Add

[PATCH v7 30/37] nds32: Build infrastructure

2018-02-13 Thread Greentime Hu
This patch adds Makefile, Kconfig and vmlinux.lds.S files required for building an nds32 kernel. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/Kconfig | 103 ++ arch/nds32/Kconfig.cpu

[PATCH v7 33/37] dt-bindings: nds32 L2 cache controller Bindings

2018-02-13 Thread Greentime Hu
This patch adds nds32 L2 cache controller binding documents. Signed-off-by: Greentime Hu Reviewed-by: Rob Herring Acked-by: Arnd Bergmann --- Documentation/devicetree/bindings/nds32/atl2c.txt | 28 +++ 1 file

[PATCH v7 34/37] dt-bindings: nds32 SoC Bindings

2018-02-13 Thread Greentime Hu
This patch adds nds32 SoC(AE3XX and AG101P) binding documents. Signed-off-by: Greentime Hu Reviewed-by: Rob Herring Acked-by: Arnd Bergmann --- .../devicetree/bindings/nds32/andestech-boards | 40 ++ 1 file

[PATCH v7 35/37] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller

2018-02-13 Thread Greentime Hu
This patch adds an irqchip driver document for the Andestech Internal Vector Interrupt Controller. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Reviewed-by: Rob Herring Acked-by: Arnd Bergmann ---

Re: [PATCH net-next 7/8] net: sched: act: handle extack in tcf_generic_walker

2018-02-13 Thread Davide Caratti
On Mon, 2018-02-12 at 15:19 -0500, Alexander Aring wrote: > > @@ -211,7 +212,8 @@ int tcf_generic_walker(struct tc_action_net *tn, struct > sk_buff *skb, > } else if (type == RTM_GETACTION) { > return tcf_dump_walker(idrinfo, skb, cb); > } else { > -

[PATCH v7 15/37] nds32: Atomic operations

2018-02-13 Thread Greentime Hu
This patch includes the atomic and futex operations. Many atomic operations use the load-lock word(llw) and store-condition word(scw) operations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann ---

Re: [PATCH net v3] tipc: fix missing RTNL lock protection during setting link properties

2018-02-13 Thread Kirill Tkhai
Hi, Ying, On 13.02.2018 12:04, Ying Xue wrote: > Currently when user changes link properties, TIPC first checks if > user's command message contains media name or bearer name through > tipc_media_find() or tipc_bearer_find() which is protected by RTNL > lock. But when tipc_nl_compat_link_set()

Re: [PATCH 5/5] mtd: Stop updating erase_info->state and calling mtd_erase_callback()

2018-02-13 Thread Bert Kenward
On 12/02/18 21:03, Boris Brezillon wrote: > MTD users are no longer checking erase_info->state to determine if the > erase operation failed or succeeded. Moreover, mtd_erase_callback() is > now a NOP. > > We can safely get rid of all mtd_erase_callback() calls and all > erase_info->state

Re: lost connection to test machine (4)

2018-02-13 Thread Eric Dumazet
On Mon, 2018-02-12 at 12:05 -0800, Tejun Heo wrote: > On Mon, Feb 12, 2018 at 09:03:25AM -0800, Tejun Heo wrote: > > Hello, Daniel. > > > > On Mon, Feb 12, 2018 at 06:00:13PM +0100, Daniel Borkmann wrote: > > > [ +Dennis, +Tejun ] > > > > > > Looks like we're stuck in percpu allocator with

[PATCH net-next 1/2] net: Make extern and export get_net_ns()

2018-02-13 Thread Kirill Tkhai
This function will be used to obtain net of tun device. Signed-off-by: Kirill Tkhai --- include/linux/socket.h |2 ++ net/socket.c |3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/linux/socket.h b/include/linux/socket.h index

[PATCH net-next 2/2] tun: Add ioctl() SIOCGSKNS cmd to allow obtaining net ns of tun device

2018-02-13 Thread Kirill Tkhai
This patch adds possibility to get tun device's net namespace fd in the same way we allow to do that for sockets. Socket ioctl numbers do not intersect with tun-specific, and there is already SIOCSIFHWADDR used in tun code. So, SIOCGSKNS number is choosen instead of custom-made for this

[PATCH net-next 0/2] Add ioctl() SIOCGSKNS cmd to allow obtaining net ns of tun device

2018-02-13 Thread Kirill Tkhai
Currently, it's not possible to get or check net namespace, which was used to create tun socket. User may have two tun devices with the same names in different nets, and there is no way to differ them each other. The patchset adds support for ioctl() cmd SIOCGSKNS for tun devices. It will allow

Re: [PATCH RFC net-next 0/7] net/ipv6: Add support for path selection using hash of 5-tuple

2018-02-13 Thread Ido Schimmel
On Tue, Feb 13, 2018 at 01:03:14PM +0200, Or Gerlitz wrote: > On Tue, Feb 13, 2018 at 2:05 AM, David Ahern wrote: > > Hardware supports multipath selection using the standard L4 5-tuple > > instead of just L3 and the flow label. In addition, some network > > operators prefer

[patch net 0/2] net: sched: couple of fixes

2018-02-13 Thread Jiri Pirko
From: Jiri Pirko This patchset contains couple of fixes following-up the shared block patchsets. Jiri Pirko (2): net: sched: don't set q pointer for shared blocks net: sched: fix tc_u_common lookup net/sched/cls_api.c | 26 -- net/sched/cls_u32.c

[patch net 2/2] net: sched: fix tc_u_common lookup

2018-02-13 Thread Jiri Pirko
From: Jiri Pirko The offending commit wrongly assumes 1:1 mapping between block and q. However, there are multiple blocks for a single q for classful qdiscs. Since the obscure tc_u_common sharing mechanism expects it to be shared among a qdisc, fix it by storing q pointer in

[patch net 1/2] net: sched: don't set q pointer for shared blocks

2018-02-13 Thread Jiri Pirko
From: Jiri Pirko It is pointless to set block->q for block which are shared among multiple qdiscs. So remove the assignment in that case. Do a bit of code reshuffle to make block->index initialized at that point so we can use tcf_block_shared() helper. Reported-by: Cong Wang

Re: [PATCH RFC net-next 0/7] net/ipv6: Add support for path selection using hash of 5-tuple

2018-02-13 Thread Ido Schimmel
Hi David, On Mon, Feb 12, 2018 at 04:05:55PM -0800, David Ahern wrote: > Hardware supports multipath selection using the standard L4 5-tuple > instead of just L3 and the flow label. In addition, some network > operators prefer IPv6 path selection to use the 5-tuple. To that end, > add support to

[bpf-next PATCH] selftests/bpf: fix Makefile for cgroup_helpers.c

2018-02-13 Thread Jesper Dangaard Brouer
The current selftests Makefile construct result in cgroup_helpers.c gets compiled together with all the TEST_GEN_PROGS. And it also result in invoking the libbpf Makefile two times (tools/lib/bpf). These issues were introduced in commit 9d1f15941967 ("bpf: move cgroup_helpers from samples/bpf/ to

[PATCH v7 11/37] nds32: MMU fault handling and page table management

2018-02-13 Thread Greentime Hu
This patch includes page fault handler, mmap and fixup implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/lib/copy_page.S | 37 arch/nds32/mm/extable.c| 16

[PATCH v7 07/37] nds32: Kernel booting and initialization

2018-02-13 Thread Greentime Hu
This patch includes the kernel startup code. It can get dtb pointer passed from bootloader. It will create a temp mapping by tlb instructions at beginning and goto start_kernel. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu ---

[PATCH v7 29/37] nds32: defconfig

2018-02-13 Thread Greentime Hu
This patch adds nds32 defconfig. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/configs/defconfig | 104 +++ 1 file changed, 104

[PATCH net-next v3 00/32] Replacing net_mutex with rw_semaphore

2018-02-13 Thread Kirill Tkhai
Hi, this is the third version of the patchset introducing net_sem instead of net_mutex. The patchset adds net_sem in addition to net_mutex and allows pernet_operations to be "async". This flag means, the pernet_operations methods are safe to be executed with any other pernet_operations

[PATCH net-next v3 02/32] net: Cleanup in copy_net_ns()

2018-02-13 Thread Kirill Tkhai
Line up destructors actions in the revers order to constructors. Next patches will add more actions, and this will be comfortable, if there is the such order. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin --- net/core/net_namespace.c | 20

[PATCH v7 26/37] nds32: Generic timers support

2018-02-13 Thread Greentime Hu
This patch adds support for timer. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Reviewed-by: Linus Walleij Acked-by: Arnd Bergmann --- arch/nds32/kernel/time.c | 11 +++ 1 file

[PATCH net-next v3 01/32] net: Assign net to net_namespace_list in setup_net()

2018-02-13 Thread Kirill Tkhai
This patch merges two repeating pieces of code in one, and they will live in setup_net() now. The only change is that assignment: init_net_initialized = true; becomes reordered with: list_add_tail_rcu(>list, _namespace_list); The order does not have visible effect, and it is a

Re: INFO: rcu detected stall in __xfrm_decode_session

2018-02-13 Thread Dmitry Vyukov
On Mon, Feb 12, 2018 at 4:24 PM, Dmitry Vyukov wrote: > On Mon, Feb 12, 2018 at 4:22 PM, syzbot > wrote: >> Hello, >> >> syzbot hit the following crash on net-next commit >> d0adb51edb73c94a595bfa9d9bd8b35977e74fbf >> >>

[PATCH v7 03/37] sparc: io: To use the define of ioremap_[nocache|wc|wb] in asm-generic/io.h

2018-02-13 Thread Greentime Hu
A commit for the nds32 architecture bootstrap("asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU") will move the ioremap_nocache out of the CONFIG_MMU ifdef. This means that in order to suppress re-definition errors we need to remove the #define in

[PATCH v7 04/37] earlycon: add reg-offset to physical address before mapping

2018-02-13 Thread Greentime Hu
It will get the wrong virtual address because port->mapbase is not added the correct reg-offset yet. We have to update it before earlycon_map() is called Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann Cc: Peter Hurley Cc:

[PATCH v7 02/37] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2018-02-13 Thread Greentime Hu
It allows some architectures to use this generic macro instead of defining theirs. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- include/asm-generic/io.h | 18 +- 1 file

Re: [PATCH] headers: untangle kmemleak.h from mm.h

2018-02-13 Thread Michael Ellerman
Randy Dunlap writes: > On 02/12/2018 04:28 AM, Michael Ellerman wrote: >> Randy Dunlap writes: >> >>> From: Randy Dunlap >>> >>> Currently #includes for no obvious >>> reason. It looks like it's only a convenience, so

[PATCH v7 01/37] openrisc: add ioremap_nocache declaration before include asm-generic/io.h and sync ioremap prototype with it.

2018-02-13 Thread Greentime Hu
A future commit for the nds32 architecture bootstrap("asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU") will move the ioremap_nocache out of the CONFIG_MMU ifdef. This means that in order to suppress re-definition errors we need to setup #define's

Re: [PATCH 5/5] mtd: Stop updating erase_info->state and calling mtd_erase_callback()

2018-02-13 Thread Miquel Raynal
Hi Boris, On Tue, 13 Feb 2018 09:17:14 +0100, Boris Brezillon wrote: > On Tue, 13 Feb 2018 08:42:46 +0100 > Miquel Raynal wrote: > > > Hi Boris, > > > > Just a few comments about the form. > > > > Otherwise: > > Reviewed-by: Miquel

[PATCH v7 37/37] net: faraday add nds32 support.

2018-02-13 Thread Greentime Hu
This patch is used to support nds32 architecture to use these faraday mac IP. Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- drivers/net/ethernet/faraday/Kconfig | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[PATCH net-next v3 10/32] net: Convert nf_log_net_ops

2018-02-13 Thread Kirill Tkhai
The pernet_operations would have had a problem in parallel execution with others, if init_net had been able to released. But it's not, and the rest is safe for that. There is memory allocation, which nobody else interested in, and sysctl registration. So, we make them async. Signed-off-by: Kirill

[PATCH v7 22/37] nds32: Library functions

2018-02-13 Thread Greentime Hu
This patch add support for various library functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/include/asm/string.h | 17 +++ arch/nds32/include/asm/swab.h| 35 +

[PATCH net-next v3 07/32] net: Convert net_ns_ops methods

2018-02-13 Thread Kirill Tkhai
This patch starts to convert pernet_subsys, registered from pure initcalls. net_ns_ops::net_ns_net_init/net_ns_net_init, methods use only ida_simple_* functions, which are not need a synchronization. They are synchronized by idr subsystem. So, net_ns_ops methods are able to be executed in

[PATCH net-next v3 08/32] net: Convert sysctl_pernet_ops

2018-02-13 Thread Kirill Tkhai
This patch starts to convert pernet_subsys, registered from core initcalls. Methods sysctl_net_init() and sysctl_net_exit() initialize net::sysctls table of a namespace. pernet_operations::init()/exit() methods from the rest of the list do not touch net::sysctls of strangers, so it's safe to

[PATCH net-next v3 13/32] net: Convert netlink_net_ops

2018-02-13 Thread Kirill Tkhai
The methods of netlink_net_ops create and destroy "netlink" file, which are not interesting for foreigh pernet_operations. So, netlink_net_ops may safely be made async. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin --- net/netlink/af_netlink.c |

[PATCH net-next v3 11/32] net: Convert net_inuse_ops

2018-02-13 Thread Kirill Tkhai
net_inuse_ops methods expose statistics in /proc. No one from the rest of pernet_subsys or pernet_device lists touch net::core::inuse. So, it's safe to make net_inuse_ops async. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin --- net/core/sock.c

[PATCH net-next v3 09/32] net: Convert netfilter_net_ops

2018-02-13 Thread Kirill Tkhai
Methods netfilter_net_init() and netfilter_net_exit() initialize net::nf::hooks and change net-related proc directory of net. Another pernet_operations are not interested in forein net::nf::hooks or proc entries, so it's safe to make them executed in parallel with methods of other pernet

[PATCH net-next v3 12/32] net: Convert net_defaults_ops

2018-02-13 Thread Kirill Tkhai
net_defaults_ops introduce only net_defaults_init_net method, and it acts on net::core::sysctl_somaxconn, which is not interesting for the rest of pernet_subsys and pernet_device lists. Then, make them async. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin

[PATCH 2/2] net: phy: dp83867: Add documentation for CLK_OUT pin muxing

2018-02-13 Thread Daniel Schultz
From: Wadim Egorov Add documentation of ti,clk-output-sel which can be used to select a specific clock for CLK_OUT. Signed-off-by: Wadim Egorov Signed-off-by: Daniel Schultz --- Documentation/devicetree/bindings/net/ti,dp83867.txt

[PATCH v7 12/37] nds32: Cache and TLB routines

2018-02-13 Thread Greentime Hu
This patch contains cache and TLB maintenance functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/include/asm/cache.h | 12 + arch/nds32/include/asm/cache_info.h|

[PATCH v7 09/37] nds32: MMU definitions

2018-02-13 Thread Greentime Hu
This patch includes virtual memory layout, PHYS_OFFSET is defined as 0x0. It also includes the 4KB/8KB page size configurations and pte operations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann

[PATCH v7 28/37] nds32: Miscellaneous header files

2018-02-13 Thread Greentime Hu
This patch introduces some miscellaneous header files. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/include/asm/delay.h | 39 +

[PATCH v7 31/37] MAINTAINERS: Add nds32

2018-02-13 Thread Greentime Hu
Add a maintainer information for the nds32(Andes) architecture. Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH v7 20/37] nds32: VDSO support

2018-02-13 Thread Greentime Hu
This patch adds VDSO support. The VDSO code is currently used for sys_rt_sigreturn() and optimised gettimeofday() (using the SoC timer counter). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann ---

Re: [PATCH] ravb: add support for changing MTU

2018-02-13 Thread Sergei Shtylyov
Hello! On 02/12/2018 11:00 PM, Niklas Söderlund wrote: > Allow for chancing the MTU within the limit of the maximum size of a Changing. :-) > descriptor (2048 bytes). Add the callback to change MTU from user-space > and take the configurable MTU into account when configuring the > hardware.

[patch net-next 2/3] mlxsw: spectrum: Drop struct span_entry.used

2018-02-13 Thread Jiri Pirko
From: Petr Machata The member ref_count already determines whether a given SPAN entry is used, and is as easy to use as a dedicated boolean. Signed-off-by: Petr Machata Signed-off-by: Jiri Pirko ---

[patch net-next 3/3] mlxsw: spectrum: Move SPAN code to separate module

2018-02-13 Thread Jiri Pirko
From: Petr Machata For the upcoming work on SPAN, it makes sense to move the current code to a module of its own. It already has a well-defined API boundary to the mirror management (which is used from matchall and ACL code). A couple more functions need to be exported for

[patch net-next] mlxsw: spectrum: Use NL_SET_ERR_MSG_MOD

2018-02-13 Thread Jiri Pirko
From: Arkadi Sharshevsky Use NL_SET_ERR_MSG_MOD helper which adds the module name instead of specifying the prefix each time. Signed-off-by: Arkadi Sharshevsky Signed-off-by: Jiri Pirko ---

[patch net-next 1/3] mlxsw: spectrum: Fix a coding style nit

2018-02-13 Thread Jiri Pirko
From: Petr Machata Signed-off-by: Petr Machata Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[patch net-next 0/3] mlxsw: SPAN cleanups

2018-02-13 Thread Jiri Pirko
From: Jiri Pirko In patch one of this short series, a misplaced pointer star is moved to the correct place. In the second patch, we observe that if SPAN entries carry their reference count anyway, it's redundant to also carry a "used" flag. In the third patch, SPAN support

[PATCH ipsec,v3] net: xfrm_policy: fix device unregistration hang

2018-02-13 Thread Eyal Birger
In setups like the following: Host A --Host B tun0 -- ipsec -- eth0 -- eth0 -- ipsec -- tun0 where tun0 are tunnel devices using dst_cache (ipip, ipip6, etc...). Unregistration of an underlying eth0 device leads to the following log messages: unregister_netdevice:

Re: [PATCH iproute2] lib/namespace: don't try to mount rw /sys over a ro one

2018-02-13 Thread Phil Sutter
On Mon, Feb 12, 2018 at 08:23:12PM +0100, Lubomir Rintel wrote: > It will fail with EPERM on Linux 4.15. > > Signed-off-by: Lubomir Rintel Acked-by: Phil Sutter

RE: Serious performance degradation in Linux 4.15

2018-02-13 Thread Jon Maloy
The person who reported this is on vacation right now. I will be back with more detailed info in two weeks. ///jon > -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of Peter Zijlstra > Sent: Monday, February 12, 2018 16:17 > To:

[PATCH net v3] tipc: fix missing RTNL lock protection during setting link properties

2018-02-13 Thread Ying Xue
Currently when user changes link properties, TIPC first checks if user's command message contains media name or bearer name through tipc_media_find() or tipc_bearer_find() which is protected by RTNL lock. But when tipc_nl_compat_link_set() conducts the checking with the two functions, it doesn't

[PATCH v7 27/37] nds32: Device tree support

2018-02-13 Thread Greentime Hu
This patch adds support for device tree. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/boot/dts/Makefile | 8 arch/nds32/boot/dts/ae3xx.dts | 85

[PATCH net-next v3 03/32] net: Introduce net_sem for protection of pernet_list

2018-02-13 Thread Kirill Tkhai
Currently, the mutex is mostly used to protect pernet operations list. It orders setup_net() and cleanup_net() with parallel {un,}register_pernet_operations() calls, so ->exit{,batch} methods of the same pernet operations are executed for a dying net, as were used to call ->init methods, even

[PATCH net-next v3 04/32] net: Move mutex_unlock() in cleanup_net() up

2018-02-13 Thread Kirill Tkhai
net_sem protects from pernet_list changing, while ops_free_list() makes simple kfree(), and it can't race with other pernet_operations callbacks. So we may release net_mutex earlier then it was. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin ---

[PATCH net-next v3 05/32] net: Allow pernet_operations to be executed in parallel

2018-02-13 Thread Kirill Tkhai
This adds new pernet_operations::async flag to indicate operations, which ->init(), ->exit() and ->exit_batch() methods are allowed to be executed in parallel with the methods of any other pernet_operations. When there are only asynchronous pernet_operations in the system, net_mutex won't be

[PATCH net-next v3 06/32] net: Convert proc_net_ns_ops

2018-02-13 Thread Kirill Tkhai
This patch starts to convert pernet_subsys, registered before initcalls. proc_net_ns_ops::proc_net_ns_init()/proc_net_ns_exit() {un,}register pernet net->proc_net and ->proc_net_stat. Constructors and destructors of another pernet_operations are not interested in foreign net's proc_net and

[PATCH v7 21/37] nds32: Signal handling support

2018-02-13 Thread Greentime Hu
This patch adds support for signal handling. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/sigcontext.h | 60 ++ arch/nds32/kernel/signal.c | 324 +++ 2

[PATCH v7 19/37] nds32: System calls handling

2018-02-13 Thread Greentime Hu
This patch adds support for system calls. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Reviewed-by: Arnd Bergmann --- arch/nds32/include/asm/syscall.h | 188 +++

[PATCH net-next v3 21/32] net: Convert genl_pernet_ops

2018-02-13 Thread Kirill Tkhai
This pernet_operations create and destroy net::genl_sock. Foreign pernet_operations don't touch it. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin --- net/netlink/genetlink.c |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH net-next v3 24/32] net: Convert pernet_subsys, registered from inet_init()

2018-02-13 Thread Kirill Tkhai
arp_net_ops just addr/removes /proc entry. devinet_ops allocates and frees duplicate of init_net tables and (un)registers sysctl entries. fib_net_ops allocates and frees pernet tables, creates/destroys netlink socket and (un)initializes /proc entries. Foreign pernet_operations do not touch them.

[PATCH] net: af_unix: fix typo in UNIX_SKB_FRAGS_SZ comment

2018-02-13 Thread Tobias Klauser
Change "minimun" to "minimum". Signed-off-by: Tobias Klauser --- net/unix/af_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index d545e1d0dea2..2d465bdeccbc 100644 --- a/net/unix/af_unix.c +++

[PATCH v7 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2018-02-13 Thread Greentime Hu
From: Rick Chen Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Acked-by: Rob Herring Acked-by: Arnd Bergmann

[PATCH v7 32/37] dt-bindings: nds32 CPU Bindings

2018-02-13 Thread Greentime Hu
This patch adds nds32 CPU binding documents. Signed-off-by: Vincent Chen Signed-off-by: Rick Chen Signed-off-by: Zong Li Signed-off-by: Greentime Hu Reviewed-by: Rob Herring ---

Re: INFO: rcu detected stall in xfrm_confirm_neigh

2018-02-13 Thread Dmitry Vyukov
On Mon, Feb 12, 2018 at 4:26 PM, Dmitry Vyukov wrote: > On Mon, Feb 12, 2018 at 4:23 PM, syzbot > wrote: >> Hello, >> >> syzbot hit the following crash on net-next commit >> 9515a2e082f91457db0ecff4b65371d0fb5d9aad (Thu

[PATCH net-next v3 20/32] net: Convert subsys_initcall() registered pernet_operations from net/sched

2018-02-13 Thread Kirill Tkhai
psched_net_ops only creates and destroyes /proc entry, and safe to be executed in parallel with any foreigh pernet_operations. tcf_action_net_ops initializes and destructs tcf_action_net::egdev_ht, which is not touched by foreign pernet_operations. So, make them async. Signed-off-by: Kirill

[PATCH net-next v3 19/32] net: Convert fib_* pernet_operations, registered via subsys_initcall

2018-02-13 Thread Kirill Tkhai
Both of them create and initialize lists, which are not touched by another foreing pernet_operations. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin --- net/core/fib_notifier.c |1 + net/core/fib_rules.c|1 + 2 files changed, 2

[PATCH v7 25/37] nds32: Loadable modules

2018-02-13 Thread Greentime Hu
This patch adds support for loadable modules. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/include/asm/module.h | 11 ++ arch/nds32/kernel/module.c | 278

[PATCH net-next v3 14/32] net: Convert rtnetlink_net_ops

2018-02-13 Thread Kirill Tkhai
rtnetlink_net_init() and rtnetlink_net_exit() create and destroy netlink socket net::rtnl. The socket is used to send rtnl notification via rtnl_net_notifyid(). There is no a problem to create and destroy it in parallel with other pernet operations, as we link net in setup_net() after the socket

[PATCH net-next v3 16/32] net: Convert uevent_net_ops

2018-02-13 Thread Kirill Tkhai
uevent_net_init() and uevent_net_exit() create and destroy netlink socket, and these actions serialized in netlink code. Parallel execution with other pernet_operations makes the socket disappear earlier from uevent_sock_list on ->exit. As userspace can't be interested in broadcast messages of

[PATCH net-next v3 17/32] net: Convert proto_net_ops

2018-02-13 Thread Kirill Tkhai
This patch starts to convert pernet_subsys, registered from subsys initcalls. It seems safe to be executed in parallel with others, as it's only creates/destoyes proc entry, which nobody else is not interested in. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin

[PATCH net-next v3 18/32] net: Convert pernet_subsys ops, registered via net_dev_init()

2018-02-13 Thread Kirill Tkhai
There are: 1)dev_proc_ops and dev_mc_net_ops, which create and destroy pernet proc file and not interesting for another net namespaces; 2)netdev_net_ops, which creates pernet hashes, which are not touched by another pernet_operations. So, make them async. Signed-off-by: Kirill Tkhai

[PATCH net-next v3 15/32] net: Convert audit_net_ops

2018-02-13 Thread Kirill Tkhai
This patch starts to convert pernet_subsys, registered from postcore initcalls. audit_net_init() creates netlink socket, while audit_net_exit() destroys it. The rest of the pernet_list are not interested in the socket, so we make audit_net_ops async. Signed-off-by: Kirill Tkhai

[PATCH 1/2] net: phy: dp83867: Add binding for the CLK_OUT pin muxing option

2018-02-13 Thread Daniel Schultz
From: Wadim Egorov The DP83867 has a muxing option for the CLK_OUT pin. It is possible to set CLK_OUT for different channels. Create a binding to select a specific clock for CLK_OUT pin. Signed-off-by: Wadim Egorov Signed-off-by: Daniel Schultz

[PATCH v7 00/37] Andes(nds32) Linux Kernel Port

2018-02-13 Thread Greentime Hu
This is the 7th version patchset to add the Linux kernel port for Andes(nds32) processors. Almost all of the feedbacks from v6 patchseries has been addressed and we rebase it to v4.16-rc1. Thanks to everyone who provided feedback and help on the previous version. This patchset adds core

[PATCH net-next v3 30/32] net: Convert default_device_ops

2018-02-13 Thread Kirill Tkhai
These pernet operations consist of exit() and exit_batch() methods. default_device_exit() moves not-local and virtual devices to init_net. There is nothing exciting, because this may happen in any time on a working system, and rtnl_lock() and synchronize_net() protect us from all cases of

[PATCH net-next v3 31/32] net: Convert diag_net_ops

2018-02-13 Thread Kirill Tkhai
These pernet operations just create and destroy netlink socket. The socket is pernet and else operations don't touch it. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin --- net/core/sock_diag.c |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH net-next v3 29/32] net: Convert loopback_net_ops

2018-02-13 Thread Kirill Tkhai
These pernet_operations have only init() method. It allocates memory for net_device, calls register_netdev() and assigns net::loopback_dev. register_netdev() is allowed be used without additional locks, as it's synchronized on rtnl_lock(). There are many examples of using this functon directly

[PATCH net-next v3 27/32] net: Convert ipv4_sysctl_ops

2018-02-13 Thread Kirill Tkhai
These pernet_operations create and destroy sysctl, which are not touched by anybody else. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin --- net/ipv4/sysctl_net_ipv4.c |1 + 1 file changed, 1 insertion(+) diff --git

[patch net-next 2/2] mlxsw: spectrum: Distinguish between IPv4/6 tunnels

2018-02-13 Thread Jiri Pirko
From: Petr Machata struct ip_tunnel_parm, where GRE and several other tunnel types hold information, is IPv4-specific. The current router / ipip code in mlxsw however uses it as if it were generic. Make it clear that it's not. Rename many functions from _params_ to

[patch net-next 1/2] mlxsw: spectrum_ipip: Add a forgotten include

2018-02-13 Thread Jiri Pirko
From: Petr Machata struct ip_tunnel_parm, which is used in spectrum_ipip.h, is defined in if_tunnel.h. However, the former neglects to include the latter. Signed-off-by: Petr Machata Reviewed-by: Ido Schimmel Signed-off-by: Jiri

[patch net-next 0/2] mlxsw: IPIP cleanups

2018-02-13 Thread Jiri Pirko
From: Jiri Pirko In the first patch, a forgotten #include is added. Even though the code compiles as-is, the include is necessary for modules that should include spectrum_ipip.h. The second patch corrects an assumption that IPv6 tunnels use struct ip_tunnel_parm to store

[PATCH net-next v3 23/32] net: Convert sysctl_core_ops

2018-02-13 Thread Kirill Tkhai
These pernet_operations register and destroy sysctl directory, and it's not interesting for foreign pernet_operations. Signed-off-by: Kirill Tkhai Acked-by: Andrei Vagin --- net/core/sysctl_net_core.c |1 + 1 file changed, 1 insertion(+) diff

  1   2   3   4   >