[PATCH 2/2] brcmfmac: keep WiFi chip's power during system suspension

2015-04-26 Thread Fu, Zhonghui
Need to keep the power supply for WiFi chip during system suspension. Otherwise, the context of WiFi chip will be lost. Signed-off-by: Zhonghui Fu --- drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/wi

Re: [PATCH] Bluetooth: Skip the shutdown routine if the interface is not up

2015-04-26 Thread David Miller
From: Marcel Holtmann Date: Sun, 26 Apr 2015 21:49:06 -0700 > Hi Gabriele, > >> Most likely, the shutdown routine requires the interface to be up. >> This is the case for BTUSB_INTEL: the routine tries to send a command >> to the interface, but since this one is down, it fails and exits once >>

[PATCH 1/2] brcmfmac: prohibit ACPI power management for brcmfmac driver

2015-04-26 Thread Fu, Zhonghui
ACPI will manage WiFi chip's power state during suspend/resume process on some tablet platforms(such as ASUS T100TA). This is not supported by brcmfmac driver now, and the context of WiFi chip will be damaged after resume. This patch disconnects the relationship between WiFi chip and it's ACPI comp

Re: [PATCH] Bluetooth: Skip the shutdown routine if the interface is not up

2015-04-26 Thread Marcel Holtmann
Hi Gabriele, > Most likely, the shutdown routine requires the interface to be up. > This is the case for BTUSB_INTEL: the routine tries to send a command > to the interface, but since this one is down, it fails and exits once > HCI_INIT_TIMEOUT has expired. > > Signed-off-by: Gabriele Mazzotta >

Re: [PATCH 0/2] ppp: mppe: fixes MPPE desync on links which don't guarantee packet ordering

2015-04-26 Thread David Miller
From: Sylvain Rochet Date: Sun, 26 Apr 2015 20:40:51 +0200 > I am currently having an issue with PPP over L2TP (UDP) and MPPE in > stateless mode (default mode), UDP does not guarantee packet ordering so > we might get out of order packet. MPPE needs to be continuously synched > so we should drop

[PATCH v4 01/10] sysctl: make some functions unstatic to access by arch/lib

2015-04-26 Thread Hajime Tazaki
libos (arch/lib) emulates a sysctl-like interface by a function call of userspace by enumerating sysctl tree from sysctl_table_root. It requires to be publicly accessible to this symbol and related functions. Signed-off-by: Hajime Tazaki --- fs/proc/proc_sysctl.c | 36 +++

[PATCH v4 00/10] an introduction of Linux library operating system (LibOS)

2015-04-26 Thread Hajime Tazaki
This is the 4th version of Linux LibOS patchset which reflects a couple of comments received from people. changes from v3: - Patch 09/10 ("lib: libos build scripts and documentation") 1) Remove RFC (now it's a proposal) 2) build environment cleanup (commented by Paul Bolle) - Overall 3) change bas

[PATCH v4 04/10] lib: time handling (kernel glue code)

2015-04-26 Thread Hajime Tazaki
timer related (internal) functions such as add_timer(), do_gettimeofday() of kernel are trivially reimplemented for libos. these eventually call the functions registered by lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/hrtimer.c | 122 +++ arch/lib/tasklet

[PATCH v4 03/10] lib: public headers and API implementations for userspace programs

2015-04-26 Thread Hajime Tazaki
userspace programs which uses libos access via a public API, lib_init(), with passed arguments struct SimImported and struct SimExported. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- arch/lib/include/sim-assert.h | 23 +++ arch/lib/include/sim-init.h | 134 ++ arc

Re: [PATCH net-next V7 0/2] openvswitch: Add support for 802.1AD

2015-04-26 Thread David Miller
net-next is not open at this time, please resubmit this when the net-next tree is open for submissions again, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-

[PATCH v4 10/10] lib: tools used for test scripts

2015-04-26 Thread Hajime Tazaki
These auxiliary files are used for testing and debugging of net/ code with libos. a simple test is implemented with make test ARCH=lib. Signed-off-by: Hajime Tazaki --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38 +++ tools/testing/l

[PATCH v4 05/10] lib: context and scheduling functions (kernel glue code) for libos

2015-04-26 Thread Hajime Tazaki
contexnt primitives of kernel such as soft interupts, scheduling, tasklet are implemented for libos. these functions eventually call the functions registered by lib_init() API as well. Signed-off-by: Hajime Tazaki --- arch/lib/sched.c | 406 +++

[PATCH v4 07/10] lib: other kernel glue layer code

2015-04-26 Thread Hajime Tazaki
These files are used to provide the same function calls so that other network stack code keeps untouched. Signed-off-by: Hajime Tazaki Signed-off-by: Christoph Paasch --- arch/lib/capability.c | 25 + arch/lib/filemap.c| 32 ++ arch/lib/fs.c | 70 arch/lib/gl

[PATCH v4 09/10] lib: libos build scripts and documentation

2015-04-26 Thread Hajime Tazaki
document and build scripts for libos architecture. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- Documentation/virtual/libos-howto.txt | 144 MAINTAINERS | 9 + arch/lib/.gitignore | 3 + arch/lib/Kconfig

Re: [PATCH net 0/2] net/ethtool, mlx4_en: RSS hash function setting fixes

2015-04-26 Thread David Miller
From: Amir Vadai Date: Sun, 26 Apr 2015 17:36:04 +0300 > Hash function is represented as an eight bit field, every bit represents a > function. Currently possible values are: 1 for Toeplitz and 2 for XOR. > This commit changes the representation from bit flags into a value. Because > only one ha

[PATCH v4 06/10] lib: sysctl handling (kernel glue code)

2015-04-26 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface registed via lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/sysctl.c | 270 ++ 1 file changed, 270 insertions(+) create mode 100644 arch/lib/sysctl.c diff --git a/arch/lib/

[PATCH v4 08/10] lib: auxially files for auto-generated asm-generic files of libos

2015-04-26 Thread Hajime Tazaki
these files works as stubs in order to transparently run the other kernel part (e.g., net/) on libos environment. Signed-off-by: Hajime Tazaki --- arch/lib/include/asm/Kbuild | 57 +++ arch/lib/include/asm/atomic.h | 50 ++

[PATCH v4 02/10] slab: add SLIB (Library memory allocator) for arch/lib

2015-04-26 Thread Hajime Tazaki
add SLIB allocator for arch/lib (CONFIG_LIB) to wrap kmalloc and co. This will bring user's own allocator of libos: malloc(3) etc. Signed-off-by: Hajime Tazaki --- include/linux/slab.h | 6 +- include/linux/slib_def.h | 21 + mm/Makefile | 1 + mm/slab.h

Re: [PATCH net] net/bonding: Make DRV macros private

2015-04-26 Thread David Miller
From: Or Gerlitz Date: Sun, 26 Apr 2015 15:55:57 +0300 > From: Matan Barak > > The bonding modules currently defines four macros with > general names that pollute the global namespace: > DRV_VERSION > DRV_RELDATE > DRV_NAME > DRV_DESCRIPTION > > Fixing that by defining a private bonding_priv.h

Re: [PATCH net-next 0/6] ipv6: netfilter - coding style improvements

2015-04-26 Thread Pablo Neira Ayuso
On Sat, Apr 25, 2015 at 10:26:54AM +0100, Ian Morris wrote: > This series of patches removes some style issues in the ipv6 netfilter > code detected by checkpatch. There is no change to functionality and > no changes to the resultant object determined by objdiff. Please, Cc: netfilter-de...@vger.k

Re: [PATCH] ehea: Fix memory hook reference counting crashes

2015-04-26 Thread Michael Ellerman
On Sat, 2015-04-25 at 14:43 -0400, David Miller wrote: > From: Michael Ellerman > Date: Fri, 24 Apr 2015 15:52:32 +1000 > > > The recent commit to only register the EHEA memory hotplug hooks on > > adapter probe has a few problems. > > > > Firstly the reference counting is wrong for multiple ada

Re: [patch net-next v4 RFC 00/15] introduce programable flow dissector and cls_flower

2015-04-26 Thread Tom Herbert
On Fri, Apr 24, 2015 at 8:51 AM, Jiri Pirko wrote: > Per Davem's request, I prepared this patchset which introduces programmable > flow dissector. For current users of flow_keys, there is a wrapper > skb_flow_dissect_flow_keys which maintains the previous behaviour. > For purposes of cls_flower, c

Re: [PATCH net] net: rfs: fix crash in get_rps_cpus()

2015-04-26 Thread David Miller
From: Eric Dumazet Date: Sat, 25 Apr 2015 09:35:24 -0700 > From: Eric Dumazet > > Commit 567e4b79731c ("net: rfs: add hash collision detection") had one > mistake : > > RPS_NO_CPU is no longer the marker for invalid cpu in set_rps_cpu() > and get_rps_cpu(), as @next_cpu was the result of an AN

Re: [PATCH v3] altera tse: add support for fixed-links.

2015-04-26 Thread David Miller
From: Andreas Oetken Date: Sat, 25 Apr 2015 18:07:52 +0200 > From: Andreas Oetken > > Add support for fixed-links in configurations without PHY. > (e.g. connection to a switch, SGMII point to point, SFPs) > > Check: Documentation/devicetree/bindings/net/fixed-link.txt. > Signed-off-by: Andreas

Re: [PATCH] pxa168: fix double deallocation of managed resources

2015-04-26 Thread David Miller
From: Alexey Khoroshilov Date: Sat, 25 Apr 2015 04:07:03 +0300 > Commit 43d3ddf87a57 ("net: pxa168_eth: add device tree support") starts > to use managed resources by adding devm_clk_get() and > devm_ioremap_resource(), but it leaves explicit iounmap() and clock_put() > in pxa168_eth_remove() and

Re: [PATCH net-next v7] Add support of Cavium Liquidio ethernet adapters

2015-04-26 Thread David Miller
From: Raghu Vatsavayi Date: Fri, 24 Apr 2015 17:34:16 -0700 > Following patch adds support for Cavium Liquidio ethernet adapter. > LiquidIO adapters are pci express based 10Gig server adapters. > > This patch v7 has changes based on the feedback from earlier patches: > > 1) Minor comments from

Re: [patch net-next v4 RFC 00/15] introduce programable flow dissector and cls_flower

2015-04-26 Thread Or Gerlitz
On Sun, Apr 26, 2015 at 10:55 PM, Or Gerlitz wrote: > On Fri, Apr 24, 2015 at 6:51 PM, Jiri Pirko wrote: >> Per Davem's request, I prepared this patchset which introduces programmable >> flow dissector. For current users of flow_keys, there is a wrapper >> skb_flow_dissect_flow_keys which maintai

Re: [patch net-next v4 RFC 00/15] introduce programable flow dissector and cls_flower

2015-04-26 Thread Or Gerlitz
On Fri, Apr 24, 2015 at 6:51 PM, Jiri Pirko wrote: > Per Davem's request, I prepared this patchset which introduces programmable > flow dissector. For current users of flow_keys, there is a wrapper > skb_flow_dissect_flow_keys which maintains the previous behaviour. > For purposes of cls_flower, c

[PATCH 2/2] ppp: mppe: discard late packet in stateless mode

2015-04-26 Thread Sylvain Rochet
When PPP is used over a link which does not guarantee packet ordering, we might get late MPPE packets. This is a problem because MPPE must be kept synchronized and the current implementation does not drop them and rekey 4095 times instead of 0, which is wrong. In order to prevent rekeying about a

[PATCH 0/2] ppp: mppe: fixes MPPE desync on links which don't guarantee packet ordering

2015-04-26 Thread Sylvain Rochet
I am currently having an issue with PPP over L2TP (UDP) and MPPE in stateless mode (default mode), UDP does not guarantee packet ordering so we might get out of order packet. MPPE needs to be continuously synched so we should drop late UDP packet. I added a printk on the number of time we rekeyed

[PATCH 1/2] ppp: mppe: sanity error path rework

2015-04-26 Thread Sylvain Rochet
We are going to need sanity error path a little further, rework to be able to use the sanity error path anywhere in decompressor. Signed-off-by: Sylvain Rochet --- drivers/net/ppp/ppp_mppe.c | 29 + 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/drive

[PATCH] Bluetooth: Skip the shutdown routine if the interface is not up

2015-04-26 Thread Gabriele Mazzotta
Most likely, the shutdown routine requires the interface to be up. This is the case for BTUSB_INTEL: the routine tries to send a command to the interface, but since this one is down, it fails and exits once HCI_INIT_TIMEOUT has expired. Signed-off-by: Gabriele Mazzotta --- net/bluetooth/hci_core

[PATCH net-next V7 2/2] net: openvswitch: 802.1ad: Flow handling, actions, and vlan parsing

2015-04-26 Thread Thomas F Herbert
Add support for 802.1ad including the ability to push and pop double tagged vlans. Signed-off-by: Thomas F Herbert --- net/openvswitch/actions.c | 6 ++- net/openvswitch/flow.c | 83 +++--- net/openvswitch/flow.h | 1 + net/openvswitch/f

[PATCH net-next V7 1/2] net: openvswitch: 802.1ad uapi changes.

2015-04-26 Thread Thomas F Herbert
openvswitch: Add support for 8021.AD Change the description of the VLAN tpid field. Signed-off-by: Thomas F Herbert --- include/uapi/linux/openvswitch.h | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/linux/op

[PATCH net-next V7 0/2] openvswitch: Add support for 802.1AD

2015-04-26 Thread Thomas F Herbert
Add support for 802.1AD to the openvswitch kernel module. Although the Open Flow specification specified support for 802.1AD (qinq) as well as push and pop vlan headers, So far Open vSwitch has only supported a single tag header. This accompanies version 7 of the patch submitted to openvswitch

Re: [PATCH v3 0/4] new ethernet address manipulation checks

2015-04-26 Thread Joe Perches
(adding Andrew Morton) On Sun, 2015-04-26 at 18:43 +0200, Mateusz Kulikowski wrote: > Changes in v3: > - Fixed handling of MEMSET issues (due to '/s' at the end the same > error/warning was reported several times) > - Added handling of multiline PREFER_ETHER_ADDR_COPY warnings > - Review: added

Re: [PATCH net 0/2] net/ethtool, mlx4_en: RSS hash function setting fixes

2015-04-26 Thread Or Gerlitz
On Sun, Apr 26, 2015 at 5:36 PM, Amir Vadai wrote: > Hi Dave, > > This small patchset fixes a small issue in the ethtool User/kernel API. > > Hash function is represented as an eight bit field, every bit represents a > function. Currently possible values are: 1 for Toeplitz and 2 for XOR. > This

[PATCH v3 0/4] new ethernet address manipulation checks

2015-04-26 Thread Mateusz Kulikowski
Changes in v3: - Fixed handling of MEMSET issues (due to '/s' at the end the same error/warning was reported several times) - Added handling of multiline PREFER_ETHER_ADDR_COPY warnings - Review: added --fix option to eth_zero/broadcast_addr checks - All new warnings are multi-line aware (fixes

[PATCH v3 4/4] checkpatch: Add multi-line handling for PREFER_ETHER_ADDR_COPY

2015-04-26 Thread Mateusz Kulikowski
Handle multi-line memcpy() properly. Signed-off-by: Mateusz Kulikowski --- scripts/checkpatch.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index c05befe..6311950 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpat

[PATCH v3 2/4] checkpatch: suggest using eth_zero_addr() and eth_broadcast_addr()

2015-04-26 Thread Mateusz Kulikowski
Suggest using eth_zero_addr() or eth_broadcast_addr() instead of memset(). Signed-off-by: Mateusz Kulikowski --- scripts/checkpatch.pl | 23 +++ 1 file changed, 23 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 0a511b7..263e831 100755 --- a/sc

[PATCH v3 1/4] checkpatch: suggest using ether_addr_equal*()

2015-04-26 Thread Mateusz Kulikowski
Check if memcmp() is used to compare ethernet addresses and suggest using ether_addr_equal() or ether_addr_equal_unaligned() Signed-off-by: Mateusz Kulikowski --- scripts/checkpatch.pl | 8 1 file changed, 8 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index

[PATCH v3 3/4] checkpatch: Fix processing of MEMSET issues

2015-04-26 Thread Mateusz Kulikowski
Remove 's' modifier to avoid reporting the same warning several times. Signed-off-by: Mateusz Kulikowski --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 263e831..c05befe 100755 --- a/scripts/checkpa

[PATCH net 2/2] net/mlx4_en: Prevent setting invalid RSS hash function

2015-04-26 Thread Amir Vadai
mlx4_en_check_rxfh_func() was checking for hardware support before setting a known RSS hash function, but didn't do any check before setting unknown RSS hash function. Need to make it fail on such values. In this occasion, moved the actual setting of the new value from the check function into mlx4_

[PATCH net 0/2] net/ethtool, mlx4_en: RSS hash function setting fixes

2015-04-26 Thread Amir Vadai
Hi Dave, This small patchset fixes a small issue in the ethtool User/kernel API. Hash function is represented as an eight bit field, every bit represents a function. Currently possible values are: 1 for Toeplitz and 2 for XOR. This commit changes the representation from bit flags into a value. B

[PATCH net 1/2] ethtool: Use values instead of bit flags for RSS hash function

2015-04-26 Thread Amir Vadai
The RX indirection hash function is eight bits. Using more than one hash function doesn't make sense, therefore using this field as a value instead of a bit flag. Moving from bit flags into value shouldn't introduce any backward compatibility issues, since currently there are only 2 functions, ther

[PATCH net] net/bonding: Make DRV macros private

2015-04-26 Thread Or Gerlitz
From: Matan Barak The bonding modules currently defines four macros with general names that pollute the global namespace: DRV_VERSION DRV_RELDATE DRV_NAME DRV_DESCRIPTION Fixing that by defining a private bonding_priv.h header files which includes those defines. Signed-off-by: Matan Barak Sign

Re: [PATCH iproute2] ip link set vf: Added "query_rss" command

2015-04-26 Thread Vlad Zolotarov
On 04/13/15 14:04, Vlad Zolotarov wrote: On 03/25/15 00:47, Stephen Hemminger wrote: On Sun, 22 Mar 2015 20:52:58 +0200 Vlad Zolotarov wrote: Add a new option to toggle the ability of querying the RSS configuration of a specific VF. VF RSS information like RSS hash key may be considered