Re: [PATCH v2 03/11] tty: kbd: reduce stack size with KASAN

2017-06-14 Thread Greg Kroah-Hartman
On Wed, Jun 14, 2017 at 11:15:38PM +0200, Arnd Bergmann wrote: > As reported by kernelci, some functions in the VT code use significant > amounts of kernel stack when local variables get inlined into the caller > multiple times: > > drivers/tty/vt/keyboard.c: In function 'kbd_keycode': >

Investment portfolio

2017-06-14 Thread Hassan Dako
Hello, How are you today? we have the financial capability to finance any investment portfolio as far as is it genuine, all we need is a capable business partner that possesses investment strategies or profitable business information for good turn over within 10-20years. We can provide proof

Re: [PATCH 1/5 net-next] ibmvnic: Activate disabled RX buffer pools on reset

2017-06-14 Thread Thomas Falcon
On 06/14/2017 10:42 PM, David Miller wrote: > Please always provide a proper "[PATCH 0/N ...] " header posting > explaining what the patch series is doing, how it is doing it, and why > it is doing it that way. > > I am getting kind of tired asking people for this FWIW... > Sorry, I will send a v2

RE: [RFC] networking: convert many more places to skb_put_zero()

2017-06-14 Thread YUAN Linyu
Hi, Indeed, it find more. Compare with my patch, still lost pattern like below, 1. sctp and openvswitch --- a/net/sctp/output.c +++ b/net/sctp/output.c @@ -463,7 +463,7 @@ static int sctp_packet_pack(struct sctp_packet *packet, padding = SCTP_PAD4(chunk->skb->len) -

Re: [PATCH iproute2 net-next] ip neigh: allow flush FAILED neighbour entry

2017-06-14 Thread Hangbin Liu
Hi Stephen, On Wed, Jun 14, 2017 at 09:54:50AM -0700, Stephen Hemminger wrote: > On Mon, 5 Jun 2017 16:31:29 +0800 > Hangbin Liu wrote: > > > After upstream commit 5071034e4af7 ('neigh: Really delete an arp/neigh entry > > on "ip neigh delete" or "arp -d"'), we could

[PATCH v4 1/2] ip_tunnel: fix potential issue in ip_tunnel_rcv

2017-06-14 Thread Haishuang Yan
When ip_tunnel_rcv fails, the tun_dst won't be freed, so call dst_release to free it in error code path. Fixes: 2e15ea390e6f ("ip_gre: Add support to collect tunnel metadata.") Acked-by: Eric Dumazet Acked-by: Pravin B Shelar Tested-by: Zhang Shengju

[PATCH v4 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv

2017-06-14 Thread Haishuang Yan
When __ip6_tnl_rcv fails, the tun_dst won't be freed, so call dst_release to free it in error code path. Fixes: 8d79266bc48c ("ip6_tunnel: add collect_md mode to IPv6 tunnels") CC: Alexei Starovoitov Tested-by: Zhang Shengju Signed-off-by:

[PATCH] intel: i40e: virtchnl: fix incorrect variable assignment

2017-06-14 Thread Gustavo A. R. Silva
Fix incorrect variable assignment. Based on line 1511: aq_ret = I40_ERR_PARAM; the correct variable to be used in this instance is aq_ret instead of ret. Also, variable ret is updated at line 1602 just before return, so assigning a value to this variable in this code block is useless.

Re: [PATCH 1/5 net-next] ibmvnic: Activate disabled RX buffer pools on reset

2017-06-14 Thread David Miller
Please always provide a proper "[PATCH 0/N ...] " header posting explaining what the patch series is doing, how it is doing it, and why it is doing it that way. I am getting kind of tired asking people for this FWIW...

[PATCH 5/5 net-next v2] ibmvnic: Exit polling routine correctly during adapter reset

2017-06-14 Thread Thomas Falcon
This patch fixes a bug where, in the case of a device reset, the polling routine will never complete, causing napi_disable to sleep indefinitely when attempting to close the device. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.c | 9 ++---

[PATCH 2/5 net-next v2] ibmvnic: Ensure that TX queues are disabled in __ibmvnic_close

2017-06-14 Thread Thomas Falcon
Use netif_tx_disable to guarantee that TX queues are disabled when __ibmvnic_close is called by the device reset routine. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH 1/5 net-next v2] ibmvnic: Activate disabled RX buffer pools on reset

2017-06-14 Thread Thomas Falcon
RX buffer pools are disabled while awaiting a device reset if firmware indicates that the resource is closed. This patch fixes a bug where pools were not being subsequently enabled after the device reset, causing the device to become inoperable. Signed-off-by: Thomas Falcon

[PATCH 0/5 net-next v2] ibmvnic: LPM bug fixes

2017-06-14 Thread Thomas Falcon
This series of small patches is meant to resolve a number of bugs, mostly occurring during an ibmvnic driver reset when recovering from a logical partition migration (LPM). The first patch ensures that RX buffer pools are properly activated following an adapter reset by setting the proper flag in

[PATCH 4/5 net-next v2] ibmvnic: Remove VNIC_CLOSING check from pending_scrq

2017-06-14 Thread Thomas Falcon
Fix a kernel panic resulting from data access of a NULL pointer during device close. The pending_scrq routine is meant to determine whether there is a valid sub-CRQ message awaiting processing. When the device is closing, however, there is a possibility that NULL messages can be processed because

[PATCH 3/5 net-next v2] ibmvnic: Sanitize entire SCRQ buffer on reset

2017-06-14 Thread Thomas Falcon
Fixup a typo so that the entire SCRQ buffer is cleaned. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c

[PATCH 1/5 net-next] ibmvnic: Activate disabled RX buffer pools on reset

2017-06-14 Thread Thomas Falcon
RX buffer pools are disabled while awaiting a device reset if firmware indicates that the resource is closed. This patch fixes a bug where pools were not being subsequently enabled after the device reset, causing the device to become inoperable. Signed-off-by: Thomas Falcon

[PATCH 2/5 net-next] ibmvnic: Ensure that TX queues are disabled in __ibmvnic_close

2017-06-14 Thread Thomas Falcon
Use netif_tx_disable to guarantee that TX queues are disabled when __ibmvnic_close is called by the device reset routine. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH 3/5 net-next] ibmvnic: Sanitize entire SCRQ buffer on reset

2017-06-14 Thread Thomas Falcon
Fixup a typo so that the entire SCRQ buffer is cleaned. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c

[PATCH 5/5 net-next] ibmvnic: Exit polling routine correctly during adapter reset

2017-06-14 Thread Thomas Falcon
This patch fixes a bug where, in the case of a device reset, the polling routine will never complete, causing napi_disable to sleep indefinitely when attempting to close the device. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.c | 9 ++---

[PATCH 4/5 net-next] ibmvnic: Remove VNIC_CLOSING check from pending_scrq

2017-06-14 Thread Thomas Falcon
Fix a kernel panic resulting from data access of a NULL pointer during device close. The pending_scrq routine is meant to determine whether there is a valid sub-CRQ message awaiting processing. When the device is closing, however, there is a possibility that NULL messages can be processed because

[GIT] Networking

2017-06-14 Thread David Miller
1) The netlink attribute passed in to dev_set_alias() is not necessarily NULL terminated, don't use strlcpy() on it. From Alexander Potapenko. 2) Fix implementation of atomics in arm64 bpf JIT, from Daniel Borkmann. 3) Correct the release of netdevs and driver private data in

Re: [PATCH v2 03/11] tty: kbd: reduce stack size with KASAN

2017-06-14 Thread Greg Kroah-Hartman
On Thu, Jun 15, 2017 at 06:52:21AM +0200, Greg Kroah-Hartman wrote: > On Wed, Jun 14, 2017 at 11:15:38PM +0200, Arnd Bergmann wrote: > > As reported by kernelci, some functions in the VT code use significant > > amounts of kernel stack when local variables get inlined into the caller > > multiple

[PATCH] net: s2io: remove useless variable in fill_rx_buffers

2017-06-14 Thread Gustavo A. R. Silva
Remove useless variable rxd_index and code related. Addresses-Coverity-ID: 1397691 Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/neterion/s2io.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/net/ethernet/neterion/s2io.c

Re: [PATCH v2] ip6_tunnel: Correct tos value in collect_md mode

2017-06-14 Thread Peter Dawson
On Thu, 15 Jun 2017 10:30:29 +0800 Haishuang Yan wrote: > Same as ip_gre, geneve and vxlan, use key->tos as tos value. > > CC: Peter Dawson > Fixes: 0e9a709560db ("ip6_tunnel, ip6_gre: fix setting of DSCP on > encapsulated packets”) >

RE: [PATCH net-next 00/11] skb_put_zero() used to optimize code

2017-06-14 Thread YUAN Linyu
> -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] > On Behalf Of Johannes Berg > Sent: Thursday, June 15, 2017 12:32 AM > To: cug...@163.com; netdev@vger.kernel.org > Cc: David S . Miller; YUAN Linyu > Subject: Re: [PATCH net-next 00/11]

Re: [net] i40e: Fix a sleep-in-atomic bug

2017-06-14 Thread David Miller
From: Jeff Kirsher Date: Wed, 14 Jun 2017 16:35:31 -0700 > From: Jia-Ju Bai > > The driver may sleep under a spin lock, and the function call path is: > i40e_ndo_set_vf_port_vlan (acquire the lock by spin_lock_bh) > i40e_vsi_remove_pvid >

Re: [PATCH] ip6_tunnel: Correct tos value in collect_md mode

2017-06-14 Thread 严海双
> On 14 Jun 2017, at 1:28 PM, Peter Dawson wrote: > > On Wed, 14 Jun 2017 10:54:31 +0800 > 严海双 wrote: > > >>> Changes since v2: >>> * mask key->tos with RT_TOS() suggested by Daniel > > Can you help me understand the rationale for this

June 14, 2017

2017-06-14 Thread Johnson King
Attn, My name is Johnson King, the principal attorney of my law firm., Johnson King & Co. A deceased client Mr. Henry died in 2010 and left a sum little above US$ 28 million in his account here in Unity Bank Plc. Normally banking procedures requires that the bank declares the account

[PATCH v2] ip6_tunnel: Correct tos value in collect_md mode

2017-06-14 Thread Haishuang Yan
Same as ip_gre, geneve and vxlan, use key->tos as tos value. CC: Peter Dawson Fixes: 0e9a709560db ("ip6_tunnel, ip6_gre: fix setting of DSCP on encapsulated packets”) Suggested-by: Daniel Borkmann Signed-off-by: Haishuang Yan

Re: [PATCH iproute2] ip: mroute: Add table output to show command

2017-06-14 Thread David Ahern
On 6/14/17 6:08 AM, Donald Sharp wrote: > diff --git a/ip/ipmroute.c b/ip/ipmroute.c > index 4d2d758..70f4c4f 100644 > --- a/ip/ipmroute.c > +++ b/ip/ipmroute.c > @@ -189,6 +189,11 @@ int print_mroute(const struct sockaddr_nl *who, struct > nlmsghdr *n, void *arg) > fprintf(fp, ",

Receiving raw packets (incl. VLAN tags) on raw sockets

2017-06-14 Thread Jan Grashöfer
Hello, trying to ingest packets to a network monitoring tool using AF_Packet, I noticed that VLAN tags are stripped off even if VLAN offloading is disabled. As described in [1] the tags are stripped that early in the receive path that raw sockets do not receive the packets as seen on the wire.

Re: [Patch net] net_sched: move tcf_lock down after gen_replace_estimator()

2017-06-14 Thread Jamal Hadi Salim
On 17-06-13 04:36 PM, Cong Wang wrote: Laura reported a sleep-in-atomic kernel warning inside tcf_act_police_init() which calls gen_replace_estimator() with spinlock protection. It is not necessary in this case, we already have RTNL lock here so it is enough to protect concurrent writers. For

Re: [PATCH net] net/act_pedit: fix an error code

2017-06-14 Thread Amir Vadai
On Wed, Jun 14, 2017 at 01:29:31PM +0300, Dan Carpenter wrote: > I'm reviewing static checker warnings where we do ERR_PTR(0), which is > the same as NULL. I'm pretty sure we intended to return ERR_PTR(-EINVAL) > here. Sometimes these bugs lead to a NULL dereference but I don't > immediately see

Re: Toggling link state breaks network connectivity

2017-06-14 Thread Mason
On 13/06/2017 17:50, Florian Fainelli wrote: > On 06/13/2017 08:47 AM, Mason wrote: > >> If I unplug/replug the cable, ping still works afterward. >> (Packet RX appears to be *not* wedged) >> >> If I toggle the link state in SW (set link down/set link up), >> I can no longer ping afterward. >>

Re: [PATCH] af_iucv: Move sockaddr length checks to before accessing sa_family in bind and connect handlers

2017-06-14 Thread Julian Wiedmann
On 06/13/2017 07:42 PM, Mateusz Jurczyk wrote: > Verify that the caller-provided sockaddr structure is large enough to > contain the sa_family field, before accessing it in bind() and connect() > handlers of the AF_IUCV socket. Since neither syscall enforces a minimum > size of the corresponding

[PATCH net-next 11/11] qrtr: skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
From: yuan linyu Signed-off-by: yuan linyu --- net/qrtr/qrtr.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/net/qrtr/qrtr.c b/net/qrtr/qrtr.c index c7a5d86..e96353d 100644 --- a/net/qrtr/qrtr.c

RE: [net-next] macvlan: propagate the mac address change status for lowerdev

2017-06-14 Thread 张胜举
> -Original Message- > From: Yuval Shaia [mailto:yuval.sh...@oracle.com] > Sent: Wednesday, June 14, 2017 4:34 AM > To: Zhang Shengju > Cc: da...@davemloft.net; f...@48lvckh6395k16k5.yundunddos.com; > vyase...@redhat.com; netdev@vger.kernel.org >

Re: [PATCH net-next 01/11] ipv6: skb_put_zero() used to optimize code

2017-06-14 Thread Stephen Hemminger
On Wed, 14 Jun 2017 22:37:06 +0800 yuan linyu wrote: > From: yuan linyu > > Signed-off-by: yuan linyu > --- > net/ipv6/mcast.c | 3 +-- > net/ipv6/ndisc.c | 13 ++--- > 2 files changed, 3

Re: [PATCH iproute2] ip: mroute: Add table output to show command

2017-06-14 Thread Nikolay Aleksandrov
On 14/06/17 18:42, David Ahern wrote: > On 6/14/17 6:08 AM, Donald Sharp wrote: >> diff --git a/ip/ipmroute.c b/ip/ipmroute.c >> index 4d2d758..70f4c4f 100644 >> --- a/ip/ipmroute.c >> +++ b/ip/ipmroute.c >> @@ -189,6 +189,11 @@ int print_mroute(const struct sockaddr_nl *who, struct >> nlmsghdr

Re: [PATCH iproute2] ip: mroute: Add table output to show command

2017-06-14 Thread David Ahern
On 6/14/17 9:44 AM, Nikolay Aleksandrov wrote: > On 14/06/17 18:42, David Ahern wrote: >> On 6/14/17 6:08 AM, Donald Sharp wrote: >>> diff --git a/ip/ipmroute.c b/ip/ipmroute.c >>> index 4d2d758..70f4c4f 100644 >>> --- a/ip/ipmroute.c >>> +++ b/ip/ipmroute.c >>> @@ -189,6 +189,11 @@ int

Re: Receiving raw packets (incl. VLAN tags) on raw sockets

2017-06-14 Thread Jan Grashöfer
On 14/06/17 16:41, Eric W. Biederman wrote: That does not work. That is is just the software fallback for when the device driver does not have a special case the processing vlan tagged packets. There was a major inconsistency that for a long time the hardware network drivers were stripping

Re: [PATCH net-next 00/11] skb_put_zero() used to optimize code

2017-06-14 Thread Johannes Berg
On Wed, 2017-06-14 at 23:00 +0800, yuan linyu wrote: > sorry, I do them by hand.  oh, ok. This seems to work: @@ identifier p; expression len; expression skb; type t; @@ -p = (t)skb_put(skb, len); -memset(p, 0, len); +p = (t)skb_put_zero(skb, len); johannes

Re: [PATCH v4 10/11] dt-bindings: orion-mdio: document the new xmdio compatible

2017-06-14 Thread Andrew Lunn
On Wed, Jun 14, 2017 at 05:49:10PM +0200, Antoine Tenart wrote: > A new compatible for Marvell xMDIO interfaces was added into the Marvell > MDIO driver. Document this new compatible. > > Signed-off-by: Antoine Tenart > --- >

[PATCH v4 08/11] net: mvmdio: add xmdio xsmi support

2017-06-14 Thread Antoine Tenart
This patch adds the xmdio xsmi interface support in the mvmdio driver. This interface is used in Ethernet controllers on Marvell 370, 7k and 8k (as of now). The xsmi interface supported by this driver complies with the IEEE 802.3 clause 45. The xSMI interface is used by 10GbE devices.

[PATCH v4 03/11] net: mvmdio: use GENMASK for masks

2017-06-14 Thread Antoine Tenart
Cosmetic patch to use the GENMASK helper for masks. Signed-off-by: Antoine Tenart Reviewed-by: Florian Fainelli --- drivers/net/ethernet/marvell/mvmdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 0/4] bpf: Changes needed (or desired) for MIPS support

2017-06-14 Thread David Daney
On 06/13/2017 05:22 PM, Daniel Borkmann wrote: On 06/14/2017 01:49 AM, David Daney wrote: This is a grab bag of changes to the bpf testing infrastructure I developed working on MIPS eBPF JIT support. The change to bpf_jit_disasm is probably universally beneficial, the others are more MIPS

[PATCH net-next] liquidio: fix VF driver off-by-one bug when setting ethtool -C ethX rx-frames

2017-06-14 Thread Felix Manlunas
From: Weilin Chang Signed-off-by: Weilin Chang Signed-off-by: Derek Chickles Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/lio_ethtool.c | 2 +- 1 file changed, 1

Re: [PATCH net-next 00/11] skb_put_zero() used to optimize code

2017-06-14 Thread Johannes Berg
On Wed, 2017-06-14 at 18:29 +0200, Johannes Berg wrote: > On Wed, 2017-06-14 at 23:00 +0800, yuan linyu wrote: > > > sorry, I do them by hand.  > > oh, ok. > > This seems to work: > > @@ > identifier p; > expression len; > expression skb; > type t; > @@ > -p = (t)skb_put(skb, len); >

Re: [PATCH] via-rhine: add support for changing MTU

2017-06-14 Thread David Miller
From: Magnus Damm Date: Wed, 14 Jun 2017 15:02:30 +0900 > Will update the code with the TX alignment workaround and resend after > some much needed testing. It will most likely take some time, so > please don't block anything on this. Thank you.

Re: [PATCH V2 net-next 8/8] net: hns3: Add HNS3 driver to kernel build framework & MAINTAINERS

2017-06-14 Thread kbuild test robot
Hi Salil, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Salil-Mehta/Hisilicon-Network-Subsystem-3-Ethernet-Driver/20170614-162343 config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce

[PATCH v4 04/11] net: mvmdio: remove duplicate locking

2017-06-14 Thread Antoine Tenart
From: Russell King The MDIO layer already provides per-bus locking, so there's no need for MDIO bus drivers to do their own internal locking. Remove this. Signed-off-by: Russell King --- drivers/net/ethernet/marvell/mvmdio.c | 10

[PATCH v4 01/11] net: mvmdio: reorder headers alphabetically

2017-06-14 Thread Antoine Tenart
Cosmetic fix reordering headers alphabetically. Signed-off-by: Antoine Tenart Reviewed-by: Florian Fainelli --- drivers/net/ethernet/marvell/mvmdio.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH v4 07/11] net: mvmdio: check the MII_ADDR_C45 bit is not set for smi operations

2017-06-14 Thread Antoine Tenart
Add a check for the read and write smi operations, to ensure the MII_ADDR_C45 bit isn't set. This will be needed as soon as the xSMI support is added to the mvmdio driver. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvmdio.c | 6 ++ 1

[PATCH v4 11/11] arm64: marvell: dts: add xmdio nodes for 7k/8k

2017-06-14 Thread Antoine Tenart
Add the description of the xMDIO bus for the Marvell Armada 7k and Marvell Armada 8k; for both CP110 slave and master. This bus is found on Marvell Ethernet controllers and provides an interface with the xMDIO bus. Signed-off-by: Antoine Tenart ---

[PATCH v4 05/11] net: mvmdio: introduce an ops structure

2017-06-14 Thread Antoine Tenart
Introduce an ops structure to add an indirection on the is_done function, as this is needed to add the xMDIO support later. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvmdio.c | 30 +++--- 1 file changed, 19

[PATCH v4 02/11] net: mvmdio: use tabs for defines

2017-06-14 Thread Antoine Tenart
Cosmetic patch replacing spaces by tabs for defined values. Signed-off-by: Antoine Tenart Reviewed-by: Florian Fainelli --- drivers/net/ethernet/marvell/mvmdio.c | 26 +- 1 file changed, 13 insertions(+), 13

[PATCH v4 09/11] net: mvmdio: simplify the smi read and write error paths

2017-06-14 Thread Antoine Tenart
Cosmetic patch simplifying the smi read and write error paths. It also align their error paths with the ones of the xsmi functions. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvmdio.c | 16 ++-- 1 file changed, 6 insertions(+),

[PATCH v4 10/11] dt-bindings: orion-mdio: document the new xmdio compatible

2017-06-14 Thread Antoine Tenart
A new compatible for Marvell xMDIO interfaces was added into the Marvell MDIO driver. Document this new compatible. Signed-off-by: Antoine Tenart --- Documentation/devicetree/bindings/net/marvell-orion-mdio.txt | 8 1 file changed, 4 insertions(+), 4

[PATCH v4 00/11] net: mvmdio: add xMDIO xSMI support

2017-06-14 Thread Antoine Tenart
Hello, This series aims to add the xSMI support on the xMDIO bus to the mvmdio driver. The xSMI interface complies with the IEEE 802.3 clause 45 and is used by 10GbE devices. On 7k and 8k (as of now), such an interface is found and is used by Ethernet controllers. Patches 1-4 and 9 are cosmetic

[PATCH v4 06/11] net: mvmdio: put the poll intervals in the ops structure

2017-06-14 Thread Antoine Tenart
Put the two poll intervals (min and max) in the driver's ops structure. This is needed to add the xmdio support later. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvmdio.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff

Re: [PATCH] via-rhine: add support for changing MTU

2017-06-14 Thread Magnus Damm
On Wed, Jun 14, 2017 at 6:33 AM, David Miller wrote: > From: Magnus Damm > Date: Wed, 14 Jun 2017 02:18:27 +0900 > >> From: Magnus Damm >> >> Allow adjusting the MTU for via-rhine devices in case of no TX alignment >>

[PATCH net-next 01/11] ipv6: skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
From: yuan linyu Signed-off-by: yuan linyu --- net/ipv6/mcast.c | 3 +-- net/ipv6/ndisc.c | 13 ++--- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index

[PATCH net-next 02/11] ipv4: skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
From: yuan linyu Signed-off-by: yuan linyu --- net/ipv4/ipconfig.c | 3 +-- net/ipv4/netfilter/nf_reject_ipv4.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/net/ipv4/ipconfig.c

Re: [PATCH net-next 00/11] skb_put_zero() used to optimize code

2017-06-14 Thread Johannes Berg
On Wed, 2017-06-14 at 22:30 +0800, yuan linyu wrote: > From: yuan linyu > > > yuan linyu (11): >   ipv6: skb_put_zero() used to optimize code >   ipv4: skb_put_zero() used to optimize code >   ncsi: skb_put_zero() used to optimize code >   dsa: skb_put_zero()

[PATCH net-next 06/11] openvswitch: skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
From: yuan linyu Signed-off-by: yuan linyu --- net/openvswitch/datapath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 9ddc9f8..d772e9a 100644

[PATCH net-next 09/11] sctp: skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
From: yuan linyu Signed-off-by: yuan linyu --- net/sctp/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sctp/output.c b/net/sctp/output.c index e2edf2e..c339c68 100644 --- a/net/sctp/output.c +++

Re: [PATCH net-next 00/11] skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
On 三, 2017-06-14 at 16:42 +0200, Johannes Berg wrote: > On Wed, 2017-06-14 at 22:30 +0800, yuan linyu wrote: > > > > From: yuan linyu > > > > > > yuan linyu (11): > >   ipv6: skb_put_zero() used to optimize code > >   ipv4: skb_put_zero() used to optimize code

[PATCH net-next 04/11] dsa: skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
From: yuan linyu Signed-off-by: yuan linyu --- net/dsa/tag_trailer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/dsa/tag_trailer.c b/net/dsa/tag_trailer.c index 172f131..b09e562 100644 ---

[PATCH net-next 10/11] atm: skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
From: yuan linyu Signed-off-by: yuan linyu --- net/atm/signaling.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/atm/signaling.c b/net/atm/signaling.c index adb6e3d..380d496 100644 ---

Re: [PATCH iproute2] ip: mroute: Add table output to show command

2017-06-14 Thread Nikolay Aleksandrov
On 14/06/17 15:08, Donald Sharp wrote: > When the user specifies `table all` or `table 0` to > the `ip mroute show` command we dump the entirety of > the known mroute tables. Without some sort of > divisor to tell us what table we are looking at > the command is useless. > > Add `Table: ` to the

[PATCH net-next 00/11] skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
From: yuan linyu yuan linyu (11): ipv6: skb_put_zero() used to optimize code ipv4: skb_put_zero() used to optimize code ncsi: skb_put_zero() used to optimize code dsa: skb_put_zero() used to optimize code key: skb_put_zero() used to optimize code

Re: [PATCH nf-next] netns: add and use net_ns_barrier

2017-06-14 Thread Eric W. Biederman
Pablo Neira Ayuso writes: > Hi! > > On Tue, Jun 13, 2017 at 09:35:20AM -0700, Cong Wang wrote: >> On Mon, Jun 12, 2017 at 11:16 PM, Florian Westphal wrote: >> > Cong Wang wrote: >> >> On Thu, Jun 1, 2017 at 1:52 AM, Florian

[PATCH net-next 03/11] ncsi: skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
From: yuan linyu Signed-off-by: yuan linyu --- net/ncsi/ncsi-cmd.c | 36 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/net/ncsi/ncsi-cmd.c b/net/ncsi/ncsi-cmd.c index

[PATCH net-next 07/11] batman-adv: skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
From: yuan linyu Signed-off-by: yuan linyu --- net/batman-adv/bat_v_elp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/batman-adv/bat_v_elp.c b/net/batman-adv/bat_v_elp.c index b58007b..bd1064d

Re: Receiving raw packets (incl. VLAN tags) on raw sockets

2017-06-14 Thread Eric W. Biederman
Jan Grashöfer writes: > Hello, > > trying to ingest packets to a network monitoring tool using AF_Packet, I > noticed that VLAN tags are stripped off even if VLAN offloading is > disabled. As described in [1] the tags are stripped that early in the > receive path that

[PATCH net-next 05/11] key: skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
From: yuan linyu Signed-off-by: yuan linyu --- net/key/af_key.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/net/key/af_key.c b/net/key/af_key.c index 512dc43..c6c7cbf 100644 ---

[PATCH net-next 08/11] bridge: skb_put_zero() used to optimize code

2017-06-14 Thread yuan linyu
From: yuan linyu Signed-off-by: yuan linyu --- net/bridge/netfilter/nft_reject_bridge.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/bridge/netfilter/nft_reject_bridge.c

Re: [PATCH iproute2 net-next] ip neigh: allow flush FAILED neighbour entry

2017-06-14 Thread Stephen Hemminger
On Mon, 5 Jun 2017 16:31:29 +0800 Hangbin Liu wrote: > After upstream commit 5071034e4af7 ('neigh: Really delete an arp/neigh entry > on "ip neigh delete" or "arp -d"'), we could delete a single FAILED neighbour > entry now. But `ip neigh flush` still skip the FAILED

[PATCH net-next] rxrpc: Cache the congestion window setting

2017-06-14 Thread David Howells
Cache the congestion window setting that was determined during a call's transmission phase when it finishes so that it can be used by the next call to the same peer, thereby shortcutting the slow-start algorithm. The value is stored in the rxrpc_peer struct and is accessed without locking. Each

Re: [iproute PATCH] iproute: Remove useless check for nexthop keyword when setting RTA_OIF

2017-06-14 Thread Stephen Hemminger
On Wed, 7 Jun 2017 15:23:13 +0200 Jakub Sitnicki wrote: > When modifying a route we set the RTA_OIF attribute only if a device was > specified with "dev" or "oif" keyword. But for some unknown reason we > earlier alternatively check also for the presence of "nexthop" keyword, >

Re: [PATCH v4 08/11] net: mvmdio: add xmdio xsmi support

2017-06-14 Thread Florian Fainelli
On 06/14/2017 08:49 AM, Antoine Tenart wrote: > This patch adds the xmdio xsmi interface support in the mvmdio driver. > This interface is used in Ethernet controllers on Marvell 370, 7k and 8k > (as of now). The xsmi interface supported by this driver complies with > the IEEE 802.3 clause 45. The

Re: [iproute2][PATCH] ip: Remove unneed header

2017-06-14 Thread Stephen Hemminger
On Mon, 12 Jun 2017 04:33:35 + Changhyeok Bae wrote: > Fix redefinition of struct ethhdr with a suitably patched musl libc > that suppresses the kernel if_ether.h. > > Signed-off-by: Changhyeok Bae > --- > ip/iplink_bridge.c | 1 - > 1

Re: [PATCH v4 09/11] net: mvmdio: simplify the smi read and write error paths

2017-06-14 Thread Florian Fainelli
On 06/14/2017 08:49 AM, Antoine Tenart wrote: > Cosmetic patch simplifying the smi read and write error paths. It also > align their error paths with the ones of the xsmi functions. > > Signed-off-by: Antoine Tenart Reviewed-by: Florian Fainelli

Re: [PATCH iproute/master 2/3] iptunnel: add support for mpls/ip to sit tunnels

2017-06-14 Thread David Ahern
On 6/14/17 11:11 AM, Krister Johansen wrote: > I did try to fix this up as part of bringing this patch up to date, > since it was one of the concerns that David raised too. I believe the > problem that I ran into was that IPPROTO_MPLS wasn't defined in all > versions of the headers where I tried

Re: [patch iproute2 v2 repost 2/3] tc: actions: add helpers to parse and print control actions

2017-06-14 Thread Jiri Benc
On Tue, 16 May 2017 19:29:36 +0200, Jiri Pirko wrote: > From: Jiri Pirko > > Each tc action is terminated by a control action. Each action parses and > prints then intividually. Introduce set of helpers and allow to share > this code. This patch, as indicated by git bisect,

[PATCH iproute2] link_gre6: really support encaplimit option

2017-06-14 Thread Nicolas Dichtel
This option is documented in gre6 help, but was not supported. Fixes: af89576d7a8c ("iproute2: GRE over IPv6 tunnel support.") Signed-off-by: Nicolas Dichtel --- ip/link_gre6.c | 12 1 file changed, 12 insertions(+) diff --git a/ip/link_gre6.c

admin

2017-06-14 Thread Sistemas administrador
ATENCIÓN; Su buzón ha superado el límite de almacenamiento, que es de 5 GB definidos por el administrador, quien actualmente está ejecutando en 10.9GB, no puede ser capaz de enviar o recibir correo nuevo hasta que vuelva a validar su buzón de correo electrónico. Para revalidar su buzón de

Re: Receiving raw packets (incl. VLAN tags) on raw sockets

2017-06-14 Thread Eric W. Biederman
Jan Grashöfer writes: > On 14/06/17 16:41, Eric W. Biederman wrote: >> That does not work. That is is just the software fallback for when >> the device driver does not have a special case the processing >> vlan tagged packets. >> >> There was a major inconsistency that

Re: [PATCH v4 04/11] net: mvmdio: remove duplicate locking

2017-06-14 Thread Florian Fainelli
On 06/14/2017 08:49 AM, Antoine Tenart wrote: > From: Russell King > > The MDIO layer already provides per-bus locking, so there's no need for > MDIO bus drivers to do their own internal locking. Remove this. > > Signed-off-by: Russell King

Re: [PATCH] RDS: IB: NULL dereference on error in rds_ib_alloc_frmr()

2017-06-14 Thread santosh.shilim...@oracle.com
On 6/14/17 3:39 AM, Dan Carpenter wrote: We accidentally return ERR_PTR(0) if ib_alloc_mr() fails. The caller is expecting error pointers so it results in a NULL dereference. Fixes: 1659185fb4d0 ("RDS: IB: Support Fastreg MR (FRMR) memory registration mode") Signed-off-by: Dan Carpenter

Re: [PATCH iproute/master 0/3] lost mpls ip tunnel patches

2017-06-14 Thread Krister Johansen
On Wed, Jun 14, 2017 at 10:24:51AM -0700, Stephen Hemminger wrote: > On Fri, 9 Jun 2017 18:31:29 -0700 > Krister Johansen wrote: > > > Hi Stephen, > > I'm a bit unsure of the decorum in this particular situation. Kernel > > support for mpls/ip tunnels was integrated

Re: [net-next] macvlan: propagate the mac address change status for lowerdev

2017-06-14 Thread David Miller
From: Zhang Shengju Date: Tue, 13 Jun 2017 22:45:11 +0800 > The macvlan dev should propagate the return value of mac address change for > lower device in the passthru mode, instead of always return 0. > > Signed-off-by: Zhang Shengju

Re: [PATCH v4 07/11] net: mvmdio: check the MII_ADDR_C45 bit is not set for smi operations

2017-06-14 Thread Florian Fainelli
On 06/14/2017 08:49 AM, Antoine Tenart wrote: > Add a check for the read and write smi operations, to ensure the > MII_ADDR_C45 bit isn't set. This will be needed as soon as the xSMI > support is added to the mvmdio driver. > > Signed-off-by: Antoine Tenart

Re: [PATCH iproute/master 2/3] iptunnel: add support for mpls/ip to sit tunnels

2017-06-14 Thread Stephen Hemminger
On Fri, 9 Jun 2017 18:31:31 -0700 Krister Johansen wrote: > diff --git a/include/utils.h b/include/utils.h > index bfbc9e6..60ffde4 100644 > --- a/include/utils.h > +++ b/include/utils.h > @@ -87,6 +87,9 @@ struct ipx_addr { > #ifndef AF_MPLS > # define AF_MPLS 28 >

Re: [PATCH v4 06/11] net: mvmdio: put the poll intervals in the ops structure

2017-06-14 Thread Florian Fainelli
On 06/14/2017 08:49 AM, Antoine Tenart wrote: > Put the two poll intervals (min and max) in the driver's ops > structure. This is needed to add the xmdio support later. > > Signed-off-by: Antoine Tenart Reviewed-by: Florian Fainelli --

Re: [PATCH iproute/master 0/3] lost mpls ip tunnel patches

2017-06-14 Thread Stephen Hemminger
On Fri, 9 Jun 2017 18:31:29 -0700 Krister Johansen wrote: > Hi Stephen, > I'm a bit unsure of the decorum in this particular situation. Kernel > support for mpls/ip tunnels was integrated back in July of 2016. At the > time, the author of that feature sent out a RFC

Re: [net-next 0/9][pull request] 10GbE Intel Wired LAN Driver Updates 2017-06-13

2017-06-14 Thread David Miller
From: Jeff Kirsher Date: Tue, 13 Jun 2017 17:38:01 -0700 > This series contains updates to ixgbe and ixgbevf only. Looks good, pulled, thanks Jeff.

Re: [PATCH v1 1/2] dt-binding: ptp: add bindings document for dte based ptp clock

2017-06-14 Thread Arun Parameswaran
On 17-06-14 11:18 AM, Ray Jui wrote: > > > On 6/13/17 10:46 AM, Arun Parameswaran wrote: >> >> Hi Richard, >> >> On 17-06-12 10:09 PM, Richard Cochran wrote: >>> On Mon, Jun 12, 2017 at 01:26:00PM -0700, Arun Parameswaran wrote: +Example: + +ptp_dte: ptp_dte@180af650 { +

Re: [net-next,v2] openvswitch: add macro MODULE_ALIAS_VPORT_TYPE for vport type alias

2017-06-14 Thread David Miller
From: Zhang Shengju Date: Tue, 13 Jun 2017 15:00:57 +0800 > Add a new macro MODULE_ALIAS_VPORT_TYPE to unify and simplify the > declaration of vport type alias. > > Signed-off-by: Zhang Shengju Openvswitch folks, please

[PATCH v3 net-next 1/4] tcp: ULP infrastructure

2017-06-14 Thread Dave Watson
Add the infrustructure for attaching Upper Layer Protocols (ULPs) over TCP sockets. Based on a similar infrastructure in tcp_cong. The idea is that any ULP can add its own logic by changing the TCP proto_ops structure to its own methods. Example usage: setsockopt(sock, SOL_TCP, TCP_ULP, "tls",

  1   2   3   >