Re: [PATCH net-next v5 1/4] phylib: Add device reset delay support

2017-12-17 Thread Richard Leitner
Hi Rob, On 12/15/2017 11:17 PM, Rob Herring wrote: > On Mon, Dec 11, 2017 at 01:16:57PM +0100, Richard Leitner wrote: >> From: Richard Leitner >> >> Some PHYs need a minimum time after the reset gpio was asserted and/or >> deasserted. To ensure we meet these timing

[PATCH v4 01/36] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2017-12-17 Thread Greentime Hu
From: 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 ---

Re: [PATCH] trace: reenable preemption if we modify the ip

2017-12-17 Thread Masami Hiramatsu
On Fri, 15 Dec 2017 21:42:57 -0500 Josef Bacik wrote: > From: Josef Bacik > > Things got moved around between the original bpf_override_return patches > and the final version, and now the ftrace kprobe dispatcher assumes if > you modified the ip that you

[PATCH v4 00/36] Andes(nds32) Linux Kernel

2017-12-17 Thread Greentime Hu
This is the 4th version patchset to add the Linux kernel port for Andes(nds32) processors. Almost all of the feedbacks from v3 patchseries has been addressed. Thanks to everyone who provided feedback on the previous version. This patchset adds core architecture support to Linux for Andestech's

[PATCH v4 03/36] nds32: Assembly macros and definitions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes assembly macros, bit field definitions used in .S files across arch/nds32/. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/assembler.h | 39

[PATCH v4 05/36] nds32: Exception handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes the exception/interrupt entries, pt_reg structure and related accessors. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/ptrace.h | 66 +

[PATCH v4 04/36] nds32: Kernel booting and initialization

2017-12-17 Thread Greentime Hu
From: 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:

[PATCH v4 06/36] nds32: MMU definitions

2017-12-17 Thread Greentime Hu
From: 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

[PATCH v4 07/36] nds32: MMU initialization

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes memory initializations and highmem supporting. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/mm/highmem.c | 79 + arch/nds32/mm/init.c

[PATCH v4 08/36] nds32: MMU fault handling and page table management

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes page fault handler, mmap and fixup implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/lib/copy_page.S | 37 arch/nds32/mm/extable.c

[PATCH v4 09/36] nds32: Cache and TLB routines

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch contains cache and TLB maintenance functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/cache.h | 12 +

[PATCH v4 11/36] nds32: IRQ handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes irq related functions and irqchip_init(). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/irqflags.h | 36

[PATCH v4 10/36] nds32: Process management

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes copy_thread(), start_thread() implementation and cpu_context structure definition. nds32 uses $r25 to get current task_struct. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu

[PATCH v4 14/36] nds32: DMA mapping API

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for the DMA mapping API. It uses dma_map_ops for flexibility. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/dma-mapping.h | 14 ++

[PATCH v4 13/36] nds32: Device specific operations

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch introduces ioremap implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/io.h | 83 +++

[PATCH v4 15/36] nds32: ELF definitions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds definitions for the ELF format, relocation types, vdso locations and EXEC_PAGESIZE. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/elf.h |

[PATCH v4 19/36] nds32: Library functions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch add support for various library functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/string.h | 17 +++ arch/nds32/include/asm/swab.h| 35

[PATCH v4 17/36] nds32: VDSO support

2017-12-17 Thread Greentime Hu
From: 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

[PATCH v4 18/36] nds32: Signal handling support

2017-12-17 Thread Greentime Hu
From: 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

[PATCH v4 21/36] nds32: L2 cache support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds L2 cache support. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/l2_cache.h | 142 + arch/nds32/kernel/atl2c.c

[PATCH v4 16/36] nds32: System calls handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for system calls. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/syscall.h | 188 ++

[PATCH v4 22/36] nds32: Loadable modules

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for loadable modules. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/module.h | 11 ++ arch/nds32/kernel/module.c | 286

[PATCH v4 23/36] nds32: Generic timers support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for timer. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Reviewed-by: Linus Walleij --- arch/nds32/kernel/time.c | 11 +++ 1

[PATCH v4 20/36] nds32: Debugging support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds ptrace support. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/ptrace.h | 25 +++ arch/nds32/kernel/ptrace.c | 311

[PATCH v4 24/36] nds32: Device tree support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for device tree. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/boot/dts/Makefile |8 + arch/nds32/boot/dts/ae3xx.dts | 65

[PATCH v4 25/36] nds32: Miscellaneous header files

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch introduces some miscellaneous header files. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/delay.h | 38 +++

[PATCH v4 26/36] nds32: defconfig

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 defconfig. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/configs/defconfig | 108 ++ 1 file changed, 108

[PATCH v4 27/36] nds32: Build infrastructure

2017-12-17 Thread Greentime Hu
From: 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 | 108

[PATCH v4 28/36] MAINTAINERS: Add nds32

2017-12-17 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Greentime Hu --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2f4e462..20284c8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -857,6 +857,17 @@

[PATCH v4 30/36] dt-bindings: nds32 SoC Bindings

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 SoC(AE3XX and AG101P) binding documents. Signed-off-by: Greentime Hu Reviewed-by: Rob Herring --- .../devicetree/bindings/nds32/andestech-boards | 40 1 file

[PATCH v4 32/36] irqchip: Andestech Internal Vector Interrupt Controller driver

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds the Andestech Internal Vector Interrupt Controller driver. You can find the spec here. Ch4.9 of AndeStar SPA V3 Manual. http://www.andestech.com/product.php?cls=9 Signed-off-by: Rick Chen Signed-off-by: Greentime

[PATCH v4 31/36] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller

2017-12-17 Thread Greentime Hu
From: 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 ---

[PATCH v4 34/36] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2017-12-17 Thread Greentime Hu
From: Rick Chen ATCPIT100 is often used on the Andes architecture, This timer provide 4 PIT channels. Each PIT channel is a multi-function timer, can be configured as 32,16,8 bit timers or PWM as well. For system timer it will set channel 1 32-bit timer0 as clock source

[PATCH v4 33/36] net: faraday add nds32 support.

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch is used to support nds32 architecture to use these faraday mac IP. Signed-off-by: Greentime Hu --- drivers/net/ethernet/faraday/Kconfig |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v4 35/36] clocksource/drivers/atcpit100: VDSO support

2017-12-17 Thread Greentime Hu
From: Rick Chen VDSO needs real-time cycle count to ensure the time accuracy. Unlike others, nds32 architecture does not define clock source, hence VDSO needs atcpit100 offering real-time cycle count to derive the correct time. Signed-off-by: Vincent Chen

[PATCH v4 36/36] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-12-17 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 ---

[PATCH v4 29/36] dt-bindings: nds32 CPU Bindings

2017-12-17 Thread Greentime Hu
From: 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

[PATCH v4 12/36] nds32: Atomic operations

2017-12-17 Thread Greentime Hu
From: 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

[PATCH v4 02/36] earlycon: add reg-offset to physical address before mapping

2017-12-17 Thread Greentime Hu
From: 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 --- drivers/tty/serial/earlycon.c |3

[PATCH net] ip6_tunnel: get the min mtu properly in ip6_tnl_xmit

2017-12-17 Thread Xin Long
Now it's using IPV6_MIN_MTU as the min mtu in ip6_tnl_xmit, but IPV6_MIN_MTU actually only works when the inner packet is ipv6. With IPV6_MIN_MTU for ipv4 packets, the new pmtu for inner dst couldn't be set less than 1280. It would cause tx_err and the packet to be dropped when the outer dst pmtu

[PATCH net] ip6_gre: remove the incorrect mtu limit for ipgre tap

2017-12-17 Thread Xin Long
The same fix as the patch "ip_gre: remove the incorrect mtu limit for ipgre tap" is also needed for ip6_gre. Fixes: 61e84623ace3 ("net: centralize net_device min/max MTU checking") Signed-off-by: Xin Long --- net/ipv6/ip6_gre.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH net] ip_gre: remove the incorrect mtu limit for ipgre tap

2017-12-17 Thread Xin Long
ipgre tap driver calls ether_setup(), after commit 61e84623ace3 ("net: centralize net_device min/max MTU checking"), the range of mtu is [min_mtu, max_mtu], which is [68, 1500] by default. It causes the dev mtu of the ipgre tap device to not be greater than 1500, this limit value is not correct

[PATCH net] vxlan: update skb dst pmtu on tx path

2017-12-17 Thread Xin Long
Unlike ip tunnels, now vxlan doesn't do any pmtu update for upper dst pmtu, even if it doesn't match the lower dst pmtu any more. The problem can be reproduced when reducing the vxlan lower dev's pmtu when running netperf. In jianlin's testing, the performance went to 1/7 of the previous. This

[PATCH net] sctp: add SCTP_CID_RECONF conversion in sctp_cname

2017-12-17 Thread Xin Long
Whenever a new type of chunk is added, the corresp conversion in sctp_cname should be added. Otherwise, in some places, pr_debug will print it as "unknown chunk". Fixes: cc16f00f6529 ("sctp: add support for generating stream reconf ssn reset request chunk") Signed-off-by: Xin Long

[PATCH net] sctp: fix the issue that a __u16 variable may overflow in sctp_ulpq_renege

2017-12-17 Thread Xin Long
Now when reneging events in sctp_ulpq_renege(), the variable freed could be increased by a __u16 value twice while freed is of __u16 type. It means freed may overflow at the second addition. This patch is to fix it by using __u32 type for 'freed', while at it, also to remove 'if (chunk)' check,

Re: [kernel-hardening] [PATCH 0/3] kallsyms: don't leak address

2017-12-17 Thread Tobin C. Harding
On Mon, Dec 18, 2017 at 04:31:25PM +1100, Michael Ellerman wrote: > "Tobin C. Harding" writes: > > > This set plugs a kernel address leak that occurs if kallsyms symbol > > look up fails. This set was prompted by a leaking address found using > > scripts/leaking_addresses.pl on a

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-17 Thread Joe Perches
On Sun, 2017-12-17 at 22:00 -0700, Jason Gunthorpe wrote: > On Sun, Dec 17, 2017 at 03:14:10AM +0100, Knut Omang wrote: > > > > I like the ability to add more checkers and keep then in the main > > > upstream tree. But adding overrides for specific subsystems goes against > > > the policy that

[PATCH] net: qcom/emac: Change the order of mac up and sgmii open

2017-12-17 Thread Hemanth Puranik
This patch fixes the order of mac_up and sgmii_open for the reasons noted below: - If open takes more time(if the SGMII block is not responding or if we want to do some delay based task) in this situation we will hit NETDEV watchdog - The main reason : We should signal to upper layers that we

Re: r8169 regression: UDP packets dropped intermittantly

2017-12-17 Thread Jonathan Woithe
Resend to netdev. LKML CCed in case anyone in the wider kernel community can suggest a way forward. Please CC responses if replying only to LKML. It seems that this 4+ year old regression in the r8169 driver (documented in this thread on netdev beginning on 9 March 2013) will never be fixed,

Re: [kernel-hardening] [PATCH 0/3] kallsyms: don't leak address

2017-12-17 Thread Michael Ellerman
"Tobin C. Harding" writes: > This set plugs a kernel address leak that occurs if kallsyms symbol > look up fails. This set was prompted by a leaking address found using > scripts/leaking_addresses.pl on a PowerPC machine in the wild. Any details on that? I haven't heard about it.

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-17 Thread Jason Gunthorpe
On Sun, Dec 17, 2017 at 03:14:10AM +0100, Knut Omang wrote: > > I like the ability to add more checkers and keep then in the main > > upstream tree. But adding overrides for specific subsystems goes against > > the policy that all subsystems should be treated equally. > > This is a tool to

[PATCH net-next] udp: handle gro_receive only when necessary

2017-12-17 Thread zhangliping
From: zhangliping Under our udp pressure performance test, after gro is disabled, rx rate will be improved from ~2500kpps to ~2800kpps. We can find some difference from perf report: 1. gro is enabled: 24.23% [kernel] [k] udp4_lib_lookup2 5.42% [kernel]

Re: [net-next] phylib: Add device reset GPIO support causes DSA MT7530 acquires reset-gpios fails

2017-12-17 Thread Sean Wang
On Fri, 2017-12-15 at 11:10 +0100, Andrew Lunn wrote: > On Fri, Dec 15, 2017 at 02:55:03PM +0800, Sean Wang wrote: > > Hi Sergei, > > > > Recently I found the patch commit bafbdd527d56 (phylib: Add device reset > > GPIO support) would have the impact on MT7530 driver. Which causes the > > DSA

Re: [PATCH net-next v6 2/2] net: ethernet: socionext: add AVE ethernet driver

2017-12-17 Thread Kunihiko Hayashi
Hello David, On Fri, 15 Dec 2017 12:57:49 -0500 David Miller wrote: > From: Kunihiko Hayashi > Date: Thu, 14 Dec 2017 19:05:10 +0900 > > > +static void ave_desc_write(struct net_device *ndev, enum desc_id id, > > + int

Re: [PATCH] net: phy: xgene: disable clk on error paths

2017-12-17 Thread Quan Nguyen
On Sat, Dec 16, 2017 at 4:52 AM, Alexey Khoroshilov wrote: > > There are several error paths in xgene_mdio_probe(), > where clk is left undisabled. The patch fixes them. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov

[Patch v2] net: phy: marvell: Limit 88m1101 autoneg errata to 88E1145 as well.

2017-12-17 Thread Zhao Qiang
88E1145 also need this autoneg errata. Fixes: f2899788353c ("net: phy: marvell: Limit errata to 88m1101") Signed-off-by: Zhao Qiang --- Changes for v2 - modify the commit msg in a proper way. drivers/net/phy/marvell.c |2 +- 1 files changed, 1 insertions(+), 1

Re: [PATCH net] net: bridge: fix early call to br_stp_change_bridge_id

2017-12-17 Thread Toshiaki Makita
On 2017/12/16 20:31, Nikolay Aleksandrov wrote: > The early call to br_stp_change_bridge_id in bridge's newlink can cause > a memory leak if an error occurs during the newlink because the fdb > entries are not cleaned up if a different lladdr was specified, also > another minor issue is that it

RE: [patch iproute2] tc: fix command "tc actions del" hang issue

2017-12-17 Thread Chris Mi
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 15, 2017 1:17 PM > To: Chris Mi > Cc: netdev@vger.kernel.org; j...@resnulli.us > Subject: Re: [patch iproute2] tc: fix command "tc actions del" hang issue > >

Re: [PATCH 2/3] vsprintf: print if symbol not found

2017-12-17 Thread Tobin C. Harding
On Sun, Dec 17, 2017 at 04:04:14PM -0800, Joe Perches wrote: > On Mon, 2017-12-18 at 10:53 +1100, Tobin C. Harding wrote: > > Depends on: commit bd6b239cdbb2 ("kallsyms: don't leak address when > > symbol not found") > > > > Currently vsprintf for specifiers %p[SsB] relies on the behaviour of > >

pull-request: bpf-next 2017-12-18

2017-12-17 Thread Daniel Borkmann
Hi David, The following pull-request contains BPF updates for your *net-next* tree. The main changes are: 1) Allow arbitrary function calls from one BPF function to another BPF function. As of today when writing BPF programs, __always_inline had to be used in the BPF C programs for all

[trivial PATCH] treewide: Align function definition open/close braces

2017-12-17 Thread Joe Perches
Some functions definitions have either the initial open brace and/or the closing brace outside of column 1. Move those braces to column 1. This allows various function analyzers like gnu complexity to work properly for these modified functions. Miscellanea: o Remove extra trailing ; and blank

Re: [PATCH 2/3] vsprintf: print if symbol not found

2017-12-17 Thread Joe Perches
On Mon, 2017-12-18 at 10:53 +1100, Tobin C. Harding wrote: > Depends on: commit bd6b239cdbb2 ("kallsyms: don't leak address when > symbol not found") > > Currently vsprintf for specifiers %p[SsB] relies on the behaviour of > kallsyms (sprint_symbol()) and prints the actual address if a symbol is

[PATCH 2/3] vsprintf: print if symbol not found

2017-12-17 Thread Tobin C. Harding
Depends on: commit bd6b239cdbb2 ("kallsyms: don't leak address when symbol not found") Currently vsprintf for specifiers %p[SsB] relies on the behaviour of kallsyms (sprint_symbol()) and prints the actual address if a symbol is not found. Previous patch changes this behaviour so tha

[PATCH 0/3] kallsyms: don't leak address

2017-12-17 Thread Tobin C. Harding
This set plugs a kernel address leak that occurs if kallsyms symbol look up fails. This set was prompted by a leaking address found using scripts/leaking_addresses.pl on a PowerPC machine in the wild. Patch set does not change behaviour when KALLSYMS is not defined (suggested by Linus). RFC has

[PATCH 1/3] kallsyms: don't leak address when symbol not found

2017-12-17 Thread Tobin C. Harding
Currently if kallsyms_lookup() fails to find the symbol then the address is printed. This potentially leaks sensitive information. Instead of printing the address we can return an error, giving the calling code the option to print the address or print some sanitized message. Return error instead

[PATCH 3/3] trace: print address if symbol not found

2017-12-17 Thread Tobin C. Harding
Fixes behaviour modified by: commit bd6b239cdbb2 ("kallsyms: don't leak address when symbol not found") Previous patch changed behaviour of kallsyms function sprint_symbol() to return an error code instead of printing the address if a symbol was not found. Ftrace relies on the original behaviour.

Re: Linux 4.14 - regression: broken tun/tap / bridge network with virtio - bisected

2017-12-17 Thread Willem de Bruijn
On Fri, Dec 15, 2017 at 1:05 AM, Andreas Hartmann wrote: > On 12/14/2017 at 11:17 PM Willem de Bruijn wrote: Well, the patch does not fix hanging VMs, which have been shutdown and can't be killed any more. Because of the stack trace []

[PATCH] net: ibm: emac: support RGMII-[RX|TX]ID phymode

2017-12-17 Thread Christian Lamparter
The RGMII spec allows compliance for devices that implement an internal delay on TXC and/or RXC inside the transmitter. This patch adds the necessary RGMII_[RX|TX]ID mode code to handle such PHYs with the emac driver. Signed-off-by: Christian Lamparter ---

pull-request: bpf 2017-12-17

2017-12-17 Thread Daniel Borkmann
Hi David, The following pull-request contains BPF updates for your *net* tree. The main changes are: 1) Fix a corner case in generic XDP where we have non-linear skbs but enough tailroom in the skb to not miss to linearizing there, from Song. 2) Fix BPF JIT bugs in s390x and ppc64 to not

Re: [PATCH] trace: reenable preemption if we modify the ip

2017-12-17 Thread Daniel Borkmann
On 12/16/2017 03:42 AM, Josef Bacik wrote: > From: Josef Bacik > > Things got moved around between the original bpf_override_return patches > and the final version, and now the ftrace kprobe dispatcher assumes if > you modified the ip that you also enabled preemption. Make a

Re: [PATCH bpf-next] nfp: set flags in the correct member of netdev_bpf

2017-12-17 Thread Daniel Borkmann
On 12/16/2017 01:29 AM, Jakub Kicinski wrote: > netdev_bpf.flags is the input member for installing the program. > netdev_bpf.prog_flags is the output member for querying. Set > the correct one on query. > > Fixes: 92f0292b35a0 ("net: xdp: report flags program was installed with on > query") >

Re: [PATCH bpf-next] libbpf: fix Makefile exit code if libelf not found

2017-12-17 Thread Daniel Borkmann
On 12/16/2017 01:19 AM, Jakub Kicinski wrote: > /bin/sh's exit does not recognize -1 as a number, leading to > the following error message: > > /bin/sh: 1: exit: Illegal number: -1 > > Use 1 as the exit code. > > Signed-off-by: Jakub Kicinski > Reviewed-by:

Re: [PATCH bpf-next 00/13] bpf: introduce function calls

2017-12-17 Thread Daniel Borkmann
On 12/15/2017 02:55 AM, Alexei Starovoitov wrote: > First of all huge thank you to Daniel, John, Jakub, Edward and others who > reviewed multiple iterations of this patch set over the last many months > and to Dave and others who gave critical feedback during netconf/netdev. > > The patch is

Re: [RFC net-next] sfp/phylink: move module EEPROM ethtool access into netdev core ethtool

2017-12-17 Thread Russell King - ARM Linux
On Sun, Dec 17, 2017 at 07:29:22PM +0100, Andrew Lunn wrote: > On Sun, Dec 17, 2017 at 02:48:27PM +, Russell King wrote: > > Provide a pointer to the SFP bus in struct net_device, so that the > > ethtool module EEPROM methods can access the SFP directly, rather > > than needing every user to

Re: [PATCH] openvswitch: Trim off padding before L3 conntrack processing

2017-12-17 Thread Pravin Shelar
On Thu, Dec 14, 2017 at 12:05 PM, Ed Swierk wrote: > On Wed, Dec 13, 2017 at 4:58 PM, Pravin Shelar wrote: >> On Tue, Dec 12, 2017 at 8:17 AM, Ed Swierk >> wrote: >>> A short IPv4 packet may have up to 6 bytes of padding

Re: [RFC net-next] sfp/phylink: move module EEPROM ethtool access into netdev core ethtool

2017-12-17 Thread Andrew Lunn
On Sun, Dec 17, 2017 at 02:48:27PM +, Russell King wrote: > Provide a pointer to the SFP bus in struct net_device, so that the > ethtool module EEPROM methods can access the SFP directly, rather > than needing every user to provide a hook for it. > > Signed-off-by: Russell King

Re: [RFC net-next] sfp/phylink: move module EEPROM ethtool access into netdev core ethtool

2017-12-17 Thread Russell King - ARM Linux
> Questions: > 1. Is it worth adding a pointer to struct net_device for these two >methods, rather than having multiple duplicate veneers to vector >the ethtool module EEPROM ioctls through to the SFP bus layer? > > 2. Should this allow network/phy drivers to override the default - >

Re: [patch net-next] mlxsw: spectrum: Add "spectrum" prefix macro

2017-12-17 Thread Joe Perches
On Sun, 2017-12-17 at 17:15 +0100, Jiri Pirko wrote: > From: Arkadi Sharshevsky > > Add "spectrum" string prefix macro for error strings. [] > diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c > b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c [] > @@ -4168,13

[patch net] mlxsw: spectrum_router: Remove batch neighbour deletion causing FW bug

2017-12-17 Thread Jiri Pirko
From: Petr Machata This reverts commit 63dd00fa3e524c27cc0509190084ab147ecc8ae2. RAUHT DELETE_ALL seems to trigger a bug in FW. That manifests by later calls to RAUHT ADD of an IPv6 neighbor to fail with "bad parameter" error code. Signed-off-by: Petr Machata

[patch net-next] mlxsw: spectrum: Add "spectrum" prefix macro

2017-12-17 Thread Jiri Pirko
From: Arkadi Sharshevsky Add "spectrum" string prefix macro for error strings. Signed-off-by: Arkadi Sharshevsky Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 23 ++-

Re: BUG: KASAN: use-after-free in fib_table_flush

2017-12-17 Thread Ido Schimmel
+Alexander On Sun, Dec 17, 2017 at 08:55:57PM +0800, Fengguang Wu wrote: > Hello, > > FYI this happens in mainline kernel 4.15.0-rc3. > It looks like a new regression. > > It occurs in 4 out of 28 boots. > > [ 166.090516] > == >

Re: [patch iproute2] tc: implement filter block sharing to ingress and clsact qdiscs

2017-12-17 Thread Jiri Pirko
Sat, Dec 16, 2017 at 07:12:51PM CET, step...@networkplumber.org wrote: >On Wed, 13 Dec 2017 16:13:57 +0100 >Jiri Pirko wrote: > >> From: Jiri Pirko >> >> Signed-off-by: Jiri Pirko > >This needs to wait until block sharing makes it into

[PATCH 0/4] bcm63xx_enet: remove mac_id usage

2017-12-17 Thread Jonas Gorski
This patchset aims at reducing the platform device id number usage with the target of making it eventually possible to probe the driver through OF. Runtested on BCM6358. Since the patches touch mostly net/, they should go through net-next. Jonas Gorski (4): bcm63xx_enet: just use "enet" as

[PATCH 1/4] bcm63xx_enet: just use "enet" as the clock name

2017-12-17 Thread Jonas Gorski
Now that we have the individual clocks available as "enet" we don't need to rely on the device id for them anymore. Signed-off-by: Jonas Gorski --- drivers/net/ethernet/broadcom/bcm63xx_enet.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

[PATCH 3/4] bcm63xx_enet: remove pointless mac_id check

2017-12-17 Thread Jonas Gorski
Enabling the ephy clock for mac 1 is harmless, and the actual usage of the ephy is not restricted to mac 0, so we might as well remove the check. Signed-off-by: Jonas Gorski --- drivers/net/ethernet/broadcom/bcm63xx_enet.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 4/4] bcm63xx_enet: use platform device id directly for miibus name

2017-12-17 Thread Jonas Gorski
Directly use the platform device for generating the miibus name. This removes the last user of bcm_enet_priv::mac_id and we can remove the field. Signed-off-by: Jonas Gorski --- drivers/net/ethernet/broadcom/bcm63xx_enet.c | 3 +--

[PATCH 2/4] bcm63xx_enet: use platform data for dma channel numbers

2017-12-17 Thread Jonas Gorski
To reduce the reliance on device ids, pass the dma channel numbers to the enet devices as platform data. Signed-off-by: Jonas Gorski --- arch/mips/bcm63xx/dev-enet.c | 8 arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h | 4

Re: [PATCH net-next 2/2 v8] net: ethernet: Add a driver for Gemini gigabit ethernet

2017-12-17 Thread Linus Walleij
On Mon, Dec 11, 2017 at 8:16 PM, David Miller wrote: > From: Linus Walleij >> +if NET_VENDOR_CORTINA >> + >> +config GEMINI_ETHERNET >> + tristate "Gemini Gigabit Ethernet support" >> + depends on ARCH_GEMINI >> + depends on OF >> +

[RFC net-next] sfp/phylink: move module EEPROM ethtool access into netdev core ethtool

2017-12-17 Thread Russell King
Provide a pointer to the SFP bus in struct net_device, so that the ethtool module EEPROM methods can access the SFP directly, rather than needing every user to provide a hook for it. Signed-off-by: Russell King --- Questions: 1. Is it worth adding a pointer to struct

Re: [PATCH iproute2] ip route: broken logic when using default word and family not specified

2017-12-17 Thread Alexander Zubkov
OK. I have found the recommendations for kernel developers and resubmited both of my patches according to their guidelines (I hope). I have used my other e-mail because I think gmail is not good with text email format. On Sat, Dec 16, 2017 at 10:21 PM, Stephen Hemminger

[PATCH v3] iproute: list/flush/save filter also by metric

2017-12-17 Thread Alexander Zubkov
Metric is one of the "unique key" fields of the route in Linux. But still one can not use its value in filter while running ip list. Because of this writing checks in scripts for example is incovenient. Signed-off-by: Alexander Zubkov --- ip/iproute.c | 21 - 1

RE: [PATCH net-next v5 5/5] qede: Use NETIF_F_GRO_HW.

2017-12-17 Thread Chopra, Manish
> -Original Message- > From: Michael Chan [mailto:michael.c...@broadcom.com] > Sent: Saturday, December 16, 2017 1:40 PM > To: da...@davemloft.net > Cc: netdev@vger.kernel.org; andrew.gospoda...@broadcom.com; Elior, Ariel > ; Dept-Eng Everest Linux L2

RE: [PATCH net-next v5 4/5] bnx2x: Use NETIF_F_GRO_HW.

2017-12-17 Thread Chopra, Manish
> -Original Message- > From: Michael Chan [mailto:michael.c...@broadcom.com] > Sent: Saturday, December 16, 2017 1:40 PM > To: da...@davemloft.net > Cc: netdev@vger.kernel.org; andrew.gospoda...@broadcom.com; Elior, Ariel > ; Dept-Eng Everest Linux L2

[PATCH] iproute: "list/flush/save default" selected all of the routes

2017-12-17 Thread Alexander Zubkov
When running "ip route list default" and not specifying address family, one will get all of the routes instead of just default only. The same is for "exact default" and "match default". It behaves in such a way because default route with unspecified family has the same all-zeroes value like no

Re: Support For Charity

2017-12-17 Thread M. M. Fridman
I Mikhail Fridman. has selected you specially as one of my beneficiaries for my Charitable Donation, Just as I have declared on May 23, 2016 to give my fortune as charity. Check the link below for confirmation: