Re: iproute2 mpls max labels

2016-07-21 Thread Roopa Prabhu
On 7/16/16, 11:24 AM, Magnus Bergroth wrote: > Wanted to use more than the default maximum of 8 mpls labels. Max labels > seems to be hardcode to 8 in two places. > > --- iproute2-4.6.0/lib/utils.c2016-05-18 20:56:02.0 +0200 > +++ iproute2-4.6.0-bergroth/lib/utils.c2016-07-16

[PATCH net-next] net/ncsi: avoid maybe-uninitialized warning

2016-07-21 Thread Arnd Bergmann
gcc-4.9 and higher warn about the newly added NSCI code: net/ncsi/ncsi-manage.c: In function 'ncsi_process_next_channel': net/ncsi/ncsi-manage.c:1003:2: error: 'old_state' may be used uninitialized in this function [-Werror=maybe-uninitialized] The warning is a false positive and therefore

Re: iproute2 mpls max labels

2016-07-21 Thread Magnus Bergroth
> Roopa Prabhu > 21 juli 2016 20:53 > I did not realize it is hardcoded to 8 in iproute2. Because kernel has > a hard coded limit of > 2. > I think we need to fix it in a few places: > a) we should move the kernel #define to a uapi header file which > iproute2

Re: iproute2 mpls max labels

2016-07-21 Thread Eric W. Biederman
Roopa Prabhu writes: > On 7/16/16, 11:24 AM, Magnus Bergroth wrote: >> Wanted to use more than the default maximum of 8 mpls labels. Max labels >> seems to be hardcode to 8 in two places. >> >> --- iproute2-4.6.0/lib/utils.c2016-05-18 20:56:02.0 +0200 >>

Re: [PATCH net V2] net/mlx5e: Fix del vxlan port command buffer memset

2016-07-21 Thread Alexei Starovoitov
On Thu, Jul 21, 2016 at 11:08:06AM +0300, Saeed Mahameed wrote: > On Thu, Jul 21, 2016 at 3:53 AM, Alexei Starovoitov > wrote: > > On Thu, Jul 21, 2016 at 12:39:53AM +0300, Saeed Mahameed wrote: > >> memset the command buffers rather than the pointers to them. > > >

[PATCH 2/3] stmmac: change dma descriptors to __le32

2016-07-21 Thread Michael Weiser
The stmmac driver does not take into account the processor may be big endian when writing the DMA descriptors. This causes the ethernet interface not to be initialised correctly when running a big-endian kernel. Change the descriptors for DMA to use __le32 and ensure they are suitably swapped

Re: [Patch net-next 1/2] net_sched: move tc_action into tcf_common

2016-07-21 Thread kbuild test robot
Hi, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Cong-Wang/net_sched-refactor-tc-action-structures/20160722-010949 config: sh-titan_defconfig (attached as .config) compiler: sh4-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609 reproduce:

[PATCH] net: neigh: disallow state transition DELAY->STALE in neigh_update()

2016-07-21 Thread Chunhui He
If neigh entry was CONNECTED and address is not changed, and if new state is STALE, entry state will not change. Because DELAY is not in CONNECTED, it's possible to change state from DELAY to STALE. That is bad. Consider a host in IPv4 nerwork, a neigh entry in STALE state is referenced to send

Re: [PATCH] net: ipv6: Always leave subnet anycast group on link down

2016-07-21 Thread David Ahern
On 7/21/16 7:44 AM, Mike Manning wrote: Default kernel behavior is to delete IPv6 addresses on link down, which entails deletion of the address-derived subnet-router anycast address. The latter does not happen with sysctl setting to keep global IPv6 addrs on link down, so every link down/up

Re: [PATCH] net: bridge: br_set_ageing_time takes a clock_t

2016-07-21 Thread Vivien Didelot
Hi Cong, Cong Wang writes: > On Thu, Jul 21, 2016 at 9:42 AM, Vivien Didelot > wrote: >> Change the ageing_time type in br_set_ageing_time() from u32 to what it >> is expected to be, i.e. a clock_t. > > You also need to change

RE: [PATCH V2] Add flow control to the portmapper

2016-07-21 Thread Steve Wise
> > On Wed, Jul 20, 2016 at 09:47:50PM -0500, Shiraz Saleem wrote: > > On Tue, Jul 19, 2016 at 08:32:53PM +0300, Leon Romanovsky wrote: > > > On Tue, Jul 19, 2016 at 09:50:24AM -0500, Shiraz Saleem wrote: > > > > On Tue, Jul 19, 2016 at 08:40:06AM +0300, Leon Romanovsky wrote: > > > > > > > > > >

~~

2016-07-21 Thread Keller, Jacob E
On Thu, 2016-07-21 at 13:51 +0300, Sergei Shtylyov wrote: > Hello. > > On 7/21/2016 1:23 AM, Jeff Kirsher wrote: > > > From: Jacob Keller > > > > Sometimes, a VF driver will lose PCIe address access, such as due > > to > > a PF FLR event. In fm10k_detach_subtask, poll

Re: [PATCH] net: bridge: br_set_ageing_time takes a clock_t

2016-07-21 Thread Cong Wang
On Thu, Jul 21, 2016 at 11:18 AM, Vivien Didelot wrote: > Hi Cong, > > Cong Wang writes: > >> On Thu, Jul 21, 2016 at 9:42 AM, Vivien Didelot >> wrote: >>> Change the ageing_time type in

The global market so much, You'll only other foreign customers to your door, do not open up new ways to do?

2016-07-21 Thread echo18
我们是继平台展会之后第三种主流的外贸客户开发模式, 可以让您快速的掌握到全球范围内的不同类型的目标客户,主动把产品推广到客户的手中,增加更多的询盘机会, 请加+QQ // 3246075707 联系 在线演示主动开发全球客户,欢迎验证是否真实有效 也可加微信号:sunsesoftsam 如有不需要此信息,请回复“不需要”,我们将会将您的邮箱进行屏蔽,不再给您发信的。 祝:生意兴隆!

Re: [net-next PATCH 1/3] net: phy: dp83867: Add documentation for optional impedance control

2016-07-21 Thread Rob Herring
On Thu, Jul 21, 2016 at 11:52:36AM +0530, Sekhar Nori wrote: > Nishanth, > > On Wednesday 20 July 2016 09:03 PM, Nishanth Menon wrote: > > On 07/20/2016 09:56 AM, Mugunthan V N wrote: > >> Add documention of ti,impedance-control which can be used to > >> correct MAC impedance mismatch using phy

Re: [PATCH v6 11/12] Documentation: dtb: xgene: Add MDIO node

2016-07-21 Thread Rob Herring
On Wed, Jul 20, 2016 at 11:59:29PM -0700, Iyappan Subramanian wrote: > Signed-off-by: Iyappan Subramanian > Tested-by: Fushen Chen > Tested-by: Toan Le > --- > .../devicetree/bindings/net/apm-xgene-mdio.txt | 37 > ++

[PATCH net-next] bpf, events: fix offset in skb copy handler

2016-07-21 Thread Daniel Borkmann
This patch fixes the __output_custom() routine we currently use with bpf_skb_copy(). I missed that when len is larger than the size of the current handle, we can issue multiple invocations of copy_func, and __output_custom() advances destination but also source buffer by the written amount of

Re: iproute2 mpls max labels

2016-07-21 Thread Magnus Bergroth
> Eric W. Biederman > 21 juli 2016 22:00 > Roopa Prabhu writes: > >> On 7/16/16, 11:24 AM, Magnus Bergroth wrote: >>> Wanted to use more than the default maximum of 8 mpls labels. Max labels >>> seems to be hardcode to 8 in two places.

Re: [Patch net-next 1/2] net_sched: move tc_action into tcf_common

2016-07-21 Thread Cong Wang
On Thu, Jul 21, 2016 at 11:35 AM, kbuild test robot wrote: > All warnings (new ones prefixed by >>): > >In file included from include/net/act_api.h:8:0, > from net/sched/act_police.c:22: >net/sched/act_police.c: In function 'tcf_act_police_init': >>>

Re: Network hang after c3f1010b30f7fc611139cfb702a8685741aa6827 with CIPSO & Smack

2016-07-21 Thread Casey Schaufler
On 7/20/2016 1:13 PM, Paul Moore wrote: > On Tue, Jul 19, 2016 at 7:37 PM, Casey Schaufler > wrote: >> Digging into this further I have determined that the >> circumstances leading to this issue are somewhat complex. >> The good news is that there seems to be a very

Re: [PATCH v6 06/12] drivers: net: xgene: Add backward compatibility

2016-07-21 Thread kbuild test robot
Hi, [auto build test WARNING on net-next/master] [also build test WARNING on next-20160721] [cannot apply to v4.7-rc7] [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/Iyappan-Subramanian/drivers

Re: [PATCH v6 11/12] Documentation: dtb: xgene: Add MDIO node

2016-07-21 Thread Iyappan Subramanian
Hi Rob, On Thu, Jul 21, 2016 at 3:01 PM, Rob Herring wrote: > On Wed, Jul 20, 2016 at 11:59:29PM -0700, Iyappan Subramanian wrote: >> Signed-off-by: Iyappan Subramanian >> Tested-by: Fushen Chen >> Tested-by: Toan Le >> ---

Re: [PATCH net-next v2] net/faraday: Disallow using reversed MAC address from hardware

2016-07-21 Thread Gavin Shan
On Thu, Jul 21, 2016 at 04:01:09PM +0200, Andrew Lunn wrote: >On Thu, Jul 21, 2016 at 11:42:54AM +1000, Gavin Shan wrote: >> The initial MAC address is retrieved from hardware if it's not >> provided by device-tree. The reserved MAC address from hardware >> will be used if non-reserved MAC address

Re: [PATCH v4 1/2] bpf: Add bpf_probe_write BPF helper to be called in tracers (kprobes)

2016-07-21 Thread Alexei Starovoitov
On Thu, Jul 21, 2016 at 06:09:17PM -0700, Sargun Dhillon wrote: > This allows user memory to be written to during the course of a kprobe. > It shouldn't be used to implement any kind of security mechanism > because of TOC-TOU attacks, but rather to debug, divert, and > manipulate execution of

Re: [PATCH 2/3] staging/rtl8192e: use s8 instead of char

2016-07-21 Thread Stefan Lippers-Hollmann
Hi On 2016-07-20, Arnd Bergmann wrote: > On Wednesday, July 20, 2016 11:33:43 AM CEST Jes Sorensen wrote: > > Arnd Bergmann writes: > > > On Wednesday, July 20, 2016 7:25:19 AM CEST Jes Sorensen wrote: > > >> Arnd Bergmann writes: [...] > Yes, I was just

Re: [PATCH net-next] net/ncsi: avoid maybe-uninitialized warning

2016-07-21 Thread Gavin Shan
On Thu, Jul 21, 2016 at 09:28:34PM +0200, Arnd Bergmann wrote: >gcc-4.9 and higher warn about the newly added NSCI code: > >net/ncsi/ncsi-manage.c: In function 'ncsi_process_next_channel': >net/ncsi/ncsi-manage.c:1003:2: error: 'old_state' may be used uninitialized in >this function

[PATCH v4 2/2] samples/bpf: Add example of using bpf_probe_write in bpf kprobes

2016-07-21 Thread Sargun Dhillon
This example shows using a kprobe to act as a dnat mechanism to divert traffic for arbitrary endpoints. It rewrite the arguments to a syscall while they're still in userspace, and before the syscall has a chance to copy the argument into kernel space. Signed-off-by: Sargun Dhillon

[PATCH v4 0/2] bpf: add bpf_probe_write helper & example

2016-07-21 Thread Sargun Dhillon
This patch series contains two patches that add support for a probe_write helper to BPF programs. This allows them to manipulate user memory during the course of tracing. The second patch in the series has an example that uses it, in one the intended ways to divert execution. Thanks to Alexei

[PATCH 1/1] lvs: Use IS_ERR_OR_NULL(svc) instead of IS_ERR(svc) || svc == NULL

2016-07-21 Thread fgao
From: Gao Feng This minor refactoring does not change the logic of function ip_vs_genl_dump_dests. Signed-off-by: Gao Feng --- v1: Initial patch net/netfilter/ipvs/ip_vs_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v4 1/2] bpf: Add bpf_probe_write BPF helper to be called in tracers (kprobes)

2016-07-21 Thread Sargun Dhillon
This allows user memory to be written to during the course of a kprobe. It shouldn't be used to implement any kind of security mechanism because of TOC-TOU attacks, but rather to debug, divert, and manipulate execution of semi-cooperative processes. Although it uses probe_kernel_write, we limit

Re: PROBLEM: MTU of ipsec tunnel drops continuously until traffic stops

2016-07-21 Thread Matt Bennett
On 07/21/2016 09:13 PM, Steffen Klassert wrote: > Hi Matt, > > I've did some vti tests the last days, but I was unable to > reproduce it. > > On Tue, Jul 19, 2016 at 05:49:06AM +, Matt Bennett wrote: >> On 07/05/2016 03:55 PM, Matt Bennett wrote: >>> On 07/04/2016 11:12 PM, Steffen Klassert

[PATCH 1/1] netfilter: h323: Use mod_timer instead of set_expect_timeout

2016-07-21 Thread fgao
From: Gao Feng It could simplify the codes without any side effect. The set_expect_timeout is used to modify the timer expired time. It tries to delete timer, and add it again. So we could use mod_timer directly. Signed-off-by: Gao Feng --- v1: Intial Patch

Re: [PATCH 1/1] lvs: Use IS_ERR_OR_NULL(svc) instead of IS_ERR(svc) || svc == NULL

2016-07-21 Thread Julian Anastasov
Hello, On Fri, 22 Jul 2016, f...@ikuai8.com.aqb.so wrote: > From: Gao Feng > > This minor refactoring does not change the logic of function > ip_vs_genl_dump_dests. > > Signed-off-by: Gao Feng Looks good to me, Acked-by: Julian Anastasov

Re: [PATCH net] packet: propagate sock_cmsg_send() error

2016-07-21 Thread David Miller
From: Soheil Hassas Yeganeh Date: Wed, 20 Jul 2016 18:01:18 -0400 > From: Soheil Hassas Yeganeh > > sock_cmsg_send() can return different error codes and not only > -EINVAL, and we should properly propagate them. > > Fixes: c14ac9451c34 ("sock: enable

Re: [PATCH net-next 0/2] macsec: enable s/w offloads

2016-07-21 Thread David Miller
From: Paolo Abeni Date: Wed, 20 Jul 2016 18:11:30 +0200 > This patches leverage gro_cells infrastructure to enable both GRO and RPS > on macsec devices. > > Paolo Abeni (2): > gro_cells: gro_cells_receive now return error code > macsec: enable GRO and RPS on macsec

Re: [PATCH v3 3/3] mac80211: mesh: fixed HT ies in beacon template

2016-07-21 Thread Masashi Honma
On 2016年07月14日 05:07, Yaniv Machani wrote: + + /* if channel width is 20MHz - configure HT capab accordingly*/ + if (sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20) { + cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; + cap &=

[PATCH 1/1] netfilter: Use IS_ERR_OR_NULL instead of IS_ERR and NULl check to simplify the codes in ip_vs_genl_dump_dests and resolve_normal_ct

2016-07-21 Thread fgao
From: Gao Feng Signed-off-by: Gao Feng --- v1: Initial Version net/netfilter/ipvs/ip_vs_ctl.c| 2 +- net/netfilter/nf_conntrack_core.c | 6 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c

Re: [PATCH net V2] net/bonding: Enforce active-backup policy for IPoIB bonds

2016-07-21 Thread Andy Gospodarek
On Thu, Jul 21, 2016 at 11:52:55AM +0300, Saeed Mahameed wrote: > From: Mark Bloch > > When using an IPoIB bond currently only active-backup mode is a valid > use case and this commit strengthens it. > > Since commit 2ab82852a270 ("net/bonding: Enable bonding to enslave >

RE: IPv6 IPSec incompatibilities between 2.6.23 and 3.6.18/4.6.4

2016-07-21 Thread Ilan Tayari
> Node 1: fd01:1b10:1000::1 is running 4.6.4 > 14:21:50.737092 IP6 fd01:1b10:1000::3 > ff0e::1: > ESP(spi=0x0001,seq=0x100), length 136 > 14:21:51.737155 IP6 fd01:1b10:1000::3 > ff0e::1: > ESP(spi=0x0001,seq=0x101), length 136 ... > ip -s xfrm state > src fd01:1b10:1000::1 dst ff0e::1 >

Re: WAS ( Re: [PATCH net-next 1/1] net_sched: Introduce skbmod action

2016-07-21 Thread Daniel Borkmann
On 07/21/2016 09:27 AM, Jamal Hadi Salim wrote: [...] Forgot about csum which would work with pedit - didnt quiet parse what you are saying above though: does changing MAC address require changing to CHECKSUM_NONE? If yes, then seems like i need to send a patch for act_ife as well to make in the

Re: [PATCH net-next] net: dsa: add CONFIG_NET_DSA_LEGACY

2016-07-21 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: >> net/dsa/dsa.c| 985 >> net/dsa/legacy.c | 1013 >> ++ > > I'm surprised git did not notice this is a rename. I used -M though, even

Re: [PATCH net V2] net/bonding: Enforce active-backup policy for IPoIB bonds

2016-07-21 Thread Jay Vosburgh
Saeed Mahameed wrote: >From: Mark Bloch > >When using an IPoIB bond currently only active-backup mode is a valid >use case and this commit strengthens it. > >Since commit 2ab82852a270 ("net/bonding: Enable bonding to enslave >netdevices not supporting

[PATCH] cxgb4/cxgb4vf: Add link mode mask API to cxgb4 and cxgb4vf

2016-07-21 Thread Ganesh Goudar
Based on original work by Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 375 ++---

Re: [PATCH net-next] net: dsa: add CONFIG_NET_DSA_LEGACY

2016-07-21 Thread Vivien Didelot
Florian Fainelli writes: > Le 20/07/2016 à 17:35, Andrew Lunn a écrit : >> On Wed, Jul 20, 2016 at 06:26:41PM -0400, Vivien Didelot wrote: >>> This patch simply moves the legacy DSA code from dsa.c to legacy.c, >>> except the few shared symbols which remain in dsa.c. >> >>

Re: [PATCH net-next] net: dsa: add CONFIG_NET_DSA_LEGACY

2016-07-21 Thread Andrew Lunn
On Thu, Jul 21, 2016 at 10:46:56AM -0400, Vivien Didelot wrote: > Florian Fainelli writes: > > > Le 20/07/2016 à 17:35, Andrew Lunn a écrit : > >> On Wed, Jul 20, 2016 at 06:26:41PM -0400, Vivien Didelot wrote: > >>> This patch simply moves the legacy DSA code from dsa.c to

Re: [GIT] [4.8] NFC update

2016-07-21 Thread David Miller
From: Samuel Ortiz Date: Thu, 21 Jul 2016 00:37:48 +0200 > This is the first NFC pull request for 4.8. We have: Pulled, thanks.

Re: [net-next PATCH 1/3] net: phy: dp83867: Add documentation for optional impedance control

2016-07-21 Thread Sekhar Nori
Nishanth, On Wednesday 20 July 2016 09:03 PM, Nishanth Menon wrote: > On 07/20/2016 09:56 AM, Mugunthan V N wrote: >> Add documention of ti,impedance-control which can be used to >> correct MAC impedance mismatch using phy extended registers. >> >> Signed-off-by: Mugunthan V N

[PATCH v6 02/12] drivers: net: xgene: Fix module unload crash - hw resource cleanup

2016-07-21 Thread Iyappan Subramanian
When the driver is configured as kernel module and when it gets unloaded and reloaded, kernel crash was observed. This patch address the hardware resource cleanups by doing the following, - Added mac_ops->clear() to do prefetch buffer clean up - Fixed delete freepool buffers logic - Reordered

[PATCH v6 09/12] drivers: net: xgene: ethtool: Use phy_ethtool_gset and sset

2016-07-21 Thread Iyappan Subramanian
Changed SGMII 1G get_settings to use phy_ethtool_gset. Changed SGMII 1G set_settings to use phy_ethtool_sset. Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen Tested-by: Toan Le --- .../net/ethernet/apm/xgene/xgene_enet_ethtool.c

[PATCH v6 00/12] drivers: net: xgene: Fix module crash and 1G hot-plug

2016-07-21 Thread Iyappan Subramanian
This patchset addresses the following issues, 1. Fixes the kernel crash when the driver loaded as an kernel module - by fixing hardware cleanups and rearrange kernel API calls 2. Hot-plug issue on the SGMII 1G interface - by adding a driver for MDIO management Signed-off-by:

[PATCH v6 12/12] MAINTAINERS: xgene: Add driver and documentation path

2016-07-21 Thread Iyappan Subramanian
Added path to the MDIO driver and Documentation file. Signed-off-by: Iyappan Subramanian --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 06e8411..22a428a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -839,7 +839,9 @@ M:

[PATCH v6 01/12] drivers: net: xgene: Separate set_speed from mac_init

2016-07-21 Thread Iyappan Subramanian
Since mac_init is too heavy to be called when the link changes, moved the speed_set configuration to a new function and added mac_ops->set_speed function pointer. This function will be called from adjust_link callback. Added cases for 10/100 support for SGMII based 1G interface. Signed-off-by:

WAS ( Re: [PATCH net-next 1/1] net_sched: Introduce skbmod action

2016-07-21 Thread Jamal Hadi Salim
On 16-07-19 08:23 PM, Daniel Borkmann wrote: On 07/19/2016 08:04 PM, Cong Wang wrote: On Tue, Jul 19, 2016 at 8:03 AM, Daniel Borkmann wrote: On 07/19/2016 03:56 PM, Jamal Hadi Salim wrote: [...] [..] I don't think so. 1) checksum is supposed to be done by csum action

Re: [PATCH v2 3/5] ARM: sun8i: dt: Add DT bindings documentation for Allwinner sun8i-emac

2016-07-21 Thread Maxime Ripard
Hi, On Wed, Jul 20, 2016 at 10:03:18AM +0200, LABBE Corentin wrote: > This patch adds documentation for Device-Tree bindings for the > Allwinner sun8i-emac driver. > > Signed-off-by: LABBE Corentin > --- > .../bindings/net/allwinner,sun8i-emac.txt | 65 >

Re: [patch net-next 0/9] mlxsw: implement port mirroring offload

2016-07-21 Thread Jamal Hadi Salim
On 16-07-21 04:19 AM, Jiri Pirko wrote: From: Jiri Pirko This patchset introduces tc matchall classifier and its offload to Spectrum hardware. In combination with mirred action, defined port mirroring setup is offloaded by mlxsw/spectrum driver. The commands used for

Re: [patch net-next 0/9] mlxsw: implement port mirroring offload

2016-07-21 Thread Jiri Pirko
Thu, Jul 21, 2016 at 11:00:33AM CEST, j...@mojatatu.com wrote: >On 16-07-21 04:19 AM, Jiri Pirko wrote: >>From: Jiri Pirko >> >>This patchset introduces tc matchall classifier and its offload >>to Spectrum hardware. In combination with mirred action, defined port >>mirroring

Re: [PATCH 1/1] netfilter: udp: Only get 8 bytes header in udp_pkt_to_tuple to keep consistent with tcp_pkt_to_tuple and comments

2016-07-21 Thread Florian Westphal
f...@ikuai8.com wrote: > From: Gao Feng > > Signed-off-by: Gao Feng > --- > net/netfilter/nf_conntrack_proto_udp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/netfilter/nf_conntrack_proto_udp.c >

[PATCH net-next v4] cdc_ether: Improve ZTE MF823/831/910 handling

2016-07-21 Thread Kristian Evensen
The firmware in several ZTE devices (at least the MF823/831/910 modems/mifis) use OS fingerprinting to determine which type of device to export. In addition, these devices export a REST API which can be used to control the type of device. So far, on Linux, the devices have been seen as RNDIS or

Re: [PATCH net V2] net/mlx5e: Fix del vxlan port command buffer memset

2016-07-21 Thread Saeed Mahameed
On Thu, Jul 21, 2016 at 3:53 AM, Alexei Starovoitov wrote: > On Thu, Jul 21, 2016 at 12:39:53AM +0300, Saeed Mahameed wrote: >> memset the command buffers rather than the pointers to them. > > that is still wrong commit log. > This patch makes zero difference to

[PATCH v6 06/12] drivers: net: xgene: Add backward compatibility

2016-07-21 Thread Iyappan Subramanian
This patch adds xgene_enet_check_phy_hanlde() function that checks whether MDIO driver is probed successfully and sets pdata->mdio_driver to true. If MDIO driver is not probed, ethernet driver falls back to backward compatibility mode. Since enum xgene_enet_cmd is used by MDIO driver, removing

[PATCH v6 05/12] drivers: net: phy: xgene: Add MDIO driver

2016-07-21 Thread Iyappan Subramanian
Currently, SGMII based 1G rely on the hardware registers for link state and sometimes it's not reliable. To get most accurate link state, this interface has to use the MDIO bus to poll the PHY. In X-Gene SoC, MDIO bus is shared across RGMII and SGMII based 1G interfaces, so adding this driver to

[patch net-next 1/9] mlxsw: pci: Add resources query implementation.

2016-07-21 Thread Jiri Pirko
From: Nogah Frankel Add resources query implementation. If exists, query the HW for its builtin resources instead of having them as consts in the code. Signed-off-by: Nogah Frankel Signed-off-by: Jiri Pirko ---

[patch net-next 3/9] net/sched: introduce Match-all classifier

2016-07-21 Thread Jiri Pirko
From: Jiri Pirko The matchall classifier matches every packet and allows the user to apply actions on it. This filter is very useful in usecases where every packet should be matched, for example, packet mirroring (SPAN) can be setup very easily using that filter.

[patch net-next 2/9] mlxsw: pci: Add max span resources to resources query

2016-07-21 Thread Jiri Pirko
From: Nogah Frankel Add max span resources to resources query. Signed-off-by: Nogah Frankel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/core.h | 2 ++ drivers/net/ethernet/mellanox/mlxsw/pci.c | 5 + 2

[patch net-next 9/9] mlxsw: spectrum: Add support in matchall mirror TC offloading

2016-07-21 Thread Jiri Pirko
From: Yotam Gigi This patch offloads port mirroring directives to hw using the matchall TC with action mirror. It includes both the implementation of the ndo_setup_tc function for the spectrum driver and the spectrum hardware offload configuration code. The hardware offload

[patch net-next 0/9] mlxsw: implement port mirroring offload

2016-07-21 Thread Jiri Pirko
From: Jiri Pirko This patchset introduces tc matchall classifier and its offload to Spectrum hardware. In combination with mirred action, defined port mirroring setup is offloaded by mlxsw/spectrum driver. The commands used for creating mirror ports: # ingress mirroring

[patch net-next 7/9] mlxsw: reg: Add the Monitoring Port Analyzer register

2016-07-21 Thread Jiri Pirko
From: Yotam Gigi The MPAR register is used to bind ports to a SPAN entry (which was created using MPAT register) and thus mirror their traffic (ingress / egress) to a different port. Signed-off-by: Yotam Gigi Reviewed-by: Ido Schimmel

[patch net-next 6/9] mlxsw: reg: Add Monitoring Port Analyzer Table register

2016-07-21 Thread Jiri Pirko
From: Yotam Gigi The MPAT register is used to query and configure the Switch Port Analyzer (SPAN) table. This register is used to configure a port as a mirror output port, while after that a mirrored input port can be bound using MPAR register. Signed-off-by: Yotam Gigi

[patch net-next 5/9] mlxsw: reg: Add Shared Buffer Internal Buffer register

2016-07-21 Thread Jiri Pirko
From: Yotam Gigi The SBIB register configures per port buffer for internal use. This register is used to configure an egress mirror buffer on the egress port which does the mirroring. Signed-off-by: Yotam Gigi Reviewed-by: Ido Schimmel

[patch net-next 4/9] net/sched: Add match-all classifier hw offloading.

2016-07-21 Thread Jiri Pirko
From: Yotam Gigi Following the work that have been done on offloading classifiers like u32 and flower, now the match-all classifier hw offloading is possible. if the interface supports tc offloading. To control the offloading, two tc flags have been introduced: skip_sw and

[patch net-next 8/9] net/sched: act_mirred: Add helper inlines to access tcf_mirred info.

2016-07-21 Thread Jiri Pirko
From: Yotam Gigi The helper function is_tcf_mirred_mirror helps finding whether an action struct is of type mirred and is configured to be of type mirror. Signed-off-by: Yotam Gigi Signed-off-by: Jiri Pirko ---

[PATCH net V2] net/bonding: Enforce active-backup policy for IPoIB bonds

2016-07-21 Thread Saeed Mahameed
From: Mark Bloch When using an IPoIB bond currently only active-backup mode is a valid use case and this commit strengthens it. Since commit 2ab82852a270 ("net/bonding: Enable bonding to enslave netdevices not supporting set_mac_address()") was introduced till 4.7-rc1, IPoIB

Re: [Patch net-next 1/2] net_sched: move tc_action into tcf_common

2016-07-21 Thread Jamal Hadi Salim
It is an involved change (and i was fond of the container_of() trickery;)). Looking at this patch I cant grok some parts - maybe i need to apply it when i am not in a hurry to see clearly. Mostly this around things like: --- const struct tc_action *a struct tcf_mirred *m = to_mirred(a) ---

Re: [patch net-next 0/9] mlxsw: implement port mirroring offload

2016-07-21 Thread Jamal Hadi Salim
On 16-07-21 05:07 AM, Jiri Pirko wrote: Thu, Jul 21, 2016 at 11:00:33AM CEST, j...@mojatatu.com wrote: On 16-07-21 04:19 AM, Jiri Pirko wrote: From: Jiri Pirko [..] infrastructure. If answer is yes, thencould we have used a classifier like u32 here? i.e something like:

[PATCH v6 08/12] drivers: net: xgene: Use exported functions

2016-07-21 Thread Iyappan Subramanian
This patch reuses the mdio read/write and phy_register functions and removed the local definitions. Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen Tested-by: Toan Le --- drivers/net/ethernet/apm/xgene/xgene_enet_hw.c | 97

[PATCH v6 10/12] dtb: xgene: Add MDIO node

2016-07-21 Thread Iyappan Subramanian
Added mdio node for mdio driver. Also added phy-handle reference to the ethernet nodes. Removed unused clock node from storm sgenet1. Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen Tested-by: Toan Le ---

[PATCH v6 11/12] Documentation: dtb: xgene: Add MDIO node

2016-07-21 Thread Iyappan Subramanian
Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen Tested-by: Toan Le --- .../devicetree/bindings/net/apm-xgene-mdio.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644

[PATCH v6 07/12] drivers: net: xgene: Enable MDIO driver

2016-07-21 Thread Iyappan Subramanian
This patch enables MDIO driver by, - Selecting MDIO_XGENE - Changed open and close to use phy_start and phy_stop - Changed to use mac_ops->tx(rx)_enable and tx(rx)_disable Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen Tested-by: Toan Le

[PATCH v6 03/12] drivers: net: xgene: Fix module unload crash - change sw sequence

2016-07-21 Thread Iyappan Subramanian
When the driver is configured as kernel module and when it gets unloaded and reloaded, kernel crash was observed. This patch addresses the software cleanup by doing the following, - Moved register_netdev call after hardware is ready - Since ndev is not ready, added set_irq_name to set irq name -

[PATCH v6 04/12] drivers: net: xgene: Fix module unload crash - clkrst sequence

2016-07-21 Thread Iyappan Subramanian
This patch fixes clock reset sequence. - Added clock reset sequence for ACPI - Added delay in clock reset sequence to make sure pulse is generated - Added clk_unprepare_disable() in port shutdown to make sure clock increment/decrement counts are matching - Removed MII_MGMT_CONFIG programming,

Re: [PATCH net-next 2/2] net/mlx5e: Query minimum required header copy during xmit

2016-07-21 Thread Saeed Mahameed
On Thu, Jul 21, 2016 at 8:15 AM, Alexei Starovoitov wrote: > On Thu, Jul 21, 2016 at 01:20:02AM +0300, Saeed Mahameed wrote: >> From: Hadar Hen Zion >> >> Add support for query the minimum inline mode from the Firmware. >> It is required for

[PATCH 1/1] netfilter: udp: Only get 8 bytes header in udp_pkt_to_tuple to keep consistent with tcp_pkt_to_tuple and comments

2016-07-21 Thread fgao
From: Gao Feng Signed-off-by: Gao Feng --- net/netfilter/nf_conntrack_proto_udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nf_conntrack_proto_udp.c b/net/netfilter/nf_conntrack_proto_udp.c index 4fd0405..a886a8a 100644

Re: PROBLEM: MTU of ipsec tunnel drops continuously until traffic stops

2016-07-21 Thread Steffen Klassert
Hi Matt, I've did some vti tests the last days, but I was unable to reproduce it. On Tue, Jul 19, 2016 at 05:49:06AM +, Matt Bennett wrote: > On 07/05/2016 03:55 PM, Matt Bennett wrote: > > On 07/04/2016 11:12 PM, Steffen Klassert wrote: > >> On Mon, Jul 04, 2016 at 03:52:50AM +, Matt

[PATCH 1/1] netfilter: udp: Remove a bit misleading comment in udp_pkt_to_tuple

2016-07-21 Thread fgao
From: Gao Feng Signed-off-by: Gao Feng --- v1: Initial patch net/netfilter/nf_conntrack_proto_udp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/netfilter/nf_conntrack_proto_udp.c b/net/netfilter/nf_conntrack_proto_udp.c index 4fd0405..bc8276b

[PATCH] net: ipv6: Always leave subnet anycast group on link down

2016-07-21 Thread Mike Manning
Default kernel behavior is to delete IPv6 addresses on link down, which entails deletion of the address-derived subnet-router anycast address. The latter does not happen with sysctl setting to keep global IPv6 addrs on link down, so every link down/up causes an increment of the anycast refcount,

Re: [PATCH net-next v2] net/faraday: Disallow using reversed MAC address from hardware

2016-07-21 Thread Andrew Lunn
On Thu, Jul 21, 2016 at 11:42:54AM +1000, Gavin Shan wrote: > The initial MAC address is retrieved from hardware if it's not > provided by device-tree. The reserved MAC address from hardware > will be used if non-reserved MAC address is invalid. It will > cause mismatched MAC address seen by

Re: [patch net-next 0/9] mlxsw: implement port mirroring offload

2016-07-21 Thread Jiri Pirko
Thu, Jul 21, 2016 at 11:24:10AM CEST, j...@mojatatu.com wrote: >On 16-07-21 05:07 AM, Jiri Pirko wrote: >>Thu, Jul 21, 2016 at 11:00:33AM CEST, j...@mojatatu.com wrote: >>>On 16-07-21 04:19 AM, Jiri Pirko wrote: From: Jiri Pirko >[..] >> >>>infrastructure. If answer is

Re: IPv6 IPSec incompatibilities between 2.6.23 and 3.6.18/4.6.4

2016-07-21 Thread Pommnitz Jörg
Additionally I have now built and installed Linux-4.6.4 and run the debug script. Setup is unchanged from the previous one, except that Node 1 is now running Linux-4.6.4. Node 1: fd01:1b10:1000::1 is running 4.6.4 Debug log from Node 1, Receiver running 4.6.4:

Re: [patch net-next 1/9] mlxsw: pci: Add resources query implementation.

2016-07-21 Thread Jamal Hadi Salim
On 16-07-21 05:43 AM, Jiri Pirko wrote: Thu, Jul 21, 2016 at 11:41:18AM CEST, j...@mojatatu.com wrote: Ok, here's an example: On 16-07-21 04:19 AM, Jiri Pirko wrote: Email is splitting that first line - but it is 80 chars or less You are right. Will fix this. ok, passed my first test

Re: [patch net-next 1/9] mlxsw: pci: Add resources query implementation.

2016-07-21 Thread Ido Schimmel
Thu, Jul 21, 2016 at 11:19:12AM IDT, j...@resnulli.us wrote: >From: Nogah Frankel > >Add resources query implementation. If exists, query the HW for its >builtin resources instead of having them as consts in the code. > >Signed-off-by: Nogah Frankel

[patch net-next v2 8/9] net/sched: act_mirred: Add helper inlines to access tcf_mirred info.

2016-07-21 Thread Jiri Pirko
From: Yotam Gigi The helper function is_tcf_mirred_mirror helps finding whether an action struct is of type mirred and is configured to be of type mirror. Signed-off-by: Yotam Gigi Signed-off-by: Jiri Pirko ---

[patch net-next v2 6/9] mlxsw: reg: Add Monitoring Port Analyzer Table register

2016-07-21 Thread Jiri Pirko
From: Yotam Gigi The MPAT register is used to query and configure the Switch Port Analyzer (SPAN) table. This register is used to configure a port as a mirror output port, while after that a mirrored input port can be bound using MPAR register. Signed-off-by: Yotam Gigi

[patch net-next v2 4/9] net/sched: Add match-all classifier hw offloading.

2016-07-21 Thread Jiri Pirko
From: Yotam Gigi Following the work that have been done on offloading classifiers like u32 and flower, now the match-all classifier hw offloading is possible. if the interface supports tc offloading. To control the offloading, two tc flags have been introduced: skip_sw and

[patch net-next v2 9/9] mlxsw: spectrum: Add support in matchall mirror TC offloading

2016-07-21 Thread Jiri Pirko
From: Yotam Gigi This patch offloads port mirroring directives to hw using the matchall TC with action mirror. It includes both the implementation of the ndo_setup_tc function for the spectrum driver and the spectrum hardware offload configuration code. The hardware offload

[patch net-next v2 5/9] mlxsw: reg: Add Shared Buffer Internal Buffer register

2016-07-21 Thread Jiri Pirko
From: Yotam Gigi The SBIB register configures per port buffer for internal use. This register is used to configure an egress mirror buffer on the egress port which does the mirroring. Signed-off-by: Yotam Gigi Reviewed-by: Ido Schimmel

[patch net-next v2 7/9] mlxsw: reg: Add the Monitoring Port Analyzer register

2016-07-21 Thread Jiri Pirko
From: Yotam Gigi The MPAR register is used to bind ports to a SPAN entry (which was created using MPAT register) and thus mirror their traffic (ingress / egress) to a different port. Signed-off-by: Yotam Gigi Reviewed-by: Ido Schimmel

[patch net-next v2 1/9] mlxsw: pci: Add resources query implementation.

2016-07-21 Thread Jiri Pirko
From: Nogah Frankel Add resources query implementation. If exists, query the HW for its builtin resources instead of having them as consts in the code. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri

[PATCH] iproute2: ip: add udp_csum, udp6_csum_tx, udp6_csum_rx control flags to ip l2tp add tunnel

2016-07-21 Thread Shanker Wang
Three options are added for the user to control whether the checksum is enabled Signed-off-by: Miao Wang --- ip/ipl2tp.c | 45 + 1 file changed, 45 insertions(+) diff --git a/ip/ipl2tp.c b/ip/ipl2tp.c index

Re: [patch net-next 1/9] mlxsw: pci: Add resources query implementation.

2016-07-21 Thread Jamal Hadi Salim
Ok, here's an example: On 16-07-21 04:19 AM, Jiri Pirko wrote: From: Nogah Frankel +static int +mlxsw_pci_resources_query(struct mlxsw_pci *mlxsw_pci, char *mbox, + struct mlxsw_resources *resources, u8 query_enabled) +{ to: static int

[patch net-next v2 2/9] mlxsw: pci: Add max span resources to resources query

2016-07-21 Thread Jiri Pirko
From: Nogah Frankel Add max span resources to resources query. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/core.h | 2 ++

  1   2   >