[iproute PATCH v2 2/7] Use C99 style initializers everywhere

2016-06-21 Thread Phil Sutter
This big patch was compiled by vimgrepping for memset calls and changing to C99 initializer if applicable. One notable exception is the initialization of union bpf_attr in tc/tc_bpf.c: changing it would break for older gcc versions (at least <=3.4.6). Calls to memset for struct rtattr pointer fiel

[iproute PATCH v2 3/7] Replace malloc && memset by calloc

2016-06-21 Thread Phil Sutter
This only replaces occurrences where the newly allocated memory is cleared completely afterwards, as in other cases it is a theoretical performance hit although code would be cleaner this way. Signed-off-by: Phil Sutter --- genl/genl.c| 3 +-- lib/names.c| 7 ++- misc/lnsta

[iproute PATCH v2 7/7] ip/tcp_metrics: Simplify process_msg a bit

2016-06-21 Thread Phil Sutter
By combining the attribute extraction and check for existence, the additional indentation level in the 'else' clause can be avoided. In addition to that, common actions for 'daddr' are combined since the function returns if neither of the branches are taken. Signed-off-by: Phil Sutter --- ip/tc

[PATCH net-next 2/2] net: dsa: mv88e6xxx: rename single-chip support

2016-06-21 Thread Vivien Didelot
With the upcoming support for cross-chip operations, it will be hard to distinguish portions of code supporting a single-chip or a switch fabric of interconnected chips. Make the code clearer now, by renaming the mv88e6xxx_priv_state chip structure to mv88e6xxx_chip. This patch brings no functiona

[PATCH net-next 1/2] net: dsa: mv88e6xxx: move driver in its own folder

2016-06-21 Thread Vivien Didelot
With the upcoming support for cross-chip operations and other mv88e6xxx enhancements, new files will be added. Similarly to mlxsw or b53, move mv88e6xxx files into their own folder. In the meantime, update the MAINTAINERS entry to please checkpatch.pl, by replacing the invalid 88E6352 entry with

Re: [PATCH net-next v10 2/5] openvswitch: set skb protocol and mac_len when receiving on internal device

2016-06-21 Thread pravin shelar
On Mon, Jun 20, 2016 at 7:25 PM, Simon Horman wrote: > [Cc Jiri Benc] > > On Sat, Jun 18, 2016 at 06:38:54PM -0700, pravin shelar wrote: >> On Thu, Jun 16, 2016 at 10:53 PM, Simon Horman >> wrote: >> > On Tue, Jun 07, 2016 at 03:45:27PM -0700, pravin shelar wrote: >> >> On Mon, Jun 6, 2016 at 8:0

[iproute PATCH v2 1/7] tc: m_action: Improve conversion to C99 style initializers

2016-06-21 Thread Phil Sutter
This improves my initial change in the following points: - Drop superfluous comma after last expression in block. - No need to initialize variables to zero as the key feature of C99 initializers is to do this implicitly. - By relocating the declaration of struct rtattr *tail, it can be initial

[iproute PATCH v2 0/7] Big C99 style initializer rework

2016-06-21 Thread Phil Sutter
This is v2 of my C99-style initializer related patch series. The changes since v1 are: - Rebased onto current upstream master: My own commit a0a73b298a579 ("tc: m_action: Use C99 style initializers for struct req") contains most of the changes to tc/m_action.c already, so I put the remaining

[iproute PATCH v2 6/7] misc/ifstat: simplify unsigned value comparison

2016-06-21 Thread Phil Sutter
By directly comparing the value of both unsigned variables, casting to signed becomes unnecessary. This also fixes for compiling with older versions of gcc (at least <=3.4.6) which emit the following warning: | ifstat.c: In function `update_db': | ifstat.c:542: warning: comparison is always false

[iproute PATCH v2 4/7] No need to initialize rtattr fields before parsing

2016-06-21 Thread Phil Sutter
Since parse_rtattr_flags() calls memset already, there is no need for callers to do so themselves. Signed-off-by: Phil Sutter --- ip/ipaddress.c | 2 +- tc/tc_class.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index afb115e5f592a..64

Re: [PATCH iproute2 net-next v3 1/5] json_writer: allow base json data type to be array or object

2016-06-21 Thread Anuradha Karuppiah
On Tue, Jun 21, 2016 at 9:12 AM, Stephen Hemminger wrote: > On Mon, 20 Jun 2016 23:39:43 -0700 > Roopa Prabhu wrote: > >> From: Anuradha Karuppiah >> >> This patch adds a type qualifier to json_writer. Type can be a >> json object or array. This can be extended to other types like >> json-string

Re: [iproute PATCH v2 2/7] Use C99 style initializers everywhere

2016-06-21 Thread David Ahern
On 6/21/16 10:18 AM, Phil Sutter wrote: This big patch was compiled by vimgrepping for memset calls and changing to C99 initializer if applicable. One notable exception is the initialization of union bpf_attr in tc/tc_bpf.c: changing it would break for older gcc versions (at least <=3.4.6). Call

Re: [iproute PATCH 0/2] Check MAC address length when changing it

2016-06-21 Thread Stephen Hemminger
On Thu, 16 Jun 2016 16:19:38 +0200 Phil Sutter wrote: > Due to minimal checking in kernel space, MAC address setting was > problematic in multiple ways: > > - Setting an overly long MAC address was accepted and the extra parts > simply ignored. > > - Setting an overly short MAC address for VF

[iproute PATCH v2 5/7] Makefile: Allow to override CC

2016-06-21 Thread Phil Sutter
This makes it easier to build iproute2 with a custom compiler. While at it, make HOSTCC default to the value of CC if not explicitly set elsewhere. Signed-off-by: Phil Sutter --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 15c81ecfd

Re: [PATCH iproute2 net-next] bridge: vlan: add support to display per-vlan statistics

2016-06-21 Thread Nikolay Aleksandrov
On 21/06/16 18:01, Stephen Hemminger wrote: > On Mon, 20 Jun 2016 12:13:19 +0200 > Nikolay Aleksandrov wrote: > >> This patch adds support for the -statistics (-s) argument to the bridge >> vlan show command which will display the per-vlan statistics and the bridge >> device each vlan belongs to.

Re: [PATCH iproute2 net-next] bridge: vlan: add support to display per-vlan statistics

2016-06-21 Thread Nikolay Aleksandrov
On 21/06/16 18:10, Nikolay Aleksandrov wrote: > On 21/06/16 18:01, Stephen Hemminger wrote: >> On Mon, 20 Jun 2016 12:13:19 +0200 >> Nikolay Aleksandrov wrote: >> >>> This patch adds support for the -statistics (-s) argument to the bridge >>> vlan show command which will display the per-vlan stati

Re: [PATCH iproute2 net-next v3 1/5] json_writer: allow base json data type to be array or object

2016-06-21 Thread Stephen Hemminger
On Mon, 20 Jun 2016 23:39:43 -0700 Roopa Prabhu wrote: > From: Anuradha Karuppiah > > This patch adds a type qualifier to json_writer. Type can be a > json object or array. This can be extended to other types like > json-string, json-number etc in the future. > > Signed-off-by: Anuradha Karupp

Re: [PATCH iproute2 net-next] bridge: vlan: add support to display per-vlan statistics

2016-06-21 Thread Stephen Hemminger
On Mon, 20 Jun 2016 12:13:19 +0200 Nikolay Aleksandrov wrote: > This patch adds support for the -statistics (-s) argument to the bridge > vlan show command which will display the per-vlan statistics and the bridge > device each vlan belongs to. The show command filtering options are both > suppor

Re: 802.3ad bonding aggregator reselection

2016-06-21 Thread Jay Vosburgh
Veli-Matti Lintu wrote: >2016-06-20 17:11 GMT+03:00 zhuyj : >> 5. Switch Configuration >> === >> >> For this section, "switch" refers to whatever system the >> bonded devices are directly connected to (i.e., where the other end of >> the cable plugs into). This may be

Re: [PATCH net-next 12/18] IB/mlx5: Add kernel offload flow-tag

2016-06-21 Thread Or Gerlitz
On 6/21/2016 6:18 PM, Eric Dumazet wrote: One solution would be to setup a special netdev used only for sniffers (No IP address on it) -> Only changes would happen in the driver, to set skb->dev to this 'debug' device. Eric, Yep, that was an option too, but when we realized that libpcap has t

Re: [PATCH] ppc: Fix BPF JIT for ABIv2

2016-06-21 Thread Alexei Starovoitov
On 6/21/16 7:47 AM, Thadeu Lima de Souza Cascardo wrote: The calling convention is different with ABIv2 and so we'll need changes in bpf_slow_path_common() and sk_negative_common(). How big would those changes be? Do we know? How come no one reported this was broken previously? This is the fi

Re: [net-next PATCH v3 00/17] Future-proof tunnel offload handlers

2016-06-21 Thread Hannes Frederic Sowa
On 21.06.2016 01:22, David Miller wrote: > From: Tom Herbert > Date: Mon, 20 Jun 2016 10:05:01 -0700 > >> Generally, this means it needs to at least match by local addresses >> and port for an unconnected/unbound socket, the source address for >> an unconnected/bound socket, a the full 4-tuple fo

Re: [PATCH net-next] tcp: reduce cpu usage when SO_SNDBUF is set

2016-06-21 Thread Jason Baron
On 06/20/2016 06:29 PM, Eric Dumazet wrote: > On Mon, 2016-06-20 at 17:23 -0400, Jason Baron wrote: >> From: Jason Baron >> >> When SO_SNDBUF is set and we are under tcp memory pressure, the effective >> write buffer space can be much lower than what was set using SO_SNDBUF. For >> example, we m

Re: [PATCH net-next 12/18] IB/mlx5: Add kernel offload flow-tag

2016-06-21 Thread Eric Dumazet
On Tue, Jun 21, 2016 at 6:04 AM, Saeed Mahameed wrote: > > Alexei , I don't understand your concern. > We already have a full/complete working dpdk bypass solution in > userspace nothing extra is required from the kernel. > > We just want to see this traffic and any other rdma traffic in tcpdump

[patch net-next v5 2/4] rtnetlink: add HW/SW stats distinction in rtnl_fill_stats

2016-06-21 Thread Jiri Pirko
From: Nogah Frankel Since hardware stats are now returned by default, add a way to query only software stats. They are saved in IFLA_SW_STATS64. (This option is valid only if the driver returns HW stats in the default ndo stats) Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off

Re: [PATCH] mpls: Add missing RCU-bh read side critical section locking in output path

2016-06-21 Thread Robert Shearman
On 20/06/16 19:05, Lennert Buytenhek wrote: From: David Barroso When locally originated IP traffic hits a route that says to push MPLS labels, we'll get a call chain dst_output() -> lwtunnel_output() -> mpls_output() -> neigh_xmit() -> ___neigh_lookup_noref() where the last function in this cha

[patch net-next v5 1/4] netdevice: add SW statistics ndo

2016-06-21 Thread Jiri Pirko
From: Nogah Frankel Till now we had a ndo statistics function that returned SW statistics. We want to change the "basic" statistics to return HW statistics if available. In this case we need to expose a new ndo to return the SW statistics. Add a new ndo declaration to get SW statistics Add a func

[patch net-next v5 0/4] return offloaded stats as default and expose original sw stats

2016-06-21 Thread Jiri Pirko
From: Jiri Pirko The problem we try to handle is about offloaded forwarded packets which are not seen by kernel. Let me try to draw it: port1 port2 (HW stats are counted here) \ / \/ \

[patch net-next v5 4/4] mlxsw: spectrum: Implement SW stats ndo and expose HW stats by default

2016-06-21 Thread Jiri Pirko
From: Nogah Frankel Add a function to get the SW statistics with an ndo. Change the default statistics ndo to return HW statistics (like the one returned by ethtool_ops) The HW stats are collected to a cache by delayed work every 1 sec. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Si

[patch net-next v5 3/4] net: core: add SW stats to if_stats_msg

2016-06-21 Thread Jiri Pirko
From: Nogah Frankel If there is a dedicated ndo to return SW stats - use it. Otherwise (indicates that there is no HW stats) use the default stats ndo. Return results under IFLA_STATS_LINK_SW_64. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko --- include/uap

[PATCH net-next 0/2] qed*: coalesce parameters config support.

2016-06-21 Thread Sudarsana Reddy Kalluru
The patch series adds the support for config/read of the adapter coalesce parameters. Patch (1) adds the qed infrastructure/APIs for the support and patch (2) adds the driver support for following ethtool commands: ethtool -c|--show-coalesce ethX ethtool -C|--coalesce ethX [rx-usecs

[PATCH net-next 1/2] qed: Add support for coalescing config read/update.

2016-06-21 Thread Sudarsana Reddy Kalluru
This patch adds support for configuring the device tx/rx coalescing timeout values in the order of micro seconds. It also adds APIs for upper layer drivers for reading/updating the coalescing values. Signed-off-by: Sudarsana Reddy Kalluru Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlog

[PATCH net-next 2/2] qede: Add support for coalescing config read/update.

2016-06-21 Thread Sudarsana Reddy Kalluru
Signed-off-by: Sudarsana Reddy Kalluru Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 53 + 1 file changed, 53 insertions(+) diff --git a/drivers/net/ethernet/qlogic/qede/qede_ethtool.c b/drivers/net/ethernet/qlogic/qede/qede_ethtool.c

Re: [PATCH] ppc: Fix BPF JIT for ABIv2

2016-06-21 Thread Thadeu Lima de Souza Cascardo
On Tue, Jun 21, 2016 at 09:15:48PM +1000, Michael Ellerman wrote: > On Tue, 2016-06-21 at 14:28 +0530, Naveen N. Rao wrote: > > On 2016/06/20 03:56PM, Thadeu Lima de Souza Cascardo wrote: > > > On Sun, Jun 19, 2016 at 11:19:14PM +0530, Naveen N. Rao wrote: > > > > On 2016/06/17 10:00AM, Thadeu Lima

Re: [PATCH v2] net: stmmac: dwmac-rk: add rk3228-specific data

2016-06-21 Thread Heiko Stübner
Am Dienstag, 21. Juni 2016, 20:33:28 schrieb Xing Zheng: > Add constants and callback functions for the dwmac on rk3228/rk3229 socs. > As can be seen, the base structure is the same, only registers and the > bits in them moved slightly. > > Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner

Re: [PATCH v2 2/3] mwifiex: move .get_tx_power logic to station ioctl file

2016-06-21 Thread Javier Martinez Canillas
Hello Kalle, On 06/10/2016 03:54 PM, Kalle Valo wrote: > Javier Martinez Canillas writes: > >>> This patch (2/3) is only for code rearrangement and adds an >>> unnecessary wrapper function. We can simply drop the patch. >> >> Agreed. >> >> Kalle, >> >> Patch 3/3 applies cleanly even after droppi

Fwd: Re: [PATCH net-next 00/15] net/smc: Shared Memory Communications - RDMA

2016-06-21 Thread Ursula Braun
Dave, the SMC-R patches submitted 2016-06-03 show up in state "Changes Requested" on patchwork: https://patchwork.ozlabs.org/project/netdev/list/?submitter=2266&state=*&page=1 You had requested a change of the SMC-R description in the cover letter. We came up with the response below. Do you n

Re: [PATCH 1/2] ath10k: remove unused

2016-06-21 Thread Sergei Shtylyov
Hello. On 6/21/2016 2:45 PM, Chaehyun Lim wrote: is not used anymore, so just remove it. s/it/#include/? Signed-off-by: Chaehyun Lim [...] diff --git a/drivers/net/wireless/ath/ath10k/htc.h b/drivers/net/wireless/ath/ath10k/htc.h index cc82718..0c55cd9 100644 --- a/drivers/net/wire

[PATCH net] MAINTAINERS: Update Mellanox's mlx4 Eth NIC driver entry

2016-06-21 Thread Or Gerlitz
Tariq Toukan is replacing Eugenia (Jenny) Emantayev as the mlx4 Ethernet driver maintainer, thanks to Jenny and good luck to him. Signed-off-by: Or Gerlitz --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 2ebe195..8cffceb 100644

Re: [PATCH net-next 16/19] net: hns: fix bug that alloc skb fail lead to port unavailable

2016-06-21 Thread Sergei Shtylyov
Hello. On 6/21/2016 6:56 AM, Yisen Zhuang wrote: From: Jun He When hns_nic_poll_rx_skb alloc skb fail, it will break receive cycle and read new fbd_num to start new receive cycle. It recomputes cycle num is fbd_num minus clean_count, actually this cycle num is too big because it drop out rece

Re: [PATCH net-next 00/18] mlx5 RoCE/RDMA packet sniffer

2016-06-21 Thread Saeed Mahameed
On Fri, Jun 17, 2016 at 5:43 PM, Saeed Mahameed wrote: > Hi Dave, > > This patch set introduces mlx5 RoCE/RDMA packet sniffer, it allows > mlx5e netdevice to receive RoCE/RDMA or RAW ETH traffic which isn't > supposed to be passed to the kernel stack, for sniffing and diagnostics > purposes. This

Re: [PATCH net-next 12/18] IB/mlx5: Add kernel offload flow-tag

2016-06-21 Thread Saeed Mahameed
On Tue, Jun 21, 2016 at 5:18 AM, Alexei Starovoitov wrote: > On Sat, Jun 18, 2016 at 01:31:26AM +0300, Saeed Mahameed wrote: >> >> We simply want to selectively be able to see RoCE/RDMA ETH standard >> traffic in tcpdump, for diagnostic purposes. >> so in order to not overwhelm the kernel TCP/IP s

Re: [PATCH v10 06/22] IB/hns: Add initial cmd operation

2016-06-21 Thread Wei Hu (Xavier)
On 2016/6/21 19:28, Leon Romanovsky wrote: On Tue, Jun 21, 2016 at 06:50:51PM +0800, Wei Hu (Xavier) wrote: On 2016/6/20 21:33, Leon Romanovsky wrote: On Thu, Jun 16, 2016 at 10:35:14PM +0800, Lijun Ou wrote: This patch added the operation for cmd, and added some functions for initializing

[PATCH v2] net: stmmac: dwmac-rk: add rk3228-specific data

2016-06-21 Thread Xing Zheng
Add constants and callback functions for the dwmac on rk3228/rk3229 socs. As can be seen, the base structure is the same, only registers and the bits in them moved slightly. Signed-off-by: Xing Zheng --- Changes in v2: - the "rk322x" is not clear to SoC decription, rename it to "rk3228" .../de

RE: [PATCH 0/3] *** Mesh Path Selection Metric Calculation ***

2016-06-21 Thread Machani, Yaniv
Yes, TI driver have added support in our latest release (TI git). http://software-dl.ti.com/ecs/WiLink8/R8_7/exports/release_notes_R8_7.html Patches will be shared with mainline in the near future. Thanks, Yaniv Machani -Original Message- From: Bob Copeland [mailto:m...@bobcopeland.com]

Re: [PATCH 0/3] *** Mesh Path Selection Metric Calculation ***

2016-06-21 Thread Bob Copeland
On Mon, Jun 20, 2016 at 04:00:19PM +0300, Maxim Altshul wrote: > 2. Implements the opcode and the mechanism that reports the rates > in TI driver. Does this mean TI driver will support mesh at some point? -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH net-next] net/mlx4_en: Add DCB PFC support through CEE netlink commands

2016-06-21 Thread Or Gerlitz
On Tue, Jun 21, 2016 at 2:12 PM, Tariq Toukan wrote: > From: Rana Shahout > > This patch adds support for reading and updating priority flow > control (PFC) attributes in the driver via netlink. The patch does multiple things, you need to break it to few patches, I guess 2-3 patches could be fin

Re: [PATCH] net: stmmac: dwmac-rk: add rk322x-specific data

2016-06-21 Thread Xing Zheng
Hi Heiko, On 2016年06月21日 17:43, Heiko Stübner wrote: devicetree names are normally expected to be real, aka no "x" as catchall. So I guess either just add compatibles for both the rk3228 and rk3229 which point to the same structure in the driver. (So driver-side can stay as it is below, just add

Re: [PATCH 2/2] ath6kl: replace semaphore with mutex

2016-06-21 Thread kbuild test robot
Hi, [auto build test ERROR on ath6kl/ath-next] [also build test ERROR on v4.7-rc4 next-20160621] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Chaehyun-Lim/ath10k-remove-unused-linux-semaphore

[PATCHv3] wlcore: spi: add wl18xx support

2016-06-21 Thread Reizer, Eyal
Add support for using with both wl12xx and wl18xx. - all wilink family needs special init command for entering wspi mode. extra clock cycles should be sent after the spi init command while the cs pin is high. - Use inverted chip select for sending a dummy 4 bytes command that completes the i

Re: [PATCH v10 08/22] IB/hns: Add icm support

2016-06-21 Thread Leon Romanovsky
On Tue, Jun 21, 2016 at 12:37:39PM +0800, Wei Hu (Xavier) wrote: > > > On 2016/6/20 21:04, Leon Romanovsky wrote: > >On Mon, Jun 20, 2016 at 05:48:15PM +0800, Wei Hu (Xavier) wrote: > >> > >>On 2016/6/20 17:27, Leon Romanovsky wrote: > >>>On Mon, Jun 20, 2016 at 03:49:24PM +0800, Wei Hu (Xavier)

[PATCH 1/2] ath10k: remove unused

2016-06-21 Thread Chaehyun Lim
is not used anymore, so just remove it. Signed-off-by: Chaehyun Lim --- drivers/net/wireless/ath/ath10k/htc.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/htc.h b/drivers/net/wireless/ath/ath10k/htc.h index cc82718..0c55cd9 100644 --- a/drivers/net/wireles

[PATCH 2/2] ath6kl: replace semaphore with mutex

2016-06-21 Thread Chaehyun Lim
It replaces struct semaphore sem with struct mutex mutex Signed-off-by: Chaehyun Lim --- drivers/net/wireless/ath/ath6kl/cfg80211.c | 30 +++--- drivers/net/wireless/ath/ath6kl/core.c | 2 +- drivers/net/wireless/ath/ath6kl/core.h | 2 +- drivers/net/wireless/at

Re: [PATCH 15/15] ARM: dts: am335x/am437x/dra7: use new "ti,cpsw-mdio" compat string

2016-06-21 Thread Tony Lindgren
* Grygorii Strashko [160615 05:05]: > Add "ti,cpsw-mdio" for am335x/am437x/dra7 SoCs where MDIO is > implemented as part of TI CPSW and, this way, enable PM runtime auto > suspend for Davinci MDIO driver on these paltforms. This one should not cause merge conflicts, please feel free to merge alon

Re: [PATCH] include: net: cfg802154: rename ieee802154_llsec_device.hwaddr to extended_addr

2016-06-21 Thread kbuild test robot
Hi, [auto build test ERROR on net-next/master] [also build test ERROR on v4.7-rc4 next-20160621] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Thomas-Rowland/include-net-cfg802154-rename

Re: [PATCH v10 06/22] IB/hns: Add initial cmd operation

2016-06-21 Thread Leon Romanovsky
On Tue, Jun 21, 2016 at 06:50:51PM +0800, Wei Hu (Xavier) wrote: > > > On 2016/6/20 21:33, Leon Romanovsky wrote: > >On Thu, Jun 16, 2016 at 10:35:14PM +0800, Lijun Ou wrote: > >>This patch added the operation for cmd, and added some functions > >>for initializing eq table and selecting cmd mode.

Re: [PATCH] include: net: cfg802154: rename ieee802154_llsec_device.hwaddr to extended_addr

2016-06-21 Thread kbuild test robot
Hi, [auto build test ERROR on net-next/master] [also build test ERROR on v4.7-rc4 next-20160621] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Thomas-Rowland/include-net-cfg802154-rename

[PATCH net 0/2] mlx4_en fixes for 4.7-rc

2016-06-21 Thread Tariq Toukan
Hi Dave, This small patchset includes two fixes for mlx4_en driver. One allows a clean shutdown even when clients do not release their netdev reference. The other adds error return values to the VLAN VID add/kill functions. Eran Ben Elisha (1): net/mlx4_en: Avoid unregister_netdev at shutdown

Re: [PATCH v4 00/19] CALIPSO Implementation

2016-06-21 Thread Huw Davies
On Tue, Jun 21, 2016 at 05:39:28AM -0400, David Miller wrote: > From: Huw Davies > Date: Mon, 20 Jun 2016 14:36:40 +0100 > > > This patch series implements RFC 5570 - Common Architecture Label IPv6 > > Security Option (CALIPSO). Its goal is to set MLS sensitivity labels > > on IPv6 packets using

[PATCH net 2/2] net/mlx4_en: Avoid unregister_netdev at shutdown flow

2016-06-21 Thread Tariq Toukan
From: Eran Ben Elisha This allows a clean shutdown, even if some netdev clients do not release their reference from this netdev. It is enough to release the HW resources only as the kernel is shutting down. Fixes: 2ba5fbd62b25 ('net/mlx4_core: Handle AER flow properly') Signed-off-by: Eran Ben E

[PATCH net 1/2] net/mlx4_en: Fix the return value of a failure in VLAN VID add/kill

2016-06-21 Thread Tariq Toukan
From: Kamal Heib Modify mlx4_en_vlan_rx_[add/kill]_vid to return error value in case of failure. Fixes: 8e586137e6b6 ('net: make vlan ndo_vlan_rx_[add/kill]_vid return error value') Signed-off-by: Kamal Heib Signed-off-by: Tariq Toukan --- drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 18

Re: [PATCH] ppc: Fix BPF JIT for ABIv2

2016-06-21 Thread Michael Ellerman
On Tue, 2016-06-21 at 14:28 +0530, Naveen N. Rao wrote: > On 2016/06/20 03:56PM, Thadeu Lima de Souza Cascardo wrote: > > On Sun, Jun 19, 2016 at 11:19:14PM +0530, Naveen N. Rao wrote: > > > On 2016/06/17 10:00AM, Thadeu Lima de Souza Cascardo wrote: > > > > > > > > Hi, Michael and Naveen. > > > >

Re: [6/6] ppc: ebpf/jit: Implement JIT compiler for extended BPF

2016-06-21 Thread Michael Ellerman
On Tue, 2016-06-21 at 12:28 +0530, Naveen N. Rao wrote: > On 2016/06/21 09:38AM, Michael Ellerman wrote: > > On Sun, 2016-06-19 at 23:06 +0530, Naveen N. Rao wrote: > > > > > > #include > > > > > > in bpf_jit_comp64.c > > > > > > Can you please check if it resolves the build error? > > > > Can

[PATCH net-next] net/mlx4_en: Add DCB PFC support through CEE netlink commands

2016-06-21 Thread Tariq Toukan
From: Rana Shahout This patch adds support for reading and updating priority flow control (PFC) attributes in the driver via netlink. Signed-off-by: Rana Shahout Signed-off-by: Eran Ben Elisha Signed-off-by: Eugenia Emantayev Signed-off-by: Tariq Toukan --- drivers/net/ethernet/mellanox/mlx

Re: 802.3ad bonding aggregator reselection

2016-06-21 Thread Veli-Matti Lintu
2016-06-20 17:11 GMT+03:00 zhuyj : > 5. Switch Configuration > === > > For this section, "switch" refers to whatever system the > bonded devices are directly connected to (i.e., where the other end of > the cable plugs into). This may be an actual dedicated switch devic

pull-request: wireless-drivers-next 2016-06-21

2016-06-21 Thread Kalle Valo
Hi Dave, I hope it's ok to send two pull requests the same day, both for net and net-next? This is targeted to 4.8 so it is for net-next. Even though is this the first pull request for 4.8 we actually remove more code than add, thanks to Guenter Roeck's on removing unused "phy_a" support from b43

Re: [net-next PATCH v3 00/17] Future-proof tunnel offload handlers

2016-06-21 Thread Edward Cree
On 21/06/16 09:22, David Miller wrote: > From: Tom Herbert Date: Mon, 20 Jun 2016 10:05:01 -0700 >> Generally, this means it needs to at least match by local addresses and port >> for an unconnected/unbound socket, the source address for an >> unconnected/bound socket, a the full 4-tuple for a c

Re: [PATCH v10 06/22] IB/hns: Add initial cmd operation

2016-06-21 Thread Wei Hu (Xavier)
On 2016/6/20 21:33, Leon Romanovsky wrote: On Thu, Jun 16, 2016 at 10:35:14PM +0800, Lijun Ou wrote: This patch added the operation for cmd, and added some functions for initializing eq table and selecting cmd mode. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou

Re: [PATCH] include: net: cfg802154: rename ieee802154_llsec_device.hwaddr to extended_addr

2016-06-21 Thread kbuild test robot
Hi, [auto build test ERROR on net-next/master] [also build test ERROR on v4.7-rc4 next-20160621] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Thomas-Rowland/include-net-cfg802154-rename

pull-request: wireless-drivers 2016-06-21

2016-06-21 Thread Kalle Valo
Hi Dave, here is a pull request for 4.7, really small fixes this time, some of them fix important regressions. Please let me know if there are any problems. Kalle The following changes since commit 182fd9eecb287e696c82b30d06c6150d80a49c5b: MAINTAINERS: Add file patterns for wireless device tr

Re: [PATCH net-next 01/19] net: hns: bug fix of ge reset sequence

2016-06-21 Thread Andy Shevchenko
On Tue, 2016-06-21 at 11:56 +0800, Yisen Zhuang wrote: > From: Qianqian Xie > > The bit fileds of PPE reset register are different between HNS v1 and > HNS v2, but the current procedure just only match HNS v1. Here is a > patch to fix it. > > Signed-off-by: Kejian Yan > Signed-off-by: Qianqian

Re: [PATCH net-next 10/19] net: hns: bugfix about pfc pause frame statistics

2016-06-21 Thread Andy Shevchenko
On Tue, 2016-06-21 at 11:56 +0800, Yisen Zhuang wrote: > From: Daode Huang > > For SoC hip06, PFC pause handled in dsaf, while hip05 in XGMAC, > so change the statistics of pfc pause in dsaf and remove the old > pfc pause frame statistics. > > +static char *hns_dsaf_get_node_stats_strings(char

[PATCH] include: net: cfg802154: rename ieee802154_llsec_device.hwaddr to extended_addr

2016-06-21 Thread Thomas Rowland
Renamed the ieee802154_llsec_device member 'hwaddr' to 'extended_addr' Signed-off-by: Thomas Rowland --- include/net/cfg802154.h | 2 +- net/ieee802154/nl802154.c | 15 +-- net/mac802154/llsec.c | 4 ++-- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/include

Re: [PATCH] ppc: Fix BPF JIT for ABIv2

2016-06-21 Thread Naveen N. Rao
On 2016/06/20 03:56PM, Thadeu Lima de Souza Cascardo wrote: > On Sun, Jun 19, 2016 at 11:19:14PM +0530, Naveen N. Rao wrote: > > On 2016/06/17 10:00AM, Thadeu Lima de Souza Cascardo wrote: > > > > > > Hi, Michael and Naveen. > > > > > > I noticed independently that there is a problem with BPF JIT

Re: [PATCH] rxrpc: fix uninitialized variable use

2016-06-21 Thread David Howells
Arnd Bergmann wrote: > > I'm actually more tempted to put a BUG() in there because if any new family > > support (say AF_INET6) is added, I want to make sure I catch all the places. > > Makes sense. Do you want to do the patch yourself, or should I send > a new one doing that? > > Maybe WARN()

[PATCH] net: ethernet: fix odd_ptr_err.cocci warnings

2016-06-21 Thread Julia Lawall
-altera-com/net-ethernet-Add-T SE-PCS-support-to-dwmac-socfpga/20160621-164854 dwmac-socfpga.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c @@ -224,7 +224,7 @@ static int

Re: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-06-21 Thread Netanel Belgazal
On 06/21/2016 01:43 AM, Francois Romieu wrote: > Netanel Belgazal : > [...] >>> diff --git a/drivers/net/ethernet/amazon/ena/ena_com.h >>> b/drivers/net/ethernet/amazon/ena/ena_com.h >>> new file mode 100644 >>> index 000..e49ba43 >>> --- /dev/null >>> [...] >>> +static inline void ena_com_

Re: [PATCH] net: stmmac: dwmac-rk: add rk322x-specific data

2016-06-21 Thread Heiko Stübner
Am Dienstag, 21. Juni 2016, 15:13:55 schrieb Xing Zheng: > Add constants and callback functions for the dwmac on rk322x socs. > As can be seen, the base structure is the same, only registers and > the bits in them moved slightly. > > Signed-off-by: Xing Zheng > --- > > .../devicetree/bindings/n

Re: [PATCH v4 00/19] CALIPSO Implementation

2016-06-21 Thread David Miller
From: Huw Davies Date: Mon, 20 Jun 2016 14:36:40 +0100 > This patch series implements RFC 5570 - Common Architecture Label IPv6 > Security Option (CALIPSO). Its goal is to set MLS sensitivity labels > on IPv6 packets using a hop-by-hop option. CALIPSO is very similar to > its IPv4 cousin CIPSO

Re: [RESEND PATCH 1/3] rfkill: Create "rfkill-airplane-mode" LED trigger

2016-06-21 Thread Johannes Berg
On Mon, 2016-06-13 at 23:21 +0200, Pavel Machek wrote: >  > (Actually, "::wifi" is super confusing, I'd expect that to be a led > that blinks when wifi is active.) Agree with that, yeah, that'd be confusing. > Well... "airplane" is quite confusing. I'd we use "rfkill" for > disabling radios, and

Re: [PATCH V4 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga

2016-06-21 Thread Arnd Bergmann
On Tuesday, June 21, 2016 1:46:11 AM CEST th...@altera.com wrote: > diff --git a/Documentation/devicetree/bindings/net/socfpga-dwmac.txt > b/Documentation/devicetree/bindings/net/socfpga-dwmac.txt > index 72d82d6..dd10f2f 100644 > --- a/Documentation/devicetree/bindings/net/socfpga-dwmac.txt > +++

Re: [PATCH] rxrpc: fix uninitialized variable use

2016-06-21 Thread Arnd Bergmann
On Tuesday, June 21, 2016 9:48:52 AM CEST David Howells wrote: > Arnd Bergmann wrote: > > > Hashing the peer key was introduced for AF_INET, but gcc > > warns about the rxrpc_peer_hash_key function returning uninitialized > > data for any other value of srx->transport.family: > > > > net/rxrpc/p

Re: [PATCH 3/3] mac80211: mesh: Add support for HW RC implementation

2016-06-21 Thread Johannes Berg
> - if (sta->mesh->fail_avg >= 100) > - return MAX_METRIC; > + /* try to get rate based on HW RC algorithm */ > + rate = drv_get_expected_throughput(local, &sta->sta); This doesn't look correct, since you should use the rate control op if available, to get data from rate co

Re: [patch net-next 00/23] mlxsw: Preparation for IPv4 router

2016-06-21 Thread David Miller
From: Jiri Pirko Date: Mon, 20 Jun 2016 23:03:58 +0200 > From: Jiri Pirko > > Ido says: > > This series prepares the driver for IPv4 router support. The router follow-up > patches are available at: > https://github.com/jpirko/linux_mlxsw/tree/net-next_queue ... Looks good, series applied, t

Re: [PATCH] rxrpc: fix uninitialized variable use

2016-06-21 Thread David Howells
Arnd Bergmann wrote: > Hashing the peer key was introduced for AF_INET, but gcc > warns about the rxrpc_peer_hash_key function returning uninitialized > data for any other value of srx->transport.family: > > net/rxrpc/peer_object.c: In function 'rxrpc_peer_hash_key': > net/rxrpc/peer_object.c:57

Re: [patch net-next] rxrpc: checking for IS_ERR() instead of NULL

2016-06-21 Thread David Howells
Dan Carpenter wrote: > rxrpc_lookup_peer_rcu() returns NULL on error, it never returns error > pointers. > > Fixes: be6e6707f6ee ('rxrpc: Rework peer object handling to use hash table > and RCU') > Signed-off-by: Dan Carpenter Applied.

Re: linux-next: manual merge of the net-next tree with the arm-soc tree

2016-06-21 Thread Arnd Bergmann
On Tuesday, June 21, 2016 11:18:39 AM CEST Stephen Rothwell wrote: > Today's linux-next merge of the net-next tree got conflicts in: > > arch/arm64/boot/dts/broadcom/ns2-svk.dts > arch/arm64/boot/dts/broadcom/ns2.dtsi > > between commits: > > 97b1504a30b3 ("arm64: dts: enable pinctrl for B

Re: [PATCH net-next 00/19] net: hns: fix some bugs in hns driver

2016-06-21 Thread David Miller
From: Yisen Zhuang Date: Tue, 21 Jun 2016 11:56:20 +0800 > This series includes some bugs fixed. All these patches needs to be > applied after the patchset about ACPI support, so this series is > floated to net-next list. Series applied, thanks.

[PATCH V4 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga

2016-06-21 Thread thloh
From: Tien Hock Loh This adds support for TSE PCS that uses SGMII adapter when the phy-mode of the dwmac is set to sgmii Signed-off-by: Tien Hock Loh --- v2: - Refactored the TSE PCS out from the dwmac-socfpga.c file - Added binding documentation for TSE PCS sgmii adapter v3: - Added missing l

Re: [net-next PATCH v3 00/17] Future-proof tunnel offload handlers

2016-06-21 Thread David Miller
From: Hannes Frederic Sowa Date: Mon, 20 Jun 2016 11:11:32 -0700 > I am not sure if this is necessary. The devices actually having the > ndo-ops, used to configure offloading, should only be visible inside one > namespace. If those ndo-ops actually have side effects on other > namespaces, they vi

[PATCH] geneve: fix tx_errors statistics

2016-06-21 Thread Haishuang Yan
Tx errors present summation of errors encountered while transmitting packets. Signed-off-by: Haishuang Yan --- drivers/net/geneve.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index aa61708..72b2f1c 100644 --- a/drivers/

Re: [PATCH net-next 0/8] tou: Transports over UDP - part I

2016-06-21 Thread David Miller
From: Tom Herbert Date: Mon, 20 Jun 2016 08:13:48 -0700 > Routing around the problem is already being done. QUIC, a new protocol used for specific purposes and implemented in userspace from the start is significantly different from making the kernel's _TCP_ implementation bypassed into a userspa

Re: [net-next PATCH v3 00/17] Future-proof tunnel offload handlers

2016-06-21 Thread David Miller
From: Tom Herbert Date: Mon, 20 Jun 2016 10:05:01 -0700 > Generally, this means it needs to at least match by local addresses > and port for an unconnected/unbound socket, the source address for > an unconnected/bound socket, a the full 4-tuple for a connected > socket. These lookup keys are all

Re: [PATCH v5 net-next v5 00/14] net: dsa: mv88e6xxx: probe compatible

2016-06-21 Thread David Miller
From: Vivien Didelot Date: Mon, 20 Jun 2016 13:13:57 -0400 > This patchset factorizes the legacy and new SMI probing and abstracts > the switch register accesses. This simplifies adding support for new > chips or alternative register accesses. > > This will allow us to use a compatible chip info

[PATCH] net: stmmac: dwmac-rk: add rk322x-specific data

2016-06-21 Thread Xing Zheng
Add constants and callback functions for the dwmac on rk322x socs. As can be seen, the base structure is the same, only registers and the bits in them moved slightly. Signed-off-by: Xing Zheng --- .../devicetree/bindings/net/rockchip-dwmac.txt |3 +- drivers/net/ethernet/stmicro/stmmac/

Re: Micrel Phy KSZ8031 clock select setting in dts

2016-06-21 Thread Sascha Hauer
On Mon, Jun 20, 2016 at 07:14:06PM +0200, Oliver Graute wrote: > On 20/06/16, Andrew Lunn wrote: > > > &fec1 { > > > pinctrl-names = "default"; > > > pinctrl-0 = <&pinctrl_enet1>; > > > phy-mode = "rmii"; > > > micrel,rmii-reference-clock-select-25-mhz; > > > clocks,rmii-ref; > > > > You

Re: [6/6] ppc: ebpf/jit: Implement JIT compiler for extended BPF

2016-06-21 Thread Naveen N. Rao
On 2016/06/21 09:38AM, Michael Ellerman wrote: > On Sun, 2016-06-19 at 23:06 +0530, Naveen N. Rao wrote: > > On 2016/06/17 10:53PM, Michael Ellerman wrote: > > > On Tue, 2016-07-06 at 13:32:23 UTC, "Naveen N. Rao" wrote: > > > > diff --git a/arch/powerpc/net/bpf_jit_comp64.c > > > > b/arch/powerpc

<    1   2