Re: [PATCH net 1/1] drivers/net/usb: add device id for NVIDIA Tegra USB 3.0 Ethernet

2015-07-08 Thread David Miller
From: Zheng Liu Date: Tue, 7 Jul 2015 13:54:12 -0700 > This device is sold as 'NVIDIA Tegra USB 3.0 Ethernet'. > Chipset is RTL8153 and works with r8152. > > Signed-off-by: Zheng Liu Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message

Re: [PATCH] 3c59x: Fix shared IRQ handling

2015-07-08 Thread David Miller
From: Denys Vlasenko Date: Tue, 7 Jul 2015 20:48:55 +0200 > As its first order of business, boomerang_interrupt() checks whether > the device really has any pending interrupts. If it does not, > it does nothing and returns, but it still returns IRQ_HANDLED. > > This is wrong: interrupt was not

Re: [PATCH] vmxnet3: prevent receive getting out of sequence on napi poll

2015-07-08 Thread David Miller
From: Neil Horman Date: Tue, 7 Jul 2015 14:02:18 -0400 > vmxnet3's current napi path is built to count every rx descriptor we recieve, > and use that as a count of the napi budget. That means its possible to return > from a napi poll halfway through recieving a fragmented packet accross > mult

Re: [PATCH net-next v2] ipv4: add support for linkdown sysctl to netconf

2015-07-08 Thread David Miller
From: Andy Gospodarek Date: Tue, 7 Jul 2015 13:56:57 -0400 > This kernel patch exports the value of the new > ignore_routes_with_linkdown via netconf. > > v2: changes to notify userspace via netlink when sysctl values change > and proposed for 'net' since this could be considered a bugfix > >

Re: Fighting out-of-order reception with RPS?

2015-07-08 Thread Holger Schurig
> and has to be done by hand depending on where the CAN interfaces > are attached to the system. No ... udev rules rock! :-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/

Re: [patch iproute2] iproute2: ipa: show switch id

2015-07-08 Thread Jiri Pirko
Wed, Jul 08, 2015 at 11:29:42PM CEST, dsah...@gmail.com wrote: >On 7/8/15 9:08 AM, Jiri Pirko wrote: >>We forgot to include this patch somehow. So do it now. >> >>Signed-off-by: Jiri Pirko >>--- >> ip/ipaddress.c | 8 >> 1 file changed, 8 insertions(+) >> >>diff --git a/ip/ipaddress.c b/

Re: [patch iproute2] iproute2: ipa: show switch id

2015-07-08 Thread Jiri Pirko
Thu, Jul 09, 2015 at 03:05:10AM CEST, step...@networkplumber.org wrote: >On Wed, 8 Jul 2015 17:08:18 +0200 >Jiri Pirko wrote: > >> >> +if (tb[IFLA_PHYS_SWITCH_ID]) { >> +SPRINT_BUF(b1); >> +fprintf(fp, "switchid %s ", >> +hexstring_n2a(RTA_DATA(tb

Re: [PATCH] mwifiex: drop condition with no effect

2015-07-08 Thread Nicholas Mc Guire
; --- > > > > If dropping the if/else is not the right thing to do then commit > > acebe8c10a6e "mwifiex: change dbg print func to mwifiex_dbg" probably > > needs a review as well. > > > > Patch was compile tested with x86_64_defconfig + CONFIG_M

Re: [PATCH net-next 5/5] switchdev: update documentation for offload_fwd_mark

2015-07-08 Thread Scott Feldman
On Wed, Jul 8, 2015 at 9:27 PM, Simon Horman wrote: > On Wed, Jul 08, 2015 at 04:16:43PM -0700, sfel...@gmail.com wrote: >> From: Scott Feldman >> >> Signed-off-by: Scott Feldman >> --- >> Documentation/networking/switchdev.txt | 14 -- >> 1 file changed, 12 insertions(+), 2 delet

Re: [PATCH net-next] rocker: add change MTU support

2015-07-08 Thread Jiri Pirko
Thu, Jul 09, 2015 at 01:06:47AM CEST, sfel...@gmail.com wrote: >From: Scott Feldman > >Implement ndo_change_mtu: on MTU change, reallocate Rx ring bufs and signal >HW of new port MTU value. > >Signed-off-by: Scott Feldman Acked-by: Jiri Pirko -- To unsubscribe from this list: send the line "uns

Re: Fighting out-of-order reception with RPS?

2015-07-08 Thread Oliver Hartkopp
On 08.07.2015 23:17, Tom Herbert wrote: On Wed, Jul 8, 2015 at 10:49 AM, Oliver Hartkopp wrote: (..) When receiving CAN frames from a specific CAN network interface (e.g. can0) the frames are sporadically out-of-order on SMP systems like my Core i7 laptop with 4 CPUs. This out-of-order recept

Re: [PATCH/RFC net-next] rocker: forward packets to CPU when a port in promiscuous mode

2015-07-08 Thread John Fastabend
On 15-07-08 09:25 PM, Simon Horman wrote: > This change allows the CPU to see all packets seen by a port when the > netdev associated with the port is in promiscuous mode. > > This change was previously posted as part of a larger patch and in turn > patchset which also aimed to allow rocker interf

Re: [PATCH net-next 4/5] rocker: add offload_fwd_mark support

2015-07-08 Thread Scott Feldman
On Wed, Jul 8, 2015 at 9:26 PM, Simon Horman wrote: > Hi Scott, > > On Wed, Jul 08, 2015 at 04:16:42PM -0700, sfel...@gmail.com wrote: >> From: Scott Feldman >> >> If device flags ingress packet as "fwd offload", mark the >> skb->offlaod_fwd_mark using the ingress port's dev->offlaod_fwd_mark. T

Re: [PATCH net] net: bcmgenet: fix accounting of packet drops vs errors

2015-07-08 Thread Florian Fainelli
Le 07/08/15 18:55, Petri Gynther a écrit : > bcmgenet driver needs to separate packet drops from packet errors. > > When the driver has to drop a *good* packet, due to lack of buffers or > replacement skbs, increment only dev->stats.[rx|tx]_dropped. > > When the driver encounters a bad Rx packet

Re: [PATCH] net: systemport: Use eth_hw_addr_random

2015-07-08 Thread Florian Fainelli
Le 07/07/15 22:19, Vaishali Thakkar a écrit : > Use eth_hw_addr_random() instead of calling random_ether_addr(). > Here, this change is setting addr_assign_type to NET_ADDR_RANDOM. > > The Coccinelle semantic patch that performs this transformation > is as follows: > > @@ > identifier a,b; > @@ >

[PATCH] neterion: s2io: Use module_pci_driver

2015-07-08 Thread Vaishali Thakkar
Use module_pci_driver for drivers whose init and exit functions only register and unregister, respectively. A simplified version of the Coccinelle semantic patch that performs this transformation is as follows: @a@ identifier f, x; @@ -static f(...) { return pci_register_driver(&x); } @b depends

[PATCH/RFC net-next] rocker: forward packets to CPU when a port in promiscuous mode

2015-07-08 Thread Simon Horman
This change allows the CPU to see all packets seen by a port when the netdev associated with the port is in promiscuous mode. This change was previously posted as part of a larger patch and in turn patchset which also aimed to allow rocker interfaces to receive packets when not bridged. That probl

Re: [PATCH net-next 5/5] switchdev: update documentation for offload_fwd_mark

2015-07-08 Thread Simon Horman
On Wed, Jul 08, 2015 at 04:16:43PM -0700, sfel...@gmail.com wrote: > From: Scott Feldman > > Signed-off-by: Scott Feldman > --- > Documentation/networking/switchdev.txt | 14 -- > 1 file changed, 12 insertions(+), 2 deletions(-) > > diff --git a/Documentation/networking/switchdev

Re: [PATCH net-next 4/5] rocker: add offload_fwd_mark support

2015-07-08 Thread Simon Horman
Hi Scott, On Wed, Jul 08, 2015 at 04:16:42PM -0700, sfel...@gmail.com wrote: > From: Scott Feldman > > If device flags ingress packet as "fwd offload", mark the > skb->offlaod_fwd_mark using the ingress port's dev->offlaod_fwd_mark. This > will be the hint to the kernel that this packet has alr

[PATCH net-next] cxgb4vf: Fix check to use new User Doorbell mechanism

2015-07-08 Thread Hariprasad Shenai
If we don't have access to the new User GTS (T5+), use the old doorbell mechanism; otherwise use the new BAR2 mechanism. Signed-off-by: Hariprasad Shenai --- drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/net/et

[PATCH] route: remove unsed variable in __mkroute_input

2015-07-08 Thread Masatake YAMATO
flags local variable in __mkroute_input is not used as a variable. Signed-off-by: Masatake YAMATO --- net/ipv4/route.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/ipv4/route.c b/net/ipv4/route.c index d0362a2..04c83de 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/rou

Re: [PATCH net-next] rocker: add change MTU support

2015-07-08 Thread Simon Horman
On Wed, Jul 08, 2015 at 04:06:47PM -0700, sfel...@gmail.com wrote: > From: Scott Feldman > > Implement ndo_change_mtu: on MTU change, reallocate Rx ring bufs and signal > HW of new port MTU value. > > Signed-off-by: Scott Feldman Looks good :) Reviewed-by: Simon Horman Tested-by: Simon Horma

[PATCH net] net: bcmgenet: fix accounting of packet drops vs errors

2015-07-08 Thread Petri Gynther
bcmgenet driver needs to separate packet drops from packet errors. When the driver has to drop a *good* packet, due to lack of buffers or replacement skbs, increment only dev->stats.[rx|tx]_dropped. When the driver encounters a bad Rx packet or Tx error, increment only dev->stats.[rx|tx]_errors

Re: [PATCH] net-ipvs: Delete an unnecessary check before the function call "module_put"

2015-07-08 Thread Simon Horman
On Thu, Jul 02, 2015 at 05:10:41PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 2 Jul 2015 17:00:14 +0200 > > The module_put() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detect

Re: [PATCH net-next v4 4/4] ip link: proto_down config and display.

2015-07-08 Thread Anuradha Karuppiah
On Wed, Jul 8, 2015 at 6:01 PM, Stephen Hemminger wrote: > On Wed, 8 Jul 2015 14:04:25 -0700 > anurad...@cumulusnetworks.com wrote: > >> From: Anuradha Karuppiah >> >> This patch adds support to set and display the IF_PROTOF_DOWN proto_flag. >> One example user space application setting this fla

Re: [PATCH net-next v4 1/4] net core: Add protodown support.

2015-07-08 Thread Anuradha Karuppiah
On Wed, Jul 8, 2015 at 4:07 PM, Jonathan Toppins wrote: > On 7/8/15 5:04 PM, anurad...@cumulusnetworks.com wrote: >> >> diff --git a/include/uapi/linux/if.h b/include/uapi/linux/if.h >> index 9cf2394..8d60fe7 100644 >> --- a/include/uapi/linux/if.h >> +++ b/include/uapi/linux/if.h >> @@ -156,6 +15

Re: [patch iproute2] iproute2: ipa: show switch id

2015-07-08 Thread Stephen Hemminger
On Wed, 8 Jul 2015 17:08:18 +0200 Jiri Pirko wrote: > > + if (tb[IFLA_PHYS_SWITCH_ID]) { > + SPRINT_BUF(b1); > + fprintf(fp, "switchid %s ", > + hexstring_n2a(RTA_DATA(tb[IFLA_PHYS_SWITCH_ID]), > + RTA_PAYLOAD(tb

Re: [PATCH net-next v4 4/4] ip link: proto_down config and display.

2015-07-08 Thread Stephen Hemminger
On Wed, 8 Jul 2015 14:04:25 -0700 anurad...@cumulusnetworks.com wrote: > From: Anuradha Karuppiah > > This patch adds support to set and display the IF_PROTOF_DOWN proto_flag. > One example user space application setting this flag is a multi-chassis > LAG application to handle split-brain situa

Re: [PATCH,v2 net-next] ipvs: skb_orphan in case of forwarding

2015-07-08 Thread Simon Horman
On Wed, Jul 08, 2015 at 11:17:52PM +0200, Eric Dumazet wrote: > On Wed, 2015-07-08 at 13:56 -0700, Alex Gartrell wrote: > > On Tue, Jul 7, 2015 at 6:33 PM, Simon Horman wrote: > > > > > Is there any possibility you could investigate which stable trees are > > > effected by this bug? > > > > Well

[PATCH net-next] ipv6: Nonlocal bind

2015-07-08 Thread Tom Herbert
Add support to allow non-local binds similar to how this was done for IPv4. Non-local binds are very useful in emulating the Internet in a box, etc. This add the ip_nonlocal_bind sysctl under ipv6. Testing: Set up nonlocal binding and receive routing on a host, e.g.: ip -6 rule add from ::/0 ii

Re: [PATCH v1 03/12] IB/ipoib: Return IPoIB devices matching connection parameters

2015-07-08 Thread Jason Gunthorpe
On Mon, Jun 22, 2015 at 03:42:32PM +0300, Haggai Eran wrote: > + if (net_dev) { > + ipoib_warn(priv, "matching net_dev found: %s\n", > +net_dev->name); Is that a debug print? > + default: > + dev_warn(&dev->dev, "dupl

Re: [Intel-wired-lan] [PATCH 0/3] rtnl_lock fixes

2015-07-08 Thread Jeff Kirsher
On Wed, 2015-07-08 at 16:15 -0700, David Miller wrote: > From: Vasily Averin > Date: Tue, 07 Jul 2015 18:53:28 +0300 > > > While investigation possible reasons of net_todo_list corruption > > on rhel6 based OpenVZ kernel I've found few places not fixed in > mainline. > > I'm assuming the Intel

Re: [PATCH net-next RESEND] test_bpf: extend tests for 32-bit endianness conversion

2015-07-08 Thread David Miller
From: Xi Wang Date: Wed, 8 Jul 2015 14:00:56 -0700 > Currently "ALU_END_FROM_BE 32" and "ALU_END_FROM_LE 32" do not test if > the upper bits of the result are zeros (the arm64 JIT had such bugs). > Extend the two tests to catch this. > > Acked-by: Daniel Borkmann > Acked-by: Alexei Starovoitov

Re: [PATCH net 1/1] sfc: Ensure down_write(&filter_sem) and up_write() are matched before calling efx_net_open()

2015-07-08 Thread David Miller
From: Shradha Shah Date: Wed, 8 Jul 2015 10:12:45 +0100 > This patch avoids the double up_write to filter_sem if > efx_net_open() fails. > > Resolves: 2d432f20d27c1813a2746008e16dd6ce12a14dc1 > > Signed-off-by: Shradha Shah Applied, thanks. -- To unsubscribe from this list: send the line "uns

Re: [PATCH 0/3] rtnl_lock fixes

2015-07-08 Thread David Miller
From: Vasily Averin Date: Tue, 07 Jul 2015 18:53:28 +0300 > While investigation possible reasons of net_todo_list corruption > on rhel6 based OpenVZ kernel I've found few places not fixed in mainline. I'm assuming the Intel folks will pick these up. -- To unsubscribe from this list: send the li

Re: [PATCH net-next 0/4] Cleanup, T6 changes and register range update

2015-07-08 Thread David Miller
From: Hariprasad Shenai Date: Tue, 7 Jul 2015 21:49:17 +0530 > This patch series adds the following: > Don't use entire L2T table, update register ranges for T6 adapter, > read stats for only available channels for T6 and enable cim_la dump for > T6 adapter also. > > This patch series has been

Re: [PATCH net-next] net: igb: implement high frequency periodic output signals

2015-07-08 Thread Jeff Kirsher
On Wed, 2015-07-08 at 16:11 -0700, David Miller wrote: > From: Richard Cochran > Date: Tue, 7 Jul 2015 16:41:42 +0200 > > > In addition to interrupt driven target time output events, the i210 > > also has two programmable clock outputs. These clocks support > periods > > between 16 nanoseconds

[PATCH net-next 3/5] switchdev: add offload_fwd_mark generator helper

2015-07-08 Thread sfeldma
From: Scott Feldman skb->offload_fwd_mark and dev->offload_fwd_mark are 32-bit and should be unique for device and may even be unique for a sub-set of ports within device, so add switchdev helper function to generate unique marks based on port's switch ID and group_ifindex. group_ifindex would t

[PATCH net-next 5/5] switchdev: update documentation for offload_fwd_mark

2015-07-08 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman --- Documentation/networking/switchdev.txt | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Documentation/networking/switchdev.txt b/Documentation/networking/switchdev.txt index c5d7ade..b864e47 100644 --- a/

[PATCH net-next 0/5] switchdev: avoid duplicate packet forwarding

2015-07-08 Thread sfeldma
From: Scott Feldman This patchset was previously submitted as RFC. No changes from the last version (v2) sent under RFC. Including RFC version history here for reference. RFC v2: - s/fwd_mark/offload_fwd_mark - use consume_skb rather than kfree_skb when dropping pkt on egress. - Use Jiri's

[PATCH net-next 2/5] net: add phys ID compare helper to test if two IDs are the same

2015-07-08 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman --- include/linux/netdevice.h |7 +++ net/switchdev/switchdev.c |8 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 7be616e1..89db412 100644 --- a/inc

[PATCH net-next 1/5] net: don't reforward packets already forwarded by offload device

2015-07-08 Thread sfeldma
From: Scott Feldman Just before queuing skb for xmit on port, check if skb has been marked by switchdev port driver as already fordwarded by device. If so, drop skb. A non-zero skb->offload_fwd_mark field is set by the switchdev port driver/device on ingress to indicate the skb has already been

[PATCH net-next 4/5] rocker: add offload_fwd_mark support

2015-07-08 Thread sfeldma
From: Scott Feldman If device flags ingress packet as "fwd offload", mark the skb->offlaod_fwd_mark using the ingress port's dev->offlaod_fwd_mark. This will be the hint to the kernel that this packet has already been forwarded by device to egress ports matching skb->offlaod_fwd_mark. For rocke

Re: [PATCH net] bridge: mdb: zero out the local br_ip variable before use

2015-07-08 Thread David Miller
From: Nikolay Aleksandrov Date: Tue, 7 Jul 2015 15:55:56 +0200 > Since commit b0e9a30dd669 ("bridge: Add vlan id to multicast groups") > there's a check in br_ip_equal() for a matching vlan id, but the mdb > functions were not modified to use (or at least zero it) so when an > entry was added it

Re: [PATCH net-next] net: igb: implement high frequency periodic output signals

2015-07-08 Thread David Miller
From: Richard Cochran Date: Tue, 7 Jul 2015 16:41:42 +0200 > In addition to interrupt driven target time output events, the i210 > also has two programmable clock outputs. These clocks support periods > between 16 nanoseconds and 140 milliseconds. This patch implements > the periodic output fu

Re: [net PATCH 1/1] drivers: net: cpsw: fix crash while accessing second slave ethernet interface

2015-07-08 Thread David Miller
From: Mugunthan V N Date: Tue, 7 Jul 2015 18:30:39 +0530 > When cpsw's number of slave is set to 1 in device tree and while > accessing second slave ndev and priv in cpsw_tx_interrupt(), > there is a kernel crash. This is due to cpsw_get_slave_priv() > not verifying number of slaves while retrivi

Re: [PATCH] net/tipc: initialize security state for new connection socket

2015-07-08 Thread David Miller
From: Stephen Smalley Date: Tue, 7 Jul 2015 09:43:45 -0400 > Calling connect() with an AF_TIPC socket would trigger a series > of error messages from SELinux along the lines of: > SELinux: Invalid class 0 > type=AVC msg=audit(1434126658.487:34500): avc: denied { } > for pid=292 comm="kworke

Re: [PATCH net-next v4 1/4] net core: Add protodown support.

2015-07-08 Thread Jonathan Toppins
On 7/8/15 5:04 PM, anurad...@cumulusnetworks.com wrote: diff --git a/include/uapi/linux/if.h b/include/uapi/linux/if.h index 9cf2394..8d60fe7 100644 --- a/include/uapi/linux/if.h +++ b/include/uapi/linux/if.h @@ -156,6 +156,12 @@ enum { IF_LINK_MODE_DORMANT, /* limit upward transition t

Re: [PATCH net 0/3] sfc: compat for lack of VADAPTOR_SET_MAC in adaptor_firmware <= 4.1.1.1023

2015-07-08 Thread David Miller
From: Shradha Shah Date: Tue, 7 Jul 2015 11:35:18 +0100 > This patch series resolves an incompatibility with legacy > firmware due to the lack of MC_CMD_VADAPTOR_SET_MAC in > adaptor_firmware <= 4.1.1.1023 > > Unless this patch series is applied there will be a compatibility > issue between the

Re: [PATCH v3] bonding: "primary_reselect" with "failure" is not working properly

2015-07-08 Thread David Miller
From: Mazhar Rana Date: Tue, 7 Jul 2015 15:04:50 +0530 > From: Mazhar Rana > > When "primary_reselect" is set to "failure", primary interface should > not become active until current active slave is down. But if we set first > member of bond device as a "primary" interface and "primary_reselec

[PATCH net-next] rocker: add change MTU support

2015-07-08 Thread sfeldma
From: Scott Feldman Implement ndo_change_mtu: on MTU change, reallocate Rx ring bufs and signal HW of new port MTU value. Signed-off-by: Scott Feldman --- drivers/net/ethernet/rocker/rocker.c | 61 ++ drivers/net/ethernet/rocker/rocker.h |1 + 2 files chan

Re: [PATCH] net: ec_bhf: Use module_pci_driver

2015-07-08 Thread David Miller
From: Vaishali Thakkar Date: Tue, 7 Jul 2015 12:32:54 +0530 > Use module_pci_driver for drivers whose init and exit functions > only register and unregister, respectively. > > A simplified version of the Coccinelle semantic patch that performs > this transformation is as follows: ... > Signed-o

Re: [PATCH net,v2] ip_tunnel: fix ipv4 pmtu check to honor inner ip header df

2015-07-08 Thread David Miller
From: Timo Teräs Date: Tue, 7 Jul 2015 08:34:13 +0300 > Frag needed should be sent only if the inner header asked > to not fragment. Currently fragmentation is broken if the > tunnel has df set, but df was not asked in the original > packet. The tunnel's df needs to be still checked to update >

Re: [PATCH net] rtnetlink: verify IFLA_VF_INFO attributes before passing them to driver

2015-07-08 Thread David Miller
From: Daniel Borkmann Date: Tue, 7 Jul 2015 00:07:52 +0200 > Jason Gunthorpe reported that since commit c02db8c6290b ("rtnetlink: make > SR-IOV VF interface symmetric"), we don't verify IFLA_VF_INFO attributes > anymore with respect to their policy, that is, ifla_vfinfo_policy[]. > > Before, th

Re: [PATCH net-next,v2] hv_netvsc: Add support to set MTU reservation from guest side

2015-07-08 Thread David Miller
From: Haiyang Zhang Date: Mon, 6 Jul 2015 14:11:37 -0700 > When packet encapsulation is in use, the MTU needs to be reduced for > headroom reservation. > The existing code takes the updated MTU value only from the host side. > But vSwitch extensions, such as Open vSwitch, require the flexibility

Re: [PATCH net-next] ifb: add multiqueue operation

2015-07-08 Thread David Miller
From: Eric Dumazet Date: Mon, 06 Jul 2015 22:05:28 +0200 > From: Eric Dumazet > > Add multiqueue capabilities to ifb netdevice. > > This removes last bottleneck for ingress when mq qdisc can be used > to shard load from multiple RX queues on physical device. > > Tested: ... > Signed-off-by: E

Re: [PATCH v5] net: fec: Ensure clocks are enabled while using mdio bus

2015-07-08 Thread David Miller
From: Andrew Lunn Date: Mon, 6 Jul 2015 20:34:55 +0200 > When a switch is attached to the mdio bus, the mdio bus can be used > while the interface is not open. If the IPG clock is not enabled, MDIO > reads/writes will simply time out. > > Add support for runtime PM to control this clock. Enable

Re: [PATCH net] amd-xgbe: Fix DMA API debug warning

2015-07-08 Thread David Miller
From: Tom Lendacky Date: Mon, 6 Jul 2015 11:57:37 -0500 > When running a kernel configured with CONFIG_DMA_API_DEBUG=y a warning > is issued: > DMA-API: device driver tries to sync DMA memory it has not allocated > > This warning is the result of mapping the full range of the Rx buffer > pages

Re: [PATCH net-next] cxgb4: Add PCI device ids for few more T5 and T6 adapters

2015-07-08 Thread David Miller
From: Hariprasad Shenai Date: Mon, 6 Jul 2015 22:38:34 +0530 > Signed-off-by: Hariprasad Shenai Applied, thank you. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordom

Re: [PATCH net] Revert "dev: set iflink to 0 for virtual interfaces"

2015-07-08 Thread David Miller
From: Nicolas Dichtel Date: Mon, 6 Jul 2015 17:25:10 +0200 > This reverts commit e1622baf54df8cc958bf29d71de5ad545ea7d93c. > > The side effect of this commit is to add a '@NONE' after each virtual > interface name with a 'ip link'. It may break existing scripts. > > Reported-by: Olivier Hartko

Re: [PATCH net] net: graceful exit from netif_alloc_netdev_queues()

2015-07-08 Thread David Miller
From: Eric Dumazet Date: Mon, 06 Jul 2015 17:13:26 +0200 > From: Eric Dumazet > > User space can crash kernel with > > ip link add ifb10 numtxqueues 10 type ifb > > We must replace a BUG_ON() by proper test and return -EINVAL for > crazy values. > > Fixes: 60877a32bce00 ("net: allow larg

Re: [PATCH net-next] net/mlx4_core: Add extra check for total vfs for SRIOV

2015-07-08 Thread David Miller
From: cls...@linux.vnet.ibm.com Date: Mon, 6 Jul 2015 09:20:19 -0500 > From: Carol Soto > > Add extra check for total vfs for SRIOV to check if that value is > bigger than total vfs in pci SRIOV capabalities. Fix a check and > print of the number of maximum vfs that hw can handle. Fix a check

Re: [PATCH] samples: bpf: enable trace samples for s390x

2015-07-08 Thread David Miller
From: Michael Holzheu Date: Mon, 6 Jul 2015 16:20:07 +0200 > The trace bpf samples do not compile on s390x because they use x86 > specific fields from the "pt_regs" structure. > > Fix this and access the fields via new PT_REGS macros. > > Signed-off-by: Michael Holzheu Applied to net-next, th

Re: [PATCH v2] rhashtable: fix for resize events during table walk

2015-07-08 Thread David Miller
From: Phil Sutter Date: Mon, 6 Jul 2015 15:51:20 +0200 > If rhashtable_walk_next detects a resize operation in progress, it jumps > to the new table and continues walking that one. But it misses to drop > the reference to it's current item, leading it to continue traversing > the new table's buc

Re: [PATCH] mwifiex: drop condition with no effect

2015-07-08 Thread Avinash Patil
bg print func to mwifiex_dbg" probably > needs a review as well. > > Patch was compile tested with x86_64_defconfig + CONFIG_MWIFIEX=m > > Patch is against 4.2-rc1 (localversion-next is -next-20150708) > > drivers/net/wireless/mwifiex/sta_cmdresp.c | 11 +++ >

Re: [PATCH net] bridge: mdb: start delete timer for temp static entries

2015-07-08 Thread David Miller
From: Nikolay Aleksandrov Date: Mon, 6 Jul 2015 05:53:35 -0700 > From: Satish Ashok > > Start the delete timer when adding temp static entries so they can expire. > > Signed-off-by: Satish Ashok > Signed-off-by: Nikolay Aleksandrov > Fixes: ccb1c31a7a87 ("bridge: add flags to distinguish pe

Re: [PATCH net-next] drivers: net: xgene: Fix the compilation error "error: implicit declaration of function 'acpi_evaluate_integer'" for CONFIG_ACPI=n.

2015-07-08 Thread David Miller
From: Suman Tripathi Date: Mon, 6 Jul 2015 13:34:22 +0530 > This patch guards the acpi_evaluate_interger function as it fails > the build for CONFIG_ACPI=n. > > Signed-off-by: Iyappan Subramanian > Signed-off-by: Suman Tripathi > Reported-by: kbuild test robot While the net-next tree is clo

Re: [PATCH] net: macb: Add SG support for Zynq SOC family

2015-07-08 Thread David Miller
From: Punnaiah Choudary Kalluri Date: Mon, 6 Jul 2015 10:02:53 +0530 > Enable SG support for Zynq SOC family devices. > > Signed-off-by: Punnaiah Choudary Kalluri Applied to net-next, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majo

Re: [PATCH net-next v2] ipv6: sysctl to restrict candidate source addresses

2015-07-08 Thread David Miller
From: Erik Kline Date: Wed, 8 Jul 2015 21:41:58 +0900 >> I really would like to come up with a sane works-always behavior for >> this, but besides doing a retry on the complete source address selection >> algorithm I currently cannot come up with an idea. >> >> Maybe we can tweak saddr_eval a bit

Re: [PATCH v1 01/12] IB/core: pass client data to remove() callbacks

2015-07-08 Thread Jason Gunthorpe
On Wed, Jul 08, 2015 at 02:29:10PM -0600, Jason Gunthorpe wrote: > On Mon, Jun 22, 2015 at 03:42:30PM +0300, Haggai Eran wrote: > > An ib_client callback that is called with the lists_rwsem locked only for > > read is protected from changes to the IB client lists, but not from > > ib_unregister_dev

Re: [PATCH 4.1 11/56] mvneta: add forgotten initialization of autonegotiation bits

2015-07-08 Thread Greg Kroah-Hartman
On Wed, Jul 08, 2015 at 09:36:46PM +0300, Stas Sergeev wrote: > 08.07.2015 20:36, Greg Kroah-Hartman пишет: > >On Wed, Jul 08, 2015 at 08:10:46PM +0300, Stas Sergeev wrote: > >>08.07.2015 10:35, Greg Kroah-Hartman пишет: > >>>4.1-stable review patch. If anyone has any objections, please let me kno

Re: [patch iproute2] iproute2: ipa: show switch id

2015-07-08 Thread David Ahern
On 7/8/15 9:08 AM, Jiri Pirko wrote: We forgot to include this patch somehow. So do it now. Signed-off-by: Jiri Pirko --- ip/ipaddress.c | 8 1 file changed, 8 insertions(+) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 85a81ba..b7b4e3e 100644 --- a/ip/ipaddress.c +++ b/ip/ipa

[PATCH net-next 3/3] inet: inet_twsk_deschedule factorization

2015-07-08 Thread Eric Dumazet
inet_twsk_deschedule() calls are followed by inet_twsk_put(). Only particular case is in inet_twsk_purge() but there is no point to defer the inet_twsk_put() after re-enabling BH. Lets rename inet_twsk_deschedule() to inet_twsk_deschedule_put() and move the inet_twsk_put() inside. Signed-off-by:

[PATCH net-next 2/3] inet: simplify timewait refcounting

2015-07-08 Thread Eric Dumazet
timewait sockets have a complex refcounting logic. Once we realize it should be similar to established and syn_recv sockets, we can use sk_nulls_del_node_init_rcu() and remove inet_twsk_unhash() In particular, deferred inet_twsk_put() added in commit 13475a30b66cd ("tcp: connect() race with timewa

[PATCH net-next 1/3] inet: remove BUG_ON() in twsk_destructor()

2015-07-08 Thread Eric Dumazet
Kernel will crash the same if one of the pointer is NULL anyway. Signed-off-by: Eric Dumazet --- include/net/timewait_sock.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/net/timewait_sock.h b/include/net/timewait_sock.h index 68f0ecad6c6e..1a47946f95ba 100644 --- a/include/net/t

[PATCH net-next 0/3] inet: timewait cleanups

2015-07-08 Thread Eric Dumazet
Another round of patches to make tw handling simpler. Eric Dumazet (3): inet: remove BUG_ON() in twsk_destructor() inet: simplify timewait refcounting inet: inet_twsk_deschedule factorization include/net/inet_hashtables.h| 4 +-- include/net/inet_timewait_sock.h | 8 +++--- include/n

[PATCH -next] ipv6: use flag instead of u16 for hop in inet6_skb_parm

2015-07-08 Thread Florian Westphal
Hop was always either 0 or sizeof(struct ipv6hdr). Signed-off-by: Florian Westphal --- include/linux/ipv6.h | 2 +- net/ipv6/af_inet6.c | 4 ++-- net/ipv6/datagram.c | 8 net/ipv6/exthdrs.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/linux/ipv6.h b

Re: [PATCH,v2 net-next] ipvs: skb_orphan in case of forwarding

2015-07-08 Thread Eric Dumazet
On Wed, 2015-07-08 at 13:56 -0700, Alex Gartrell wrote: > On Tue, Jul 7, 2015 at 6:33 PM, Simon Horman wrote: > > > Is there any possibility you could investigate which stable trees are > > effected by this bug? > > Well this was certainly a problem in 3.10 (we had our own hacky > solution at th

Re: Fighting out-of-order reception with RPS?

2015-07-08 Thread Tom Herbert
On Wed, Jul 8, 2015 at 10:49 AM, Oliver Hartkopp wrote: > I'm picking up the request 'Setting RPS affinities from network driver' from > Sunil Kovvuri http://marc.info/?t=14242402351&r=1&w=2 as I assume to have > the same issue here. > > When receiving CAN frames from a specific CAN network in

Re: [PATCH 2/2] net: dsa: mv88e6xxx: add SERDES registers to debugfs

2015-07-08 Thread Andrew Lunn
On Wed, Jul 08, 2015 at 04:36:19PM -0400, Vivien Didelot wrote: > Add read and write access to a SERDES column in the regs debugfs file > for the Fiber/SERDES registers. Humm. I don't really like this. These SERDES registers are in a complete different address space to the port, globalX registers

Re: [RESEND] xen-netback: remove duplicated function definition

2015-07-08 Thread David Miller
From: Liang Li Date: Mon, 6 Jul 2015 08:42:56 +0800 > There are two duplicated xenvif_zerocopy_callback() definitions. > Remove one of them. > > Signed-off-by: Liang Li Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@

Re: [PATCH 1/2] net: dsa: mv88e6xxx: add write access to debugfs regs file

2015-07-08 Thread Vivien Didelot
Hi Andrew, - On Jul 8, 2015, at 4:53 PM, Andrew Lunn and...@lunn.ch wrote: > On Wed, Jul 08, 2015 at 04:36:18PM -0400, Vivien Didelot wrote: >> Allow write access to the regs file in the debugfs interface, with the >> following parameters: >> >> echo> regs >> >> Where "name" is the

[PATCH net-next v4 2/4] netlink: changes for setting and clearing protodown via netlink.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah A nested attribute has been added allowing apps to update bits (IF_PROTOF_DOWN) in the proto_flags field. Signed-off-by: Anuradha Karuppiah Signed-off-by: Andy Gospodarek Signed-off-by: Roopa Prabhu Signed-off-by: Wilson Kok --- include/uapi/linux/if_link.h | 10 +

Re: [PATCH] net: phy: add dependency on HAS_IOMEM to MDIO_BUS_MUX_MMIOREG

2015-07-08 Thread David Miller
From: Rob Herring Date: Sun, 5 Jul 2015 12:16:27 -0500 > On UML builds, mdio-mux-mmioreg.c fails to compile: > > drivers/net/phy/mdio-mux-mmioreg.c:50:3: error: implicit declaration of > function ‘ioremap’ [-Werror=implicit-function-declaration] > drivers/net/phy/mdio-mux-mmioreg.c:63:3: error

Re: [PATCH] NET: hamradio: Fix IP over bpq encapsulation.

2015-07-08 Thread David Miller
From: Ralf Baechle Date: Sat, 4 Jul 2015 11:22:30 +0200 > Since 1d5da757da860a6916adbf68b09e868062b4b3b8 (ax25: Stop using magic > neighbour cache operations.) any attempt to transmit IP packets over > a bpqether device will result in a message like "Dead loop on virtual > device bpq0, fix it urg

Re: [PATCH 2/6] genirq: Fix the documentation of request_percpu_irq

2015-07-08 Thread David Miller
From: Maxime Ripard Date: Fri, 3 Jul 2015 16:25:47 +0200 > The documentation of request_percpu_irq is confusing and suggest that the > interrupt is not enabled at all, while it is actually enabled on the local > CPU. > > Clarify that. > > Signed-off-by: Maxime Ripard You should submit this s

[PATCH net-next v4 0/4] net: Introduce protodown flag.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah User space daemons can detect errors in the network that need to be notified to the switch device drivers. Drivers can react to this error state by doing a phy-down on the switch-port which would result in a carrier-off locally and on the directly connected switch. Doing

[PATCH net-next v4 4/4] ip link: proto_down config and display.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah This patch adds support to set and display the IF_PROTOF_DOWN proto_flag. One example user space application setting this flag is a multi-chassis LAG application to handle split-brain situation on peer-link failure. Example: root@net-next:~# ip link set eth1 protodown on

[PATCH net-next v4 1/4] net core: Add protodown support.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah This patch introduces the IF_PROTOF_DOWN flag via proto_flags that can be used by user space applications to notify switch drivers that errors have been detected on the device. The switch driver can react to protodown notification by doing a phys down on the associated s

[PATCH net-next v4 3/4] rocker: Handle protodown notifications.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah protodown can be set by user space applications like MLAG on detecting errors on a switch port. This patch provides sample switch driver changes for handling protodown. Rocker PHYS disables the port in response to protodown. To test this unctionality I used the qemu-rock

[PATCH net-next RESEND] test_bpf: extend tests for 32-bit endianness conversion

2015-07-08 Thread Xi Wang
Currently "ALU_END_FROM_BE 32" and "ALU_END_FROM_LE 32" do not test if the upper bits of the result are zeros (the arm64 JIT had such bugs). Extend the two tests to catch this. Acked-by: Daniel Borkmann Acked-by: Alexei Starovoitov Signed-off-by: Xi Wang --- See the arm64 JIT bugs: https://lkm

Re: [PATCH 1/2] net: dsa: mv88e6xxx: add write access to debugfs regs file

2015-07-08 Thread Andrew Lunn
On Wed, Jul 08, 2015 at 04:36:18PM -0400, Vivien Didelot wrote: > Allow write access to the regs file in the debugfs interface, with the > following parameters: > > echo> regs > > Where "name" is the register name (as shown in the header row), "reg" is > the register address (as shown in

Re: [PATCH net] net_sched: gen_estimator: extend pps limit

2015-07-08 Thread David Miller
From: Eric Dumazet Date: Thu, 02 Jul 2015 15:57:19 +0200 > From: Eric Dumazet > > rate estimators are limited to 4 Mpps, which was fine years ago, but > too small with current hardware generation. > > Lets use 2^5 scaling instead of 2^10 to get 128 Mpps new limit. > > On 64bit arch, use an "u

Re: [PATCH,v2 net-next] ipvs: skb_orphan in case of forwarding

2015-07-08 Thread Alex Gartrell
On Tue, Jul 7, 2015 at 6:33 PM, Simon Horman wrote: > Is there any possibility you could investigate which stable trees are > effected by this bug? Well this was certainly a problem in 3.10 (we had our own hacky solution at the time) and every kernel since then would have also had this problem.

Re: [PATCH v3 net-next 0/7] net_sched: act: lockless operation

2015-07-08 Thread David Miller
From: Eric Dumazet Date: Mon, 6 Jul 2015 05:18:02 -0700 > As mentioned by Alexei last week in Budapest, it is a bit weird > to take a spinlock in order to drop a packet in a tc filter... > > Lets add percpu infra for tc actions and use it for gact & mirred. > > Before changes, my host with 8 R

Re: [PATCH net] mlx4: TCP/UDP packets have L4 hash

2015-07-08 Thread David Miller
From: Eric Dumazet Date: Thu, 02 Jul 2015 13:24:44 +0200 > From: Eric Dumazet > > Mellanox driver has the knowledge if rxhash is a L4 hash, > if it receives a non fragmented TCP or UDP frame and > NETIF_F_RXCSUM is enabled on netdev. > > ip_summed value is CHECKSUM_UNNECESSARY in this case. >

[PATCH v3] Add support for driver cross-timestamp to PTP_SYS_OFFSET ioctl

2015-07-08 Thread Christopher Hall
This patch allows system and device time ("cross-timestamp") to be performed by the driver. Currently, the cross-timestamping is performed in the PTP_SYS_OFFSET ioctl. The PTP clock driver reads gettimeofday() and the gettime64() callback provided by the driver. The cross-timestamp is best effort

[PATCH 1/2] net: dsa: mv88e6xxx: add write access to debugfs regs file

2015-07-08 Thread Vivien Didelot
Allow write access to the regs file in the debugfs interface, with the following parameters: echo> regs Where "name" is the register name (as shown in the header row), "reg" is the register address (as shown in the first column) and "value" is the 16-bit value. e.g.: echo GLOBAL 1a 5

[PATCH 2/2] net: dsa: mv88e6xxx: add SERDES registers to debugfs

2015-07-08 Thread Vivien Didelot
Add read and write access to a SERDES column in the regs debugfs file for the Fiber/SERDES registers. For instance, imagining that the Fiber Control register value is 0x1940, you can clear the POWER_DOWN bit (11) with: echo SERDES 0 1140 > /sys/kernel/debug/dsa0/regs Signed-off-by: Vivien Di

Re: [PATCH v4 0/3] net: dsa: mv88e6xxx: add support for VLAN Table Unit

2015-07-08 Thread Vivien Didelot
Hi Andrew, - On Jul 8, 2015, at 4:12 PM, Andrew Lunn and...@lunn.ch wrote: >> I understand. However this whole VLAN thing represents a lot of code. >> Some other work depends on portions of it. Do you think it'd be OK if I >> resend the patch 1/3 alone? Having only the VTU operations and "vtu

  1   2   >