Re: regression: UFO removal breaks kvm live migration

2017-11-07 Thread Jason Wang
On 2017年11月08日 15:26, David Miller wrote: From: Willem de Bruijn Date: Wed, 8 Nov 2017 12:36:26 +0900 On Tue, Nov 7, 2017 at 5:02 PM, Michal Kubecek wrote: I didn't have time to think it through yet but perhaps we could allow setting TUN_F_UFO and ignore its value. If the feature is enabl

Re: [PATCH net-next v3] net: mvpp2: add ethtool GOP statistics

2017-11-07 Thread Miquel RAYNAL
Hi David, > > On Wed, Nov 08, 2017 at 01:54:56PM +0900, David Miller wrote: > >> From: Miquel Raynal > >> Date: Mon, 6 Nov 2017 22:56:53 +0100 > >> > >> > Add ethtool statistics support by reading the GOP statistics > >> > from the hardware counters. Also implement a workqueue to gather > >

Re: [PATCH] Bluetooth: Use common error handling code in bt_init()

2017-11-07 Thread Marcel Holtmann
Hi Markus, > * Improve jump targets so that a bit of exception handling can be better > reused at the end of this function. > > * Adjust five condition checks. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- > net/bluetooth/af_bluetooth.c

Re: mlx5 broken affinity

2017-11-07 Thread Sagi Grimberg
Depending on the machine and the number of queues this might even result in completely losing the ability to suspend/hibernate because the number of available vectors on CPU0 is not sufficient to accomodate all queue interrupts. Would it be possible to keep the managed facility until a user ov

[PATCH v2] af_netlink: give correct bounds to dump skb for NLMSG_DONE

2017-11-07 Thread Jason A. Donenfeld
The way people generally use netlink_dump is that they fill in the skb as much as possible, breaking when nla_put returns an error. Then, they get called again and start filling out the next skb, and again, and so forth. The mechanism at work here is the ability for the iterative dumping function t

[PATCH net-next 1/2] net: hns3: fix a bug when getting phy address from NCL_config file

2017-11-07 Thread Lipeng
From: Fuyun Liang Driver gets phy address from NCL_config file and uses the phy address to initialize phydev. There are 5 bits for phy address. And C22 phy address has 5 bits. So 0-31 are all valid address for phy. If there is no phy, it will crash. Because driver always get a valid phy address.

[PATCH net-next 2/2] net: hns3: cleanup mac auto-negotiation state query in hclge_update_speed_duplex

2017-11-07 Thread Lipeng
From: Fuyun Liang When checking whether auto-negotiation is on, driver only needs to check the value of mac.autoneg(SW) directly, and does not need to query it from hardware. Because this value is always synchronized with the auto-negotiation state of hardware. This patch removes mac auto-negoti

[PATCH net-next 0/2] net: hns3: Bug fixes & Code improvements in HNS3 driver

2017-11-07 Thread Lipeng
This patch-set introduces some bug fixes and code improvements. As [patch 1/2] depends on the patch {5392902 net: hns3: Consistently using GENMASK in hns3 driver}, which exists in net-next, not exists in net, so push this serise to nex-next. Fuyun Liang (2): {topost} net: hns3: fix a bug when ge

[net 3/6] net/mlx5: FPGA, return -EINVAL if size is zero

2017-11-07 Thread Saeed Mahameed
From: Kamal Heib In the current code, if a size of zero is passed to mlx5_fpga_mem_{read|write}_i2c() functions the "err" return value will not initialized. Fixes: a9956d35d199 ('net/mlx5: FPGA, Add SBU infrastructure') Signed-off-by: Kamal Heib Reviewed-by: Yevgeny Kliteynik Signed-off-by: Sa

[net 4/6] net/mlx5e: Fix napi poll with zero budget

2017-11-07 Thread Saeed Mahameed
napi->poll can be called with budget 0, e.g. in netpoll scenarios where the caller only wants to poll TX rings (poll_one_napi@net/core/netpoll.c). The below commit changed RX polling from "while" loop to "do {} while", which caused to ignore the initial budget and handle at least one RX packet. T

[net 2/6] net/mlx5: Cancel health poll before sending panic teardown command

2017-11-07 Thread Saeed Mahameed
From: Huy Nguyen After the panic teardown firmware command, health_care detects the error in PCI bus and calls the mlx5_pci_err_detected. This health_care flow is no longer needed because the panic teardown firmware command will bring down the PCI bus communication with the HCA. The solution is

[net 5/6] net/mlx5e: Set page to null in case dma mapping fails

2017-11-07 Thread Saeed Mahameed
From: Inbar Karmy Currently, when dma mapping fails, put_page is called, but the page is not set to null. Later, in the page_reuse treatment in mlx5e_free_rx_descs(), mlx5e_page_release() is called for the second time, improperly doing dma_unmap (for a non-mapped address) and an extra put_page. P

[net 6/6] net/mlx5e: Increase Striding RQ minimum size limit to 4 multi-packet WQEs

2017-11-07 Thread Saeed Mahameed
From: Eugenia Emantayev This is to prevent the case of working with a single MPWQE (1 WQE is always reserved as RQ is linked-list). When the WQE is fully consumed, HW should still have available buffer in order not to drop packets. Fixes: 461017cb006a ("net/mlx5e: Support RX multi-packet WQE (St

[net 1/6] net/mlx5: Loop over temp list to release delay events

2017-11-07 Thread Saeed Mahameed
From: Huy Nguyen list_splice_init initializing waiting_events_list after splicing it to temp list, therefore we should loop over temp list to fire the events. Fixes: 4ca637a20a52 ("net/mlx5: Delay events till mlx5 interface's add complete for pci resume") Signed-off-by: Huy Nguyen Signed-off-b

[pull request][net 0/6] Mellanox, mlx5 fixes 2017-11-08

2017-11-07 Thread Saeed Mahameed
Hi Dave, The follwoing series includes some fixes for mlx5 core and etherent driver. Sorry for the late submission but as you can see i have some very critical fixes below that i would like them merged into this RC. Please pull and let me know if there is any problem. For -stable: ('net/mlx5e:

Re: [PATCH v2 iproute2] libnetlink: Handle extack messages for non-error case

2017-11-07 Thread Ido Schimmel
On Tue, Nov 07, 2017 at 08:05:18PM -0800, David Ahern wrote: > Kernel can now return non-fatal error messages in extack facility. > Update iproute2 to dump to use if present. > - rename nl_dump_ext_err to nl_dump_ext_ack > - rename errmsg to msg > - add call to nl_dump_ext_ack in rtnl_dump_done and

Re: [PATCH net-next 0/2] net: hns3: Bug fixes & Code improvements in HNS3 driver

2017-11-07 Thread lipeng (Y)
please ignore this patch-set. I should remove "{topost}" from the subject. sorry for that, I will resend the patch-set. On 2017/11/8 15:31, Lipeng wrote: This patch-set introduces some bug fixes and code improvements. As [patch 1/2] depends on the patch {5392902 net: hns3: Consistently using

[PATCH] Bluetooth: Use common error handling code in bt_init()

2017-11-07 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 8 Nov 2017 08:03:04 +0100 * Improve jump targets so that a bit of exception handling can be better reused at the end of this function. * Adjust five condition checks. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH net-next v17] openvswitch: enable NSH support

2017-11-07 Thread David Miller
From: Yi Yang Date: Tue, 7 Nov 2017 21:07:02 +0800 ... > OVS master and 2.8 branch has merged NSH userspace > patch series, this patch is to enable NSH support > in kernel data path in order that OVS can support > NSH in compat mode by porting this. > > Signed-off-by: Yi Yang > Acked-by: Jiri

Re: [PATCH net] qmi_wwan: Add missing skb_reset_mac_header-call

2017-11-07 Thread David Miller
From: Kristian Evensen Date: Tue, 7 Nov 2017 13:47:56 +0100 > When we receive a packet on a QMI device in raw IP mode, we should call > skb_reset_mac_header() to ensure that skb->mac_header contains a valid > offset in the packet. While it shouldn't really matter, the packets have > no MAC heade

Re: [PATCH net] bonding: fix slave stuck in BOND_LINK_FAIL state

2017-11-07 Thread David Miller
From: Jay Vosburgh Date: Tue, 07 Nov 2017 19:50:07 +0900 > The bonding miimon logic has a flaw, in that a failure of the > rtnl_trylock can cause a slave to become permanently stuck in > BOND_LINK_FAIL state. > > The sequence of events to cause this is as follows: > > 1) bond_

Re: [PATCH] af_netlink: give correct bounds to dump skb for NLMSG_DONE

2017-11-07 Thread Jason A. Donenfeld
Erf, your patch doesn't handle what happens if len comes back negative, but I'll fix it up and send a v2 using this approach. I think I really prefer v1 though. Jason

[PATCH net-next 1/2] {topost} net: hns3: fix a bug when getting phy address from NCL_config file

2017-11-07 Thread Lipeng
From: Fuyun Liang Driver gets phy address from NCL_config file and uses the phy address to initialize phydev. There are 5 bits for phy address. And C22 phy address has 5 bits. So 0-31 are all valid address for phy. If there is no phy, it will crash. Because driver always get a valid phy address.

[PATCH net-next 2/2] {topost} net: hns3: cleanup mac auto-negotiation state query in hclge_update_speed_duplex

2017-11-07 Thread Lipeng
From: Fuyun Liang When checking whether auto-negotiation is on, driver only needs to check the value of mac.autoneg(SW) directly, and does not need to query it from hardware. Because this value is always synchronized with the auto-negotiation state of hardware. This patch removes mac auto-negoti

Re: [lldp-devel] Fwd: [PATCH RESEND] Fix segfault on "lldptool -t -i eth2 -V PFC -c enabled"

2017-11-07 Thread Hannes Reinecke
On 11/07/2017 04:56 PM, Sowmini Varadhan wrote: > > We are trying to use DCBX via lldpad for some of our applications, > and finding/fixing bugs and enhancements as we go. > > However our attempts to upstream these fixes is encountering silence > from the lldp-devel list e.g., > http://lists.o

[PATCH net-next 0/2] net: hns3: Bug fixes & Code improvements in HNS3 driver

2017-11-07 Thread Lipeng
This patch-set introduces some bug fixes and code improvements. As [patch 1/2] depends on the patch {5392902 net: hns3: Consistently using GENMASK in hns3 driver}, which exists in net-next, not exists in net, so push this serise to nex-next. Fuyun Liang (2): {topost} net: hns3: fix a bug when ge

Re: [PATCH] pktgen: document 32-bit timestamp overflow

2017-11-07 Thread David Miller
From: Arnd Bergmann Date: Tue, 7 Nov 2017 11:38:32 +0100 > Timestamps in pktgen are currently retrieved using the deprecated > do_gettimeofday() function that wraps its signed 32-bit seconds in 2038 > (on 32-bit architectures) and requires a division operation to calculate > microseconds. > > T

Re: [PATCH] net/tcp: track all ipv4/tcp state transition in tcp_set_state

2017-11-07 Thread David Miller
From: Yafang Shao Date: Tue, 7 Nov 2017 18:36:28 +0800 > When I hooked the function tcp_set_state with kprobe to track the ipv4/tcp > state transistion, I found state transition from TCP_LISTEN to TCP_SYN_RECV > is missed. > > I think it is better to use the helper to do state transition instea

Re: [PATCH] af_netlink: give correct bounds to dump skb for NLMSG_DONE

2017-11-07 Thread Jason A. Donenfeld
Hi Johannes, Yes indeed. It sacrifices 24 bytes for making things much less complex. However, if you prefer increasing the complexity of the state machine a bit instead, I suppose we could roll with this approach instead... Jason

[PATCH 02/31] nds32: Kernel booting and initialization

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/kernel/head.S | 211 +++ arch/nds32/kernel/setup.c | 406 + 2 files changed, 617 insertions(+) create mode 100644 arch/nds32/kernel/head

[PATCH 03/31] nds32: Support early_printk

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Rick Chen Signed-off-by: Greentime Hu --- arch/nds32/kernel/early_printk.c | 124 ++ 1 file changed, 124 insertions(+) create mode 100644 arch/nds32/kernel/early_printk.c diff --git a/arch/nds32/kernel/early_printk.c b/ar

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

2017-11-07 Thread Greentime Hu
This patchset adds core architecture support to Linux for Andestech's N13, N15, D15, N10, D10 processor cores. Based on the 16/32-bit AndeStar RISC-like architecture, we designed the configurable AndesCore series of embedded processor families. AndesCores range from highly performance-efficient sm

[PATCH 07/31] nds32: MMU fault handling and page table management

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/lib/copy_page.S | 50 ++ arch/nds32/mm/extable.c| 29 +++ arch/nds32/mm/fault.c | 420 arch/nds32/mm/mmap.c | 88 ++ 4 files

[PATCH 05/31] nds32: MMU definitions

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/fixmap.h | 41 arch/nds32/include/asm/highmem.h | 78 +++ arch/nds32/include/asm/memory.h | 147 + arch/nds32/include/asm/mmu.h | 25 +++ arch/nds32/inclu

[PATCH 06/31] nds32: MMU initialization

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/mm/highmem.c | 92 + arch/nds32/mm/init.c | 328 ++ arch/nds32/mm/mm-nds32.c | 103 +++ 3 files changed, 523 insertions(+) cre

[PATCH 01/31] nds32: Assembly macros and definitions

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/assembler.h | 52 ++ arch/nds32/include/asm/bitfield.h | 982 arch/nds32/include/asm/nds32.h | 92 arch/nds32/kernel/asm-offsets.c| 40

[PATCH 10/31] nds32: IRQ handling

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/irqflags.h | 49 + arch/nds32/kernel/irq.c | 34 + 2 files changed, 83 insertions(+) create mode 100644 arch/nds32/in

Re: [PATCH v2] net: macb: add of_node_put to error paths

2017-11-07 Thread David Miller
From: Michael Grzeschik Date: Tue, 7 Nov 2017 10:59:49 +0100 > @@ -611,6 +611,7 @@ static int macb_mii_init(struct macb *bp) > err_out_unregister_bus: > mdiobus_unregister(bp->mii_bus); > err_out_free_mdiobus: > + of_node_put(bp->phy_node); > if ((np) && (of_phy_is_fixed_link(n

[PATCH 14/31] nds32: ELF definitions

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/elf.h | 192 ++ arch/nds32/include/uapi/asm/auxvec.h | 25 + arch/nds32/include/uapi/asm/param.h | 24 + 3 files changed, 241 insertions(+

[PATCH 09/31] nds32: Process management

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/current.h | 25 arch/nds32/include/asm/processor.h | 116 ++ arch/nds32/include/asm/thread_info.h | 91 ++ arch/nds32/kernel/process.c | 2

[PATCH 11/31] nds32: Atomic operations

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/futex.h| 116 arch/nds32/include/asm/spinlock.h | 178 + 2 files changed, 294 insertions(+) create mode 100644 arch/nds32/in

[PATCH 12/31] nds32: Device specific operations

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/io.h | 33 + arch/nds32/mm/ioremap.c | 67 +++ 2 files changed, 100 insertions(+) create mode 100644 arch/nds32/include/asm

[PATCH 13/31] nds32: DMA mapping API

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/dma-mapping.h | 27 ++ arch/nds32/kernel/dma.c | 478 ++ 2 files changed, 505 insertions(+) create mode 100644 arch/nds32/include/asm/dma-mappi

Re: regression: UFO removal breaks kvm live migration

2017-11-07 Thread David Miller
From: Willem de Bruijn Date: Wed, 8 Nov 2017 12:36:26 +0900 > On Tue, Nov 7, 2017 at 5:02 PM, Michal Kubecek wrote: >> I didn't have time to think it through yet but perhaps we could allow >> setting TUN_F_UFO and ignore its value. > > If the feature is enabled guests may try to send UFO packet

[PATCH 19/31] nds32: Debugging support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/ptrace.h | 42 + arch/nds32/kernel/ptrace.c | 325 ++ 2 files changed, 367 insertions(+) create mode 100644 arch/nds32/include/uapi/asm/p

[PATCH 17/31] nds32: Signal handling support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/sigcontext.h | 73 ++ arch/nds32/include/uapi/asm/signal.h | 23 ++ arch/nds32/kernel/signal.c | 370 ++ 3 files changed, 466 insert

[PATCH 16/31] nds32: VDSO support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/vdso.h | 35 arch/nds32/include/asm/vdso_datapage.h | 51 ++ arch/nds32/kernel/vdso.c | 243 ++ arch/nds32/kernel/vdso/

[PATCH 15/31] nds32: System calls handling

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/syscall.h | 203 ++ arch/nds32/include/asm/syscalls.h| 27 + arch/nds32/include/asm/unistd.h | 21 arch/nds32/include/uapi/asm/unistd

[PATCH 22/31] nds32: Generic timers support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/kernel/time.c | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 arch/nds32/kernel/time.c diff --git a/arch/nds32/kernel/time.c b/arch/nds32/kernel/time.c new file mode 1

[PATCH 23/31] nds32: Device tree support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/boot/dts/Makefile |8 ++ arch/nds32/boot/dts/ae3xx.dts | 55 arch/nds32/boot/dts/ag101p.dts | 60 arch/nds32/ke

[PATCH 18/31] nds32: Library functions

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/string.h | 30 +++ arch/nds32/include/asm/swab.h| 48 + arch/nds32/include/asm/uaccess.h | 385 ++ arch/nds32/kernel/nds32_ksyms.c | 54 +++

[PATCH 21/31] nds32: Loadable modules

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/module.h | 24 arch/nds32/kernel/module.c | 299 +++ 2 files changed, 323 insertions(+) create mode 100644 arch/nds32/include/asm/module.h cr

[PATCH 24/31] nds32: Miscellaneous header files

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/delay.h| 51 + arch/nds32/include/asm/linkage.h | 24 ++ arch/nds32/include/uapi/asm/byteorder.h | 26 +++ arch

[PATCH 28/31] irqchip: Andestech Internal Vector Interrupt Controller driver

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Rick Chen Signed-off-by: Greentime Hu --- drivers/irqchip/Makefile |1 + drivers/irqchip/irq-ativic32.c | 149 2 files changed, 150 insertions(+) create mode 100644 drivers/irqchip/irq-ativic32.c diff --git

[PATCH 25/31] nds32: defconfig

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/configs/ae3xx_defconfig | 110 +++ arch/nds32/configs/ag101p_defconfig | 109 ++ 2 files changed, 219 insertions(+) create mode 100644 a

[PATCH 20/31] nds32: L2 cache support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/l2_cache.h | 158 + arch/nds32/kernel/atl2c.c | 77 ++ 2 files changed, 235 insertions(+) create mode 100644 arch/nds32/include/

[PATCH 26/31] nds32: Build infrastructure

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/Kconfig | 107 arch/nds32/Kconfig.cpu | 100 + arch/nds32/Kconfig.debug | 14 + arch/nds3

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

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Rick Chen Signed-off-by: Greentime Hu --- .../interrupt-controller/andestech,ativic32.txt| 27 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/andestech,ativic32.txt diff

[PATCH 29/31] MAINTAINERS: Add nds32

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Greentime Hu --- MAINTAINERS |9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2f4e462..bce1181 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -857,6 +857,15 @@ X: drivers/iio/*/adjd* F: drivers/staging/iio/*/ad

[PATCH 31/31] net: faraday add nds32 support.

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Greentime Hu --- drivers/net/ethernet/faraday/Kconfig |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/faraday/Kconfig b/drivers/net/ethernet/faraday/Kconfig index 040c7f1..0ae6e9a 100644 --- a/drivers/net/ether

[PATCH 30/31] dt-bindings: nds32 CPU Bindings

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Rick Chen Signed-off-by: Zong Li Signed-off-by: Greentime Hu --- Documentation/devicetree/bindings/nds32/cpus.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/binding

[PATCH 08/31] nds32: Cache and TLB routines

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/cache.h | 25 ++ arch/nds32/include/asm/cache_info.h| 26 ++ arch/nds32/include/asm/cacheflush.h| 57 +++ arch/nds32/include/asm/mmu_context.h | 81 + arch/nds32/

[PATCH 04/31] nds32: Exception handling

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/ptrace.h | 79 ++ arch/nds32/kernel/ex-entry.S| 169 arch/nds32/kernel/ex-exit.S | 207 ++ arch/nds32/kernel/stacktrace.c | 60 + arch/nds32/ker

Re: [PATCH] af_netlink: give correct bounds to dump skb for NLMSG_DONE

2017-11-07 Thread Johannes Berg
On Tue, 2017-11-07 at 20:29 +0900, Jason A. Donenfeld wrote: > > This patch thus reserves and restores the required length for > NLMSG_DONE during the call to the dump function. > That basically removes that space though, even when the dump isn't complete... wouldn't it be better to do something

Re: [PATCH] af_netlink: give correct bounds to dump skb for NLMSG_DONE

2017-11-07 Thread Jason A. Donenfeld
By the way, in case you're curious, here's the {up,down,cross}stream WireGuard commit that works around it via its compat layer (a rat's nest of hideous backports for all the weird kernels people want WireGuard to run on, which I cannot wait to remove): https://git.zx2c4.com/WireGuard/commit/?id=f

[PATCH v2 net-next] net: netlink: Update attr validation to require exact length for some types

2017-11-07 Thread David Ahern
Attributes using NLA_U* and NLA_S* (where * is 8, 16,32 and 64) are expected to be an exact length. Split these data types from nla_attr_minlen into nla_attr_len and update validate_nla to require the attribute to have exact length for them. Signed-off-by: David Ahern --- v2 - fix check in nla_po

[PATCH] net: ipv6: sysctl to specify IPv6 ND traffic class

2017-11-07 Thread Maciej Żenczykowski
From: Maciej Żenczykowski Add a per-device sysctl to specify the default traffic class to use for kernel originated IPv6 Neighbour Discovery packets. Currently this includes: - Router Solicitation (ICMPv6 type 133) ndisc_send_rs() -> ndisc_send_skb() -> ip6_nd_hdr() - Neighbour Solicit

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-07 Thread Michael S. Tsirkin
On Wed, Nov 08, 2017 at 02:28:53PM +0900, Jason Wang wrote: > > > On 2017年11月04日 08:56, Willem de Bruijn wrote: > > On Fri, Nov 3, 2017 at 5:56 PM, Willem de Bruijn > > wrote: > > > On Tue, Oct 31, 2017 at 7:32 PM, Jason Wang wrote: > > > > This patch introduces an eBPF based queue selection me

Re: Page allocator bottleneck

2017-11-07 Thread Tariq Toukan
On 03/11/2017 10:40 PM, Mel Gorman wrote: On Thu, Nov 02, 2017 at 07:21:09PM +0200, Tariq Toukan wrote: On 18/09/2017 12:16 PM, Tariq Toukan wrote: On 15/09/2017 1:23 PM, Mel Gorman wrote: On Thu, Sep 14, 2017 at 07:49:31PM +0300, Tariq Toukan wrote: Insights: Major degradation between

Re: [PATCH net-next v3] net: mvpp2: add ethtool GOP statistics

2017-11-07 Thread David Miller
From: Antoine Tenart Date: Wed, 8 Nov 2017 06:17:10 +0100 > Hi David, > > On Wed, Nov 08, 2017 at 01:54:56PM +0900, David Miller wrote: >> From: Miquel Raynal >> Date: Mon, 6 Nov 2017 22:56:53 +0100 >> >> > Add ethtool statistics support by reading the GOP statistics from the >> > hardware co

Re: [PATCH] qrtr: Move to postcore_initcall

2017-11-07 Thread David Miller
From: Bjorn Andersson Date: Mon, 6 Nov 2017 20:50:35 -0800 > Registering qrtr with module_init makes the ability of typical platform > code to create AF_QIPCRTR socket during probe a matter of link order > luck. Moving qrtr to postcore_initcall() avoids this. > > Signed-off-by: Bjorn Andersson

Re: [PATCH 00/23] Netfilter/IPVS updates for net-next

2017-11-07 Thread David Miller
From: Pablo Neira Ayuso Date: Tue, 7 Nov 2017 01:51:50 +0100 > The following patchset contains Netfilter/IPVS updates for your net-next > tree, they are: ... > You can pull these changes from: > > git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git Pulled, thanks a lot!

[PATCH net-next 2/2] net/ncsi: Don't return error on normal response

2017-11-07 Thread Samuel Mendoza-Jonas
Several response handlers return EBUSY if the data corresponding to the command/response pair is already set. There is no reason to return an error here; the channel is advertising something as enabled because we told it to enable it, and it's possible that the feature has been enabled previously.

Re: [net-next v3 3/4] openvswitch: Add meter infrastructure

2017-11-07 Thread kbuild test robot
Hi Andy, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Andy-Zhou/Openvswitch-meter-action/20171108-053451 config: i386-randconfig-i0-201745 (attached as .config) compiler: gcc-4.8 (Debian 4.8.4-1) 4

[PATCH net-next 1/2] net/ncsi: Improve general state logging

2017-11-07 Thread Samuel Mendoza-Jonas
The NCSI driver is mostly silent which becomes a headache when trying to determine what has occurred on the NCSI connection. This adds additional logging in a few key areas such as state transitions and calling out certain errors more visibly. Signed-off-by: Samuel Mendoza-Jonas --- net/ncsi/ncs

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-07 Thread Jason Wang
On 2017年11月04日 08:56, Willem de Bruijn wrote: On Fri, Nov 3, 2017 at 5:56 PM, Willem de Bruijn wrote: On Tue, Oct 31, 2017 at 7:32 PM, Jason Wang wrote: This patch introduces an eBPF based queue selection method based on the flow steering policy ops. Userspace could load an eBPF program thr

Re: [PATCH net-next v3] net: mvpp2: add ethtool GOP statistics

2017-11-07 Thread Antoine Tenart
Hi David, On Wed, Nov 08, 2017 at 01:54:56PM +0900, David Miller wrote: > From: Miquel Raynal > Date: Mon, 6 Nov 2017 22:56:53 +0100 > > > Add ethtool statistics support by reading the GOP statistics from the > > hardware counters. Also implement a workqueue to gather the statistics > > every s

Re: [PATCH v2 net-next 0/6] mv88e6xxx broadcast flooding in hardware

2017-11-07 Thread David Miller
From: David Miller Date: Wed, 08 Nov 2017 13:58:09 +0900 (KST) > From: Andrew Lunn > Date: Tue, 7 Nov 2017 00:02:25 +0100 > >> This patchset makes the mv88e6xxx driver perform flooding in hardware, >> rather than let the software bridge perform the flooding. This is a >> prerequisite for IGMP

Re: [PATCH v2 net-next 0/6] mv88e6xxx broadcast flooding in hardware

2017-11-07 Thread David Miller
From: Andrew Lunn Date: Tue, 7 Nov 2017 00:02:25 +0100 > This patchset makes the mv88e6xxx driver perform flooding in hardware, > rather than let the software bridge perform the flooding. This is a > prerequisite for IGMP snooping on the bridge interface. > > In order to make hardware broadcast

[PATCH net-next V4 3/3] tools: bpftool: optionally show filenames of pinned objects

2017-11-07 Thread Prashant Bhole
Making it optional to show file names of pinned objects because it scans complete bpf-fs filesystem which is costly. Added option -f|--bpffs. Documentation updated. Signed-off-by: Prashant Bhole --- v2: - Change command line option from {-l|--pinned} to {-f|--bpffs} - Updated documentation v3:

[PATCH net-next V4 1/3] tools: bpftool: open pinned object without type check

2017-11-07 Thread Prashant Bhole
This was needed for opening any file in bpf-fs without knowing its object type Signed-off-by: Prashant Bhole --- v2: - No change v3: - No change v4: - No change tools/bpf/bpftool/common.c | 15 +-- tools/bpf/bpftool/main.h | 1 + 2 files changed, 14 insertions(+), 2 deletion

[PATCH net-next V4 2/3] tools: bpftool: show filenames of pinned objects

2017-11-07 Thread Prashant Bhole
Added support to show filenames of pinned objects. For example: root@test# ./bpftool prog 3: tracepoint name tracepoint__irq tag f677a7dd722299a3 loaded_at Oct 26/11:39 uid 0 xlated 160B not jited memlock 4096B map_ids 4 pinned /sys/fs/bpf/softirq_prog 4: tracepoint name trace

[PATCH net-next V4 0/3] tools: bpftool: show filenames of pinned objects

2017-11-07 Thread Prashant Bhole
This patchset adds support to show pinned objects in object details. Patch1 adds a funtionality to open a path in bpf-fs regardless of its object type. Patch2 adds actual functionality by scanning the bpf-fs once and adding object information in hash table, with object id as a key. One object may

Re: [PATCH net-next v3] net: mvpp2: add ethtool GOP statistics

2017-11-07 Thread David Miller
From: Miquel Raynal Date: Mon, 6 Nov 2017 22:56:53 +0100 > Add ethtool statistics support by reading the GOP statistics from the > hardware counters. Also implement a workqueue to gather the statistics > every second or some 32-bit counters could overflow. > > Suggested-by: Stefan Chulski > Si

Re: [PATCH 0/4] fsl/fman: Fix some error handling code in mac_probe

2017-11-07 Thread David Miller
From: Christophe JAILLET Date: Mon, 6 Nov 2017 22:53:28 +0100 > Commit c6e26ea8c893 ("dpaa_eth: change device used") generated some > conflicts in my patches waiting for submission. So I took a closer look at > it. > > > So here is a serie of 4 patches. > > The 1st one is just about a spuriou

Re: [PATCH 21/21] sunrpc: exit_net cleanup check added

2017-11-07 Thread Vasily Averin
On 2017-11-08 04:22, Stephen Hemminger wrote: > On Sun, 5 Nov 2017 13:02:44 +0300 > Vasily Averin wrote: >> +WARN(!list_empty(&sn->all_clients), >> + "net %p exit: sunrpc all_clients list is not empty\n", net); > > Don't print a kernel pointer, this is a security leak. Yes, you're ri

Re: [PATCH] rtnetlink: fix missing size for IFLA_IF_NETNSID

2017-11-07 Thread David Miller
From: Colin King Date: Mon, 6 Nov 2017 15:04:54 + > From: Colin Ian King > > The size for IFLA_IF_NETNSID is missing from the size calculation > because the proceeding semicolon was not removed. Fix this by removing > the semicolon. > > Detected by CoverityScan, CID#1461135 ("Structurally

Re: [PATCH net,stable] net: cdc_ether: fix divide by 0 on bad descriptors

2017-11-07 Thread David Miller
From: Bjørn Mork Date: Mon, 6 Nov 2017 15:37:22 +0100 > Setting dev->hard_mtu to 0 will cause a divide error in > usbnet_probe. Protect against devices with bogus CDC Ethernet > functional descriptors by ignoring a zero wMaxSegmentSize. > > Signed-off-by: Bjørn Mork Applied and queued up for

Re: [PATCH] bnxt: fix bnxt_hwrm_fw_set_time for y2038

2017-11-07 Thread David Miller
From: Arnd Bergmann Date: Mon, 6 Nov 2017 15:04:39 +0100 > On 32-bit architectures, rtc_time_to_tm() returns incorrect results > in 2038 or later, and do_gettimeofday() is broken for the same reason. > > This changes the code to use ktime_get_real_seconds() and time64_to_tm() > instead, both of

Re: [PATCH net,stable] net: qmi_wwan: fix divide by 0 on bad descriptors

2017-11-07 Thread David Miller
From: Bjørn Mork Date: Mon, 6 Nov 2017 15:32:18 +0100 > A CDC Ethernet functional descriptor with wMaxSegmentSize = 0 will > cause a divide error in usbnet_probe: > > divide error: [#1] PREEMPT SMP KASAN ... > Fix by simply ignoring the bogus descriptor, as it is optional > for QMI device

Re: [PATCH net-next] net: dsa: lan9303: Drop port range check

2017-11-07 Thread David Miller
From: Egil Hjelmeland Date: Mon, 6 Nov 2017 15:19:49 +0100 > Now that ds->num_ports is 3, there is no need to check range of "port" > parameter. > > Signed-off-by: Egil Hjelmeland Applied.

Re: [net-next 1/1] tipc: improve link resiliency when rps is activated

2017-11-07 Thread David Miller
From: Jon Maloy Date: Mon, 6 Nov 2017 12:44:11 +0100 > + return core & (num_online_cpus() - 1); Well, this isn't exactly correct. The number of online cpus is not necessarily a power of two. And furthermore it shouldn't even be necessary. Just pass the whole key around, it will have the m

Re: [PATCH] [net-next?] of: add of_property_read_variable_* dummy helpers

2017-11-07 Thread David Miller
From: Arnd Bergmann Date: Mon, 6 Nov 2017 14:26:10 +0100 > Commit a67e9472da42 ("of: Add array read functions with min/max size > limits") added a new interface for reading variable-length arrays from > DT properties. One user was added in dsa recently and this causes a > build error because tha

Re: [PATCH net-next] bnxt: delete some unreachable code

2017-11-07 Thread David Miller
From: Dan Carpenter Date: Mon, 6 Nov 2017 14:43:01 +0300 > We return on the previous line so this "return 0;" statement should just > be deleted. > > Signed-off-by: Dan Carpenter Applied, thanks Dan.

Re: [PATCH net-next V3 2/3] tools: bpftool: show filenames of pinned objects

2017-11-07 Thread Jakub Kicinski
On Wed, 8 Nov 2017 11:34:44 +0900, Prashant Bhole wrote: > > > + FILE *mntfile = NULL; > > > + FTSENT *ftse = NULL; > > > + FTS *fts = NULL; > > > + int fd, err; > > > + > > > + mntfile = setmntent("/proc/mounts", "r"); > > > + if (!mntfile) > > > + return -1; > > > + > > > + while ((mntent

Re: [PATCH] net: ipv6: sysctl to specify IPv6 ND traffic class

2017-11-07 Thread Erik Kline
Thanks. Signed-off-by: Erik Kline On 7 November 2017 at 16:59, Maciej Żenczykowski wrote: > From: Maciej Żenczykowski > > Add a per-device sysctl to specify the default traffic class to use for > kernel originated IPv6 Neighbour Discovery packets. > > Currently this includes: > > - Router So

Re: [PATCH v2 net-next 0/4] net: dsa: lan9303: Linting

2017-11-07 Thread David Miller
From: Egil Hjelmeland Date: Mon, 6 Nov 2017 12:42:00 +0100 > This series is non-functional. > - Correct some errors in comments and documentation. > Remove scripts/checkpatch.pl WARNINGs and most CHECKs: > - Replace msleep(1) with usleep_range() > - Adjust indenting > > Changes v1 -> v2: >

Re: [PATCH net-next] dpaa_eth: fix error return code in dpaa_eth_probe()

2017-11-07 Thread David Miller
From: Wei Yongjun Date: Mon, 6 Nov 2017 11:12:08 + > Fix to return a negative error code from the dpaa_bp_alloc() error > handling case instead of 0, as done elsewhere in this function. > > Signed-off-by: Wei Yongjun Applied.

Re: [PATCH] staging: octeon: Fix stopping of the interface.

2017-11-07 Thread Florian Fainelli
On 11/07/2017 07:06 PM, Steven J. Hill wrote: > Before disconnecting the PHY when a port is being taken down, > a call to phy_stop() is necessary. Indeed, thanks for fixing this! > > Signed-off-by: Steven J. Hill > Acked-by: David Daney Acked-by: Florian Fainelli -- Florian

Re: [PATCH net-next] mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create()

2017-11-07 Thread David Miller
From: Wei Yongjun Date: Mon, 6 Nov 2017 11:11:28 + > Fix to return a negative error code from the VID create error handling > case instead of 0, as done elsewhere in this function. > > Fixes: c57529e1d5d8 ("mlxsw: spectrum: Replace vPorts with Port-VLAN") > Signed-off-by: Wei Yongjun Appl

  1   2   3   4   >