linux-next: Fixes tag needs some work in the net-next tree

2019-02-25 Thread Stephen Rothwell
Hi all, In commit a638b1d8cc87 ("net: hns3: fix get VF RSS issue") Fixes tag Fixes: 374ad291762a ("net: hns3: net: hns3: Add RSS general configuration support for VF") has these problem(s): - Subject does not match target commit subject Just use git log -1 --format='Fixes:

Re: [PATCH net] sit: use ipv6_mod_enabled to check if ipv6 is disabled

2019-02-25 Thread Hangbin Liu
On Sun, Feb 24, 2019 at 08:24:51PM -0800, Eric Dumazet wrote: > > > On 02/24/2019 08:12 PM, Hangbin Liu wrote: > > ipv6_mod_enabled() is more safe and gentle to check if ipv6 is disabled > > at running time. > > > > > Why is it better exactly ? > > IPv6 can be enabled on the host, but disable

RE: [PATCH 2/3] net: ethernet: add c45 PHY support in MDIO read/write functions.

2019-02-25 Thread Parshuram Raju Thombare
>> >On Fri, Feb 22, 2019 at 08:12:42PM +, Parshuram Thombare wrote: >> >> This patch modify MDIO read/write functions to support >> >> communication with C45 PHY in Cadence ethernet controller driver. >> > >> >Hi Parshuram >> > >> >Are all versions of the MDIO controller capable of doing C45? >

RE: [PATCH 2/3] net: ethernet: add c45 PHY support in MDIO read/write functions.

2019-02-25 Thread Parshuram Raju Thombare
>On Fri, Feb 22, 2019 at 08:12:42PM +, Parshuram Thombare wrote: >> This patch modify MDIO read/write functions to support communication >> with C45 PHY in Cadence ethernet controller driver. >> >> Signed-off-by: Parshuram Thombare >> --- >> drivers/net/ethernet/cadence/macb.h | 15 +++

RE: [PATCH 0/3] Cover letter: Add support for high speed MAC in Cadence controller driver

2019-02-25 Thread Parshuram Raju Thombare
>Hi, > >Le 2/22/19 à 12:11 PM, Parshuram Thombare a écrit : >> Hello ! >> >> This patch series contain changes to support high speed MAC and PCS in >> Cadence ethernet controller driver. > >From patch submission perspective, your cover letter and individual patches do >not appear as a reply to thi

Re: INFO: task hung in rtnetlink_rcv_msg

2019-02-25 Thread Jesper Dangaard Brouer
On Sat, 23 Feb 2019 01:47:00 +0100 Daniel Borkmann wrote: > On 02/22/2019 10:45 PM, Jakub Kicinski wrote: > > On Fri, 22 Feb 2019 12:14:57 -0800, Joe Perches wrote: > >> On Fri, 2019-02-22 at 12:01 -0800, Jakub Kicinski wrote: > >>> Hi! > >>> > >>> Seems like something funny is going on with

Re: [PATCH net v2] af_packet: fix raw sockets over 6in4 tunnel

2019-02-25 Thread Nicolas Dichtel
Le 23/02/2019 à 00:53, Willem de Bruijn a écrit : > On Fri, Feb 22, 2019 at 2:50 PM David Miller wrote: >> >> From: Willem de Bruijn >> Date: Wed, 20 Feb 2019 13:39:23 -0500 >> >>> On Mon, Feb 18, 2019 at 1:50 PM Sasha Levin wrote: Should this go to -stable as well? The patch it fixes is in

RE: [PATCH 1/3] net: ethernet: add support for PCS and 2.5G speed

2019-02-25 Thread Parshuram Raju Thombare
>Le 2/22/19 à 12:12 PM, Parshuram Thombare a écrit : >> This patch add support for PCS (for SGMII interface) and 2.5Gbps MAC >> in Cadence ethernet controller driver. > >At a high level you don't seem to be making use of PHYLINK so which 2.5Gbps >interfaces do you actually support? > New ethernet

[PATCH] net: phy: dp83867: add soft reset delay

2019-02-25 Thread Max Uvarov
Similar to dp83640 delay after soft reset is needed to set up registers correctly. Signed-off-by: Max Uvarov --- drivers/net/phy/dp83867.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c index ac8ba642d616..e1ec36c51511 100644 --- a/dr

Re: [PATCH] tcp: detect use sendpage for slab-based objects

2019-02-25 Thread Vasily Averin
On 2/22/19 7:39 PM, Eric Dumazet wrote: > On Fri, Feb 22, 2019 at 6:02 AM Vasily Averin wrote: >> Eric, could you please elaborate once again why tcp_sendpage() should not >> handle slab objects? > > Simply because SLAB has its own way to manage objects from a page, and > does not care > about

Re: 32-bit Amlogic SoCs: avoid using Ethernet MAC addresses

2019-02-25 Thread Piero
Hi, in my experience using armbian (so a different distribution) on odroidc1 I see the mac is changing every time I do a new install but it is kept constant between reboots: so it looks like something that can be handled somewhere above the hardware-kernel layer. *Ciao Piero Il giorno dom 24 f

[PATCH] xfrm: correctly check policy index in verify_newpolicy_info

2019-02-25 Thread Yue Haibing
From: YueHaibing UBSAN report this: UBSAN: Undefined behaviour in net/xfrm/xfrm_policy.c:1289:24 index 6 is out of range for type 'unsigned int [6]' CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.162-514.55.6.9.x86_64+ #13 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1ubuntu

Re: [PATCH] tcp: detect use sendpage for slab-based objects

2019-02-25 Thread Vasily Averin
On 2/25/19 12:15 PM, Vasily Averin wrote: > On 2/22/19 7:39 PM, Eric Dumazet wrote: >> On Fri, Feb 22, 2019 at 6:02 AM Vasily Averin wrote: > >>> Eric, could you please elaborate once again why tcp_sendpage() should not >>> handle slab objects? >> >> Simply because SLAB has its own way to manage

Re: [PATCH] xfrm: correctly check policy index in verify_newpolicy_info

2019-02-25 Thread YueHaibing
Pls ignore this, sorry On 2019/2/25 17:27, Yue Haibing wrote: > From: YueHaibing > > UBSAN report this: > > UBSAN: Undefined behaviour in net/xfrm/xfrm_policy.c:1289:24 > index 6 is out of range for type 'unsigned int [6]' > CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.162-514.55.6.9.x86_64+ #

[PATCH net-next] tcp: remove unused parameter of tcp_sacktag_bsearch()

2019-02-25 Thread Taehee Yoo
parameter state in the tcp_sacktag_bsearch() is not used. So, it can be removed. Signed-off-by: Taehee Yoo --- net/ipv4/tcp_input.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 7a027dec649b..6ac274249961 1

RE: [PATCH net] staging: fsl-dpaa2: ethsw: Add missing netdevice check

2019-02-25 Thread Ioana Ciornei
> Subject: Re: [PATCH net] staging: fsl-dpaa2: ethsw: Add missing netdevice > check > > Le 2/23/19 à 12:45 AM, Ioana Ciornei a écrit : > > > >> Subject: [PATCH net] staging: fsl-dpaa2: ethsw: Add missing netdevice > >> check > >> > >> port_switchdev_event() does not check that the target network

Re: [PATCH net-next 7/8] net: switchdev: Replace port attr set SDO with a notification

2019-02-25 Thread Ido Schimmel
On Sun, Feb 24, 2019 at 08:47:27AM -0800, Florian Fainelli wrote: > Le 2/23/19 à 2:32 AM, Ido Schimmel a écrit : > > On Fri, Feb 22, 2019 at 03:59:25PM -0800, Florian Fainelli wrote: > >> - if (attr->flags & SWITCHDEV_F_NO_RECURSE) > >> + if (attr & SWITCHDEV_F_DEFER) > >> + rc = call_sw

Re: [PATCH] ath9k: remove set but not used variable 'acq'

2019-02-25 Thread Toke Høiland-Jørgensen
YueHaibing writes: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/wireless/ath/ath9k/recv.c: In function 'ath_rx_count_airtime': > drivers/net/wireless/ath/ath9k/recv.c:1010:18: warning: > variable 'acq' set but not used [-Wunused-but-set-variable] > > It's not used after 89cea

[PATCH v2] xfrm: correctly check policy index in verify_newpolicy_info

2019-02-25 Thread Yue Haibing
From: YueHaibing UBSAN report this: UBSAN: Undefined behaviour in net/xfrm/xfrm_policy.c:1289:24 index 6 is out of range for type 'unsigned int [6]' CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.162-514.55.6.9.x86_64+ #13 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1ubuntu

Re: [PATCH] ath9k: remove set but not used variable 'acq'

2019-02-25 Thread Kalle Valo
Toke Høiland-Jørgensen writes: > YueHaibing writes: > >> Fixes gcc '-Wunused-but-set-variable' warning: >> >> drivers/net/wireless/ath/ath9k/recv.c: In function 'ath_rx_count_airtime': >> drivers/net/wireless/ath/ath9k/recv.c:1010:18: warning: >> variable 'acq' set but not used [-Wunused-but-se

Re: [PATCH v2 bpf-next 4/9] bpf: add bpf helper bpf_skb_ecn_set_ce

2019-02-25 Thread Daniel Borkmann
On 02/23/2019 08:30 AM, Martin Lau wrote: > On Sat, Feb 23, 2019 at 02:14:26AM +0100, Daniel Borkmann wrote: >> On 02/23/2019 02:06 AM, brakmo wrote: >>> This patch adds a new bpf helper BPF_FUNC_skb_ecn_set_ce >>> "int bpf_skb_ecn_set_ce(struct sk_buff *skb)". It is added to >>> BPF_PROG_TYPE_CGRO

[PATCH net-next v2 0/7] net: sched: pie: align PIE implementation with RFC 8033

2019-02-25 Thread Leslie Monis
The current implementation of the PIE queuing discipline is according to the IETF draft [http://tools.ietf.org/html/draft-pan-aqm-pie-00] and the paper [PIE: A Lightweight Control Scheme to Address the Bufferbloat Problem]. However, a lot of necessary modifications and enhancements have been propos

[PATCH net-next v2 1/7] net: sched: pie: change value of QUEUE_THRESHOLD

2019-02-25 Thread Leslie Monis
From: "Mohit P. Tahiliani" RFC 8033 recommends a value of 16384 bytes for the queue threshold. Signed-off-by: Mohit P. Tahiliani Signed-off-by: Dhaval Khandla Signed-off-by: Hrishikesh Hiraskar Signed-off-by: Manish Kumar B Signed-off-by: Sachin D. Patil Signed-off-by: Leslie Monis --- ne

[PATCH net-next v2 4/7] net: sched: pie: change initial value of pie_vars->burst_time

2019-02-25 Thread Leslie Monis
From: "Mohit P. Tahiliani" RFC 8033 suggests an initial value of 150 milliseconds for the maximum time allowed for a burst of packets. Signed-off-by: Mohit P. Tahiliani Signed-off-by: Dhaval Khandla Signed-off-by: Hrishikesh Hiraskar Signed-off-by: Manish Kumar B Signed-off-by: Sachin D. Pat

[PATCH net-next v2 7/7] net: sched: pie: update references

2019-02-25 Thread Leslie Monis
From: "Mohit P. Tahiliani" RFC 8033 replaces the IETF draft for PIE Signed-off-by: Mohit P. Tahiliani Signed-off-by: Dhaval Khandla Signed-off-by: Hrishikesh Hiraskar Signed-off-by: Manish Kumar B Signed-off-by: Sachin D. Patil Signed-off-by: Leslie Monis --- net/sched/sch_pie.c | 4 +---

[PATCH net-next v2 2/7] net: sched: pie: change default value of pie_params->target

2019-02-25 Thread Leslie Monis
From: "Mohit P. Tahiliani" RFC 8033 suggests a default value of 15 milliseconds for the target queue delay. Signed-off-by: Mohit P. Tahiliani Signed-off-by: Dhaval Khandla Signed-off-by: Hrishikesh Hiraskar Signed-off-by: Manish Kumar B Signed-off-by: Sachin D. Patil Signed-off-by: Leslie M

[PATCH net-next v2 6/7] net: sched: pie: add derandomization mechanism

2019-02-25 Thread Leslie Monis
From: "Mohit P. Tahiliani" Random dropping of packets to achieve latency control may introduce outlier situations where packets are dropped too close to each other or too far from each other. This can cause the real drop percentage to temporarily deviate from the intended drop probability. In cer

[PATCH net-next v2 5/7] net: sched: pie: add more cases to auto-tune alpha and beta

2019-02-25 Thread Leslie Monis
From: "Mohit P. Tahiliani" The current implementation scales the local alpha and beta variables in the calculate_probability function by the same amount for all values of drop probability below 1%. RFC 8033 suggests using additional cases for auto-tuning alpha and beta when the drop probability

[PATCH net-next v2 3/7] net: sched: pie: change default value of pie_params->tupdate

2019-02-25 Thread Leslie Monis
From: "Mohit P. Tahiliani" RFC 8033 suggests a default value of 15 milliseconds for the update interval. Signed-off-by: Mohit P. Tahiliani Signed-off-by: Dhaval Khandla Signed-off-by: Hrishikesh Hiraskar Signed-off-by: Manish Kumar B Signed-off-by: Sachin D. Patil Signed-off-by: Leslie Moni

[PATCH] tcp: clean up SOCK_DEBUG()

2019-02-25 Thread Yafang Shao
Per discussion with Daniel[1] and Eric[2], these SOCK_DEBUG() calles in TCP are not needed now. We'd better clean up it. [1] https://patchwork.ozlabs.org/patch/1035573/ [2] https://patchwork.ozlabs.org/patch/1040533/ Signed-off-by: Yafang Shao --- net/ipv4/tcp_input.c | 19 +--

Re: [PATCH bpf-next 1/4] bpf: enable program stats

2019-02-25 Thread Daniel Borkmann
On 02/23/2019 03:38 AM, Alexei Starovoitov wrote: > On Sat, Feb 23, 2019 at 02:06:56AM +0100, Daniel Borkmann wrote: >> >> In general, having some stats and timing info would be useful, but I >> guess people might want to customize it in future even more specifically >> beyond number of runs + time

Re: [PATCH] ath9k: remove set but not used variable 'acq'

2019-02-25 Thread Toke Høiland-Jørgensen
Kalle Valo writes: > Toke Høiland-Jørgensen writes: > >> YueHaibing writes: >> >>> Fixes gcc '-Wunused-but-set-variable' warning: >>> >>> drivers/net/wireless/ath/ath9k/recv.c: In function 'ath_rx_count_airtime': >>> drivers/net/wireless/ath/ath9k/recv.c:1010:18: warning: >>> variable 'acq' se

Re: [PATCH] ath9k: remove set but not used variable 'acq'

2019-02-25 Thread Kalle Valo
Toke Høiland-Jørgensen writes: > Kalle Valo writes: > >> Toke Høiland-Jørgensen writes: >> >>> YueHaibing writes: >>> Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/ath/ath9k/recv.c: In function 'ath_rx_count_airtime': drivers/net/wireless/ath/ath9k/rec

Re: [PATCH] ath9k: remove set but not used variable 'acq'

2019-02-25 Thread Toke Høiland-Jørgensen
Kalle Valo writes: > Toke Høiland-Jørgensen writes: > >> Kalle Valo writes: >> >>> Toke Høiland-Jørgensen writes: >>> YueHaibing writes: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/wireless/ath/ath9k/recv.c: In function 'ath_rx_count_airtime': >

[PATCH net-next v2 0/5] net/mlx5e: Make little improvement for mlx5e

2019-02-25 Thread xiangxia . m . yue
From: Tonghao Zhang This serial patches are not bugfixes, and just little improvement for mlx5e. v1->v2 Patch 1: remove the duplicated error messages and stick to extack only Patch 2: use the 'unknown' instead of empty string Patch 5: is new patch Tonghao Zhang (5): net/mlx5e: Return -EOPNOTS

[PATCH net-next v2 4/5] net/mlx5e: Deletes unnecessary setting of esw_attr->parse_attr

2019-02-25 Thread xiangxia . m . yue
From: Tonghao Zhang This patch deletes unnecessary setting of the esw_attr->parse_attr to parse_attr in parse_tc_fdb_actions() because it is already done by the mlx5e_flow_esw_attr_init() function. Signed-off-by: Tonghao Zhang --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 1 - 1 file c

[PATCH net-next v2 5/5] net/mlx5e: Return -EOPNOTSUPP when attempting to offload an unsupported action

2019-02-25 Thread xiangxia . m . yue
From: Tonghao Zhang The encapsulation is not supported for mlx5 VFs. When we try to offload that action, the -EINVAL is returned, but not -EOPNOTSUPP. This patch changes the returned value and ignore to confuse user. For example: (p2p1_0 is VF net device) tc filter add dev p2p1_0 protocol ip pa

[PATCH net-next v2 1/5] net/mlx5e: Return -EOPNOTSUPP when modify header action zero

2019-02-25 Thread xiangxia . m . yue
From: Tonghao Zhang When max modify header action is zero, we return -EOPNOTSUPP directly. In this way, we can ignore wrong message info (e.g. "mlx5: parsed 0 pedit actions, can't do more"). This happens when offloading pedit actions on mlx VFs. For example: $ tc filter add dev mlx5_vf parent f

[PATCH net-next v2 2/5] net/mlx5e: Make the log friendly when decapsulation offload not supported

2019-02-25 Thread xiangxia . m . yue
From: Tonghao Zhang If we try to offload decapsulation actions to VFs hw, we get the log [1]. It's not friendly, because the kind of net device is null, and we don't know what '0' means. [1] "mlx5_core :05:01.2 vf_0: decapsulation offload is not supported for net device (0)" Signed-off-by

[PATCH net-next v2 3/5] net/mlx5e: Remove 'parse_attr' argument in parse_tc_fdb_actions()

2019-02-25 Thread xiangxia . m . yue
From: Tonghao Zhang This patch is a little improvement. Simplify the parse_tc_fdb_actions(). Signed-off-by: Tonghao Zhang --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

Re: [PATCH bpf] bpf: properly check TCP_CONGESTION optlen

2019-02-25 Thread Daniel Borkmann
On 02/24/2019 12:11 AM, Alexei Starovoitov wrote: > On Sat, Feb 23, 2019 at 12:48:53PM -0800, Eric Dumazet wrote: >> On 02/23/2019 12:38 PM, Alexei Starovoitov wrote: >>> On Sat, Feb 23, 2019 at 11:07:09AM -0800, Eric Dumazet wrote: If caller of bpf_setsockopt() is silly passing a negative opt

[PATCH net v2 0/2] selftests: pmtu: fix and increase coverage

2019-02-25 Thread Paolo Abeni
This series includes a fixup for the pmtu.sh test script, related to IPv6 address management, and adds coverage for the recently reported and fixed PMTU exception issue v1 -> v2: - several script cleanups Paolo Abeni (2): selftests: pmtu: disable DAD in all namespaces selftests: pmtu: add ex

[PATCH net v2 2/2] selftests: pmtu: add explicit tests for PMTU exceptions cleanup

2019-02-25 Thread Paolo Abeni
Add a couple of new tests, explicitly checking that the kernel timely releases PMTU exceptions on related device removal. This is mostly a regression test vs the issue fixed by commit f5b51fe804ec ("ipv6: route: purge exception on removal") Only 2 new test cases have been added, instead of extendi

[PATCH net v2 1/2] selftests: pmtu: disable DAD in all namespaces

2019-02-25 Thread Paolo Abeni
Otherwise, the configured IPv6 address could be still "tentative" at test time, possibly causing tests failures. We can also drop some sleep along the code and decrease the timeout for most commands so that the test runtime decreases. v1 -> v2: - fix comment (Stefano) Fixes: d1f1b9cbf34c ("selft

Re: [PATCH net] ipv4: Add ICMPv6 support when parse route ipproto

2019-02-25 Thread Sabrina Dubroca
2019-02-25, 15:47:00 +0800, Hangbin Liu wrote: > @@ -14,6 +15,7 @@ int rtm_getroute_parse_ip_proto(struct nlattr *attr, u8 > *ip_proto, > case IPPROTO_TCP: > case IPPROTO_UDP: > case IPPROTO_ICMP: > + case IPPROTO_ICMPV6: Is IPPROTO_ICMPV6 supposed to be valid in the IPv4 co

Re: [PATCH v2 bpf-next 4/4] tools/bpftool: recognize bpf_prog_info runtime and runcnt

2019-02-25 Thread Daniel Borkmann
On 02/23/2019 06:44 PM, Alexei Starovoitov wrote: > $ bpftool p s > 1: kprobe tag a56587d488d216c9 gpl runtime 79786 runcnt 8 > loaded_at 2019-02-22T12:22:51-0800 uid 0 > xlated 352B not jited memlock 4096B > > $ bpftool --json --pretty p s > [{ > "id": 1, > "type"

Re: [PATCH net-next] mlxsw: spectrum: remove set but not used variable 'autoneg_status'

2019-02-25 Thread Ido Schimmel
On Mon, Feb 25, 2019 at 02:03:28AM +, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/ethernet/mellanox/mlxsw/spectrum.c: In function > 'mlxsw_sp_port_get_link_ksettings': > drivers/net/ethernet/mellanox/mlxsw/spectrum.c:3062:5: warning: > variable 'autoneg

[PATCH net] sctp: get sctphdr by offset in sctp_compute_cksum

2019-02-25 Thread Xin Long
sctp_hdr(skb) only works when skb->transport_header is set properly. But in the path of nf_conntrack_in: sctp_packet() -> sctp_error() skb->transport_header is not guaranteed to be right value for sctp. It will cause to fail to check the checksum for sctp packets. So fix it by using offset, whic

[PATCH net] ipvs: get sctphdr by sctphoff in sctp_csum_check

2019-02-25 Thread Xin Long
sctp_csum_check() is called by sctp_s/dnat_handler() where it calls skb_make_writable() to ensure sctphdr to be linearized. So there's no need to get sctphdr by calling skb_header_pointer() in sctp_csum_check(). Signed-off-by: Xin Long --- net/netfilter/ipvs/ip_vs_proto_sctp.c | 7 ++- 1 fi

Re: [PATCH net v2 2/2] selftests: pmtu: add explicit tests for PMTU exceptions cleanup

2019-02-25 Thread Stefano Brivio
Just three minor details, feel free to ignore: On Mon, 25 Feb 2019 12:13:46 +0100 Paolo Abeni wrote: > @@ -1006,6 +1017,60 @@ test_pmtu_vti6_link_change_mtu() { > return ${fail} > } > > +chk_command() { All the other functions checking something are called 'check_*'. > + cmd=${1}

[PATCH net-next resend 1/2] net: dsa: mv88e6xxx: Default CMODE to 1000BaseX only on 6390X

2019-02-25 Thread Marek Behún
Commit 787799a9d555 sets the SERDES interfaces of 6390 and 6390X to 1000BaseX, but this is only needed on 6390X, since there are SERDES interfaces which can be used on lower ports on 6390. This commit fixes this by returning to previous behaviour on 6390. (Previous behaviour means that CMODE is no

[PATCH net-next resend 0/2]

2019-02-25 Thread Marek Behún
Hi, this is a rebased resend of patches I sent one month ago. I added Reviewed-by tags by Andrew and Florian. Marek

[PATCH net-next resend 2/2] net: dsa: mv88e6xxx: Fix phylink_validate for Topaz family

2019-02-25 Thread Marek Behún
The Topaz family should have different phylink_validate method from the Peridot, since on Topaz the port supporting 2500BaseX mode is port 5, not 9 and 10. Signed-off-by: Marek Behún Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/chip.c | 18 -- 1 file changed, 16 insert

Re: [PATCH ethtool] ethtool: Add support for 200Gbps (50Gbps per lane) link mode

2019-02-25 Thread Michal Kubecek
On Sun, Feb 24, 2019 at 07:11:04PM +0100, Michal Kubecek wrote: > On Sun, Feb 24, 2019 at 05:08:21PM +0200, Tariq Toukan wrote: > > From: Aya Levin > > > > Introduce 50Gbps per lane link modes and 200Gbps speed, update print > > functions and initialization functions accordingly. > > In addition,

Re: 32-bit Amlogic SoCs: avoid using Ethernet MAC addresses

2019-02-25 Thread Anand Moon
hi Martin, +Bartosz Golaszewski On Mon, 25 Feb 2019 at 02:25, Martin Blumenstingl wrote: > > I have seen Anand's your question in [0]: > > only issue is I have is the each time their is random MAC address so I > > get new IP from dhcp server. > > How can I avoid this. I have tried to enable eFu

[PATCH net-next] net: sched: act_tunnel_key: fix metadata handling

2019-02-25 Thread Vlad Buslov
Tunnel key action params->tcft_enc_metadata is only set when action is TCA_TUNNEL_KEY_ACT_SET. However, metadata pointer is incorrectly dereferenced during tunnel key init and release without verifying that action is if correct type, which causes NULL pointer dereference. Metadata tunnel dst_cache

[PATCH] cfg80211: Use kmemdup in cfg80211_gen_new_ie()

2019-02-25 Thread YueHaibing
Use kmemdup rather than duplicating its implementation Signed-off-by: YueHaibing --- net/wireless/scan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 287518c6caa4..04d888628f29 100644 --- a/net/wireless/scan.c +++ b/net/wir

Re: [PATCH net v2 2/2] selftests: pmtu: add explicit tests for PMTU exceptions cleanup

2019-02-25 Thread Sabrina Dubroca
2019-02-25, 12:13:46 +0100, Paolo Abeni wrote: > + if ! timeout 1 ${ns_a} ip link del dev veth_A-R1; then That doesn't work. "ip link del" is stuck in a way that timeout can't terminate it, so this is still going to hang. Did you actually test this? :/ > + err " can't delete veth

Re: [PATCH ethtool] ethtool: Add support for 200Gbps (50Gbps per lane) link mode

2019-02-25 Thread Aya Levin
On 2/24/2019 8:40 PM, Michal Kubecek wrote: > On Sun, Feb 24, 2019 at 05:47:51PM +0100, Andrew Lunn wrote: >> On Sun, Feb 24, 2019 at 05:08:21PM +0200, Tariq Toukan wrote: >>> From: Aya Levin >>> index 5a26cff5fb33..64ce0711ad5f 100644 >>> --- a/ethtool.8.in >>> +++ b/ethtool.8.in >>> @@ -650,6

Re: [PATCH 0/4] mwifiex PCI/wake-up interrupt fixes

2019-02-25 Thread Ard Biesheuvel
On Sun, 24 Feb 2019 at 15:08, Marc Zyngier wrote: > > For quite some time, I wondered why the PCI mwifiex device built in my > Chromebook was unable to use the good old legacy interrupts. But as MSIs > were working fine, I never really bothered investigating. I finally had a > look, and the result

Re: [PATCH net] sctp: get sctphdr by offset in sctp_compute_cksum

2019-02-25 Thread Neil Horman
On Mon, Feb 25, 2019 at 07:25:37PM +0800, Xin Long wrote: > sctp_hdr(skb) only works when skb->transport_header is set properly. > > But in the path of nf_conntrack_in: sctp_packet() -> sctp_error() > > skb->transport_header is not guaranteed to be right value for sctp. > It will cause to fail to

Re: [PATCH net v2 2/2] selftests: pmtu: add explicit tests for PMTU exceptions cleanup

2019-02-25 Thread Stefano Brivio
On Mon, 25 Feb 2019 13:33:30 +0100 Sabrina Dubroca wrote: > 2019-02-25, 12:13:46 +0100, Paolo Abeni wrote: > > + if ! timeout 1 ${ns_a} ip link del dev veth_A-R1; then > > That doesn't work. "ip link del" is stuck in a way that timeout can't > terminate it, so this is still going to hang. Di

Re: [PATCH] net: dsa: Inherit dev addr from master

2019-02-25 Thread xiaofeis
On 2019-02-22 22:30, Andrew Lunn wrote: On Fri, Feb 22, 2019 at 06:26:54PM +0530, Vinod Koul wrote: From: Xiaofei Shen When we create slave netdevice, the dev addr is inherited from master but the master dev addr maybe NULL at that time, so inherit it again while opening the slave. Hi Xiaofe

Re: [PATCH net] sctp: get sctphdr by offset in sctp_compute_cksum

2019-02-25 Thread Xin Long
On Mon, Feb 25, 2019 at 8:47 PM Neil Horman wrote: > > On Mon, Feb 25, 2019 at 07:25:37PM +0800, Xin Long wrote: > > sctp_hdr(skb) only works when skb->transport_header is set properly. > > > > But in the path of nf_conntrack_in: sctp_packet() -> sctp_error() > > > > skb->transport_header is not g

Re: [PATCH] net: dsa: Inherit dev addr from master

2019-02-25 Thread Andrew Lunn
> I think we can remove the first inherit, but if keep it, we can see > consistent address output by ifconfig -a before open master and slave > interface. True But it also means we see inconsistent MAC addresses on the master. The MAC address changes on open. Maybe it would be better to change y

Re: [PATCH] net: dsa: read mac address from DT for slave device

2019-02-25 Thread xiaofeis
Hi Florian We have two slave DSA interfaces, wan0 and lan0, one is for wan port, and the other is for lan port. Customer has it's mac address pool, they want to assign the mac address from the pool on wan0, lan0, and other interfaces like wifi, bt. Coreboot/uboot will populate it to the DTS nod

Re: [PATCH 1/2 v2] kprobe: Do not use uaccess functions to access kernel memory that can fault

2019-02-25 Thread Masami Hiramatsu
On Fri, 22 Feb 2019 15:59:30 -0800 Andy Lutomirski wrote: > On Fri, Feb 22, 2019 at 3:02 PM Jann Horn wrote: > > > > On Fri, Feb 22, 2019 at 11:39 PM Nadav Amit wrote: > > > > On Feb 22, 2019, at 2:21 PM, Nadav Amit wrote: > > > > > > > >> On Feb 22, 2019, at 2:17 PM, Jann Horn wrote: > > > >

Re: [PATCH net-next v2 0/7] net: sched: pie: align PIE implementation with RFC 8033

2019-02-25 Thread Jamal Hadi Salim
On 2019-02-25 5:20 a.m., Leslie Monis wrote: The current implementation of the PIE queuing discipline is according to the IETF draft [http://tools.ietf.org/html/draft-pan-aqm-pie-00] and the paper [PIE: A Lightweight Control Scheme to Address the Bufferbloat Problem]. However, a lot of necessary

Re: [PATCH v2] xfrm: correctly check policy index in verify_newpolicy_info

2019-02-25 Thread Herbert Xu
On Mon, Feb 25, 2019 at 05:56:00PM +0800, Yue Haibing wrote: > > the check. Then __xfrm_policy_unlink use the index to access array > policy_count > whose size is XFRM_POLICY_MAX * 2, triggering out of bounds access. No it doesn't. Even if it did the bug would be in __xfrm_policy_unlink and not

Re: [PATCH net-next v2 0/7] net: sched: pie: align PIE implementation with RFC 8033

2019-02-25 Thread Jamal Hadi Salim
On 2019-02-25 8:43 a.m., Jamal Hadi Salim wrote: On 2019-02-25 5:20 a.m., Leslie Monis wrote: The current implementation of the PIE queuing discipline is according to the IETF draft [http://tools.ietf.org/html/draft-pan-aqm-pie-00] and the paper [PIE: A Lightweight Control Scheme to Address th

Re: Fw: [Bug 202651] New: Thunderbolt: Regression in atlantic.ko between 4.20 and 5.00-rc4 for Aquantia NIC 1d6a:87b1

2019-02-25 Thread Igor Russkikh
Hi Stephen, Thanks for heads up. We are now looking into this, but the strange thing is atlantic driver had no valuable changes between 4.20 and 5.0rc. Also, from what user writes up in the ticket, the issue seems to be related with pci/thunderbolt subsystem, not with the device driver itself

Re: [PATCH net-next] net: sched: act_tunnel_key: fix metadata handling

2019-02-25 Thread Davide Caratti
On Mon, 2019-02-25 at 14:21 +0200, Vlad Buslov wrote: > Tunnel key action params->tcft_enc_metadata is only set when action is > TCA_TUNNEL_KEY_ACT_SET. However, metadata pointer is incorrectly > dereferenced during tunnel key init and release without verifying that > action is if correct type, whi

Re: [PATCH net] sctp: get sctphdr by offset in sctp_compute_cksum

2019-02-25 Thread Neil Horman
On Mon, Feb 25, 2019 at 09:20:44PM +0800, Xin Long wrote: > On Mon, Feb 25, 2019 at 8:47 PM Neil Horman wrote: > > > > On Mon, Feb 25, 2019 at 07:25:37PM +0800, Xin Long wrote: > > > sctp_hdr(skb) only works when skb->transport_header is set properly. > > > > > > But in the path of nf_conntrack_in

Re: [PATCH net-next v2 0/7] net: sched: pie: align PIE implementation with RFC 8033

2019-02-25 Thread Dave Taht
Jamal Hadi Salim writes: > On 2019-02-25 8:43 a.m., Jamal Hadi Salim wrote: >> On 2019-02-25 5:20 a.m., Leslie Monis wrote: >>> The current implementation of the PIE queuing discipline is >>> according to the >>> IETF draft [http://tools.ietf.org/html/draft-pan-aqm-pie-00] and >>> the paper >>> [

Re: [PATCH net-next v2 0/7] net: sched: pie: align PIE implementation with RFC 8033

2019-02-25 Thread Jamal Hadi Salim
On 2019-02-25 9:11 a.m., Dave Taht wrote: Jamal Hadi Salim writes: On 2019-02-25 8:43 a.m., Jamal Hadi Salim wrote: On 2019-02-25 5:20 a.m., Leslie Monis wrote: The current implementation of the PIE queuing discipline is according to the IETF draft [http://tools.ietf.org/html/draft-pan-aqm-p

Re: [net-next 05/14] i40e: fix up 32 bit timespec references

2019-02-25 Thread Arnd Bergmann
On Wed, Jul 26, 2017 at 12:33 PM Jeff Kirsher wrote: > > From: Jesse Brandeburg > > As it turns out there was only a small set of errors > on 32 bit, and we just needed to be using the right calls > for dealing with timespec64 variables. I just stumbled over code added by this older patch, and c

[PATCH] net: netem: fix skb length BUG_ON in __skb_to_sgvec

2019-02-25 Thread Sheng Lan
From: Sheng Lan Subject: [PATCH] net: netem: fix skb length BUG_ON in __skb_to_sgvec It can be reproduced by following steps: 1. virtio_net NIC is configured with gso/tso on 2. configure nginx as http server with an index file bigger than 1M bytes 3. use tc netem to produce duplicate packets and

Re: [PATCH 0/4] mwifiex PCI/wake-up interrupt fixes

2019-02-25 Thread Marc Zyngier
Hi Ard, On 25/02/2019 12:45, Ard Biesheuvel wrote: > On Sun, 24 Feb 2019 at 15:08, Marc Zyngier wrote: >> >> For quite some time, I wondered why the PCI mwifiex device built in my >> Chromebook was unable to use the good old legacy interrupts. But as MSIs >> were working fine, I never really both

Re: [PATCH v2 2/2] drivers: net: phy: mdio-mux: Add support for Generic Mux controls

2019-02-25 Thread Peter Rosin
On 2019-02-24 15:57, Andrew Lunn wrote: >> +static int mdio_mux_multiplexer_remove(struct platform_device *pdev) >> +{ >> +struct mdio_mux_multiplexer_state *s = platform_get_drvdata(pdev); >> + >> +mdio_mux_uninit(s->mux_handle); > > I've never used the multiplexer framework before. But i

[PATCH net-next] net: lmc: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles

2019-02-25 Thread Yang Wei
From: Yang Wei dev_consume_skb_irq() should be called in lmc_interrupt() when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly. Delete a redundant comment line in lmc_interrupt(). Signed-off-by: Yang Wei --- drivers/net/wan/lmc/lmc_main.c | 3 +-- 1 file changed, 1 inserti

[PATCH net-next] net: wan: wanxl: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles

2019-02-25 Thread Yang Wei
From: Yang Wei dev_consume_skb_irq() should be called in wanxl_tx_intr() when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly. Signed-off-by: Yang Wei --- drivers/net/wan/wanxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/wanxl.c b/

[PATCH net-next] net: wan: ixp4xx_hss: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles

2019-02-25 Thread Yang Wei
From: Yang Wei dev_consume_skb_irq() should be called in hss_hdlc_txdone_irq() when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly. Signed-off-by: Yang Wei --- drivers/net/wan/ixp4xx_hss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan

[PATCH net-next] net: wan: sbni: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles

2019-02-25 Thread Yang Wei
From: Yang Wei dev_consume_skb_irq() should be called in send_complete() when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly. Signed-off-by: Yang Wei --- drivers/net/wan/sbni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/sbni.c b/dr

Re: [PATCH net-next v2 0/7] net: sched: pie: align PIE implementation with RFC 8033

2019-02-25 Thread Leslie Monis
On Mon, Feb 25, 2019 at 06:11:25AM -0800, Dave Taht wrote: > Jamal Hadi Salim writes: > > > On 2019-02-25 8:43 a.m., Jamal Hadi Salim wrote: > >> On 2019-02-25 5:20 a.m., Leslie Monis wrote: > >>> The current implementation of the PIE queuing discipline is > >>> according to the > >>> IETF draft

[PATCH net-next] net: wan: cosa: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles

2019-02-25 Thread Yang Wei
From: Yang Wei dev_consume_skb_irq() should be called in cosa_net_tx_done() when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly. Signed-off-by: Yang Wei --- drivers/net/wan/cosa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/cosa.c b

[PATCH net-next] net: wan: z85230: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles

2019-02-25 Thread Yang Wei
From: Yang Wei dev_consume_skb_irq() should be called in z8530_tx_done() when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly. Signed-off-by: Yang Wei --- drivers/net/wan/z85230.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/z85230.c

[PATCH net v3 0/2] selftests: pmtu: fix and increase coverage

2019-02-25 Thread Paolo Abeni
This series includes a fixup for the pmtu.sh test script, related to IPv6 address management, and adds coverage for the recently reported and fixed PMTU exception issue v2 -> v3: - more cleanups v1 -> v2: - several script cleanups Paolo Abeni (2): selftests: pmtu: disable DAD in all namespac

[PATCH net v3 1/2] selftests: pmtu: disable DAD in all namespaces

2019-02-25 Thread Paolo Abeni
Otherwise, the configured IPv6 address could be still "tentative" at test time, possibly causing tests failures. We can also drop some sleep along the code and decrease the timeout for most commands so that the test runtime decreases. v1 -> v2: - fix comment (Stefano) Fixes: d1f1b9cbf34c ("selft

[PATCH net v3 2/2] selftests: pmtu: add explicit tests for PMTU exceptions cleanup

2019-02-25 Thread Paolo Abeni
Add a couple of new tests, explicitly checking that the kernel timely releases PMTU exceptions on related device removal. This is mostly a regression test vs the issue fixed by commit f5b51fe804ec ("ipv6: route: purge exception on removal") Only 2 new test cases have been added, instead of extendi

Re: [PATCH net-next] net: sched: act_tunnel_key: fix metadata handling

2019-02-25 Thread Vlad Buslov
On Mon 25 Feb 2019 at 14:04, Davide Caratti wrote: > On Mon, 2019-02-25 at 14:21 +0200, Vlad Buslov wrote: >> Tunnel key action params->tcft_enc_metadata is only set when action is >> TCA_TUNNEL_KEY_ACT_SET. However, metadata pointer is incorrectly >> dereferenced during tunnel key init and rele

Re: [PATCH net] ipvs: get sctphdr by sctphoff in sctp_csum_check

2019-02-25 Thread Marcelo Ricardo Leitner
On Mon, Feb 25, 2019 at 07:27:43PM +0800, Xin Long wrote: > sctp_csum_check() is called by sctp_s/dnat_handler() where it calls > skb_make_writable() to ensure sctphdr to be linearized. > > So there's no need to get sctphdr by calling skb_header_pointer() > in sctp_csum_check(). > > Signed-off-by

[PATCH net] net: sched: act_tunnel_key: fix NULL pointer dereference during init

2019-02-25 Thread Vlad Buslov
Metadata pointer is only initialized for action TCA_TUNNEL_KEY_ACT_SET, but it is unconditionally dereferenced in tunnel_key_init() error handler. Verify that metadata pointer is not NULL before dereferencing it in tunnel_key_init error handling code. Fixes: ee28bb56ac5b ("net/sched: fix memory le

Re: [PATCH ethtool] ethtool: Add support for 200Gbps (50Gbps per lane) link mode

2019-02-25 Thread Tariq Toukan
On 2/24/2019 9:40 PM, Andrew Lunn wrote: >>> This is getting less friendly all the time, and it was never very >>> friendly to start with. We have the strings which represent these link >>> modes in the table used for dumping caps. How about allowing the user >>> to list a comma separate list of

Re: [stable 3.18 backport v2] netlink: Trim skb to alloc size to avoid MSG_TRUNC

2019-02-25 Thread Greg Kroah-Hartman
On Fri, Feb 22, 2019 at 08:03:28AM -0800, Mark Salyzyn wrote: > From: "Arad, Ronen" > > Direct this upstream db65a3aaf29ecce2e34271d52e8d2336b97bd9fe sha to > stable 3.18. This patch addresses a race condition where a call to > > nlk->max_recvmsg_len = max(nlk->max_recvmsg_len, len); > nlk->m

[PATCH net-next v2] net: sched: act_tunnel_key: fix metadata handling

2019-02-25 Thread Vlad Buslov
Tunnel key action params->tcft_enc_metadata is only set when action is TCA_TUNNEL_KEY_ACT_SET. However, metadata pointer is incorrectly dereferenced during tunnel key init and release without verifying that action is if correct type, which causes NULL pointer dereference. Metadata tunnel dst_cache

Re: [PATCH net] net: sched: act_tunnel_key: fix NULL pointer dereference during init

2019-02-25 Thread Davide Caratti
On Mon, 2019-02-25 at 17:28 +0200, Vlad Buslov wrote: > Metadata pointer is only initialized for action TCA_TUNNEL_KEY_ACT_SET, but > it is unconditionally dereferenced in tunnel_key_init() error handler. > Verify that metadata pointer is not NULL before dereferencing it in > tunnel_key_init error

[PATCH net-next] net: sched: set dedicated tcf_walker flag when tp is empty

2019-02-25 Thread Vlad Buslov
Using tcf_walker->stop flag to determine when tcf_walker->fn() was called at least once is unreliable. Some classifiers set 'stop' flag on error before calling walker callback, other classifiers used to call it with NULL filter pointer when empty. In order to prevent further regressions, extend tcf

Re: [PATCH bpf] bpf: properly check TCP_CONGESTION optlen

2019-02-25 Thread Eric Dumazet
On Mon, Feb 25, 2019 at 3:07 AM Daniel Borkmann wrote: > > On 02/24/2019 12:11 AM, Alexei Starovoitov wrote: > > On Sat, Feb 23, 2019 at 12:48:53PM -0800, Eric Dumazet wrote: > >> On 02/23/2019 12:38 PM, Alexei Starovoitov wrote: > >>> On Sat, Feb 23, 2019 at 11:07:09AM -0800, Eric Dumazet wrote:

[PATCH ethtool V2] ethtool: Add support for 200Gbps (50Gbps per lane) link mode

2019-02-25 Thread Tariq Toukan
From: Aya Levin Introduce 50Gbps per lane link modes and 200Gbps speed, update print functions and initialization functions accordingly. In addition, update related man page accordingly. Signed-off-by: Aya Levin Signed-off-by: Tariq Toukan --- ethtool-copy.h | 18 +- ethtool.8

[PATCH net-next] net: sched: don't release block->lock when dumping chains

2019-02-25 Thread Vlad Buslov
Function tc_dump_chain() obtains and releases block->lock on each iteration of its inner loop that dumps all chains on block. Outputting chain template info is fast operation so locking/unlocking mutex multiple times is an overhead when lock is highly contested. Modify tc_dump_chain() to only obtai

  1   2   3   4   >