Re: [RFC PATCH v2 0/2] nb8800 suspend/resume support

2017-08-02 Thread Måns Rullgård
Mason writes: > On 02/08/2017 17:36, Måns Rullgård wrote: > >> Mason wrote: >> >>> Looking at the tango-specific integration, I note this nugget: >>> >>> 1.5.4 Stopping & Starting the DMA >>> >>> This feature has been added to allow the software to stop and start >>> the DMA

Re: [PATCH net-next] bpf: fix the printing of ifindex

2017-08-02 Thread Daniel Borkmann
On 08/02/2017 05:43 PM, William Tu wrote: Save the ifindex before it gets zeroed so the invalid ifindex can be printed out. Signed-off-by: William Tu Acked-by: Daniel Borkmann net/core/filter.c | 10 ++ 1 file changed, 6 insertions(+),

Re: [RFC PATCH v2 0/2] nb8800 suspend/resume support

2017-08-02 Thread Mason
On 02/08/2017 17:36, Måns Rullgård wrote: > Mason wrote: > >> Looking at the tango-specific integration, I note this nugget: >> >> 1.5.4 Stopping & Starting the DMA >> >> This feature has been added to allow the software to stop and start >> the DMA without any issues. >> >> Procedure: >> 1-

[PATCH net-next] bpf: fix the printing of ifindex

2017-08-02 Thread William Tu
Save the ifindex before it gets zeroed so the invalid ifindex can be printed out. Signed-off-by: William Tu --- net/core/filter.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/net/core/filter.c b/net/core/filter.c index

RE: [PATCH 1/2] [for 4.13] net: qcom/emac: disable flow control autonegotiation by default

2017-08-02 Thread David Laight
From: Timur Tabi > Sent: 02 August 2017 16:09 > On 08/02/2017 09:51 AM, David Laight wrote: > > Sending pause frames just tells the adjacent switch not to send you packets > > (because you'll discard them). > > Since the idea is to avoid the discards, the switch will buffer the > > packets it

Re: [RFC PATCH v2 0/2] nb8800 suspend/resume support

2017-08-02 Thread Måns Rullgård
Mason writes: > On 02/08/2017 16:41, Mason wrote: > >> On 01/08/2017 18:32, Mason wrote: >> >>> I need suspend/resume support in the nb8800 driver. >>> On tango platforms, suspend loses all context (MMIO registers). >>> To make the task easy, we just close the device on

Re: [PATCH 1/2] [for 4.13] net: qcom/emac: disable flow control autonegotiation by default

2017-08-02 Thread Timur Tabi
On 08/02/2017 09:51 AM, David Laight wrote: Sending pause frames just tells the adjacent switch not to send you packets (because you'll discard them). Since the idea is to avoid the discards, the switch will buffer the packets it would have sent. The buffers in the switch then fill up with

RE: [PATCH 1/2] [for 4.13] net: qcom/emac: disable flow control autonegotiation by default

2017-08-02 Thread David Laight
From: Timur Tabi > Sent: 02 August 2017 15:22 > On 8/2/17 8:48 AM, David Laight wrote: > > If the nearby switches cannot handle pause frames, then the MAC shouldn't > > be sending them at all. > > There's no way for me to know whether the switches can handle the pause > frames or not. You would

Re: [Intel-wired-lan] [PATCH 4/5] e1000e: Separate signaling for link check/link up

2017-08-02 Thread Benjamin Poirier
On 2017/08/02 10:34, Lennart Sorensen wrote: > On Wed, Aug 02, 2017 at 02:28:07PM +0300, Neftin, Sasha wrote: > > On 7/21/2017 21:36, Benjamin Poirier wrote: > > > Lennart reported the following race condition: > > > > > > \ e1000_watchdog_task > > > \ e1000e_has_link > > > \

Re: [RFC PATCH v2 0/2] nb8800 suspend/resume support

2017-08-02 Thread Mason
On 01/08/2017 18:32, Mason wrote: > I need suspend/resume support in the nb8800 driver. > On tango platforms, suspend loses all context (MMIO registers). > To make the task easy, we just close the device on suspend, > and open it again on resume. This requires properly resetting > the HW on

Re: [Intel-wired-lan] [PATCH 4/5] e1000e: Separate signaling for link check/link up

2017-08-02 Thread Lennart Sorensen
On Wed, Aug 02, 2017 at 02:28:07PM +0300, Neftin, Sasha wrote: > On 7/21/2017 21:36, Benjamin Poirier wrote: > > Lennart reported the following race condition: > > > > \ e1000_watchdog_task > > \ e1000e_has_link > > \ hw->mac.ops.check_for_link() === e1000e_check_for_copper_link > >

Re: [RFC PATCH v2 1/2] net: ethernet: nb8800: Reset HW block in ndo_open

2017-08-02 Thread Måns Rullgård
Mason writes: > On 02/08/2017 13:02, Måns Rullgård wrote: > >> Mason wrote: >> >>> Move all HW initializations to nb8800_init. >>> This provides the basis for suspend/resume support. >>> --- >>> drivers/net/ethernet/aurora/nb8800.c | 50 >>>

[PATCH 0/1] pull request for net: batman-adv 2017-08-02

2017-08-02 Thread Simon Wunderlich
repository at: git://git.open-mesh.org/linux-merge.git tags/batadv-net-for-davem-20170802 for you to fetch changes up to 54e22f265e872ae140755b3318521d400a094605: batman-adv: fix TT sync flag inconsistencies (2017-07-31 11:17:38 +0200

[PATCH 1/1] batman-adv: fix TT sync flag inconsistencies

2017-08-02 Thread Simon Wunderlich
From: Linus Lüssing This patch fixes an issue in the translation table code potentially leading to a TT Request + Response storm. The issue may occur for nodes involving BLA and an inconsistent configuration of the batman-adv AP isolation feature. However, since the new

[PATCH 1/6] batman-adv: Start new development cycle

2017-08-02 Thread Simon Wunderlich
Signed-off-by: Simon Wunderlich --- net/batman-adv/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 2be8f1f46529..05cc7637c064 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@

[PATCH 3/6] batman-adv: Remove too short %pM printk field width

2017-08-02 Thread Simon Wunderlich
From: Sven Eckelmann The string representation for a mac address produced by %pM is 17 characters long. Left-aligning the output in a 15 character wide field width %-15pM is therefore misleading and unnecessary. Signed-off-by: Sven Eckelmann

[PATCH 5/6] batman-adv: fix various spelling mistakes

2017-08-02 Thread Simon Wunderlich
From: Colin Ian King Trivial fix to spelling mistakes in batadv_dbg debug messages and also in a comment and ensure comment line is not wider than 80 characters "ourselve" -> "ourselves" "surpressed" -> "suppressed" "troughput" -> "throughput" Signed-off-by: Colin Ian

[PATCH 4/6] batman-adv: Remove variable deprecated by skb_put_data

2017-08-02 Thread Simon Wunderlich
From: Sven Eckelmann skb_put_data makes it unnecessary to store the skb_put return value to copy some data to the packet. The returned pointer of skb_put_data should therefore not stored by functions which previously only used it to copy some data. Signed-off-by: Sven

[PATCH 6/6] batman-adv: Convert batman-adv.txt to reStructuredText

2017-08-02 Thread Simon Wunderlich
From: Sven Eckelmann Converting the freeform text to parsable reStructuredText, allows the integration in the sphinx based documentation system of the kernel. It will therefore be accessible as hypertext under https://www.kernel.org/doc/html/latest/ Signed-off-by: Sven

[PATCH 0/6] pull request for net-next: batman-adv 2017-08-02

2017-08-02 Thread Simon Wunderlich
in the git repository at: git://git.open-mesh.org/linux-merge.git tags/batadv-next-for-davem-20170802 for you to fetch changes up to e45eba2467bd64fd196dc6f8b50ff5e59c0058da: batman-adv: Convert batman-adv.txt to reStructuredText (2017-07-29 09:51:28 +0200

[PATCH 2/6] batman-adv: Remove unnecessary length qualifier in %14pM

2017-08-02 Thread Simon Wunderlich
From: Joe Perches It's misleading and unnecessary. Signed-off-by: Joe Perches Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/distributed-arp-table.c | 2 +- 1 file changed, 1

Re: [PATCH 1/2] [for 4.13] net: qcom/emac: disable flow control autonegotiation by default

2017-08-02 Thread Timur Tabi
On 8/2/17 8:48 AM, David Laight wrote: If the nearby switches cannot handle pause frames, then the MAC shouldn't be sending them at all. There's no way for me to know whether the switches can handle the pause frames or not. You would think that sending one multicast pause frame ever 33ms

RE: [PATCH] Adding Agile-SD TCP module and modifying Kconfig and Makefile

2017-08-02 Thread David Laight
From: mohamedalrshah > Sent: 02 August 2017 05:44 > Published: > Alrshah, M.A., Othman, M., Ali, B. and Hanapi, Z.M., 2015. Agile-SD: a > Linux-based > TCP congestion control algorithm for supporting high-speed and short-distance > networks. > Journal of Network and Computer Applications, 55,

Re: [RFC PATCH v2 1/2] net: ethernet: nb8800: Reset HW block in ndo_open

2017-08-02 Thread Andrew Lunn
> > Finally, you still haven't explained why the hw needs to be reset in > > ndo_open(). Whatever is causing your lockup can almost certainly be > > triggered in some other way too. I will not accept this side-stepping > > of the issue. > > (I was not aware that you were the final authority on

Re: [virtio-dev] repost: af_packet vs virtio (was packed ring layout proposal v2)

2017-08-02 Thread Michael S. Tsirkin
On Tue, Aug 01, 2017 at 08:54:27PM -0700, Steven Luong wrote: > * Descriptor ring: > > Guest adds descriptors with unique index values and DESC_HW set in flags. > Host overwrites used descriptors with correct len, index, and DESC_HW > clear.  Flags are always set/cleared last. >

RE: [PATCH 1/2] [for 4.13] net: qcom/emac: disable flow control autonegotiation by default

2017-08-02 Thread David Laight
From: Timur Tabi > Sent: 01 August 2017 22:38 > The EMAC has a curious qwirk when RX flow control is enabled and the > kernel hangs. With the kernel hung, the EMAC's RX queue soon fills. > If RX flow control is enabled, the EMAC will then send a non-stop > stream of pause frames until the system

Re: [PATCH v3 01/11] net: phy: Add rockchip phy driver support

2017-08-02 Thread Andrew Lunn
> +static struct phy_driver rockchip_phy_driver[] = { > +{ > + .phy_id = 0x1234d400, > + .phy_id_mask= 0xfff0, > + .name = "Rockchip internal EPHY", > + .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause > +

Re: net-next virtio_net merge...

2017-08-02 Thread Michael S. Tsirkin
On Tue, Aug 01, 2017 at 03:12:20PM -0700, David Miller wrote: > > I just merged net into net-next and one of the conflicts had to do with > the truesize bug fix in 'net' conflicting with the changes in 'net-next' > which encode the headroom into the contexts for mergeable buffers. > > I did my

[iproute PATCH] bpf: Make bytecode-file reading a little more robust

2017-08-02 Thread Phil Sutter
bpf_parse_string() will now correctly handle: - Extraneous whitespace, - OPs on multiple lines and - overlong file names. The added feature of allowing to have OPs on multiple lines (like e.g. tcpdump prints them) is rather a side effect of fixing detection of malformed bytecode files having

Re: [PATCH net-next v1 1/3] gtp: refactor to support flow-based gtp encap and decap

2017-08-02 Thread Pablo Neira Ayuso
On Mon, Jul 31, 2017 at 09:21:36AM +0200, Andreas Schultz wrote: > Hi Jiannan, > > - On Jul 13, 2017, at 2:44 AM, Jiannan Ouyang ouya...@fb.com wrote: > > [...] > > > -static int gtp_rx(struct pdp_ctx *pctx, struct sk_buff *skb, > > - unsigned int hdrlen, unsigned int

Re: ARM GLX Khadas VIM Pro - Ethernet detected as only 10Mbps and stalled after some traffic

2017-08-02 Thread crow
Hi Jerome, On Wed, Jul 26, 2017 at 9:32 PM, Jerome Brunet wrote: > On Tue, 2017-07-25 at 18:56 +0200, crow wrote: >> Hi, >> Today I did test on ArchLinuxArm the Kernel v4.13-rc2. On downloading >> the linux git source the network will eventually get stalled. Here are >> the

Re: [PATCH] net: ethernet: stmmac: properly set PS bit in MII configurations during reset

2017-08-02 Thread Giuseppe CAVALLARO
Hi Thomas On 7/29/2017 9:54 PM, Thomas Petazzoni wrote: Hello Giuseppe, On Wed, 28 Jun 2017 16:40:51 +0200, Giuseppe CAVALLARO wrote: I do not want to change a critical reset function shared among different platforms where this problem has never met but you are right that we have to find a

Re: [PATCH 1/1 v3 nf-next] netfilter: constify nf_conntrack_l3/4proto parameters

2017-08-02 Thread Pablo Neira Ayuso
On Tue, Aug 01, 2017 at 12:25:01PM +0200, Julia Lawall wrote: > When a nf_conntrack_l3/4proto parameter is not on the left hand side > of an assignment, its address is not taken, and it is not passed to a > function that may modify its fields, then it can be declared as const. > > This change is

Re: [PATCH nf-next] netfilter: constify nf_loginfo structures

2017-08-02 Thread Pablo Neira Ayuso
On Tue, Aug 01, 2017 at 12:48:03PM +0200, Julia Lawall wrote: > The nf_loginfo structures are only passed as the seventh argument to > nf_log_trace, which is declared as const or stored in a local const > variable. Thus the nf_loginfo structures themselves can be const. > > Done with the help of

Re: [PATCH net-next 1/2] bpf: add support for sys_{enter|exit}_* tracepoints

2017-08-02 Thread Peter Zijlstra
On Tue, Aug 01, 2017 at 11:30:04PM -0700, Yonghong Song wrote: > diff --git a/kernel/events/core.c b/kernel/events/core.c > index 426c2ff..623c977 100644 > --- a/kernel/events/core.c > +++ b/kernel/events/core.c > @@ -8050,7 +8050,7 @@ static void perf_event_free_bpf_handler(struct > perf_event

Re: [PATCH 6/6] [net-next]net: i40e: Enable cloud filters in i40e via tc/flower classifier

2017-08-02 Thread Jamal Hadi Salim
On 17-08-01 10:13 PM, Nambiar, Amritha wrote: On 8/1/2017 3:56 AM, Jamal Hadi Salim wrote: On 17-07-31 08:38 PM, Amritha Nambiar wrote: This patch enables tc-flower based hardware offloads. tc/flower filter provided by the kernel is configured as driver specific cloud filter. The patch

Re: [PATCH net-next RFC 0/6] Configure cloud filters in i40e via tc/flower classifier

2017-08-02 Thread Jamal Hadi Salim
On 17-08-01 08:57 PM, Nambiar, Amritha wrote: On 8/1/2017 3:15 AM, Jamal Hadi Salim wrote: On 17-07-31 08:36 PM, Amritha Nambiar wrote: # tc filter add dev eth0 protocol ip parent : prio 1 flower\ dst_ip 192.168.1.1/32 ip_proto udp dst_port 22\ skip_sw indev eth0 action mirred

Re: [PATCH net-next] mdio_bus: Remove unneeded gpiod NULL check

2017-08-02 Thread Linus Walleij
On Tue, Jul 18, 2017 at 3:32 PM, Andrew Lunn wrote: > On Tue, Jul 18, 2017 at 09:52:51AM -0300, Fabio Estevam wrote: >> On Tue, Jul 18, 2017 at 9:48 AM, Sergei Shtylyov >> wrote: >> > On 07/18/2017 03:39 PM, Fabio Estevam wrote: >> > >> >>>

Re: [RFC PATCH v2 1/2] net: ethernet: nb8800: Reset HW block in ndo_open

2017-08-02 Thread Mason
On 02/08/2017 13:02, Måns Rullgård wrote: > Mason wrote: > >> Move all HW initializations to nb8800_init. >> This provides the basis for suspend/resume support. >> --- >> drivers/net/ethernet/aurora/nb8800.c | 50 >> +--- >> drivers/net/ethernet/aurora/nb8800.h

Re: [PATCH v3 10/11] ARM64: dts: rockchip: Add gmac2phy node support for rk3328

2017-08-02 Thread Sergei Shtylyov
Hello! On 08/02/2017 09:24 AM, David Wu wrote: The gmac2phy controller of rk3328 is connected to internal phy directly inside, add the node for the internal phy support. Signed-off-by: David Wu --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 25

[PATCH iproute2 1/2] tc actions: Improved batching and time filtered dumping

2017-08-02 Thread Jamal Hadi Salim
From: Jamal Hadi Salim dump more than TCA_ACT_MAX_PRIO actions per batch when the kernel supports it. Introduced keyword "since" for time based filtering of actions. Some example (we have 400 actions bound to 400 filters); at installation time. Using updated when tc setting

[PATCH iproute2 2/2] actions: update the man page to describe the "since" time filter

2017-08-02 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- man/man8/tc-actions.8 | 31 +++ 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/man/man8/tc-actions.8 b/man/man8/tc-actions.8 index 51f43af..f46166e

Re: [Intel-wired-lan] [PATCH 4/5] e1000e: Separate signaling for link check/link up

2017-08-02 Thread Neftin, Sasha
On 7/21/2017 21:36, Benjamin Poirier wrote: Lennart reported the following race condition: \ e1000_watchdog_task \ e1000e_has_link \ hw->mac.ops.check_for_link() === e1000e_check_for_copper_link /* link is up */ mac->get_link_status = false;

Re: [RFC PATCH v2 1/2] net: ethernet: nb8800: Reset HW block in ndo_open

2017-08-02 Thread Måns Rullgård
Mason writes: > Move all HW initializations to nb8800_init. > This provides the basis for suspend/resume support. > --- > drivers/net/ethernet/aurora/nb8800.c | 50 > +--- > drivers/net/ethernet/aurora/nb8800.h | 1 + > 2 files changed, 25

Re: [PATCH net 5/7] gtp: Initialize 64-bit per-cpu stats correctly

2017-08-02 Thread Pablo Neira Ayuso
On Tue, Aug 01, 2017 at 12:11:10PM -0700, Florian Fainelli wrote: > On 32-bit hosts and with CONFIG_DEBUG_LOCK_ALLOC we should be seeing a > lockdep splat indicating this seqcount is not correctly initialized, fix > that by using netdev_alloc_pcpu_stats() instead of an open coded > allocation. >

[PATCH] X25: constify null_x25_address

2017-08-02 Thread Julia Lawall
null_x25_address is only used to access the string it contains, so it can be const. Signed-off-by: Julia Lawall --- net/x25/af_x25.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index 5a1a98d..ac09593 100644

[PATCH 1/8] MIPS: BCM63XX: add clkdev lookup support

2017-08-02 Thread Jonas Gorski
Enable clkdev lookup support to allow us providing clocks under different names to devices more easily, so we don't need to care about clock name clashes anymore. Signed-off-by: Jonas Gorski --- arch/mips/Kconfig | 1 + arch/mips/bcm63xx/clk.c | 150

[PATCH 6/8] bcm63xx_enet: just use "enet" as the clock name

2017-08-02 Thread Jonas Gorski
Now that we have the individual clocks available as "enet" we don't need to rely on the device id for them anymore. Signed-off-by: Jonas Gorski --- drivers/net/ethernet/broadcom/bcm63xx_enet.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

[PATCH 0/8] MIPS: BCM63XX: add and use clkdev lookup support

2017-08-02 Thread Jonas Gorski
This patchset adds and uses clckdev lookup support to name input clocks in various drivers more closely to their functions, or simplify their usage. Since most of these patches touch arch/mips, it probably makes most sense to go through the MIPS tree. The HSSPI driver was already updated

[PATCH 7/8] MIPS: BCM63XX: move the HSSPI PLL HZ into its own clock

2017-08-02 Thread Jonas Gorski
Split up the HSSPL clock into rate and a gate clock, to more closely match the actual hardware. Signed-off-by: Jonas Gorski --- arch/mips/bcm63xx/clk.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/mips/bcm63xx/clk.c

[PATCH 5/8] MIPS: BCM63XX: provide enet clocks as "enet" to the ethernet devices

2017-08-02 Thread Jonas Gorski
Add lookups to provide the appropriate enetX clocks as just "enet" to the ethernet devices. Signed-off-by: Jonas Gorski --- arch/mips/bcm63xx/clk.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/mips/bcm63xx/clk.c b/arch/mips/bcm63xx/clk.c index

[PATCH 3/8] tty/bcm63xx_uart: use refclk for the expected clock name

2017-08-02 Thread Jonas Gorski
We now have the clock available under refclk, so use that. Signed-off-by: Jonas Gorski --- drivers/tty/serial/bcm63xx_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/bcm63xx_uart.c b/drivers/tty/serial/bcm63xx_uart.c index

[PATCH 4/8] tty/bcm63xx_uart: allow naming clock in device tree

2017-08-02 Thread Jonas Gorski
Codify using a named clock for the refclk of the uart. This makes it easier if we might need to add a gating clock (like present on the BCM6345). Signed-off-by: Jonas Gorski --- Documentation/devicetree/bindings/serial/brcm,bcm6345-uart.txt | 6 ++

[PATCH 8/8] MIPS: BMIPS: name the refclk clock for uart

2017-08-02 Thread Jonas Gorski
Add the clock name to the uart nodes, to name the input clock properly. Signed-off-by: Jonas Gorski --- arch/mips/boot/dts/brcm/bcm3368.dtsi | 2 ++ arch/mips/boot/dts/brcm/bcm63268.dtsi | 2 ++ arch/mips/boot/dts/brcm/bcm6328.dtsi | 2 ++

[PATCH 2/8] MIPS: BCM63XX: provide periph clock as refclk for uart

2017-08-02 Thread Jonas Gorski
Add a lookup as "refclk" to describe its function for the uarts. Signed-off-by: Jonas Gorski --- arch/mips/bcm63xx/clk.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/mips/bcm63xx/clk.c b/arch/mips/bcm63xx/clk.c index eb1cb0bf930b..0b898e5e4c5b

[PATCH net] net: hns: Add self-adaptive interrupt coalesce support in hns driver

2017-08-02 Thread Yunsheng Lin
From: Lin Yun Sheng When deal with low and high throughput, it is hard to achiece both high performance and low latency. In order to achiece that, this patch calculates the rx rate, and adjust the interrupt coalesce parameter accordingly. Signed-off-by: Yunsheng Lin

Re: [PATCH net] tcp: avoid setting cwnd to invalid ssthresh after cwnd reduction states

2017-08-02 Thread Eric Dumazet
On Tue, 2017-08-01 at 13:22 -0700, Yuchung Cheng wrote: > If the sender switches the congestion control during ECN-triggered > cwnd-reduction state (CA_CWR), upon exiting recovery cwnd is set to > the ssthresh value calculated by the previous congestion control. If > the previous congestion

Re: [RFC 1/1] constify tcp congestion

2017-08-02 Thread Eric Dumazet
On Wed, 2017-08-02 at 00:56 -0700, Eric Dumazet wrote: > Also, I am not convinced this would be a good move, since you added an > extra structure which is not const anyway. Actually, this extra structure might be needed if we want to move the tcp congestion sysctls to net namespace.

[patch net-next 2/6] rocker: Provide offload indication using nexthop flags

2017-08-02 Thread Jiri Pirko
From: Ido Schimmel We want to stop using the FIB info's flags to provide the offlaod indication and instead do that on a per-nexthop basis. Convert rocker to do just that. It only supports one nexthop per-route, so conversion is simple. Signed-off-by: Ido Schimmel

[patch net-next 6/6] ipv4: fib: Remove unused functions

2017-08-02 Thread Jiri Pirko
From: Ido Schimmel Previous patches converted users of these functions to provide offload indication using the nexthop's flags instead of the FIB info's. Signed-off-by: Ido Schimmel Signed-off-by: Jiri Pirko ---

[patch net-next 5/6] mlxsw: spectrum_router: Refresh offload indication upon group refresh

2017-08-02 Thread Jiri Pirko
From: Ido Schimmel Now that we provide offload indication using the nexthop's flags we must refresh the offload indication whenever the offload state within the group changes. This didn't matter until now, as offload indication was provided using the FIB info flags and

[patch net-next 4/6] mlxsw: spectrum_router: Don't check state when refreshing offload indication

2017-08-02 Thread Jiri Pirko
From: Ido Schimmel Previous patch removed the reliance on the counter in the FIB info to set the offload indication, so we no longer need to keep an offload state on each FIB entry and can just set or unset the RTNH_F_OFFLOAD flag in each nexthop. This is also necessary

[patch net-next 3/6] mlxsw: spectrum_router: Provide offload indication using nexthop flags

2017-08-02 Thread Jiri Pirko
From: Ido Schimmel In a similar fashion to previous patch, use the nexthop flags to provide offload indication instead of the FIB info's flags. In case a nexthop in a multipath route can't be offloaded (gateway's MAC can't be resolved, for example), then its offload flag

[patch net-next 0/6] ipv4: fib: Provide per-nexthop offload indication

2017-08-02 Thread Jiri Pirko
From: Jiri Pirko Ido says: Offload indication for IPv4 routes is currently set in the FIB info's flags. When multipath routes are employed, this can lead to a route being marked as offloaded although only one of its nexthops is actually offloaded. Instead, this patchset aims

Re: [RFC 1/1] constify tcp congestion

2017-08-02 Thread Eric Dumazet
On Tue, 2017-08-01 at 19:49 -0700, Stephen Hemminger wrote: > Split the TCP congestion ops structure into const and mutable portions. > Put the list pointers, key and a copy of the flags in new tcp_congestion_entry > structure. ... > -void tcp_unregister_congestion_control(struct

[patch net-next 1/6] ipv4: fib: Set offload indication according to nexthop flags

2017-08-02 Thread Jiri Pirko
From: Ido Schimmel We're going to have capable drivers indicate route offload using the nexthop flags, but for non-multipath routes these flags aren't dumped to user space. Instead, set the offload indication in the route message flags. Signed-off-by: Ido Schimmel

Re: [PATCH net-next 2/4] sock: ULP infrastructure

2017-08-02 Thread kbuild test robot
Hi Tom, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Tom-Herbert/ulp-Generalize-ULP-infrastructure/20170802-142035 config: x86_64-rhel (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached

[patch net-next] mlxsw: core: Use correct EMAD transaction ID in debug message

2017-08-02 Thread Jiri Pirko
From: Ido Schimmel 'trans->tid' is only assigned later in the function, resulting in a zero transaction ID. Use 'tid' instead. Signed-off-by: Ido Schimmel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/core.c | 2

Re: [PATCH net-next 2/4] sock: ULP infrastructure

2017-08-02 Thread kbuild test robot
Hi Tom, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Tom-Herbert/ulp-Generalize-ULP-infrastructure/20170802-142035 config: x86_64-randconfig-x019-201731 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save

Re: [PATCH v2 net-next 3/4] tcp: Adjust TCP ULP to defer to sockets ULP

2017-08-02 Thread kbuild test robot
Hi Tom, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Tom-Herbert/inet-include-net-sock-h-in-inet_common-h/20170802-141113 config: x86_64-rhel-7.2 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save

[PATCH net-next 0/2] bpf: add support for sys_{enter|exit}_* tracepoints

2017-08-02 Thread Yonghong Song
Currently, bpf programs cannot be attached to sys_enter_* and sys_exit_* style tracepoints. The main reason is that syscalls/sys_enter_* and syscalls/sys_exit_* tracepoints are treated differently from other tracepoints and there is no bpf hook to it. This patch set adds bpf support for these

[PATCH net-next 2/2] bpf: add a test case for syscalls/sys_{enter|exit}_* tracepoints

2017-08-02 Thread Yonghong Song
Signed-off-by: Yonghong Song --- samples/bpf/Makefile | 4 +++ samples/bpf/syscall_tp_kern.c | 62 + samples/bpf/syscall_tp_user.c | 71 +++ 3 files changed, 137 insertions(+) create mode 100644

[PATCH net-next 1/2] bpf: add support for sys_{enter|exit}_* tracepoints

2017-08-02 Thread Yonghong Song
Currently, bpf programs cannot be attached to sys_enter_* and sys_exit_* style tracepoints. The iovisor/bcc issue #748 (https://github.com/iovisor/bcc/issues/748) documents this issue. For example, if you try to attach a bpf program to tracepoints syscalls/sys_enter_newfstat, you will get the

[PATCH v3 11/11] ARM64: dts: rockchip: Enable gmac2phy for rk3328-evb

2017-08-02 Thread David Wu
Enable the gmac2phy, make the gmac2phy work on the rk3328-evb board. Signed-off-by: David Wu --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts

[PATCH v3 10/11] ARM64: dts: rockchip: Add gmac2phy node support for rk3328

2017-08-02 Thread David Wu
The gmac2phy controller of rk3328 is connected to internal phy directly inside, add the node for the internal phy support. Signed-off-by: David Wu --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git

Re: [PATCH v3 01/11] net: phy: Add rockchip phy driver support

2017-08-02 Thread Corentin Labbe
Hello I have some minor comment below > + > +#include > +#include > +#include > +#include > +#include > +#include in alphabetic order please [...] > +static int rockchip_init_tstmode(struct phy_device *phydev) > +{ > + int ret; > + > + /* Enable access to Analog and DSP register

[PATCH v3 09/11] ARM: dts: rk3228-evb: Enable the internal phy for gmac

2017-08-02 Thread David Wu
This patch enables the internal phy for rk3228 evb board by default. To use the external 1000M phy on evb board, need to make some switch of evb board to be on. Signed-off-by: David Wu --- arch/arm/boot/dts/rk3228-evb.dts | 20 1 file changed, 20

[PATCH v3 08/11] ARM: dts: rk322x: Add support internal phy for gmac

2017-08-02 Thread David Wu
This patch adds internal mac phy clock and internal mac phy reset for rk gmac using. Signed-off-by: David Wu --- arch/arm/boot/dts/rk322x.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi

[PATCH v3 07/11] net: stmmac: dwmac-rk: Add internal phy supprot for rk3328

2017-08-02 Thread David Wu
There are two mac controllers in the rk3328, the one connects to external phy, and the other one connects to internal phy. Like the mac of external phy, the internal phy's mac also needs to configure the related mac registers at GRF. Signed-off-by: David Wu ---

[PATCH v3 06/11] net: stmmac: dwmac-rk: Add internal phy support for rk3228

2017-08-02 Thread David Wu
There is only one mac controller in rk3228, which could connect to external phy or internal phy, use the grf_com_mux bit15 to route external/internal phy. Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 12 1 file changed, 12

[PATCH v3 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-08-02 Thread David Wu
To make internal phy work, need to configure the phy_clock, phy cru_reset and related registers. Signed-off-by: David Wu --- .../devicetree/bindings/net/rockchip-dwmac.txt | 6 +- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 81 ++ 2

[PATCH v3 00/11] Add the internal phy support

2017-08-02 Thread David Wu
The rk3228 and rk3328 support internal phy inside, let's enable it to work. And the internal phy need to do some special setting, so register the rockchip internal phy driver. David Wu (11): net: phy: Add rockchip phy driver support multi_v7_defconfig: Make rockchip phy built-in arm64:

[PATCH v3 01/11] net: phy: Add rockchip phy driver support

2017-08-02 Thread David Wu
Support internal ethernet phy currently. Signed-off-by: David Wu --- drivers/net/phy/Kconfig| 5 + drivers/net/phy/Makefile | 1 + drivers/net/phy/rockchip.c | 229 + 3 files changed, 235 insertions(+) create mode

[PATCH v3 02/11] multi_v7_defconfig: Make rockchip phy built-in

2017-08-02 Thread David Wu
Enable the rockchip phy for multi_v7_defconfig builds. Signed-off-by: David Wu --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 4d19c1b..94d7e71

[PATCH v3 04/11] net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii()

2017-08-02 Thread David Wu
This is wrong setting for rk3328_set_to_rmii(), so remove it. Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c

[PATCH v3 03/11] arm64: defconfig: Enable CONFIG_ROCKCHIP_PHY

2017-08-02 Thread David Wu
Make the rockchip phy driver built into the kernel. Signed-off-by: David Wu --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6c7d147..925bd478 100644 ---

Re: [RFC 0/1] tcp: constify congestion_ops

2017-08-02 Thread Florian Westphal
Stephen Hemminger wrote: > I wonder if restricting congestion control choices is still necessary? > It seems like being overly paranoid, and better enforced by having a more > limited kernel config, seccomp or other mechanism. Agree, I think it can be removed.

<    1   2