[PATCH] net: phy: dp83867: fix simple_return.cocci warnings

2015-07-24 Thread kbuild test robot
drivers/net/phy/dp83867.c:126:1-4: WARNING: end returns can be simpified drivers/net/phy/dp83867.c:74:5-8: WARNING: end returns can be simpified if tested value is negative or 0 Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by:

[RFC PATCH net] sctp: ASCONF-ACK with Unresolvable Address should be sent

2015-07-24 Thread Xin Long
RFC 5061: This is an opaque integer assigned by the sender to identify each request parameter. The receiver of the ASCONF Chunk will copy this 32-bit value into the ASCONF Response Correlation ID field of the ASCONF-ACK response parameter. The sender of the ASCONF can use this

Re: [patch net-next 3/4] mlxsw: Add interface to access registers and process events

2015-07-24 Thread Elad Raz
Sent from my iPhone On Jul 24, 2015, at 08:14, Scott Feldman sfel...@gmail.com wrote: On Thu, Jul 23, 2015 at 8:43 AM, Jiri Pirko j...@resnulli.us wrote: From: Ido Schimmel ido...@mellanox.com Add the ability to construct mailbox-style register access messages called EMADs with

Re: [PATCH V3 3/7] Drivers: hv: vmbus: add APIs to send/recv hvsock packet and get the r/w-ability

2015-07-24 Thread Sudip Mukherjee
On Thu, Jul 23, 2015 at 01:24:50PM +0300, Dan Carpenter wrote: On Thu, Jul 23, 2015 at 01:10:57PM +0300, Dan Carpenter wrote: In this specific case, writing it as if (ret != 0) caused the bug. If we had written it as if (ret) return ret; then there are no zeroes so wouldn't have been any

Re: [PATCH]mlx4-core: fix possible use after free in cq_completion

2015-07-24 Thread Jinpu Wang
On Fri, Jul 24, 2015 at 10:18 AM, Jinpu Wang jinpu.w...@profitbricks.com wrote: Hi all, I hit bug in OFED, I report to link below: http://marc.info/?l=linux-rdmam=143634872328553w=2 I checked latest mainline Linux 4.2-rc3, it has similar bug. Here is the patch against Linux 4.2-rc3, compile

[PATCH net-next] ipv6: use lwtunnel_output6() only if flag redirect is set

2015-07-24 Thread Nicolas Dichtel
This function make sense only when LWTUNNEL_STATE_OUTPUT_REDIRECT is set. The check is already done in IPv4. CC: Thomas Graf tg...@suug.ch CC: Roopa Prabhu ro...@cumulusnetworks.com Fixes: 74a0f2fe8ed5 (ipv6: rt6_info output redirect to tunnel output) Signed-off-by: Nicolas Dichtel

Re: [PATCH 1/1] ath10k: fixing wrong initialization of struct channel

2015-07-24 Thread Kalle Valo
Maninder Singh maninder...@samsung.com writes: chandef is initialized with NULL and on the very next line, we are using it to get channel, which is not correct. channel should be initialized after obtaining chandef. Signed-off-by: Maninder Singh maninder...@samsung.com Thanks, applied. --

Re: [PATCH V3 3/7] Drivers: hv: vmbus: add APIs to send/recv hvsock packet and get the r/w-ability

2015-07-24 Thread Dan Carpenter
On Fri, Jul 24, 2015 at 11:57:01AM +0530, Sudip Mukherjee wrote: This is also ok, the function is supposed to return ret or-ed with the relevant flags based on the scan position. It is considered error if 0 is returned (without any flag). Yeah. You're right. I looked through my list again

[PATCH net-next 1/2] ipv6: copy lwtstate in ip6_rt_copy_init()

2015-07-24 Thread Nicolas Dichtel
We need to copy this field (ip6_rt_cache_alloc() and ip6_rt_pcpu_alloc() use ip6_rt_copy_init() to build a dst). CC: Thomas Graf tg...@suug.ch CC: Roopa Prabhu ro...@cumulusnetworks.com Fixes: 19e42e451506 (ipv6: support for fib route lwtunnel encap attributes) Signed-off-by: Nicolas Dichtel

Re: [PATCH net-next] ipv6: use lwtunnel_output6() only if flag redirect is set

2015-07-24 Thread Thomas Graf
On 07/24/15 at 10:59am, Nicolas Dichtel wrote: This function make sense only when LWTUNNEL_STATE_OUTPUT_REDIRECT is set. The check is already done in IPv4. CC: Thomas Graf tg...@suug.ch CC: Roopa Prabhu ro...@cumulusnetworks.com Fixes: 74a0f2fe8ed5 (ipv6: rt6_info output redirect to tunnel

[PATCH net-next 2/2] lwtunnel: change prototype of lwtunnel_state_get()

2015-07-24 Thread Nicolas Dichtel
It saves some lines and simplify a bit the code when the state is returning by this function. It's also useful to handle a NULL entry. To avoid too long lines, I've also renamed lwtunnel_state_get() and lwtunnel_state_put() to lwtstate_get() and lwtstate_put(). CC: Thomas Graf tg...@suug.ch CC:

Re: [PATCH] net/ipv6: add sysctl option accept_ra_hop_limit

2015-07-24 Thread Hangbin Liu
2015-07-24 12:48 GMT+08:00 YOSHIFUJI Hideaki hideaki.yoshif...@miraclelinux.com: Hi, Hangbin Liu wrote: Commit 6fd99094de2b (ipv6: Don't reduce hop limit for an interface) disabled accept hop limit from RA if it is higher than the current hop limit for security stuff. But this behavior kind

Re: [PATCH net-next 1/2] ipv6: copy lwtstate in ip6_rt_copy_init()

2015-07-24 Thread Thomas Graf
On 07/24/15 at 12:28pm, Nicolas Dichtel wrote: We need to copy this field (ip6_rt_cache_alloc() and ip6_rt_pcpu_alloc() use ip6_rt_copy_init() to build a dst). CC: Thomas Graf tg...@suug.ch CC: Roopa Prabhu ro...@cumulusnetworks.com Fixes: 19e42e451506 (ipv6: support for fib route lwtunnel

Re: [PATCH net-next 2/2] lwtunnel: change prototype of lwtunnel_state_get()

2015-07-24 Thread Thomas Graf
On 07/24/15 at 12:28pm, Nicolas Dichtel wrote: It saves some lines and simplify a bit the code when the state is returning by this function. It's also useful to handle a NULL entry. To avoid too long lines, I've also renamed lwtunnel_state_get() and lwtunnel_state_put() to lwtstate_get() and

[PATCH] net: phy: fix auto negotiation checking for teranetics

2015-07-24 Thread shh.xie
From: Shaohui Xie shaohui@freescale.com When using fiber port, the phy cannot report it's auto negotiation state, driver should always report auto negotiation is done when using fiber port. Signed-off-by: Shaohui Xie shaohui@freescale.com --- drivers/net/phy/teranetics.c | 11

Re: [PATCH net-next v2] route: allow to route in a peer netns via lwt framework

2015-07-24 Thread Eric Dumazet
On Fri, 2015-07-24 at 16:16 +0200, Nicolas Dichtel wrote: This patch takes advantage of the newly added lwtunnel framework to allow the user to set routes that point to a peer netns. Packets are injected to the peer netns via the loopback device. It works only when the output device is

Fw: [Bug 99461] recvfrom SYSCALL infinite loop/deadlock chewing 100% CPU [was __libc_recv (fd=fd@entry=300, buf=buf@entry=0x7f6042880600, n=n@entry=5, flags=-1, flags@entry=258) at ../sysdeps/unix/sys

2015-07-24 Thread Stephen Hemminger
Begin forwarded message: Date: Fri, 24 Jul 2015 11:22:17 + From: bugzilla-dae...@bugzilla.kernel.org bugzilla-dae...@bugzilla.kernel.org To: shemmin...@linux-foundation.org shemmin...@linux-foundation.org Subject: [Bug 99461] recvfrom SYSCALL infinite loop/deadlock chewing 100% CPU [was

[PATCH] ip/ip6tunnel: fix missing return value check

2015-07-24 Thread Zhang Shengju
Make sure that return value of each socket() call is properly checked and do not continue processing if the call failed. Signed-off-by: Zhang Shengju zhangshen...@cmss.chinamobile.com --- ip/tunnel.c | 24 1 file changed, 24 insertions(+) diff --git a/ip/tunnel.c

Re: Several races in usbnet module (kernel 4.1.x)

2015-07-24 Thread Eugene Shatokhin
23.07.2015 12:15, Oliver Neukum пишет: On Wed, 2015-07-22 at 21:33 +0300, Eugene Shatokhin wrote: The following part is not necessary, I think. usbnet_bh() does not touch EVENT_NO_RUNTIME_PM bit explicitly and these bit operations are atomic w.r.t. each other. + mpn |=

Re: [PATCH net-next v2] route: allow to route in a peer netns via lwt framework

2015-07-24 Thread Alexei Starovoitov
On Fri, Jul 24, 2015 at 05:39:57PM +0200, Eric Dumazet wrote: On Fri, 2015-07-24 at 16:16 +0200, Nicolas Dichtel wrote: This patch takes advantage of the newly added lwtunnel framework to allow the user to set routes that point to a peer netns. Packets are injected to the peer netns

[PATCH net-next] hv_netvsc: Add structs and handlers for VF messages

2015-07-24 Thread Haiyang Zhang
This patch adds data structures and handlers for messages related to SRIOV Virtual Function. Signed-off-by: Haiyang Zhang haiya...@microsoft.com Reviewed-by: K. Y. Srinivasan k...@microsoft.com --- drivers/net/hyperv/hyperv_net.h | 29 ++ drivers/net/hyperv/netvsc.c

[PATCH net] tcp: fix recv with flags MSG_WAITALL | MSG_PEEK

2015-07-24 Thread Sabrina Dubroca
Currently, tcp_recvmsg enters a busy loop in sk_wait_data if called with flags = MSG_WAITALL | MSG_PEEK. sk_wait_data waits for sk_receive_queue not empty, but in this case, the receive queue is not empty, but does not contain any skb that we can use. Add a last skb seen on receive queue

Re: [PATCH net-next] route: allow to route in a peer netns via lwt framework

2015-07-24 Thread David Ahern
On 7/23/15 8:22 AM, Nicolas Dichtel wrote: static netdev_tx_t loopback_xmit(struct sk_buff *skb, struct net_device *dev) { + int nsid = skb_lwt_netns_info(skb); struct pcpu_lstats *lb_stats; int len; + if (nsid = 0) { +

Re: [PATCH net-next] route: allow to route in a peer netns via lwt framework

2015-07-24 Thread David Ahern
On 7/24/15 8:32 AM, Nicolas Dichtel wrote: Le 24/07/2015 16:28, David Ahern a écrit : On 7/23/15 8:22 AM, Nicolas Dichtel wrote: static netdev_tx_t loopback_xmit(struct sk_buff *skb, struct net_device *dev) { +int nsid = skb_lwt_netns_info(skb); struct

RE: [PATCH 03/10] dpaa_eth: add configurable bpool thresholds

2015-07-24 Thread Madalin-Cristian Bucur
-Original Message- From: Joe Perches [mailto:j...@perches.com] On Wed, 2015-07-22 at 19:16 +0300, Madalin Bucur wrote: Allow the user to tweak the refill threshold and the total number of buffers in the buffer pool. The provided values are for one CPU. Any value in making these

[PATCH net-next v2] route: allow to route in a peer netns via lwt framework

2015-07-24 Thread Nicolas Dichtel
This patch takes advantage of the newly added lwtunnel framework to allow the user to set routes that point to a peer netns. Packets are injected to the peer netns via the loopback device. It works only when the output device is 'lo'. Example: ip route add 40.1.1.1/32 encap netns nsid 5 via dev

Re: [PATCH net-next] route: allow to route in a peer netns via lwt framework

2015-07-24 Thread Nicolas Dichtel
Le 24/07/2015 16:28, David Ahern a écrit : On 7/23/15 8:22 AM, Nicolas Dichtel wrote: static netdev_tx_t loopback_xmit(struct sk_buff *skb, struct net_device *dev) { +int nsid = skb_lwt_netns_info(skb); struct pcpu_lstats *lb_stats; int len; +if (nsid

Re: [RFC Patch net-next] inet: introduce a sysctl ip_local_ports_strict_use

2015-07-24 Thread Cong Wang
On Wed, Jul 22, 2015 at 10:39 PM, Stephen Hemminger step...@networkplumber.org wrote: On Wed, 22 Jul 2015 17:07:37 -0700 Cong Wang xiyou.wangc...@gmail.com wrote: For a real example, named randomly selects some port to bind() for security concern. (It doesn't use bind(0) to let kernel to

[PATCH net-next 1/1] e1000: remove dead e1000_init_eeprom_params calls.

2015-07-24 Thread Francois Romieu
The device probe method e1000_probe calls e1000_init_eeprom_params itself so there's no reason to call it again from e1000_do_write_eeprom or e1000_do_read_eeprom. The sentence above assumes that e1000_init_eeprom_params is effective but it's mostly dependant on hw-mac_type: safe as e1000_probe

Re: [PATCH 2/3] brcmfmac: dhd_sdio.c: use existing atomic_or primitive

2015-07-24 Thread Vineet Gupta
On Friday 24 July 2015 08:02 PM, Kalle Valo wrote: Vineet Gupta vineet.gup...@synopsys.com writes: There's already a generic implementation so use that instead. --- I'm not sure if the driver usage of atomic_or?() is correct in terms of storage size of @val for 64 bit arches.

Re: [PATCH net] tcp: fix recv with flags MSG_WAITALL | MSG_PEEK

2015-07-24 Thread Eric Dumazet
On Fri, 2015-07-24 at 18:19 +0200, Sabrina Dubroca wrote: Currently, tcp_recvmsg enters a busy loop in sk_wait_data if called with flags = MSG_WAITALL | MSG_PEEK. sk_wait_data waits for sk_receive_queue not empty, but in this case, the receive queue is not empty, but does not contain any skb

Re: Several races in usbnet module (kernel 4.1.x)

2015-07-24 Thread Eugene Shatokhin
21.07.2015 15:04, Oliver Neukum пишет: On Mon, 2015-07-20 at 21:13 +0300, Eugene Shatokhin wrote: Hi, I have recently found several data races in usbnet module, checked on vanilla kernel 4.1.0 on x86_64. The races do actually happen, I have confirmed it by adding delays and using hardware

[PATCH v1 1/6] net/macb: improve big endian CPU support

2015-07-24 Thread Andy Shevchenko
The commit a50dad355a53 (net: macb: Add big endian CPU support) converted I/O accessors to readl_relaxed() and writel_relaxed() and consequentially broke MACB driver on AVR32 platforms such as ATNGW100. This patch improves I/O access by checking endiannes first and use the corresponding methods.

[PATCH v1 6/6] net/macb: convert to kernel doc

2015-07-24 Thread Andy Shevchenko
This patch coverts struct description to the kernel doc format. There is no functional change. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- include/linux/platform_data/macb.h | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git

[PATCH v1 4/6] net/macb: suppress compiler warnings

2015-07-24 Thread Andy Shevchenko
This patch fixes the following warnings: drivers/net/ethernet/cadence/macb.c: In function ‘macb_handle_link_change’: drivers/net/ethernet/cadence/macb.c:266: warning: comparison between signed and unsigned drivers/net/ethernet/cadence/macb.c:267: warning: comparison between signed and unsigned

[PATCH v1 0/6] net/macb: fix for AVR32 and clean up

2015-07-24 Thread Andy Shevchenko
It seems no one had tested recently the driver on AVR32 platforms such as ATNGW100. This series bring it back to work. Andy Shevchenko (6): net/macb: improve big endian CPU support net/macb: check if macb_config present net/macb: use dev_*() when netdev is not yet registered net/macb:

[PATCH v1 5/6] net/macb: replace macb_count_tx_descriptors() by DIV_ROUND_UP()

2015-07-24 Thread Andy Shevchenko
macb_count_tx_descriptors() repeats the generic macro DIV_ROUND_UP(). The patch does a replacement. There is no functional change. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/net/ethernet/cadence/macb.c | 10 ++ 1 file changed, 2 insertions(+), 8

[PATCH v1 2/6] net/macb: check if macb_config present

2015-07-24 Thread Andy Shevchenko
The commit 98b5a0f4a228 introduces jumbo frame support, but also it assumes that macb_config present which is not always true. The configuration without macb_config fails to boot. Unable to handle kernel NULL pointer dereference at virtual address 0010 ptbr = 9035 pgd = Oops:

[PATCH v1 3/6] net/macb: use dev_*() when netdev is not yet registered

2015-07-24 Thread Andy Shevchenko
To avoid messages like macb macb.0 (unnamed net_device) (uninitialized): Cadence caps 0x macb macb.0 (unnamed net_device) (uninitialized): invalid hw address, using random let's use dev_*() macros. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com ---

RE: [PATCH 02/10] dpaa_eth: add support for DPAA Ethernet

2015-07-24 Thread Madalin-Cristian Bucur
-Original Message- From: Joe Perches [mailto:j...@perches.com] On Wed, 2015-07-22 at 19:16 +0300, Madalin Bucur wrote: This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan drivers to

Re: [PATCH net-next 2/2] lwtunnel: change prototype of lwtunnel_state_get()

2015-07-24 Thread roopa
On 7/24/15, 3:28 AM, Nicolas Dichtel wrote: It saves some lines and simplify a bit the code when the state is returning by this function. It's also useful to handle a NULL entry. To avoid too long lines, I've also renamed lwtunnel_state_get() and lwtunnel_state_put() to lwtstate_get() and

Re: [PATCH net-next] route: allow to route in a peer netns via lwt framework

2015-07-24 Thread Nicolas Dichtel
Le 24/07/2015 15:50, roopa a écrit : On 7/24/15, 5:24 AM, Nicolas Dichtel wrote: Sure, but my goal was to not create a new .h file just for these two helpers. It's related to lwtunnel, thus I was thinking they can go here. ok..., since your lwt namespace functions went into net_namespace.c, I

[PATCH] net: netcp: Fixes SGMII reset on network interface shutdown

2015-07-24 Thread WingMan Kwok
This patch asserts SGMII RTRESET, i.e. resetting the SGMII Tx/Rx logic, during network interface shutdown to avoid having the hardware wedge when shutting down with high incoming traffic rates. This is cleared (brought out of RTRESET) when the interface is brought back up. Signed-off-by:

Re: [RFC PATCH net] sctp: ASCONF-ACK with Unresolvable Address should be sent

2015-07-24 Thread Marcelo Ricardo Leitner
On Fri, Jul 24, 2015 at 02:56:29PM +0800, Xin Long wrote: RFC 5061: This is an opaque integer assigned by the sender to identify each request parameter. The receiver of the ASCONF Chunk will copy this 32-bit value into the ASCONF Response Correlation ID field of the

Re: [PATCH]mlx4-core: fix possible use after free in cq_completion

2015-07-24 Thread Or Gerlitz
On Fri, Jul 24, 2015 at 11:18 AM, Jinpu Wang jinpu.w...@profitbricks.com wrote: I hit bug in OFED, I report to link below: http://marc.info/?l=linux-rdmam=143634872328553w=2 I checked latest mainline Linux 4.2-rc3, it has similar bug. Here is the patch against Linux 4.2-rc3, compile test only.

[PATCH net-next v2 1/2] ipv6: Re-arrange code in rt6_probe()

2015-07-24 Thread Martin KaFai Lau
It is a prep work for the next patch to remove write_lock from rt6_probe(). 1. Reduce the number of if(neigh) check. From 4 to 1. 2. Bring the write_(un)lock() closer to the operations that the lock is protecting. Hopefully, the above make rt6_probe() more readable. Signed-off-by: Martin

[PATCH net-next v2 2/2] ipv6: Avoid rt6_probe() taking writer lock in the fast path

2015-07-24 Thread Martin KaFai Lau
The patch checks neigh-nud_state before acquiring the writer lock. Note that rt6_probe() is only used in CONFIG_IPV6_ROUTER_PREF. 40 udpflood processes and a /64 gateway route are used. The gateway has NUD_PERMANENT. Each of them is run for 30s. At the end, the total number of finished sendto():

[PATCH net-next v2 0/2] ipv6: Avoid rt6_probe() taking writer lock in the fast path

2015-07-24 Thread Martin KaFai Lau
v1 - v2: 1. Separate the code re-arrangement into another patch 2. Fix style -- 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/majordomo-info.html

Re: [PATCH 2/3] brcmfmac: dhd_sdio.c: use existing atomic_or primitive

2015-07-24 Thread Kalle Valo
Vineet Gupta vineet.gup...@synopsys.com writes: There's already a generic implementation so use that instead. --- I'm not sure if the driver usage of atomic_or?() is correct in terms of storage size of @val for 64 bit arches. Assuming LP64 programming model for linux on say x86_64:

Re: [RFC PATCH net] sctp: ASCONF-ACK with Unresolvable Address should be sent

2015-07-24 Thread lucien xin
On Sat, Jul 25, 2015 at 3:11 AM, Marcelo Ricardo Leitner mleit...@redhat.com wrote: On Fri, Jul 24, 2015 at 02:56:29PM +0800, Xin Long wrote: RFC 5061: This is an opaque integer assigned by the sender to identify each request parameter. The receiver of the ASCONF Chunk will copy this

[RFC PATCH net] sctp: ASCONF-ACK with Unresolvable Address should be sent

2015-07-24 Thread Xin Long
RFC 5061: This is an opaque integer assigned by the sender to identify each request parameter. The receiver of the ASCONF Chunk will copy this 32-bit value into the ASCONF Response Correlation ID field of the ASCONF-ACK response parameter. The sender of the ASCONF can use this

Re: [PATCH V2 net-next 0/3] ARM BPF JIT features

2015-07-24 Thread David Miller
From: Nicolas Schichan nschic...@freebox.fr Date: Tue, 21 Jul 2015 14:16:37 +0200 This serie adds support for more instructions to the ARM BPF JIT series namely skb netdevice type retrieval, skb payload offset retrieval, and skb packet type retrieval. This allows 35 tests to use the JIT

Re: [PATCH net 0/2] ipv4: fib_select_default changes

2015-07-24 Thread David Miller
From: Julian Anastasov j...@ssi.bg Date: Wed, 22 Jul 2015 10:43:21 +0300 This patchset contains 2 changes for the alternative routes, one to add tb_id/fa_slen check needed after the recent fib_trie optimizations for fib aliases and the second change attempts to support alternative routes with

Re: [Patch net] sch_plug: purge buffered packets during reset

2015-07-24 Thread David Miller
From: Cong Wang xiyou.wangc...@gmail.com Date: Tue, 21 Jul 2015 16:31:53 -0700 Otherwise the skbuff related structures are not correctly refcount'ed. Cc: Jamal Hadi Salim j...@mojatatu.com Signed-off-by: Cong Wang xiyou.wangc...@gmail.com Applied. -- To unsubscribe from this list: send the

Re: [PATCH net-next v2] bridge: Fix setting a flag in br_fill_ifvlaninfo_range().

2015-07-24 Thread David Miller
From: Rami Rosen rami.ro...@intel.com Date: Wed, 22 Jul 2015 07:57:02 +0300 This patch fixes setting of vinfo.flags in the br_fill_ifvlaninfo_range() method. The assignment of vinfo.flags = ~BRIDGE_VLAN_INFO_RANGE_BEGIN has no effect and is unneeded, as vinfo.flags value is overriden by

Re: [Patch net] sch_choke: drop all packets in queue during reset

2015-07-24 Thread David Miller
From: Cong Wang xiyou.wangc...@gmail.com Date: Tue, 21 Jul 2015 16:52:43 -0700 Signed-off-by: Cong Wang xiyou.wangc...@gmail.com Applied. -- 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

Re: [PATCH net-next] ipv6: use lwtunnel_output6() only if flag redirect is set

2015-07-24 Thread roopa
On 7/24/15, 1:59 AM, Nicolas Dichtel wrote: This function make sense only when LWTUNNEL_STATE_OUTPUT_REDIRECT is set. The check is already done in IPv4. CC: Thomas Graf tg...@suug.ch CC: Roopa Prabhu ro...@cumulusnetworks.com Fixes: 74a0f2fe8ed5 (ipv6: rt6_info output redirect to tunnel output)

Re: [PATCH net-next 1/2] ipv6: copy lwtstate in ip6_rt_copy_init()

2015-07-24 Thread roopa
On 7/24/15, 3:28 AM, Nicolas Dichtel wrote: We need to copy this field (ip6_rt_cache_alloc() and ip6_rt_pcpu_alloc() use ip6_rt_copy_init() to build a dst). CC: Thomas Graf tg...@suug.ch CC: Roopa Prabhu ro...@cumulusnetworks.com Fixes: 19e42e451506 (ipv6: support for fib route lwtunnel encap

[PATCH net-next] bonding: convert num_grat_arp to the new bonding option API

2015-07-24 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov niko...@cumulusnetworks.com num_grat_arp wasn't converted to the new bonding option API, so do this now and remove the specific sysfs store option in order to use the standard one. num_grat_arp is the same as num_unsol_na so add it as an alias with the same option

Re: [PATCH net-next] route: allow to route in a peer netns via lwt framework

2015-07-24 Thread roopa
On 7/24/15, 5:24 AM, Nicolas Dichtel wrote: Sure, but my goal was to not create a new .h file just for these two helpers. It's related to lwtunnel, thus I was thinking they can go here. ok..., since your lwt namespace functions went into net_namespace.c, I was thinking these should really go

[RFC PATCH v4 net-next 1/4] tcp: replace cnt rtt with struct in pkts_acked()

2015-07-24 Thread Lawrence Brakmo
Replace 2 arguments (cnt and rtt) in the congestion control modules' pkts_acked() function with a struct. This will allow adding more information without having to modify existing congestion control modules (tcp_nv in particular needs bytes in flight when packet was sent). As proposed by Neal

[RFC PATCH v4 net-next 0/4] tcp: add NV congestion control

2015-07-24 Thread Lawrence Brakmo
This patchset adds support for NV congestion control. The first patch replaces two arguments with a struct in pkts_acked() The second patch is a refactor of tcp_skb_cb The third patch adds in_flight to tcp_skb_cb's tx section The fourth patch adds NV congestion control support. [RFC PATCH v4

[RFC PATCH v4 net-next 4/4] tcp: add NV congestion control

2015-07-24 Thread Lawrence Brakmo
This is a request for comments. TCP-NV (New Vegas) is a major update to TCP-Vegas. An earlier version of NV was presented at 2010's LPC. It is a delayed based congestion avoidance for the data center. This version has been tested within a 10G rack where the HW RTTs are 20-50us. A description of

[RFC PATCH v4 net-next 2/4] tcp: refactor struct tcp_skb_cb

2015-07-24 Thread Lawrence Brakmo
Refactor tcp_skb_cb to create two overlaping areas to store state for incoming or outgoing skbs based on comments by Neal Cardwell to tcp_nv patch: AFAICT this patch would not require an increase in the size of sk_buff cb[] if it were to take advantage of the fact that the tcp_skb_cb

[RFC PATCH v4 net-next 3/4] tcp: add in_flight to tcp_skb_cb

2015-07-24 Thread Lawrence Brakmo
Add in_flight (bytes in flight when packet was sent) field to tx component of tcp_skb_cb and make it available to congestion modules' pkts_acked() function through the ack_sample function argument. Signed-off-by: Lawrence Brakmo bra...@fb.com --- include/net/tcp.h | 2 ++

Re: [patch net-next 3/4] mlxsw: Add interface to access registers and process events

2015-07-24 Thread Andy Gospodarek
On Fri, Jul 24, 2015 at 07:24:53AM +0200, Jiri Pirko wrote: Thu, Jul 23, 2015 at 11:12:20PM CEST, go...@cumulusnetworks.com wrote: On Thu, Jul 23, 2015 at 05:43:35PM +0200, Jiri Pirko wrote: From: Ido Schimmel ido...@mellanox.com Add the ability to construct mailbox-style register access

Re: [PATCH net-next] route: allow to route in a peer netns via lwt framework

2015-07-24 Thread Nicolas Dichtel
Le 23/07/2015 17:50, roopa a écrit : On 7/23/15, 8:25 AM, Nicolas Dichtel wrote: Le 23/07/2015 17:01, roopa a écrit : On 7/23/15, 7:22 AM, Nicolas Dichtel wrote: [snip] +static inline u32 *lwt_netns_info(struct lwtunnel_state *lwtstate) +{ +return (u32 *)lwtstate-data; +} + +static