Re: [patch net-next 00/34] net: sched: allow qdiscs to share filter block instances

2017-10-12 Thread David Miller
From: Jiri Pirko Date: Fri, 13 Oct 2017 08:21:01 +0200 > Thu, Oct 12, 2017 at 07:21:48PM CEST, da...@davemloft.net wrote: >> >>Jiri I'm not looking at a 34 patch set, it's too large. >> >>Break this up into groups of a dozen or so patches each, no >>more. Submit them one at a time and wait for e

Re: [patch net-next 06/34] net: core: use dev->ingress_queue instead of tp->q

2017-10-12 Thread Jiri Pirko
Thu, Oct 12, 2017 at 11:45:43PM CEST, dan...@iogearbox.net wrote: >On 10/12/2017 07:17 PM, Jiri Pirko wrote: >> From: Jiri Pirko >> >> In sch_handle_egress and sch_handle_ingress, don't use tp->q and use >> dev->ingress_queue which stores the same pointer instead. >> >> Signed-off-by: Jiri Pirko

Re: [patch net-next 00/34] net: sched: allow qdiscs to share filter block instances

2017-10-12 Thread Jiri Pirko
Thu, Oct 12, 2017 at 11:37:30PM CEST, dsah...@gmail.com wrote: >On 10/12/17 11:17 AM, Jiri Pirko wrote: >> So back to the example. First, we create 2 qdiscs. Both will share >> block number 22. "22" is just an identification. If we don't pass any >> block number, a new one will be generated by kern

Re: [patch net-next 00/34] net: sched: allow qdiscs to share filter block instances

2017-10-12 Thread Jiri Pirko
Thu, Oct 12, 2017 at 07:21:48PM CEST, da...@davemloft.net wrote: > >Jiri I'm not looking at a 34 patch set, it's too large. > >Break this up into groups of a dozen or so patches each, no >more. Submit them one at a time and wait for each series >to be fully reviewed and integrated before moving on

Re: [PATCH net-next 1/1] net/smc: add SMC rendezvous protocol

2017-10-12 Thread David Miller
From: Florian Westphal Date: Thu, 12 Oct 2017 13:14:29 +0200 > Ursula Braun wrote: >> On 10/11/2017 11:06 PM, David Miller wrote: >> > From: Ursula Braun >> > Date: Tue, 10 Oct 2017 16:14:19 +0200 >> > >> >> The goal of this patch is to leave common TCP code unmodified. Thus, >> >> it uses net

Re: [PATCH net-next] selftests: rtnetlink: add a small macsec test case

2017-10-12 Thread David Miller
From: Florian Westphal Date: Thu, 12 Oct 2017 11:11:22 +0200 > Signed-off-by: Florian Westphal Applied.

Re: [PATCH net-next 0/8] cxgb4: add support to get hardware debug logs via ethtool

2017-10-12 Thread David Miller
From: Rahul Lakkireddy Date: Thu, 12 Oct 2017 13:54:37 +0530 > This series of patches add support to collect hardware debug logs > via ethtool --get-dump facility. There is a lot of global namespace pollution added by these changes. A lot of the global symbols you add in this new code have very

Re: [PATCH] ravb: Consolidate clock handling

2017-10-12 Thread David Miller
From: Geert Uytterhoeven Date: Thu, 12 Oct 2017 10:24:53 +0200 > The module clock is used for two purposes: > - Wake-on-LAN (WoL), which is optional, > - gPTP Timer Increment (GTI) configuration, which is mandatory. > > As the clock is needed for GTI configuration anyway, WoL is always > ava

Re: [PATCH 0/2] net: support bgmac with B50212E B1 PHY

2017-10-12 Thread David Miller
From: Rafał Miłecki Date: Thu, 12 Oct 2017 10:21:24 +0200 > From: Rafał Miłecki > > I got a report that a board with BCM47189 SoC and B50212E B1 PHY doesn't > work well some devices as there is massive ping loss. After analyzing > PHY state it has appeared that is runs in slave mode and doesn't

Re: [PATCH] ip: update policy routing config help

2017-10-12 Thread David Miller
From: Stephen Hemminger Date: Wed, 11 Oct 2017 20:10:31 -0700 > The kernel config help for policy routing was still pointing at > an ancient document from 2000 that refers to Linux 2.1. Update it > to point to something that is at least occasionally updated. > > Signed-off-by: Stephen Hemminger

Re: [PATCH next] ipvlan: always use the current L2 addr of the master

2017-10-12 Thread David Miller
From: Mahesh Bandewar Date: Wed, 11 Oct 2017 17:16:26 -0700 > From: Mahesh Bandewar > > If the underlying master ever changes its L2 (e.g. bonding device), > then make sure that the IPvlan slaves always emit packets with the > current L2 of the master instead of the stale mac addr which was > c

Re: [PATCH net-next 0/4] tc-testing: Test suite updates

2017-10-12 Thread David Miller
From: Lucas Bates Date: Wed, 11 Oct 2017 17:16:50 -0400 > This patch series is a roundup of changes to the tc-testing > suite: > > - Add test cases for police and mirred modules and some coverage >in already-submitted test categories > - Break the test case files down into more user-friend

Re: [PATCH net-next 0/3] sched: act: ife: UAPI checks and performance tweaks

2017-10-12 Thread David Miller
From: Alexander Aring Date: Wed, 11 Oct 2017 17:16:05 -0400 > this patch series contains at first a patch which adds a check for > IFE_ENCODE and IFE_DECODE when a ife act gets created or updated and adding > handling of these cases only inside the act callback only. > > The second patch use per

Re: [PATCH net-next 0/2] Fix IFE meta modules loading

2017-10-12 Thread David Miller
From: Roman Mashak Date: Thu, 12 Oct 2017 16:37:39 -0400 > David Miller writes: > >> From: Roman Mashak >> Date: Wed, 11 Oct 2017 10:50:28 -0400 >> >>> Adjust module alias names of IFE meta modules and fix the bug that >>> prevented auto-loading IFE modules in run-time. >> >> Anyone using the

Waiting for your response to my numerous un-replied emails to you concerning your family inheritance fund ($7.5 million dollars). I seek your assistance and I assured of your capability to champion th

2017-10-12 Thread Enu Ofe

Waiting for your response to my numerous un-replied emails to you concerning your family inheritance fund ($7.5 million dollars). I seek your assistance and I assured of your capability to champion th

2017-10-12 Thread Enu Ofe

[PATCH v3] net: ftgmac100: Request clock and set speed

2017-10-12 Thread Joel Stanley
According to the ASPEED datasheet, gigabit speeds require a clock of 100MHz or higher. Other speeds require 25MHz or higher. This patch configures a 100MHz clock if the system has a direct-attached PHY, or 25MHz if the system is running NC-SI which is limited to 100MHz. There appear to be no other

Re: [PATCH] nfp: Explicitly include linux/bug.h

2017-10-12 Thread Jakub Kicinski
On Fri, 13 Oct 2017 03:50:35 +0100, Mark Brown wrote: > Today's -next build encountered an error due to a missing definition of > WARN_ON(), caused by some header reorganization removing an implicit > inclusion of linux/bug.h. Fix this with an explicit inclusion. > > Signed-off-by: Mark Brown A

[PATCH] nfp: Explicitly include linux/bug.h

2017-10-12 Thread Mark Brown
Today's -next build encountered an error due to a missing definition of WARN_ON(), caused by some header reorganization removing an implicit inclusion of linux/bug.h. Fix this with an explicit inclusion. Signed-off-by: Mark Brown --- drivers/net/ethernet/netronome/nfp/nfp_app.c | 1 + drivers/n

Re: [next-queue PATCH v7 4/6] net/sched: Introduce Credit Based Shaper (CBS) qdisc

2017-10-12 Thread Eric Dumazet
On Thu, 2017-10-12 at 17:40 -0700, Vinicius Costa Gomes wrote: > This queueing discipline implements the shaper algorithm defined by > the 802.1Q-2014 Section 8.6.8.2 and detailed in Annex L. > > It's primary usage is to apply some bandwidth reservation to user > defined traffic classes, which are

linux-next: build failure after merge of the akpm-current tree

2017-10-12 Thread Mark Brown
Hi Andrew, After merging the akpm-current tree, today's linux-next build (x86 allmodconfig) failed like this: CC [M] drivers/net/ethernet/netronome/nfp/nfp_app.o In file included from /home/broonie/tmpfs/next/drivers/net/ethernet/netronome/nfp/nfp_asm.c:40:0: /home/broonie/tmpfs/next/drivers/

Re: [PATCH net-next v2 1/1] bridge: return error code when deleting Vlan

2017-10-12 Thread Nikolay Aleksandrov
On 13.10.2017 05:03, Jamal Hadi Salim wrote: > On 17-10-12 02:12 PM, Nikolay Aleksandrov wrote: >> On 12/10/17 21:07, Roman Mashak wrote: > >>> For example, if you attempt to delete a non-existing vlan on a port, >>> the current code succeeds and also sends event : >>> >>> rtnetlink_rcv_msg >>>   

Re: [PATCH net-next 1/2] mqprio: Add a new hardware offload type in mqprio

2017-10-12 Thread Yunsheng Lin
Hi, Yuval On 2017/10/13 4:10, Yuval Mintz wrote: >> When a driver supports both dcb and hardware offloaded mqprio, and >> user is running mqprio and dcb tool concurrently, the configuration >> set by each tool may be conflicted with each other because the dcb > (for second 'each') s/each/the > W

Re: [PATCH net-next 0/2] Add mqprio hardware offload support in hns3 driver

2017-10-12 Thread Yunsheng Lin
Hi, Yuval On 2017/10/13 4:21, Yuval Mintz wrote: >> This patchset adds a new hardware offload type in mqprio before adding >> mqprio hardware offload support in hns3 driver. > > I think one of the biggest issues in tying this to DCB configuration is the > non-immediate [and possibly non persisten

Re: [PATCH net-next v2 1/1] bridge: return error code when deleting Vlan

2017-10-12 Thread Jamal Hadi Salim
On 17-10-12 02:12 PM, Nikolay Aleksandrov wrote: On 12/10/17 21:07, Roman Mashak wrote: For example, if you attempt to delete a non-existing vlan on a port, the current code succeeds and also sends event : rtnetlink_rcv_msg rtnl_bridge_dellink br_dellink br_afspec

Re: [PATCH] tracing: bpf: Hide bpf trace events when they are not used

2017-10-12 Thread Steven Rostedt
On Thu, 12 Oct 2017 18:38:36 -0700 Alexei Starovoitov wrote: > actually just noticed that xdp tracepoints are not covered by ifdef. > They depend on bpf_syscall too. So probably makes sense to wrap > them together. > bpf tracepoints are not being actively worked on whereas xdp tracepoints > keep

[PATCH net-next v2 0/4] net: dsa: remove .set_addr

2017-10-12 Thread Vivien Didelot
An Ethernet switch may support having a MAC address, which can be used as the switch's source address in transmitted full-duplex Pause frames. If a DSA switch supports the related .set_addr operation, the DSA core sets the master's MAC address on the switch. This won't make sense anymore in a mul

[PATCH net-next v2 3/4] net: dsa: dsa_loop: remove .set_addr

2017-10-12 Thread Vivien Didelot
The .set_addr function does nothing, remove the dsa_loop implementation before getting rid of it completely in DSA. Signed-off-by: Vivien Didelot --- drivers/net/dsa/dsa_loop.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/net/dsa/dsa_loop.c b/drivers/net/dsa/dsa_loop.c inde

[PATCH net-next v2 2/4] net: dsa: mv88e6060: setup random mac address

2017-10-12 Thread Vivien Didelot
As for mv88e6xxx, setup the switch from within the mv88e6060 driver with a random MAC address, and remove the .set_addr implementation. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6060.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git

[PATCH net-next v2 4/4] net: dsa: remove .set_addr

2017-10-12 Thread Vivien Didelot
Now that there is no user for the .set_addr function, remove it from DSA. If a switch supports this feature (like mv88e6xxx), the implementation can be done in the driver setup. Signed-off-by: Vivien Didelot --- include/net/dsa.h | 1 - net/dsa/dsa2.c| 6 -- net/dsa/legacy.c | 6 --

[PATCH net-next v2 1/4] net: dsa: mv88e6xxx: setup random mac address

2017-10-12 Thread Vivien Didelot
An Ethernet switch may support having a MAC address, which can be used as the switch's source address in transmitted full-duplex Pause frames. If a DSA switch supports the related .set_addr operation, the DSA core sets the master's MAC address on the switch. This won't make sense anymore in a mult

Re: [PATCH net-next 3/3] sched: act: ife: update parameters via rcu handling

2017-10-12 Thread Jamal Hadi Salim
On 17-10-11 05:16 PM, Alexander Aring wrote: This patch changes the parameter updating via RCU and not protected by a spinlock anymore. This reduce the time that the spinlock is being held. Signed-off-by: Alexander Aring Acked-by: Jamal Hadi Salim cheers, jamal

Re: [PATCH net-next 2/3] sched: act: ife: migrate to use per-cpu counters

2017-10-12 Thread Jamal Hadi Salim
On 17-10-11 05:16 PM, Alexander Aring wrote: This patch migrates the current counter handling which is protected by a spinlock to a per-cpu counter handling. This reduce the time where the spinlock is being held. Signed-off-by: Alexander Aring Acked-by: Jamal Hadi Salim cheers, jamal

Re: [PATCH] tracing: bpf: Hide bpf trace events when they are not used

2017-10-12 Thread Alexei Starovoitov
On Thu, Oct 12, 2017 at 09:35:01PM -0400, Steven Rostedt wrote: > On Thu, 12 Oct 2017 18:14:52 -0700 > Alexei Starovoitov wrote: > > > On Thu, Oct 12, 2017 at 06:40:02PM -0400, Steven Rostedt wrote: > > > From: Steven Rostedt (VMware) > > > > > > All the trace events defined in include/trace/ev

Re: [PATCH net-next 1/3] sched: act: ife: move encode/decode check to init

2017-10-12 Thread Jamal Hadi Salim
On 17-10-11 05:16 PM, Alexander Aring wrote: This patch adds the check of the two possible ife handlings encode and decode to the init callback. The decode value is for usability aspect and used in userspace code only. The current code offers encode else decode only. This patch avoids any other o

Re: [PATCH] tracing: bpf: Hide bpf trace events when they are not used

2017-10-12 Thread Steven Rostedt
On Thu, 12 Oct 2017 18:14:52 -0700 Alexei Starovoitov wrote: > On Thu, Oct 12, 2017 at 06:40:02PM -0400, Steven Rostedt wrote: > > From: Steven Rostedt (VMware) > > > > All the trace events defined in include/trace/events/bpf.h are only > > used when CONFIG_BPF_SYSCALL is defined. But this file

Re: [PATCH 2/6] ath9k: add a quirk to set use_msi automatically

2017-10-12 Thread Daniel Drake
On Fri, Oct 13, 2017 at 9:12 AM, AceLan Kao wrote: > Hi Daniel, > > After applied the 2 commits you mentioned in the email, ath9k works. > > https://marc.info/?l=linux-wireless&m=150631274108016&w=2 > https://github.com/endlessm/linux/commit/739c7a924db8f4434a9617657 Thanks for testing. However t

Re: [PATCH] tracing: bpf: Hide bpf trace events when they are not used

2017-10-12 Thread Alexei Starovoitov
On Thu, Oct 12, 2017 at 06:40:02PM -0400, Steven Rostedt wrote: > From: Steven Rostedt (VMware) > > All the trace events defined in include/trace/events/bpf.h are only > used when CONFIG_BPF_SYSCALL is defined. But this file gets included by > include/linux/bpf_trace.h which is included by the ne

Re: [PATCH] Add -target to clang switch while cross compiling.

2017-10-12 Thread Alexei Starovoitov
On Thu, Oct 12, 2017 at 04:58:43PM -0700, Abhijit Ayarekar wrote: > Update to llvm excludes assembly instructions. > llvm git revision is below > > commit 2865ab6996164e7854d55c9e21c065fad7c26569 > Author: Yonghong Song > Date: Mon Sep 18 23:29:36 2017 + > > bpf: add inline-asm support

Re: [PATCH 2/6] ath9k: add a quirk to set use_msi automatically

2017-10-12 Thread AceLan Kao
Hi Daniel, After applied the 2 commits you mentioned in the email, ath9k works. https://marc.info/?l=linux-wireless&m=150631274108016&w=2 https://github.com/endlessm/linux/commit/739c7a924db8f4434a9617657 Best regards, AceLan Kao. 2017-10-05 14:39 GMT+08:00 AceLan Kao : > Hi all, > > Please dro

Re: [patch net-next 27/34] nfp: bpf: Convert ndo_setup_tc offloads to block callbacks

2017-10-12 Thread Jakub Kicinski
On Thu, 12 Oct 2017 19:18:16 +0200, Jiri Pirko wrote: > diff --git a/drivers/net/ethernet/netronome/nfp/bpf/offload.c > b/drivers/net/ethernet/netronome/nfp/bpf/offload.c > index a88bb5b..9e9af88 100644 > --- a/drivers/net/ethernet/netronome/nfp/bpf/offload.c > +++ b/drivers/net/ethernet/netronome

Re: [RFC] Support for UNARP (RFC 1868)

2017-10-12 Thread महेश बंडेवार
On Thu, Oct 12, 2017 at 4:06 PM, Girish Moodalbail wrote: > Hello Eric, > > The basic idea is to mark the ARP entry either FAILED or STALE as soon as we > can so that the subsequent packets that depend on that ARP entry will take > the slow path (neigh_resolve_output()). > > Say, if base_reachable

[next-queue PATCH v7 4/6] net/sched: Introduce Credit Based Shaper (CBS) qdisc

2017-10-12 Thread Vinicius Costa Gomes
This queueing discipline implements the shaper algorithm defined by the 802.1Q-2014 Section 8.6.8.2 and detailed in Annex L. It's primary usage is to apply some bandwidth reservation to user defined traffic classes, which are mapped to different queues via the mqprio qdisc. Only a simple software

[next-queue PATCH v7 3/6] net/sched: Add select_queue() class_ops for mqprio

2017-10-12 Thread Vinicius Costa Gomes
From: Jesus Sanchez-Palencia When replacing a child qdisc from mqprio, tc_modify_qdisc() must fetch the netdev_queue pointer that the current child qdisc is associated with before creating the new qdisc. Currently, when using mqprio as root qdisc, the kernel will end up getting the queue #0 poin

[next-queue PATCH v7 1/6] net/sched: Check for null dev_queue on create flow

2017-10-12 Thread Vinicius Costa Gomes
From: Jesus Sanchez-Palencia In qdisc_alloc() the dev_queue pointer was used without any checks being performed. If qdisc_create() gets a null dev_queue pointer, it just passes it along to qdisc_alloc(), leading to a crash. That happens if a root qdisc implements select_queue() and returns a null

[next-queue PATCH v7 5/6] net/sched: Add support for HW offloading for CBS

2017-10-12 Thread Vinicius Costa Gomes
This adds support for offloading the CBS algorithm to the controller, if supported. Drivers wanting to support CBS offload must implement the .ndo_setup_tc callback and handle the TC_SETUP_CBS (introduced here) type. Signed-off-by: Vinicius Costa Gomes --- include/linux/netdevice.h | 1 + incl

[next-queue PATCH v7 6/6] igb: Add support for CBS offload

2017-10-12 Thread Vinicius Costa Gomes
From: Andre Guedes This patch adds support for Credit-Based Shaper (CBS) qdisc offload from Traffic Control system. This support enable us to leverage the Forwarding and Queuing for Time-Sensitive Streams (FQTSS) features from Intel i210 Ethernet Controller. FQTSS is the former 802.1Qav standard

[next-queue PATCH v7 0/6] TSN: Add qdisc based config interface for CBS

2017-10-12 Thread Vinicius Costa Gomes
Hi, Changes since v6: - Fixed compilation for 32bit arches; - Aligned the behaviour of .select_queue() of the mq qdisc to be the same as mqprio; Changes since v5: - Fixed comments from Jiri Pirko; Changes since v4: - Added a software implementation of the CBS algorithm; Changes since v3:

[next-queue PATCH v7 2/6] net/sched: Change behavior of mq select_queue()

2017-10-12 Thread Vinicius Costa Gomes
From: Jesus Sanchez-Palencia Currently, the class_ops select_queue() implementation on sch_mq returns a pointer to netdev_queue #0 when it receives and invalid qdisc id. That can be misleading since all of mq's inner qdiscs are attached to a valid netdev_queue. Here we fix that by returning NULL

[PATCH net-next v2 0/2] add UniPhier AVE ethernet support

2017-10-12 Thread Kunihiko Hayashi
This series adds support for Socionext AVE ethernet controller implemented on UniPhier SoCs. This driver supports RGMII/RMII modes. v1: http://www.spinics.net/lists/netdev/msg454292.html The PHY patch included in v1 has already separated in: http://www.spinics.net/lists/netdev/msg454595.html Cha

[PATCH net-next v2 1/2] dt-bindings: net: add DT bindings for Socionext UniPhier AVE

2017-10-12 Thread Kunihiko Hayashi
DT bindings for the AVE ethernet controller found on Socionext's UniPhier platforms. Signed-off-by: Kunihiko Hayashi Signed-off-by: Jassi Brar --- .../bindings/net/socionext,uniphier-ave4.txt | 53 ++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/

[PATCH net-next v2 2/2] net: ethernet: socionext: add AVE ethernet driver

2017-10-12 Thread Kunihiko Hayashi
The UniPhier platform from Socionext provides the AVE ethernet controller that includes MAC and MDIO bus supporting RGMII/RMII modes. The controller is named AVE. Signed-off-by: Kunihiko Hayashi Signed-off-by: Jassi Brar --- drivers/net/ethernet/Kconfig |1 + drivers/net/etherne

Waiting for your response to my numerous un-replied emails to you concerning your family inheritance fund ($7.5 million dollars). I seek your assistance and I assured of your capability to champion th

2017-10-12 Thread Collins Ogbor

[PATCH] Add -target to clang switch while cross compiling.

2017-10-12 Thread Abhijit Ayarekar
Update to llvm excludes assembly instructions. llvm git revision is below commit 2865ab6996164e7854d55c9e21c065fad7c26569 Author: Yonghong Song Date: Mon Sep 18 23:29:36 2017 + bpf: add inline-asm support Signed-off-by: Yonghong Song Acked-by: Alexei Starovoitov git-svn

[ANNOUNCE] nftables 0.8 release

2017-10-12 Thread Pablo Neira Ayuso
Hi! The Netfilter project proudly presents: nftables 0.8 This release contains new features available up to the (upcoming) Linux 4.14 kernel release: * Support for stateful objects, these objects are uniquely identified by a user-defined name, you can refer to them from rules, and the

[PATCH] Add -target to clang switch while cross compiling.

2017-10-12 Thread Abhijit Ayarekar
Update to llvm excludes assembly instructions. llvm git revision is below commit 2865ab6996164e7854d55c9e21c065fad7c26569 Author: Yonghong Song Date: Mon Sep 18 23:29:36 2017 + bpf: add inline-asm support Signed-off-by: Yonghong Song Acked-by: Alexei Starovoitov git-svn

[PATCH] wanxl: use m68k-linux-gnu-as if available

2017-10-12 Thread Adam Borowski
This fixes build failure on Debian based systems: GNU as is the only m68k assembler available in the archive (package binutils-m68k-linux-gnu). Signed-off-by: Adam Borowski --- I have no relevant hardware, thus I can't check whether the built firmware actually works. Some opcodes are translated

Re: [PATCH net-next 4/5] net: dsa: add slave get master helper

2017-10-12 Thread Vivien Didelot
Hi Florian, Florian Fainelli writes: > On 10/12/2017 03:51 PM, Vivien Didelot wrote: >> Many part of the DSA slave code require to get the master device >> assigned to a slave device. Remove dsa_master_netdev() in favor of a >> dsa_slave_get_master() helper which does that. >> >> Signed-off-by:

Re: [PATCH net-next 5/5] net: dsa: split dsa_port's netdev member

2017-10-12 Thread Vivien Didelot
Hi Florian, Florian Fainelli writes: > On 10/12/2017 03:51 PM, Vivien Didelot wrote: >> The dsa_port structure has a "netdev" member, which can be used for >> either the master device, or the slave device, depending on its type. >> >> It is true that today, CPU port are not exposed to userspace

Re: [Patch net-next v2] tcp: add a tracepoint for tcp_retransmit_skb()

2017-10-12 Thread Alexei Starovoitov
On Thu, Oct 12, 2017 at 03:48:07PM -0700, Cong Wang wrote: > We need a real-time notification for tcp retransmission > for monitoring. > > Of course we could use ftrace to dynamically instrument this > kernel function too, however we can't retrieve the connection > information at the same time, fo

Re: [PATCH] Add -target to clang switches while cross compiling.

2017-10-12 Thread Alexei Starovoitov
On Thu, Oct 12, 2017 at 03:43:22PM -0700, Abhijit Ayarekar wrote: > On Thu, Oct 12, 2017 at 03:23:04PM -0700, Alexei Starovoitov wrote: > > On Thu, Oct 12, 2017 at 01:45:57PM -0700, Abhijit Ayarekar wrote: > > > Latest llvm update excludes assembly instructions. > > > As a result __ASM_SYSREGS_H de

Re: [RFC] Support for UNARP (RFC 1868)

2017-10-12 Thread Girish Moodalbail
Hello Eric, The basic idea is to mark the ARP entry either FAILED or STALE as soon as we can so that the subsequent packets that depend on that ARP entry will take the slow path (neigh_resolve_output()). Say, if base_reachable_time is 30 seconds, then an ARP entry will be in reachable state

Re: [PATCH net-next 5/5] net: dsa: split dsa_port's netdev member

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:51 PM, Vivien Didelot wrote: > The dsa_port structure has a "netdev" member, which can be used for > either the master device, or the slave device, depending on its type. > > It is true that today, CPU port are not exposed to userspace, thus the > port's netdev member can be used

Re: [PATCH net-next 4/5] net: dsa: add slave get master helper

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:51 PM, Vivien Didelot wrote: > Many part of the DSA slave code require to get the master device > assigned to a slave device. Remove dsa_master_netdev() in favor of a > dsa_slave_get_master() helper which does that. > > Signed-off-by: Vivien Didelot > --- > +static inline struct

Re: [PATCH net-next 3/5] net: dsa: add slave to port helper

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:51 PM, Vivien Didelot wrote: > Many portions of DSA core code require to get the dsa_port structure > corresponding to a slave net_device. For this purpose, introduce a > dsa_slave_to_port() helper. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian

[PATCH] netfilter: nf_conntrack_h323: Remove typedef struct

2017-10-12 Thread Harsha Sharma
Remove typedef from struct as linux-kernel coding style tends to avoid using typedefs. Done using following coccinelle semantic patch @r1@ type T; @@ typedef struct { ... } T; @script:python c1@ T2; T << r1.T; @@ if T[-2:] =="_t" or T[-2:] == "_T": coccinelle.T2 = T[:-2]; else: c

Re: [PATCH net-next 2/5] net: dsa: add slave notify helper

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:51 PM, Vivien Didelot wrote: > Both DSA slave create and destroy functions call call_dsa_notifiers with > respectively DSA_PORT_REGISTER and DSA_PORT_UNREGISTER and the same > dsa_notifier_register_info structure. > > Wrap this in a dsa_slave_notify helper so prevent cluttering th

[PATCH net-next 0/5] net: dsa: master and slave helpers

2017-10-12 Thread Vivien Didelot
This patch series adds a few helpers to DSA core for clarity and readability but brings no functional changes. A dsa_slave_notify helper calls the DSA notifiers when (un)registering a slave device. Most of the DSA slave code only needs to access the dsa_port structure, not the dsa_slave_priv (whi

[PATCH net-next 5/5] net: dsa: split dsa_port's netdev member

2017-10-12 Thread Vivien Didelot
The dsa_port structure has a "netdev" member, which can be used for either the master device, or the slave device, depending on its type. It is true that today, CPU port are not exposed to userspace, thus the port's netdev member can be used to point to its master interface. But it is still sligh

[PATCH net-next 3/5] net: dsa: add slave to port helper

2017-10-12 Thread Vivien Didelot
Many portions of DSA core code require to get the dsa_port structure corresponding to a slave net_device. For this purpose, introduce a dsa_slave_to_port() helper. Signed-off-by: Vivien Didelot --- net/dsa/dsa_priv.h| 7 +++ net/dsa/legacy.c | 6 +- net/dsa/slave.c | 167 +

Re: [PATCH net-next 1/5] net: dsa: use port's cpu_dp when creating a slave

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:51 PM, Vivien Didelot wrote: > When dsa_slave_create is called, the related port already has a CPU port > assigned to it, available in its cpu_dp member. Use it instead of the > unique tree cpu_dp. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian

[PATCH net-next 1/5] net: dsa: use port's cpu_dp when creating a slave

2017-10-12 Thread Vivien Didelot
When dsa_slave_create is called, the related port already has a CPU port assigned to it, available in its cpu_dp member. Use it instead of the unique tree cpu_dp. Signed-off-by: Vivien Didelot --- net/dsa/slave.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/net/dsa/

[PATCH net-next 4/5] net: dsa: add slave get master helper

2017-10-12 Thread Vivien Didelot
Many part of the DSA slave code require to get the master device assigned to a slave device. Remove dsa_master_netdev() in favor of a dsa_slave_get_master() helper which does that. Signed-off-by: Vivien Didelot --- net/dsa/dsa_priv.h | 13 - net/dsa/slave.c| 26 +-

[PATCH net-next 2/5] net: dsa: add slave notify helper

2017-10-12 Thread Vivien Didelot
Both DSA slave create and destroy functions call call_dsa_notifiers with respectively DSA_PORT_REGISTER and DSA_PORT_UNREGISTER and the same dsa_notifier_register_info structure. Wrap this in a dsa_slave_notify helper so prevent cluttering these functions. Signed-off-by: Vivien Didelot --- net/

[Patch net-next v2] tcp: add a tracepoint for tcp_retransmit_skb()

2017-10-12 Thread Cong Wang
We need a real-time notification for tcp retransmission for monitoring. Of course we could use ftrace to dynamically instrument this kernel function too, however we can't retrieve the connection information at the same time, for example perf-tools [1] reads /proc/net/tcp for socket details, which

Re: [PATCH] Add -target to clang switches while cross compiling.

2017-10-12 Thread Abhijit Ayarekar
On Thu, Oct 12, 2017 at 03:23:04PM -0700, Alexei Starovoitov wrote: > On Thu, Oct 12, 2017 at 01:45:57PM -0700, Abhijit Ayarekar wrote: > > Latest llvm update excludes assembly instructions. > > As a result __ASM_SYSREGS_H define is not required. > > -target switch includes appropriate target speci

Re: [PATCH net-next] net: dsa: set random switch address

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:35 PM, Vivien Didelot wrote: > Hi Florian, > > Florian Fainelli writes: > >> On 10/12/2017 03:10 PM, Vivien Didelot wrote: >>> An Ethernet switch may support having a MAC address, which can be used >>> as the switch's source address in transmitted full-duplex Pause frames. >>> >

[PATCH] tracing: bpf: Hide bpf trace events when they are not used

2017-10-12 Thread Steven Rostedt
From: Steven Rostedt (VMware) All the trace events defined in include/trace/events/bpf.h are only used when CONFIG_BPF_SYSCALL is defined. But this file gets included by include/linux/bpf_trace.h which is included by the networking code with CREATE_TRACE_POINTS defined. If a trace event is creat

[net-next RFC 0/4] Openvswitch meter action

2017-10-12 Thread Andy Zhou
This patch series is the first attempt to add openvswitch meter support. We have previously experimented with adding metering support in nftables. However 1) It was not clear how to expose a named nftables object cleanly, and 2) the logic that implements metering is quite small, < 100 lines of code

[net-next RFC 2/4] openvswitch: export get_dp() API.

2017-10-12 Thread Andy Zhou
Later patches will invoke get_dp() outside of datapath.c. Export it. Signed-off-by: Andy Zhou --- net/openvswitch/datapath.c | 29 - net/openvswitch/datapath.h | 31 +++ 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/net/o

[net-next RFC 3/4] openvswitch: Add meter infrastructure

2017-10-12 Thread Andy Zhou
OVS kernel datapath so far does not support Openflow meter action. This is the first stab at adding kernel datapath meter support. This implementation supports only drop band type. Signed-off-by: Andy Zhou --- net/openvswitch/Makefile | 1 + net/openvswitch/datapath.c | 14 +- net/openvswit

[net-next RFC 1/4] openvswitch: Add meter netlink definitions

2017-10-12 Thread Andy Zhou
Meter has its own netlink family. Define netlink messages and attributes for communicating with the user space programs. Signed-off-by: Andy Zhou --- include/uapi/linux/openvswitch.h | 51 1 file changed, 51 insertions(+) diff --git a/include/uapi/linux/

[net-next RFC 4/4] openvswitch: Add meter action support

2017-10-12 Thread Andy Zhou
Implements OVS kernel meter action support. Signed-off-by: Andy Zhou --- include/uapi/linux/openvswitch.h | 1 + net/openvswitch/actions.c| 12 net/openvswitch/datapath.h | 1 + net/openvswitch/flow_netlink.c | 6 ++ 4 files changed, 20 insertions(+) diff --g

Re: [PATCH net-next] net: dsa: set random switch address

2017-10-12 Thread Vivien Didelot
Hi Florian, Florian Fainelli writes: > On 10/12/2017 03:10 PM, Vivien Didelot wrote: >> An Ethernet switch may support having a MAC address, which can be used >> as the switch's source address in transmitted full-duplex Pause frames. >> >> If a DSA switch supports the related .set_addr operatio

Re: [PATCH] Add -target to clang switches while cross compiling.

2017-10-12 Thread Alexei Starovoitov
On Thu, Oct 12, 2017 at 01:45:57PM -0700, Abhijit Ayarekar wrote: > Latest llvm update excludes assembly instructions. > As a result __ASM_SYSREGS_H define is not required. > -target switch includes appropriate target specific files. > > Tested on x86 and arm64 with llvm with git revision > commit

Re: [PATCH net-next] net: dsa: set random switch address

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:10 PM, Vivien Didelot wrote: > An Ethernet switch may support having a MAC address, which can be used > as the switch's source address in transmitted full-duplex Pause frames. > > If a DSA switch supports the related .set_addr operation, the DSA core > sets the master's MAC addres

[PATCH net-next] net: dsa: set random switch address

2017-10-12 Thread Vivien Didelot
An Ethernet switch may support having a MAC address, which can be used as the switch's source address in transmitted full-duplex Pause frames. If a DSA switch supports the related .set_addr operation, the DSA core sets the master's MAC address on the switch. This won't make sense anymore in a mul

Re: [net-next PATCH] mqprio: Reserve last 32 classid values for HW traffic classes and misc IDs

2017-10-12 Thread Jesus Sanchez-Palencia
Hi Alex, On 10/12/2017 11:38 AM, Alexander Duyck wrote: > From: Alexander Duyck > > This patch makes a slight tweak to mqprio in order to bring the > classid values used back in line with what is used for mq. The general idea > is to reserve values :ffe0 - :ffef to identify hardware traffic cla

Re: Ethtool question

2017-10-12 Thread Roopa Prabhu
On Thu, Oct 12, 2017 at 2:45 PM, Ben Greear wrote: > On 10/11/2017 01:49 PM, David Miller wrote: >> >> From: "John W. Linville" >> Date: Wed, 11 Oct 2017 16:44:07 -0400 >> >>> On Wed, Oct 11, 2017 at 09:51:56AM -0700, Ben Greear wrote: I noticed today that setting some ethtool settings

Re: [RFC 0/3] Adding config get/set to devlink

2017-10-12 Thread Roopa Prabhu
On Thu, Oct 12, 2017 at 12:20 PM, Florian Fainelli wrote: > On 10/12/2017 12:06 PM, David Miller wrote: >> From: Florian Fainelli >> Date: Thu, 12 Oct 2017 08:43:59 -0700 >> >>> Once we move ethtool (or however we name its successor) over to >>> netlink there is an opportunity for accessing objec

Re: [patch net-next 06/34] net: core: use dev->ingress_queue instead of tp->q

2017-10-12 Thread Daniel Borkmann
On 10/12/2017 07:17 PM, Jiri Pirko wrote: From: Jiri Pirko In sch_handle_egress and sch_handle_ingress, don't use tp->q and use dev->ingress_queue which stores the same pointer instead. Signed-off-by: Jiri Pirko --- net/core/dev.c | 21 +++-- 1 file changed, 15 insertions(+

Re: [PATCH net-next 01/12] bpf: verifier: set reg_type on context accesses in second pass

2017-10-12 Thread Daniel Borkmann
On 10/12/2017 11:39 PM, Jakub Kicinski wrote: On Thu, 12 Oct 2017 23:33:21 +0200, Daniel Borkmann wrote: On 10/12/2017 10:56 PM, Jakub Kicinski wrote: On Thu, 12 Oct 2017 22:43:10 +0200, Daniel Borkmann wrote: [...] It would be nice to keep the reg_type setting in one place, meaning the callb

Re: Ethtool question

2017-10-12 Thread Ben Greear
On 10/11/2017 01:49 PM, David Miller wrote: From: "John W. Linville" Date: Wed, 11 Oct 2017 16:44:07 -0400 On Wed, Oct 11, 2017 at 09:51:56AM -0700, Ben Greear wrote: I noticed today that setting some ethtool settings to the same value returns an error code. I would think this should silentl

Re: [PATCH net-next 01/12] bpf: verifier: set reg_type on context accesses in second pass

2017-10-12 Thread Jakub Kicinski
On Thu, 12 Oct 2017 23:33:21 +0200, Daniel Borkmann wrote: > On 10/12/2017 10:56 PM, Jakub Kicinski wrote: > > On Thu, 12 Oct 2017 22:43:10 +0200, Daniel Borkmann wrote: > [...] > >> It would be nice to keep the reg_type setting in one place, meaning > >> the callbacks themselves, so we wouldn't

Re: [patch net-next 00/34] net: sched: allow qdiscs to share filter block instances

2017-10-12 Thread David Ahern
On 10/12/17 11:17 AM, Jiri Pirko wrote: > So back to the example. First, we create 2 qdiscs. Both will share > block number 22. "22" is just an identification. If we don't pass any > block number, a new one will be generated by kernel: > > $ tc qdisc add dev ens7 ingress block 22 >

Re: [RFC 0/3] Adding config get/set to devlink

2017-10-12 Thread Michal Kubecek
On Thu, Oct 12, 2017 at 12:20:07PM -0700, Florian Fainelli wrote: > On 10/12/2017 12:06 PM, David Miller wrote: > > > > One suggestion is that devlink is used for getting ethtool stats for > > objects lacking netdev representor's, and a new genetlink family is > > used for netdev based ethtool. >

Re: [PATCH net-next 01/12] bpf: verifier: set reg_type on context accesses in second pass

2017-10-12 Thread Daniel Borkmann
On 10/12/2017 10:56 PM, Jakub Kicinski wrote: On Thu, 12 Oct 2017 22:43:10 +0200, Daniel Borkmann wrote: [...] It would be nice to keep the reg_type setting in one place, meaning the callbacks themselves, so we wouldn't need to maintain this in multiple places. Hm.. I though this was the smal

[PATCH] atm: fore200e: mark expected switch fall-throughs

2017-10-12 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/atm/fore200e.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c index f8b7e86..12

Hello

2017-10-12 Thread Daria Yoong Shang
Hello, Can i trust an investment project in your country? accepted please send email for more details. Best Regards Daria Yoong Shang

Re: [net-next V7 PATCH 3/5] bpf: cpumap xdp_buff to skb conversion and allocation

2017-10-12 Thread Edward Cree
On 12/10/17 13:26, Jesper Dangaard Brouer wrote: > This patch makes cpumap functional, by adding SKB allocation and > invoking the network stack on the dequeuing CPU. > > For constructing the SKB on the remote CPU, the xdp_buff in converted > into a struct xdp_pkt, and it mapped into the top headro

  1   2   3   4   >