[PATCH net-next] lan743x: lan743x: Remove duplicated include from lan743x_ptp.c

2018-08-12 Thread Yue Haibing
Remove duplicated include. Signed-off-by: Yue Haibing --- drivers/net/ethernet/microchip/lan743x_ptp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/microchip/lan743x_ptp.c b/drivers/net/ethernet/microchip/lan743x_ptp.c index 42064fd..029a2af 100644 --- a/drivers/net/e

[PATCH][net-next][v2] packet: switch kvzalloc to allocate memory

2018-08-12 Thread Li RongQing
The patches includes following change: *Use modern kvzalloc()/kvfree() instead of custom allocations. *Remove order argument for alloc_pg_vec, it can get from req. *Remove order argument for free_pg_vec, free_pg_vec now uses kvfree which does not need order argument. *Remove pg_vec_order from s

Re: [PATCH net-next] openvswitch: Derive IP protocol number for IPv6 later frags

2018-08-12 Thread Pravin Shelar
On Fri, Aug 10, 2018 at 10:19 AM, Yi-Hung Wei wrote: > Currently, OVS only parses the IP protocol number for the first > IPv6 fragment, but sets the IP protocol number for the later fragments > to be NEXTHDF_FRAGMENT. This patch tries to derive the IP protocol > number for the IPV6 later frags so

bpf-next is CLOSED

2018-08-12 Thread Daniel Borkmann
Given the merge window is open right now, please only submit bug fixes to bpf tree at this time, thank you!

pull-request: bpf-next 2018-08-13

2018-08-12 Thread Daniel Borkmann
Hi David, The following pull-request contains BPF updates for your *net-next* tree. The main changes are: 1) Add driver XDP support for veth. This can be used in conjunction with redirect of another XDP program e.g. sitting on NIC so the xdp_frame can be forwarded to the peer veth directly

Re: [PATCH v2 bpf-next 0/4] bpf_skb_ancestor_cgroup_id helper

2018-08-12 Thread Daniel Borkmann
On 08/12/2018 07:49 PM, Andrey Ignatov wrote: > v1->v2: > - more reliable check for testing IPv6 to become ready in selftest. > > This patch set adds new BPF helper bpf_skb_ancestor_cgroup_id that returns > id of cgroup v2 that is ancestor of cgroup associated with the skb at the > ancestor_level.

Re: [Patch net] ipv6: fix double refcount of fib6_metrics

2018-08-12 Thread David Ahern
On 8/3/18 12:20 AM, Cong Wang wrote: > All the callers of ip6_rt_copy_init()/rt6_set_from() hold refcnt > of the "from" fib6_info, so there is no need to hold fib6_metrics > refcnt again, because fib6_metrics refcnt is only released when > fib6_info is gone, that is, they have the same life time, s

Re: [PATCH net] net/xdp: Fix suspicious RCU usage warning

2018-08-12 Thread Daniel Borkmann
On 08/12/2018 10:45 AM, Tariq Toukan wrote: > > > On 20/07/2018 12:36 AM, Alexei Starovoitov wrote: >> On Wed, Jul 18, 2018 at 05:13:54PM +0300, Tariq Toukan wrote: >>> >>> >>> On 17/07/2018 10:27 PM, Daniel Borkmann wrote: On 07/17/2018 06:47 PM, Alexei Starovoitov wrote: > On Tue, Jul

Re: The recvmsg() with IP_PKTINFO for local addresses returns various ipi_ifindex

2018-08-12 Thread David Ahern
On 8/9/18 2:13 AM, Damir Mansurov wrote: > Greetings, > > I use the IP_PKTINFO to detect ipi_ifindex from which the packet was > arrived, it used to work for local addresses also. > > For local addresses ipi_ifindex always returned 1, but starting from > Linux 4.14 ip_ifindex began to return vari

Re: [PATCH iproute2-next 3/3] q_netem: slotting with non-uniform distribution

2018-08-12 Thread David Ahern
On 8/6/18 11:09 AM, Yousuk Seung wrote: > @@ -417,21 +421,53 @@ static int netem_parse_opt(struct qdisc_util *qu, int > argc, char **argv, > } > } > } else if (matches(*argv, "slot") == 0) { > - NEXT_ARG(); > -

Re: [PATCH iproute2-next 2/3] q_netem: support delivering packets in delayed time slots

2018-08-12 Thread David Ahern
On 8/6/18 11:09 AM, Yousuk Seung wrote: > diff --git a/tc/q_netem.c b/tc/q_netem.c > index 9f9a9b3df255..f52a36b6c31c 100644 > --- a/tc/q_netem.c > +++ b/tc/q_netem.c > @@ -40,7 +40,10 @@ static void explain(void) > " [ loss gemodel PERCENT [R [1-H [1-K]]]\n" \ > "

Re: [PATCH iproute2-next 1/3] tc: support conversions to or from 64 bit nanosecond-based time

2018-08-12 Thread David Ahern
On 8/6/18 11:09 AM, Yousuk Seung wrote: > diff --git a/tc/tc_core.h b/tc/tc_core.h > index 1dfa9a4f773b..a0fe0923d171 100644 > --- a/tc/tc_core.h > +++ b/tc/tc_core.h > @@ -7,6 +7,10 @@ > > #define TIME_UNITS_PER_SEC 100 > > +#define NSEC_PER_USEC 1000 > +#define NSEC_PER_MSEC 100 >

Re: [PATCH iproute2-next] Add SKB Priority qdisc support in tc(8)

2018-08-12 Thread David Ahern
On 8/8/18 12:24 PM, Nishanth Devarajan wrote: > sch_skbprio is a qdisc that prioritizes packets according to their > skb->priority > field. Under congestion, it drops already-enqueued lower priority packets to > make space available for higher priority packets. Skbprio was conceived as a > solutio

Re: [PATCHi iproute2-next] ip: show min and max mtu

2018-08-12 Thread David Ahern
On 7/27/18 2:43 PM, Stephen Hemminger wrote: > From: Stephen Hemminger > > Add min/max MTU to the link details > > Signed-off-by: Stephen Hemminger > --- > include/uapi/linux/if_link.h | 2 ++ > ip/ipaddress.c | 10 ++ > 2 files changed, 12 insertions(+) > applied to i

[PATCH net-next] ieee802154: hwsim: using right kind of iteration

2018-08-12 Thread Alexander Aring
This patch fixes the error path to unsubscribe all other phy's from current phy. The actually code using a wrong kind of list iteration may copied from the case to unsubscribe the current phy from all other phy's. Cc: Stefan Schmidt Reported-by: Dan Carpenter Fixes: f25da51fdc38 ("ieee802154: hw

[PATCH v2 bpf-next 3/4] selftests/bpf: Add cgroup id helpers to bpf_helpers.h

2018-08-12 Thread Andrey Ignatov
Add bpf_skb_cgroup_id and bpf_skb_ancestor_cgroup_id helpers to bpf_helpers.h to use them in tests and samples. Signed-off-by: Andrey Ignatov --- tools/testing/selftests/bpf/bpf_helpers.h | 4 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/bpf/bpf_helpers.h b/tools/t

[PATCH v2 bpf-next 4/4] selftests/bpf: Selftest for bpf_skb_ancestor_cgroup_id

2018-08-12 Thread Andrey Ignatov
Add selftests for bpf_skb_ancestor_cgroup_id helper. test_skb_cgroup_id.sh prepares testing interface and adds tc qdisc and filter for it using BPF object compiled from test_skb_cgroup_id_kern.c program. BPF program in test_skb_cgroup_id_kern.c gets ancestor cgroup id using the new helper at diff

[PATCH v2 bpf-next 0/4] bpf_skb_ancestor_cgroup_id helper

2018-08-12 Thread Andrey Ignatov
v1->v2: - more reliable check for testing IPv6 to become ready in selftest. This patch set adds new BPF helper bpf_skb_ancestor_cgroup_id that returns id of cgroup v2 that is ancestor of cgroup associated with the skb at the ancestor_level. The helper is useful to implement policies in TC based o

[PATCH v2 bpf-next 1/4] bpf: Introduce bpf_skb_ancestor_cgroup_id helper

2018-08-12 Thread Andrey Ignatov
== Problem description == It's useful to be able to identify cgroup associated with skb in TC so that a policy can be applied to this skb, and existing bpf_skb_cgroup_id helper can help with this. Though in real life cgroup hierarchy and hierarchy to apply a policy to don't map 1:1. It's often t

[PATCH v2 bpf-next 2/4] bpf: Sync bpf.h to tools/

2018-08-12 Thread Andrey Ignatov
Sync skb_ancestor_cgroup_id() related bpf UAPI changes to tools/. Signed-off-by: Andrey Ignatov --- tools/include/uapi/linux/bpf.h | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 3102a

Re: [PATCH bpf-next 4/4] selftests/bpf: Selftest for bpf_skb_ancestor_cgroup_id

2018-08-12 Thread Andrey Ignatov
Yonghong Song [Sat, 2018-08-11 23:59 -0700]: > > > On 8/10/18 10:35 PM, Andrey Ignatov wrote: > > Add selftests for bpf_skb_ancestor_cgroup_id helper. > > > > test_skb_cgroup_id.sh prepares testing interface and adds tc qdisc and > > filter for it using BPF object compiled from test_skb_cgroup_

Re: [PATCH net-next] net: add an empty __netif_set_xps_queue() stab in the !CONFIG_XPS case

2018-08-12 Thread kbuild test robot
Hi Andrei, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Andrei-Vagin/net-add-an-empty-__netif_set_xps_queue-stab-in-the-CONFIG_XPS-case/20180813-001123 config: i386-tinyconfig (attached as .config)

Re: [PATCH] of: mdio: Support fixed links in of_phy_get_and_connect()

2018-08-12 Thread Andrew Lunn
> It's confusing, I guess these PHY's don't come and go > very much so the plug/play part isn't really exercised. Very true. We sometimes need to handle -EPROBE_DEFER, which is not too different from hot-plugging PHYs. Also, SFP modules are hot-pluggable, and can contain a copper PHY. However, SFP

[PATCH net-next 04/13] net: sched: act_gact method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_gact.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sched/act_gact.c b/net/sched/act_gact.c index bfccd34a3968..52a3e474d822 100644 --- a/net/sched/act_gact.c +++ b/net/sched/act_gact.c @@

[PATCH net-next 11/13] net: sched: act_skbmod method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_skbmod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/sched/act_skbmod.c b/net/sched/act_skbmod.c index e9c86ade3b40..d6a1af0c4171 100644 --- a/net/sched/act_skbmod.c +++ b/net/sched/act_skbm

[PATCH net-next 07/13] net: sched: act_pedit method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_pedit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c index 3f62da72ab6a..8a7a7cb94e83 100644 --- a/net/sched/act_pedit.c +++ b/net/sched/act_pedit.

[PATCH net-next 10/13] net: sched: act_skbedit method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_skbedit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sched/act_skbedit.c b/net/sched/act_skbedit.c index a6db47ebec11..926d7bc4a89d 100644 --- a/net/sched/act_skbedit.c +++ b/net/sched/ac

[PATCH net-next 00/13] net: sched: actions rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Having a structure (example tcf_mirred) and a function with the same name is not good for readability or grepability. This long overdue patchset improves it and make sure there is consistency across all actions Jamal Hadi Salim (13): net: sched: act_connmark method rena

[PATCH net-next 03/13] net: sched: act_sum method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_csum.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sched/act_csum.c b/net/sched/act_csum.c index f01c59ba6d12..5596fae4e478 100644 --- a/net/sched/act_csum.c +++ b/net/sched/act_csum.c @@

[PATCH net-next 01/13] net: sched: act_connmark method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_connmark.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sched/act_connmark.c b/net/sched/act_connmark.c index 2f9bc833d046..54c0bf54f2ac 100644 --- a/net/sched/act_connmark.c +++ b/net/sche

[PATCH net-next 13/13] net: sched: act_mirred method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_mirred.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c index 327be257033d..8ec216001077 100644 --- a/net/sched/act_mirred.c +++ b/net/sched/act_mi

[PATCH net-next 06/13] net: sched: act_nat method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_nat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sched/act_nat.c b/net/sched/act_nat.c index 4dd9188a72fd..822e903bfc25 100644 --- a/net/sched/act_nat.c +++ b/net/sched/act_nat.c @@ -93,8

[PATCH net-next 12/13] net: sched: act_vlan method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_vlan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sched/act_vlan.c b/net/sched/act_vlan.c index 5bde17fe3608..d1f5028384c9 100644 --- a/net/sched/act_vlan.c +++ b/net/sched/act_vlan.c @@

[PATCH net-next 09/13] net: sched: act_simple method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_simple.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sched/act_simple.c b/net/sched/act_simple.c index 18e4452574cd..e616523ba3c1 100644 --- a/net/sched/act_simple.c +++ b/net/sched/act_si

[PATCH net-next 02/13] net: sched: act_bpf method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_bpf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sched/act_bpf.c b/net/sched/act_bpf.c index 9e8a33f9fee3..9b30e62805c7 100644 --- a/net/sched/act_bpf.c +++ b/net/sched/act_bpf.c @@ -34,8

[PATCH net-next 08/13] net: sched: act_police method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_police.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/net/sched/act_police.c b/net/sched/act_police.c index 88c16d80c1cf..06f0742db593 100644 --- a/net/sched/act_police.c +++ b/net/s

[PATCH net-next 05/13] net: sched: act_ipt method rename for grep-ability and consistency

2018-08-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_ipt.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/sched/act_ipt.c b/net/sched/act_ipt.c index e149f0e66cb6..51f235bbeb5b 100644 --- a/net/sched/act_ipt.c +++ b/net/sched/act_ipt.c @@ -22

[PATCH net-next v2] cpumask: make cpumask_next_wrap available without smp

2018-08-12 Thread Willem de Bruijn
From: Willem de Bruijn The kbuild robot shows build failure on machines without CONFIG_SMP: drivers/net/virtio_net.c:1916:10: error: implicit declaration of function 'cpumask_next_wrap' cpumask_next_wrap is exported from lib/cpumask.o, which has lib-$(CONFIG_SMP) += cpumask.o same a

Re: [PATCH] of: mdio: Support fixed links in of_phy_get_and_connect()

2018-08-12 Thread Linus Walleij
On Wed, Jul 11, 2018 at 10:04 PM Andrew Lunn wrote: > What probably make sense as a followup is add a > of_phy_disconnect_and_put(). When the module is unloaded, you leak a > fixed link, because of_phy_deregister_fixed_link() is not being > called. I looked at this but I get a bit confused. How

[PATCH net] r8169: don't use MSI-X on RTL8168g

2018-08-12 Thread Heiner Kallweit
There have been two reports that network doesn't come back on resume from suspend when using MSI-X. Both cases affect the same chip version (RTL8168g - version 40), on different systems. Falling back to MSI fixes the issue. Even though we don't really have a proof yet that the network chip version

Re: [PATCH net-next] cpumask: make cpumask_next_wrap available without smp

2018-08-12 Thread Willem de Bruijn
On Sun, Aug 12, 2018 at 11:20 AM Willem de Bruijn wrote: > > From: Willem de Bruijn > > The kbuild robot shows build failure on machines without CONFIG_SMP: > > drivers/net/virtio_net.c:1916:10: error: > implicit declaration of function 'cpumask_next_wrap' > > cpumask_next_wrap is exported

[PATCH net-next] cpumask: make cpumask_next_wrap available without smp

2018-08-12 Thread Willem de Bruijn
From: Willem de Bruijn The kbuild robot shows build failure on machines without CONFIG_SMP: drivers/net/virtio_net.c:1916:10: error: implicit declaration of function 'cpumask_next_wrap' cpumask_next_wrap is exported from lib/cpumask.o, which has lib-$(CONFIG_SMP) += cpumask.o same a

Re: [PATCH net] net/xdp: Fix suspicious RCU usage warning

2018-08-12 Thread Tariq Toukan
On 20/07/2018 12:36 AM, Alexei Starovoitov wrote: On Wed, Jul 18, 2018 at 05:13:54PM +0300, Tariq Toukan wrote: On 17/07/2018 10:27 PM, Daniel Borkmann wrote: On 07/17/2018 06:47 PM, Alexei Starovoitov wrote: On Tue, Jul 17, 2018 at 06:10:38PM +0300, Tariq Toukan wrote: Fix the warning b

Re: [PATCH net-next 5/5] net: aquantia: bump driver version

2018-08-12 Thread Igor Russkikh
>> Hope the above are good enough arguments to keep up version bumps. > > A reasonably successful strategy is to version your out-of-tree driver > with corresponding kernel release versions. Flip the equation. > > E.g. current net-next will become 4.19, so all the features you're > pushing no

Re: [PATCH bpf-next 4/4] selftests/bpf: Selftest for bpf_skb_ancestor_cgroup_id

2018-08-12 Thread Yonghong Song
On 8/10/18 10:35 PM, Andrey Ignatov wrote: Add selftests for bpf_skb_ancestor_cgroup_id helper. test_skb_cgroup_id.sh prepares testing interface and adds tc qdisc and filter for it using BPF object compiled from test_skb_cgroup_id_kern.c program. BPF program in test_skb_cgroup_id_kern.c gets