Re: [PATCH] net:ppp: replace too strict capability restriction on opening /dev/ppp

2016-06-18 Thread Shanker Wang
> 在 2016年6月19日,07:24,David Miller 写道: > > From: Shanker Wang > Date: Sun, 19 Jun 2016 07:21:27 +0200 > >> This patch removes the check for CAP_NET_ADMIN in the initial namespace >> when opening /dev/open. Instead, CAP_NET_ADMIN is checked in the user >> namespace the net namespace was created

Re: [PATCH] net:ppp: replace too strict capability restriction on opening /dev/ppp

2016-06-18 Thread David Miller
From: Shanker Wang Date: Sun, 19 Jun 2016 07:21:27 +0200 > This patch removes the check for CAP_NET_ADMIN in the initial namespace > when opening /dev/open. Instead, CAP_NET_ADMIN is checked in the user > namespace the net namespace was created so that /dev/ppp cat get opened > in a unprivileged

[PATCH] net:ppp: replace too strict capability restriction on opening /dev/ppp

2016-06-18 Thread Shanker Wang
This patch removes the check for CAP_NET_ADMIN in the initial namespace when opening /dev/open. Instead, CAP_NET_ADMIN is checked in the user namespace the net namespace was created so that /dev/ppp cat get opened in a unprivileged container. Cc: Hannes Frederic Sowa Cc: Richard Weinberger Cc: G

Re: [PATCH v2 net-next 0/5] ipv6: better traceroute support in sit and gre

2016-06-18 Thread David Miller
From: Eric Dumazet Date: Sat, 18 Jun 2016 21:52:01 -0700 > In commit ca15a078bd90 ("sit: generate icmpv6 error when receiving icmpv4 > error"), Oussama Ghorbel added minimal support for SIT tunnels to > generate ICMPv6 messages when receiving ICMPv4 messages. > > This patch series extends this t

[PATCH v2 net-next 1/5] ipv6: icmp: add a force_saddr param to icmp6_send()

2016-06-18 Thread Eric Dumazet
SIT or GRE tunnels might want to translate an IPV4 address into a v4mapped one when translating ICMP to ICMPv6. This patch adds the parameter to icmp6_send() but does not change icmpv6_send() signature. Signed-off-by: Eric Dumazet --- include/linux/icmpv6.h | 3 ++- net/ipv6/icmp.c| 7 +

[PATCH v2 net-next 4/5] gre: better support for ICMP messages for gre+ipv6

2016-06-18 Thread Eric Dumazet
ipgre_err() can call ip6_err_gen_icmpv6_unreach() for proper support of ipv4+gre+icmp+ipv6+... frames, used for example by traceroute/mtr. Signed-off-by: Eric Dumazet --- include/net/ip_tunnels.h | 1 + net/ipv4/gre_demux.c | 1 + net/ipv4/ip_gre.c| 6 ++ 3 files changed, 8 inser

[PATCH v2 net-next 3/5] ipv6: translate ICMP_TIME_EXCEEDED to ICMPV6_TIME_EXCEED

2016-06-18 Thread Eric Dumazet
For better traceroute/mtr support for SIT and GRE tunnels, we translate IPV4 ICMP ICMP_TIME_EXCEEDED to ICMPV6_TIME_EXCEED We also have to translate the IPv4 source IP address of ICMP message to IPv6 v4mapped. Signed-off-by: Eric Dumazet --- include/linux/icmpv6.h | 2 +- net/ipv6/icmp.c

[PATCH v2 net-next 5/5] ipv6: RFC 4884 partial support for SIT/GRE tunnels

2016-06-18 Thread Eric Dumazet
When receiving an ICMPv4 message containing extensions as defined in RFC 4884, and translating it to ICMPv6 at SIT or GRE tunnel, we need some extra manipulation in order to properly forward the extensions. This patch only takes care of Time Exceeded messages as they are the ones that typically ca

[PATCH v2 net-next 0/5] ipv6: better traceroute support in sit and gre

2016-06-18 Thread Eric Dumazet
In commit ca15a078bd90 ("sit: generate icmpv6 error when receiving icmpv4 error"), Oussama Ghorbel added minimal support for SIT tunnels to generate ICMPv6 messages when receiving ICMPv4 messages. This patch series extends this to GRE tunnels. It also adds support for ICMPV6_TIME_EXCEED. Partial

[PATCH v2 net-next 2/5] ip6: move ipip6_err_gen_icmpv6_unreach()

2016-06-18 Thread Eric Dumazet
We want to use this helper from GRE as well, so this is the time to move it in net/ipv6/icmp.c Also add a @nhs parameter, since SIT and GRE have different values for the header(s) to skip. Signed-off-by: Eric Dumazet --- include/linux/icmpv6.h | 1 + net/ipv6/icmp.c| 39 +++

Re: [PATCH net-next 5/5] ipv6: RFC 4884 partial support for SIT/GRE tunnels

2016-06-18 Thread Eric Dumazet
On Sat, 2016-06-18 at 21:26 -0700, David Miller wrote: > The golden rule is: "the memory areas must not overlap" > > If it can be optimized into calling a memcpy, the memmove > implementation will do so. Of course, I guess I have been working on x86 for too long ;)

Re: [PATCH] net: rds: fix coding style issues

2016-06-18 Thread David Miller
From: Joshua Houghton Date: Sat, 18 Jun 2016 15:46:31 + > Fix coding style issues in the following files: > > ib_cm.c: add space > loop.c: convert spaces to tabs > sysctl.c: add space > tcp.h:convert spaces to tabs > tcp_connect.c:remove extra indentation in switch sta

Re: [PATCH net-next 5/5] ipv6: RFC 4884 partial support for SIT/GRE tunnels

2016-06-18 Thread David Miller
From: Eric Dumazet Date: Sat, 18 Jun 2016 21:03:29 -0700 > On Sat, 2016-06-18 at 20:54 -0700, David Miller wrote: >> From: Eric Dumazet >> Date: Sat, 18 Jun 2016 16:26:40 -0700 >> >> > @@ -588,12 +594,26 @@ int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, >> > int nhs, int type) >> >

Re: [PATCH net-next 5/5] ipv6: RFC 4884 partial support for SIT/GRE tunnels

2016-06-18 Thread Eric Dumazet
On Sat, 2016-06-18 at 20:54 -0700, David Miller wrote: > From: Eric Dumazet > Date: Sat, 18 Jun 2016 16:26:40 -0700 > > > @@ -588,12 +594,26 @@ int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, > > int nhs, int type) > > skb2->dev = rt->dst.dev; > > > > ipv6_addr_set_v4mapped

Re: PATCH 1/1] AX.25: Close socket connection on session completion

2016-06-18 Thread David Miller
From: Basil Gunn Date: Thu, 16 Jun 2016 09:42:30 -0700 > A socket connection made in ax.25 is not closed when session is > completed. The heartbeat timer is stopped prematurely and this is > where the socket gets closed. Allow heatbeat timer to run to close > socket. Symptom occurs in kernels >=

Re: [PATCH net-next 5/5] ipv6: RFC 4884 partial support for SIT/GRE tunnels

2016-06-18 Thread David Miller
From: Eric Dumazet Date: Sat, 18 Jun 2016 16:26:40 -0700 > @@ -588,12 +594,26 @@ int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int > nhs, int type) > skb2->dev = rt->dst.dev; > > ipv6_addr_set_v4mapped(ip_hdr(skb)->saddr, &temp_saddr); > + > + if (data_len) { > +

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

2016-06-18 Thread pravin shelar
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:08 PM, Simon Horman >> wrote: >> > On Thu, Jun 02, 2016 at 03:01:47PM -0700, pravin shelar wrote: >> >> On Wed, Jun 1, 2016 at 11:24 PM, Simon Horman

Re: PATCH 1/1] AX.25: Close socket connection on session completion

2016-06-18 Thread David Ranch
Hello David, I don't have a specific commit # for you at the moment but there have been a few serious regressions since 4.1.x. When new code gets commited, are there any systems to run regession tests on? I'd be willing to build up a pair of VMs that can be run with scripts to verify say basi

[PATCH] ixgbe: Fix minor typo while freeing irq

2016-06-18 Thread Babu Moger
The array subscript increments after the execution of the statement. So there is no issue here. However it helps to read the code better. Signed-off-by: Babu Moger --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/

[PATCH] brcmfmac: add missing break when deleting P2P_DEVICE

2016-06-18 Thread Rafał Miłecki
We obviously don't want to fall through in that switch. With this change 1) We wait for event (triggered by p2p_disc) as expected 2) We remove interface manually on timeout 3) We return 0 on success instead of -ENOTSUPP Signed-off-by: Rafał Miłecki --- drivers/net/wireless/broadcom/brcm80211/brc

[PATCH] net:ppp: replace too strict capability restriction on opening /dev/ppp

2016-06-18 Thread Shanker Wang
This patch removes the check for CAP_NET_ADMIN in the initial namespace when opening /dev/open. Instead, CAP_NET_ADMIN is checked in the user namespace the net namespace was created so that /dev/ppp cat get opened in a unprivileged container. Cc: Hannes Frederic Sowa Cc: Richard Weinberger Cc: G

[PATCH net-next 2/5] ip6: move ipip6_err_gen_icmpv6_unreach()

2016-06-18 Thread Eric Dumazet
We want to use this helper from GRE as well, so this is the time to move it in net/ipv6/icmp.c Also add a @nhs parameter, since SIT and GRE have different values for the header(s) to skip. Signed-off-by: Eric Dumazet --- include/linux/icmpv6.h | 1 + net/ipv6/icmp.c| 39 +++

[PATCH net-next 5/5] ipv6: RFC 4884 partial support for SIT/GRE tunnels

2016-06-18 Thread Eric Dumazet
When receiving an ICMPv4 message containing extensions as defined in RFC 4884, and translating it to ICMPv6 at SIT or GRE tunnel, we need some extra manipulation in order to properly forward the extensions. This patch only takes care of Time Exceeded messages as they are the ones that typically ca

[PATCH net-next 4/5] gre: better support for ICMP messages for gre+ipv6

2016-06-18 Thread Eric Dumazet
ipgre_err() can call ip6_err_gen_icmpv6_unreach() for proper support of ipv4+gre+icmp+ipv6+... frames, used for example by traceroute/mtr. Signed-off-by: Eric Dumazet --- include/net/ip_tunnels.h | 1 + net/ipv4/gre_demux.c | 1 + net/ipv4/ip_gre.c| 6 ++ 3 files changed, 8 inser

[PATCH net-next 3/5] ipv6: translate ICMP_TIME_EXCEEDED to ICMPV6_TIME_EXCEED

2016-06-18 Thread Eric Dumazet
For better traceroute/mtr support for SIT and GRE tunnels, we translate IPV4 ICMP ICMP_TIME_EXCEEDED to ICMPV6_TIME_EXCEED We also have to translate the IPv4 source IP address of ICMP message to IPv6 v4mapped. Signed-off-by: Eric Dumazet --- include/linux/icmpv6.h | 2 +- net/ipv6/icmp.c

[PATCH net-next 1/5] ipv6: icmp: add a force_saddr param to icmp6_send()

2016-06-18 Thread Eric Dumazet
SIT or GRE tunnels might want to translate an IPV4 address into a v4mapped one when translating ICMP to ICMPv6. This patch adds the parameter to icmp6_send() but does not change icmpv6_send() signature. Signed-off-by: Eric Dumazet --- include/linux/icmpv6.h | 3 ++- net/ipv6/icmp.c| 7 +

[PATCH net-next 0/5] ipv6: better traceroute support in sit and gre

2016-06-18 Thread Eric Dumazet
In commit ca15a078bd90 ("sit: generate icmpv6 error when receiving icmpv4 error"), Oussama Ghorbel added minimal support for SIT tunnels to generate ICMPv6 messages when receiving ICMPv4 messages. This patch series extends this to GRE tunnels. It also adds support for ICMPV6_TIME_EXCEED. Partial

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-18 Thread Henrik Austad
On Sat, Jun 18, 2016 at 02:22:13PM +0900, Takashi Sakamoto wrote: > Hi, Hi Takashi, You raise a lot of valid points and questions, I'll try to answer them. edit: this turned out to be a somewhat lengthy answer. I have tried to shorten it down somewhere. it is getting late and I'm getting increa

Re: [PATCH RFC 1/2] brcmfmac: remove interface before notifying listener

2016-06-18 Thread Rafał Miłecki
On 18 June 2016 at 23:58, Rafał Miłecki wrote: > On 18 June 2016 at 21:26, Arend van Spriel > wrote: >> On 18-06-16 20:18, Rafał Miłecki wrote: >>> So far when receiving event about in-firmware-interface removal we were >>> notifying our listener and afterwards we were removing Linux interface.

Re: [PATCHv2 2/2] mt7601u: use linux/bitfield.h

2016-06-18 Thread kbuild test robot
Hi, [auto build test ERROR on wireless-drivers-next/master] [also build test ERROR on v4.7-rc3 next-20160617] [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/Jakub-Kicinski/register-field-manipul

Re: [PATCH RFC 1/2] brcmfmac: remove interface before notifying listener

2016-06-18 Thread Rafał Miłecki
On 18 June 2016 at 21:26, Arend van Spriel wrote: > On 18-06-16 20:18, Rafał Miłecki wrote: >> So far when receiving event about in-firmware-interface removal we were >> notifying our listener and afterwards we were removing Linux interface. >> > > [snip] > >> >> diff --git a/drivers/net/wireless/

Re: [PATCH v3 net-next v3 13/14] net: dsa: mv88e6xxx: add addressing mode to info

2016-06-18 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: >> +struct mv88e6xxx_smi_ops { >> +int (*read)(struct mii_bus *bus, int sw_addr, >> +int addr, int reg, u16 *val); >> +int (*write)(struct mii_bus *bus, int sw_addr, >> + int addr, int reg, u16 val); >> +}; > > Hi Vivien > >

[PATCH 2/2] net: ethernet: nb8800: use phy_ethtool_{get|set}_link_ksettings

2016-06-18 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/aurora/nb8800.c | 24 ++-- 1 files changed, 2 insertions(+), 22 deletions(-) d

[PATCH 1/2] net: ethernet: nb8800: use phydev from struct net_device

2016-06-18 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phydev in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet

Re: [PATCH v3 net-next v3 14/14] net: dsa: mv88e6xxx: add port base address to info

2016-06-18 Thread Andrew Lunn
On Fri, Jun 17, 2016 at 08:07:36PM -0400, Vivien Didelot wrote: > The switch ID is located at address 0x3 of every Port Registers bank. > > But not all Marvell switches have their Port Registers SMI Addresses > starting at 0x10. 88E6060 starts at 0x8 and 88E6390 starts at 0x0. > > Add this data i

Re: [PATCH v3 net-next v3 13/14] net: dsa: mv88e6xxx: add addressing mode to info

2016-06-18 Thread Andrew Lunn
> +struct mv88e6xxx_smi_ops { > + int (*read)(struct mii_bus *bus, int sw_addr, > + int addr, int reg, u16 *val); > + int (*write)(struct mii_bus *bus, int sw_addr, > + int addr, int reg, u16 val); > +}; Hi Vivien I still think this API should be based on

Re: [PATCH v3 net-next v3 12/14] net: dsa: mv88e6xxx: pass compatible info

2016-06-18 Thread Andrew Lunn
On Fri, Jun 17, 2016 at 08:07:34PM -0400, Vivien Didelot wrote: > After allocating the chip structure, pass it a compatible info pointer. > > The compatible info structure will be used later to describe how to > access the switch registers and where to read the switch ID. > > For the standard MDI

Re: [PATCH v3 net-next v3 11/14] net: dsa: mv88e6xxx: add detection helper

2016-06-18 Thread Andrew Lunn
On Fri, Jun 17, 2016 at 08:07:33PM -0400, Vivien Didelot wrote: > Extract the common detection code which assigns the info structure to > the chip given the read switch ID. > > Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn Andrew

Re: [PATCH v3 net-next v3 10/14] net: dsa: mv88e6xxx: add SMI init helper

2016-06-18 Thread Andrew Lunn
On Fri, Jun 17, 2016 at 08:07:32PM -0400, Vivien Didelot wrote: > Add an helper function to isolate SMI specific assignations and checks. I don't think you meant assignations. Assignments? Otherwise Reviewed-by: Andrew Lunn Andrew

Re: [PATCH v3 net-next v3 09/14] net: dsa: mv88e6xxx: add chip allocation helper

2016-06-18 Thread Andrew Lunn
On Fri, Jun 17, 2016 at 08:07:31PM -0400, Vivien Didelot wrote: > Add an helper function to allocate the chip structure at the beginning > of the probe functions. It will be used to initialize the SMI access. > > Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn Andrew

Re: [PATCH v3 net-next v3 08/14] net: dsa: mv88e6xxx: rename smi_mutex to reg_lock

2016-06-18 Thread Andrew Lunn
On Fri, Jun 17, 2016 at 08:07:30PM -0400, Vivien Didelot wrote: > The chip smi_mutex mutex is used to protect the access to the internal > switch registers, not only the Multi-chip Addressing Mode, as commented. > > Other registers access (like management frames) may use this mutex. > > Since we

Re: [PATCH v3 net-next v3 07/14] net: dsa: mv88e6xxx: remove table args in info lookup

2016-06-18 Thread Andrew Lunn
On Fri, Jun 17, 2016 at 08:07:29PM -0400, Vivien Didelot wrote: > The mv88e6xxx_table array and the mv88e6xxx_lookup_info function are > static, so remove the table and size arguments from the lookup function. > > Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn Andrew

Re: [PATCH v3 net-next v3 06/14] net: dsa: mv88e6xxx: use gpio get optional variant

2016-06-18 Thread Andrew Lunn
On Fri, Jun 17, 2016 at 08:07:28PM -0400, Vivien Didelot wrote: > Use the optional variant to get the reset GPIO line, instead of checking > for the -ENOENT error. > > Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn Andrew

Re: [PATCH RFC 2/2] brcmfmac: support removing AP interfaces with "interface_remove"

2016-06-18 Thread Arend van Spriel
On 18-06-16 20:18, Rafał Miłecki wrote: > New firmwares (e.g. 10.10.69.36 for BCM4366) support "interface_remove" > for removing interfaces. Try to use this method on cfg80211 request. In > case of older firmwares (e.g. 7.35.177.56 for BCM43602 as I tested) this > will just result in firmware rejec

Re: [PATCH RFC 1/2] brcmfmac: remove interface before notifying listener

2016-06-18 Thread Arend van Spriel
On 18-06-16 20:18, Rafał Miłecki wrote: > So far when receiving event about in-firmware-interface removal we were > notifying our listener and afterwards we were removing Linux interface. > [snip] > > diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c > b/drivers/net/wireless

[PATCH RFC 1/2] brcmfmac: remove interface before notifying listener

2016-06-18 Thread Rafał Miłecki
So far when receiving event about in-firmware-interface removal we were notifying our listener and afterwards we were removing Linux interface. This order was most likely a try to avoid a lockup. Removing in-firmware interface could be requested by a driver code holding rtnl lock. Such code waits

[PATCH RFC 2/2] brcmfmac: support removing AP interfaces with "interface_remove"

2016-06-18 Thread Rafał Miłecki
New firmwares (e.g. 10.10.69.36 for BCM4366) support "interface_remove" for removing interfaces. Try to use this method on cfg80211 request. In case of older firmwares (e.g. 7.35.177.56 for BCM43602 as I tested) this will just result in firmware rejecting command and this won't change any behavior.

Re: [PATCH] net: rds: fix coding style issues

2016-06-18 Thread Joshua Houghton
On Saturday, 18 June 2016 09:22:49 UTC santosh.shilim...@oracle.com wrote: > On 6/18/16 8:46 AM, Joshua Houghton wrote: > > Fix coding style issues in the following files: > > > > ib_cm.c: add space > > loop.c: convert spaces to tabs > > sysctl.c: add space > > tcp.h:convert

[PATCH] brcmfmac: include also core.h header in cfg80211.h

2016-06-18 Thread Rafał Miłecki
This header provides two inline functions using struct brcmf_if so we need core.h to avoid: drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h: In function ‘ndev_to_prof’: drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h:368:13: error: dereferencing pointer to incomplete type

Re: [PATCH] net: rds: fix coding style issues

2016-06-18 Thread santosh.shilim...@oracle.com
On 6/18/16 8:46 AM, Joshua Houghton wrote: Fix coding style issues in the following files: ib_cm.c: add space loop.c: convert spaces to tabs sysctl.c: add space tcp.h:convert spaces to tabs tcp_connect.c:remove extra indentation in switch statement tcp_recv.c: convert sp

Re: act_mirred: remove spinlock in fast path

2016-06-18 Thread Eric Dumazet
On Sat, 2016-06-18 at 11:24 -0400, Jamal Hadi Salim wrote: > On 16-06-18 11:16 AM, Eric Dumazet wrote: > > >> Given an update/replace of an action is such a rare occassion, what > >> is wrong with init doing a spin lock on existing action? > >> Sure, there is performance impact on fast path at tha

Re: act_mirred: remove spinlock in fast path

2016-06-18 Thread Jamal Hadi Salim
On 16-06-18 11:16 AM, Eric Dumazet wrote: Given an update/replace of an action is such a rare occassion, what is wrong with init doing a spin lock on existing action? Sure, there is performance impact on fast path at that point - but: as established update/replace is _a rare occassion_ ;-> The

Re: act_mirred: remove spinlock in fast path

2016-06-18 Thread Eric Dumazet
On Sat, 2016-06-18 at 09:45 -0400, Jamal Hadi Salim wrote: > On 16-06-17 06:03 PM, Eric Dumazet wrote: > > On Fri, Jun 17, 2016 at 2:59 PM, Cong Wang wrote: > > > >> Generally speaking I worry about we change multiple fields in a struct > >> meanwhile we could still read them any time in the middl

[PATCH net-next 1/2] net: simplify and make pkt_type_ok() available for other users

2016-06-18 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Suggested-by: Daniel Borkmann Signed-off-by: Jamal Hadi Salim --- include/linux/skbuff.h | 11 +++ net/netfilter/nft_meta.c | 9 + 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index dc0

[PATCH net-next 2/2] net sched actions: skbedit add support for mod-ing skb pkt_type

2016-06-18 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Extremely useful for setting packet type to host so i dont have to modify the dst mac address using pedit (which requires that i know the mac address) Example usage: tc filter add dev eth0 parent : protocol ip pref 9 u32 \ match ip src 5.5.5.5/32 \ flowid 1:5 action sk

[PATCH] net: rds: fix coding style issues

2016-06-18 Thread Joshua Houghton
Fix coding style issues in the following files: ib_cm.c: add space loop.c: convert spaces to tabs sysctl.c: add space tcp.h:convert spaces to tabs tcp_connect.c:remove extra indentation in switch statement tcp_recv.c: convert spaces to tabs tcp_send.c: convert spaces to

Re: [BUG] act_ife: sleeping functions called in atomic context

2016-06-18 Thread Jamal Hadi Salim
On 16-06-17 01:31 PM, Cong Wang wrote: My patch is against -net. (I see you already figured out your patch is missing in -net-next.) Ok, should have re-read this email before working on the patch;-> Or are you suggesting to rebase it for -net-next? I think it fixes some real bug so -net is

[PATCH 2/2] net: ethernet: altera_tse: use phy_ethtool_{get|set}_link_ksettings

2016-06-18 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/altera/altera_tse_ethtool.c | 24 + 1 files changed, 2 insertions(+), 22 deleti

[PATCH 1/2] net: ethernet: altera_tse: use phydev from struct net_device

2016-06-18 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phydev in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet

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

2016-06-18 Thread Jamal Hadi Salim
On 16-06-18 04:00 AM, Jiri Pirko wrote: Fri, Jun 17, 2016 at 07:12:22PM CEST, f.faine...@gmail.com wrote: Yep. And I believe that for offloaded forwarding, this tools should see hw counters, as they show what is going on in real. If your NIC is offloading packets today, these tools typically

Re: [PATCH v2 net-next 0/3] net sched action timestamp improvements

2016-06-18 Thread Jamal Hadi Salim
On 16-06-18 12:31 AM, David Miller wrote: From: Jamal Hadi Salim Date: Fri, 17 Jun 2016 07:15:27 -0400 Ok, mystery solved. Dave, this patch series is missing from current net-next. Then what is: commit 53eb440f4ada034ea43b295891feec3df0fa7a29 /blink, blink sorry ;-> I should have pulled b

Re: act_mirred: remove spinlock in fast path

2016-06-18 Thread Jamal Hadi Salim
On 16-06-17 06:03 PM, Eric Dumazet wrote: On Fri, Jun 17, 2016 at 2:59 PM, Cong Wang wrote: Generally speaking I worry about we change multiple fields in a struct meanwhile we could still read them any time in the middle, we may get them correct for some easy case, but it is hard to insure the

Re: mwifiex: fix link error against sdio

2016-06-18 Thread Kalle Valo
Arnd Bergmann wrote: > Calling sdio_claim_host() from the interface independent part of > the mwifiex driver is not only a layering violation, but also causes > a link error if MMC support is disabled, or if CONFIG_MMC=m > and CONFIG_MWIFIEX=y: > > drivers/net/built-in.o: In function `mwifiex_fw_

[PATCH 2/2] net: ethernet: sun4i-emac: use phy_ethtool_{get|set}_link_ksettings

2016-06-18 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/allwinner/sun4i-emac.c | 24 ++-- 1 files changed, 2 insertions(+), 22 deletion

[PATCH 1/2] net: ethernet: sun4i-emac: use phydev from struct net_device

2016-06-18 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phydev in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet

[patch 3/3 -mainline] liquidio: off by one in liquidio_set_mcast_list()

2016-06-18 Thread Dan Carpenter
The nctrl.udd[] array has 32 elements of size u64. Imagine that netdev_mc_count() returns more than 32. That means "mc_count" is 32. On the last iteration through the loop we have mc == &nctrl.udd[32] so we're writing one element beyond the end of the array. Fixes: f21fb3ed364b ('Add support of

[patch 2/3] liquidio: remove an unused variable

2016-06-18 Thread Dan Carpenter
We don't use "i" in this function. Signed-off-by: Dan Carpenter diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c b/drivers/net/ethernet/cavium/liquidio/lio_main.c index 715ddfa..1126422 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_main.c +++ b/drivers/net/ethernet/cavium/li

[patch 1/3 -next] liquidio: a couple indenting tweaks

2016-06-18 Thread Dan Carpenter
Remove a stray space character and fix an if statement that wasn't indented. Signed-off-by: Dan Carpenter --- Speaking of style issues, this whole file follows return 1 on error and 0 on success. It was confusing for me. It's not too late to change it to use correct error codes. ;) diff --git

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

2016-06-18 Thread Dan Carpenter
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 diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c index 47fb167..e11e4d7 100644 --- a/net/rxrpc/inpu

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

2016-06-18 Thread Jiri Pirko
Fri, Jun 17, 2016 at 07:12:22PM CEST, f.faine...@gmail.com wrote: >On 06/17/2016 08:42 AM, Jiri Pirko wrote: >> Fri, Jun 17, 2016 at 05:35:53PM CEST, d...@cumulusnetworks.com wrote: >>> On 6/17/16 8:54 AM, Jamal Hadi Salim wrote: On 16-06-17 10:05 AM, Jiri Pirko wrote: > Fri, Jun 17, 2016