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

2017-09-26 Thread AceLan Kao
Ath9k is an old driver for old chips, and they work fine with legacy INTx. But some new platforms are using it, so I think we should list those new platforms which blocks INTx in the driver. BTW, new chips use ath10k driver. 2017-09-26 14:44 GMT+08:00 Christoph Hellwig : > On Tue, Sep 26, 2017 at

Re: [PATCH v2 net-next 10/10] net: hns3: Add mqprio support when interacting with network stack

2017-09-26 Thread Yunsheng Lin
Hi, Yuval On 2017/9/26 14:43, Yuval Mintz wrote: >> When using tc qdisc to configure DCB parameter, dcb_ops->setup_tc >> is used to tell hclge_dcb module to do the setup. > > While this might be a step in the right direction, this causes an > inconsistency > in user experience - Some [well, most

Re: [PATCH v2 net-next 10/10] net: hns3: Add mqprio support when interacting with network stack

2017-09-26 Thread Yunsheng Lin
Hi, Yuval On 2017/9/26 14:43, Yuval Mintz wrote: >> When using tc qdisc to configure DCB parameter, dcb_ops->setup_tc >> is used to tell hclge_dcb module to do the setup. > > While this might be a step in the right direction, this causes an > inconsistency > in user experience - Some [well, most

Re: [PATCH] r8152: add Linksys USB3GIGV1 id

2017-09-26 Thread Greg KH
On Mon, Sep 25, 2017 at 01:17:32PM -0700, Grant Grundler wrote: > Correct. r8152 happens to claim the device before cdc_ether does - I > thought because cdc_ether is a class driver and only gets picked up > after vendor specific drivers are probed. Is that correct? Nope, there is not "priority" s

[PATCH net-next] net: ena: Remove redundant unlikely()

2017-09-26 Thread Tobias Klauser
IS_ERR() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser --- drivers/net/ethernet/amazon/ena/ena_com.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/amazon/ena/ena_com.c b/drivers/net/ethernet/amazon/ena/ena_com.c in

[PATCH net-next] ipv6: Remove redundant unlikely()

2017-09-26 Thread Tobias Klauser
IS_ERR() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser --- net/ipv6/addrconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 96861c702c06..13c3b697f8c0 100644 --- a/net/ipv6/addrconf.c +++ b/n

[PATCH net-next] datagram: Remove redundant unlikely()

2017-09-26 Thread Tobias Klauser
IS_ERR() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser --- net/core/datagram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/datagram.c b/net/core/datagram.c index f7fb7e3f2acf..0b7b4c22719e 100644 --- a/net/core/datagram.c +++ b/n

[PATCH v2 1/2] mpls: expose stack entry function

2017-09-26 Thread Amine Kherbouche
Exporting mpls_forward() function to be able to be called from elsewhere such as MPLS over GRE in the next commit. Signed-off-by: Amine Kherbouche --- include/linux/mpls.h | 3 +++ net/mpls/af_mpls.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/linux/mpls.h

[PATCH v2 0/2] Introduce MPLS over GRE

2017-09-26 Thread Amine Kherbouche
This series introduces the MPLS over GRE encapsulation (RFC 4023). Various applications of MPLS make use of label stacks with multiple entries. In some cases, it is possible to replace the top label of the stack with an IP-based encapsulation, thereby, it is possible for two LSRs that are adjacen

[PATCH v2 2/2] ip_tunnel: add mpls over gre encapsulation

2017-09-26 Thread Amine Kherbouche
This commit introduces the MPLSoGRE support (RFC 4023), using ip tunnel API. Encap: - Add a new iptunnel type mpls. - Share tx path: gre type mpls loaded from skb->protocol. Decap: - pull gre hdr and call mpls_forward(). Signed-off-by: Amine Kherbouche --- include/net/gre.h

[PATCH net-next] kcm: Remove redundant unlikely()

2017-09-26 Thread Tobias Klauser
IS_ERR() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser --- net/kcm/kcmsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/kcm/kcmsock.c b/net/kcm/kcmsock.c index af4e76ac88ff..0b750a22c4b9 100644 --- a/net/kcm/kcmsock.c +++ b/net/kcm/k

Re: [PATCH net-next 7/7] nfp: flower vxlan neighbour keep-alive

2017-09-26 Thread John Hurley
[ Reposting in plantext only] On Mon, Sep 25, 2017 at 7:32 PM, Or Gerlitz wrote: > > On Mon, Sep 25, 2017 at 1:23 PM, Simon Horman > wrote: > > From: John Hurley > > > > Periodically receive messages containing the destination IPs of tunnels > > that have recently forwarded traffic. Update th

Re: [PATCH net-next 0/7] nfp: flower vxlan tunnel offload

2017-09-26 Thread Jiri Benc
On Mon, 25 Sep 2017 19:04:53 +0200, Simon Horman wrote: > The MAC addresses are extracted from the netdevs already loaded in the > kernel and are monitored for any changes. The IP addresses are slightly > different in that they are extracted from the rules themselves. We make the > assumption that,

[PATCH] net: stmmac: dwc-qos: Add suspend / resume support

2017-09-26 Thread Ed Blake
Add hook to stmmac_pltfr_pm_ops for suspend / resume handling. Signed-off-by: Ed Blake --- drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c b/drivers/net/ethernet/stmicro/stmmac/dw

[PATCH] net: stmmac: dwmac4: Re-enable MAC Rx before powering down

2017-09-26 Thread Ed Blake
Re-enable the MAC receiver by setting CONFIG_RE before powering down, as instructed in section 6.3.5.1 of [1]. Without this the MAC fails to receive WoL packets and never wakes up. [1] DWC Ethernet QoS Databook 4.10a October 2014 Signed-off-by: Ed Blake --- drivers/net/ethernet/stmicro/stmmac/

Re: [PATCH v2 net-next 10/10] net: hns3: Add mqprio support when interacting with network stack

2017-09-26 Thread Yunsheng Lin
Hi, Yuval On 2017/9/26 14:43, Yuval Mintz wrote: >> When using tc qdisc to configure DCB parameter, dcb_ops->setup_tc >> is used to tell hclge_dcb module to do the setup. > > While this might be a step in the right direction, this causes an > inconsistency > in user experience - Some [well, most

Re: [PATCH net-next v9] openvswitch: enable NSH support

2017-09-26 Thread Jiri Benc
On Tue, 26 Sep 2017 12:55:39 +0800, Yang, Yi wrote: > After push_nsh, the packet won't be recirculated to flow pipeline, so > key->eth.type must be set explicitly here, but for pop_nsh, the packet > will be recirculated to flow pipeline, it will be reparsed, so > key->eth.type will be set in packet

Re: [PATCH net-next v10] openvswitch: enable NSH support

2017-09-26 Thread Jiri Benc
On Tue, 26 Sep 2017 12:47:16 +0800, Yi Yang wrote: > v9->v10 > - Change struct ovs_key_nsh to >struct ovs_nsh_key_base base; >__be32 context[NSH_MD1_CONTEXT_SIZE]; > - Fix new comments for v9 NAK, we haven't finished the discussion for v9 yet. It's not appropriate to send a new v

IMPORTANT,

2017-09-26 Thread UDO JOHN
Dear Beloved Friend, Sorry if this email came to you as a surprise,I am Dr.Udoukwu Johnson and we are looking for a company or individual from your region to help us receive investment fund and safekeeping. I will send you full details As soon As I hear from you. For fast respond Please write me t

Re: [PATCH net-next v10] openvswitch: enable NSH support

2017-09-26 Thread Jiri Benc
On Tue, 26 Sep 2017 12:47:16 +0800, Yi Yang wrote: > + return ((ret != 0) ? false : true); I'm not going to review this version but this caught my eye - I pointed out this silly construct in my review of v9. I can understand that working late in the night and rewriting the code back and forth,

[PATCH] lib: fix multiple strlcpy definition

2017-09-26 Thread Baruch Siach
Some C libraries, like uClibc and musl, provide BSD compatible strlcpy(). Add check_strlcpy() to configure, and avoid defining strlcpy and strlcat when the C library provides them. This fixes the following static link error with uClibc-ng: .../sysroot/usr/lib/libc.a(strlcpy.os): In function `strl

Re: [PATCH v2 net-next 0/7] net: speedup netns create/delete time

2017-09-26 Thread Tariq Toukan
On 20/09/2017 2:27 AM, Eric Dumazet wrote: When rate of netns creation/deletion is high enough, we observe softlockups in cleanup_net() caused by huge list of netns and way too many rcu_barrier() calls. This patch series does some optimizations in kobject, and add batching to tunnels so that ne

[PATCH net-next v4 0/4] rtnetlink: preparation patches for further rtnl lock pushdown/removal

2017-09-26 Thread Florian Westphal
Patches split large rtnl_fill_ifinfo into smaller chunks to better see which parts 1. require rtnl 2. do not require it at all 3. rely on rtnl locking now but could be converted Changes since v3: I dropped the 'ifalias' patch, I have a change to decouple ifalias and rtnl mutex, I will send it on

[PATCH net-next v4 4/4] rtnetlink: rtnl_have_link_slave_info doesn't need rtnl

2017-09-26 Thread Florian Westphal
it can be switched to rcu. Reviewed-by: David Ahern Signed-off-by: Florian Westphal --- No changes in v4. net/core/rtnetlink.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index d524609c587c..e6955da0d58d 100644 ---

[PATCH net-next v4 3/4] rtnetlink: add helpers to dump netnsid information

2017-09-26 Thread Florian Westphal
Reviewed-by: David Ahern Signed-off-by: Florian Westphal --- No changes in v4. net/core/rtnetlink.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index d504e78cd01f..d524609c587c 100644 --- a/net

[PATCH net-next v4 1/4] rtnetlink: add helper to put master and link ifindexes

2017-09-26 Thread Florian Westphal
rtnl_fill_ifinfo currently requires caller to hold the rtnl mutex. Unfortunately the function is quite large which makes it harder to see which spots require the lock, which spots assume it and which ones could do without. Add helpers to factor out the ifindex dumping, one can use rcu to avoid rtn

[PATCH net-next v4 2/4] rtnetlink: add helpers to dump vf information

2017-09-26 Thread Florian Westphal
similar to earlier patches, split out more parts of this function to better see what is happening and where we assume rtnl is locked. Reviewed-by: David Ahern Signed-off-by: Florian Westphal --- No changes in v4. net/core/rtnetlink.c | 50 +++--- 1

Latest kernel net-next - 4.14-rc1+ / WARNING: CPU: 16 PID: 0 at net/sched/sch_hfsc.c:1385 hfsc_dequeue+0x241/0x269

2017-09-26 Thread Paweł Staszewski
[50102.787542] [ cut here ] [50102.787545] WARNING: CPU: 16 PID: 0 at net/sched/sch_hfsc.c:1385 hfsc_dequeue+0x241/0x269 [50102.787545] Modules linked in: ipmi_si x86_pkg_temp_thermal [50102.787547] CPU: 16 PID: 0 Comm: swapper/16 Tainted: G W   4.14.0-rc1+ #10 [501

usb/net/lan78xx: use-after-free in lan78xx_write_reg

2017-09-26 Thread Andrey Konovalov
Hi! I've got the following report while fuzzing the kernel with syzkaller. On commit e19b205be43d11bff638cad4487008c48d21c103 (4.14-rc2). == BUG: KASAN: use-after-free in lan78xx_write_reg.isra.21+0x1a8/0x1b0 Read of size 8 at addr

[PATCH] vti: fix use after free in vti_tunnel_xmit/vti6_tnl_xmit

2017-09-26 Thread Alexey Kodanev
When running LTP IPsec tests, KASan might report: BUG: KASAN: use-after-free in vti_tunnel_xmit+0xeee/0xff0 [ip_vti] Read of size 4 at addr 880dc6ad1980 by task swapper/0/0 ... Call Trace: dump_stack+0x63/0x89 print_address_description+0x7c/0x290 kasan_report+0x28d/0x370 ? vti_tunne

Re: [PATCH] Implement full-functionality option for ECN encapsulation in tunnel

2017-09-26 Thread Pablo Neira Ayuso
On Tue, Sep 26, 2017 at 11:09:54AM +0300, Vadim Fedorenko wrote: > Hello, > this patch seems to be lost somewhere in upstream. Please, merge it Applied to nf.git. Thanks.

Re: Latest kernel net-next - 4.14-rc1+ / WARNING: CPU: 16 PID: 0 at net/sched/sch_hfsc.c:1385 hfsc_dequeue+0x241/0x269

2017-09-26 Thread Paweł Staszewski
A little more in trace: [49519.600903] [ cut here ] [49519.600908] WARNING: CPU: 7 PID: 31426 at net/sched/sch_hfsc.c:1385 hfsc_dequeue+0x241/0x269 [49519.600909] Modules linked in: ipmi_si x86_pkg_temp_thermal [49519.600914] CPU: 7 PID: 31426 Comm: syslog-ng Tainted: G

RE: [PATCH v2 net-next 10/10] net: hns3: Add mqprio support when interacting with network stack

2017-09-26 Thread Yuval Mintz
> Hi, Yuval > > On 2017/9/26 14:43, Yuval Mintz wrote: > >> When using tc qdisc to configure DCB parameter, dcb_ops->setup_tc > >> is used to tell hclge_dcb module to do the setup. > > > > While this might be a step in the right direction, this causes an > > inconsistency > > in user experience -

[PATCH] ebtables: fix race condition in frame_filter_net_init()

2017-09-26 Thread Artem Savkov
It is possible for ebt_in_hook to be triggered before ebt_table is assigned resulting in a NULL-pointer dereference. Make sure hooks are registered as the last step. Fixes: aee12a0a3727 ebtables: remove nf_hook_register usage Signed-off-by: Artem Savkov --- include/linux/netfilter_bridge/ebtable

Re: [PATCH net-next 0/7] nfp: flower vxlan tunnel offload

2017-09-26 Thread Or Gerlitz
On Tue, Sep 26, 2017 at 1:15 PM, Jiri Benc wrote: > On Mon, 25 Sep 2017 19:04:53 +0200, Simon Horman wrote: >> The MAC addresses are extracted from the netdevs already loaded in the >> kernel and are monitored for any changes. The IP addresses are slightly >> different in that they are extracted f

Re: [PATCH] ebtables: fix race condition in frame_filter_net_init()

2017-09-26 Thread Florian Westphal
Artem Savkov wrote: > It is possible for ebt_in_hook to be triggered before ebt_table is assigned > resulting in a NULL-pointer dereference. Make sure hooks are > registered as the last step. Right, thanks for the patch. > --- a/net/bridge/netfilter/ebtable_broute.c > +++ b/net/bridge/netfilter/

Re: [PATCH net-next 7/7] nfp: flower vxlan neighbour keep-alive

2017-09-26 Thread Or Gerlitz
On Tue, Sep 26, 2017 at 12:37 PM, John Hurley wrote: > [ Reposting in plantext only] > On Mon, Sep 25, 2017 at 7:32 PM, Or Gerlitz wrote: >> >> On Mon, Sep 25, 2017 at 1:23 PM, Simon Horman >> wrote: >> > From: John Hurley >> > >> > Periodically receive messages containing the destination IPs o

Re: [PATCH v2 net-next 0/7] net: speedup netns create/delete time

2017-09-26 Thread Eric Dumazet
On Tue, Sep 26, 2017 at 4:21 AM, Tariq Toukan wrote: > > > Hi Eric, > > We see a regression introduced in this series, specifically in the patches > touching lib/kobject_uevent.c. > We tried to figure out what is wrong there, but couldn't point it out. > > Bug is that mlx4 driver restart fails, be

Re: [PATCH net-next 0/7] nfp: flower vxlan tunnel offload

2017-09-26 Thread Jiri Benc
On Tue, 26 Sep 2017 15:41:37 +0300, Or Gerlitz wrote: > Please note that the way the rule is being set to the HW driver is by > delegation > done in flower, see these commits (specifically "Add offload support > using egress Hardware device") It's very well possible the bug is somewhere in net/sc

Re: [PATCH 0/2] 9p: Fixes for hard-to-hit bugs

2017-09-26 Thread Tuomas Tynkkynen
Hi Al, On Wed, 2017-09-06 at 17:59 +0300, Tuomas Tynkkynen wrote: > These two patches fix two hard-to-hit (but really annoying) bugs in > 9p. > The first one was posted earlier in February (with one R-b), the > second > is a new one. > > Both of these have had soaking in NixOS distribution kernel

Re: [REGRESSION] Warning in tcp_fastretrans_alert() of net/ipv4/tcp_input.c

2017-09-26 Thread Roman Gushchin
> On Wed, Sep 20, 2017 at 6:46 PM, Roman Gushchin wrote: > > > > > Hello. > > > > > > Since, IIRC, v4.11, there is some regression in TCP stack resulting in the > > > warning shown below. Most of the time it is harmless, but rarely it just > > > causes either freeze or (I believe, this is related

[PATCH net-next] net/mlx5: Remove redundant unlikely()

2017-09-26 Thread Tobias Klauser
IS_ERR() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c b/drivers/

[PATCH net-next] bnxt_en: Remove redundant unlikely()

2017-09-26 Thread Tobias Klauser
IS_ERR() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index

[PATCH net-next] ldmvsw: Remove redundant unlikely()

2017-09-26 Thread Tobias Klauser
IS_ERR() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser --- drivers/net/ethernet/sun/ldmvsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/sun/ldmvsw.c b/drivers/net/ethernet/sun/ldmvsw.c index 5b56c24b6ed2..5feeaa9f0a

[PATCH][next] ieee802154: atusb: make two structures static, fixes warnings

2017-09-26 Thread Colin King
From: Colin Ian King The arrays atusb_chip_data and hulusb_chip_data are local to the source and do not need to be in global scope, so make them static. Also remove unnecessary forward declaration of atusb_chip_data. Cleans up sparse warnings: symbol 'atusb_chip_data' was not declared. Should it

[PATCH] mac80211: aead api to reduce redundancy

2017-09-26 Thread Xiang Gao
Currently, the aes_ccm.c and aes_gcm.c are almost line by line copy of each other. This patch reduce code redundancy by moving the code in these two files to crypto/aead_api.c to make it a higher level aead api. The file aes_ccm.c and aes_gcm.c are removed and all the functions there are now implem

Re: [PATCH net] ipv6: remove incorrect WARN_ON() in fib6_del()

2017-09-26 Thread Eric Dumazet
On Mon, Sep 25, 2017 at 10:52 PM, Wei Wang wrote: > On Mon, Sep 25, 2017 at 7:23 PM, Eric Dumazet wrote: >> On Mon, Sep 25, 2017 at 7:07 PM, Martin KaFai Lau wrote: >> >>> I am probably still missing something. >>> >>> Considering the del operation should be under the writer lock, >>> if rt->rt6

Re: [PATCH][next] ieee802154: atusb: make two structures static, fixes warnings

2017-09-26 Thread Stefan Schmidt
Hello. On 09/26/2017 03:18 PM, Colin King wrote: > From: Colin Ian King > > The arrays atusb_chip_data and hulusb_chip_data are local to the source > and do not need to be in global scope, so make them static. Also > remove unnecessary forward declaration of atusb_chip_data. > > Cleans up spars

Re: [PATCH net-next RFC 0/5] batched tx processing in vhost_net

2017-09-26 Thread Michael S. Tsirkin
On Fri, Sep 22, 2017 at 04:02:30PM +0800, Jason Wang wrote: > Hi: > > This series tries to implement basic tx batched processing. This is > done by prefetching descriptor indices and update used ring in a > batch. This intends to speed up used ring updating and improve the > cache utilization. In

Re: [PATCH] net: stmmac: Meet alignment requirements for DMA

2017-09-26 Thread Matt Redfearn
Hi David, Thanks for your feedback. On 23/09/17 02:26, David Miller wrote: From: Matt Redfearn Date: Fri, 22 Sep 2017 12:13:53 +0100 According to Documentation/DMA-API.txt: Warnings: Memory coherency operates at a granularity called the cache line width. In order for memory mapped by

Re: [PATCH net-next 2/7] nfp: compile flower vxlan tunnel metadata match fields

2017-09-26 Thread John Hurley
On Mon, Sep 25, 2017 at 7:35 PM, Or Gerlitz wrote: > On Mon, Sep 25, 2017 at 1:23 PM, Simon Horman > wrote: >> From: John Hurley >> >> Compile ovs-tc flower vxlan metadata match fields for offloading. Only > > anything in the npf kernel bits has direct relation to ovs? what? > Sorry, this is a

Re: [PATCH net v2] l2tp: fix race condition in l2tp_tunnel_delete

2017-09-26 Thread Sabrina Dubroca
2017-09-25, 14:33:55 +0200, Guillaume Nault wrote: [...] > So what about using your v2 patch, but without the ->dead flag test in > l2tp_tunnel_get() and l2tp_tunnel_find*()? Ok, I think that's reasonable. I'll post a v3, thanks. -- Sabrina

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

2017-09-26 Thread Christoph Hellwig
On Tue, Sep 26, 2017 at 03:26:51PM +0800, AceLan Kao wrote: > Ath9k is an old driver for old chips, and they work fine with legacy INTx. > But some new platforms are using it, so I think we should list those > new platforms which blocks INTx in the driver. And unless they are broken and need a qui

Re: [PATCH net-next v10] openvswitch: enable NSH support

2017-09-26 Thread Yang, Yi
On Tue, Sep 26, 2017 at 07:05:34PM +0800, Jiri Benc wrote: > On Tue, 26 Sep 2017 12:47:16 +0800, Yi Yang wrote: > > + return ((ret != 0) ? false : true); Jiri, I appriciate your review very carefully and professionally from my heart for 10 versions, that is really very very big effort. I carefu

Re: [PATCH net-next 2/7] nfp: compile flower vxlan tunnel metadata match fields

2017-09-26 Thread Or Gerlitz
On Tue, Sep 26, 2017 at 4:58 PM, John Hurley wrote: > On Mon, Sep 25, 2017 at 7:35 PM, Or Gerlitz wrote: >> On Mon, Sep 25, 2017 at 1:23 PM, Simon Horman >> wrote: >>> From: John Hurley >>> >>> Compile ovs-tc flower vxlan metadata match fields for offloading. Only >> >> anything in the npf kern

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

2017-09-26 Thread Kalle Valo
Christoph Hellwig writes: > On Tue, Sep 26, 2017 at 03:26:51PM +0800, AceLan Kao wrote: >> Ath9k is an old driver for old chips, and they work fine with legacy INTx. >> But some new platforms are using it, so I think we should list those >> new platforms which blocks INTx in the driver. > > And u

Re: [PATCH net-next 0/7] nfp: flower vxlan tunnel offload

2017-09-26 Thread Or Gerlitz
On Tue, Sep 26, 2017 at 3:51 PM, Jiri Benc wrote: > On Tue, 26 Sep 2017 15:41:37 +0300, Or Gerlitz wrote: >> Please note that the way the rule is being set to the HW driver is by >> delegation >> done in flower, see these commits (specifically "Add offload support >> using egress Hardware device"

[PATCH net v3] l2tp: fix race condition in l2tp_tunnel_delete

2017-09-26 Thread Sabrina Dubroca
If we try to delete the same tunnel twice, the first delete operation does a lookup (l2tp_tunnel_get), finds the tunnel, calls l2tp_tunnel_delete, which queues it for deletion by l2tp_tunnel_del_work. The second delete operation also finds the tunnel and calls l2tp_tunnel_delete. If the workqueue

RE: [PATCH] net: stmmac: Meet alignment requirements for DMA

2017-09-26 Thread David Laight
From: Matt Redfearn > Sent: 26 September 2017 14:58 ... > > As long as you use the dma_{map,unamp}_single() and sync to/from > > deivce interfaces properly, the cacheline issues will be handled properly > > and the cpu and the device will see proper uptodate memory contents. > > I interpret the DM

Re: [PATCH net-next 0/7] nfp: flower vxlan tunnel offload

2017-09-26 Thread Jiri Benc
On Tue, 26 Sep 2017 17:17:02 +0300, Or Gerlitz wrote: > maybe before/instead you call it a bug, But it is a bug. When offloaded, the rules must not behave differently. That's the fundamental thing about offloading. Here, the rules behave differently when offloaded and when not. That's a bug. > ta

Re: [PATCH] ebtables: fix race condition in frame_filter_net_init()

2017-09-26 Thread Artem Savkov
On Tue, Sep 26, 2017 at 02:42:11PM +0200, Florian Westphal wrote: > Artem Savkov wrote: > > It is possible for ebt_in_hook to be triggered before ebt_table is assigned > > resulting in a NULL-pointer dereference. Make sure hooks are > > registered as the last step. > > Right, thanks for the patch

Re: [PATCH net-next] bpf/verifier: improve disassembly of BPF_END instructions

2017-09-26 Thread Edward Cree
On 26/09/17 02:33, Alexei Starovoitov wrote: > On Mon, Sep 25, 2017 at 11:44:02PM +0200, Daniel Borkmann wrote: >> But above cast to be16 also doesn't seem quite C-like in terms >> of what we're actually doing... 3rd option would be my personal >> preference even if it doesn't look C-like, but otoh

Re: [PATCH net-next v10] openvswitch: enable NSH support

2017-09-26 Thread Jiri Benc
On Tue, 26 Sep 2017 21:52:41 +0800, Yang, Yi wrote: > > + return ((ret != 0) ? false : true); > > But I don't think this is a problematic line from my understanding, Why not: return ((ret != 0 == true) ? false : true) == true; ? Sigh. This is equal to: return !ret; which yo

Re: [PATCH net-next 0/7] nfp: flower vxlan tunnel offload

2017-09-26 Thread Paolo Abeni
On Tue, 2017-09-26 at 17:17 +0300, Or Gerlitz wrote: > On Tue, Sep 26, 2017 at 3:51 PM, Jiri Benc wrote: > > On Tue, 26 Sep 2017 15:41:37 +0300, Or Gerlitz wrote: > > > Please note that the way the rule is being set to the HW driver is by > > > delegation > > > done in flower, see these commits (

[PATCH] tun: bail out from tun_get_user() if the skb is empty

2017-09-26 Thread Alexander Potapenko
KMSAN (https://github.com/google/kmsan) reported accessing uninitialized skb->data[0] in the case the skb is empty (i.e. skb->len is 0): BUG: KMSAN: use of uninitialized memory in tun_get_user+0x19ba/0x3770 CPU: 0 PID: 3051 Comm: probe Not tainted 4

Re: [PATCH net v3] l2tp: fix race condition in l2tp_tunnel_delete

2017-09-26 Thread Guillaume Nault
On Tue, Sep 26, 2017 at 04:16:43PM +0200, Sabrina Dubroca wrote: > Add a dead flag to prevent firing the workqueue twice. Then we can > remove the check of queue_work's result that was meant to prevent that > race but doesn't. > Acked-by: Guillaume Nault

Re: [PATCH] tun: bail out from tun_get_user() if the skb is empty

2017-09-26 Thread Eric Dumazet
On Tue, Sep 26, 2017 at 7:53 AM, Alexander Potapenko wrote: > KMSAN (https://github.com/google/kmsan) reported accessing uninitialized > skb->data[0] in the case the skb is empty (i.e. skb->len is 0): > > > BUG: KMSAN: use of uninitialized memory in

Re: [PATCH v2 net-next 0/7] net: speedup netns create/delete time

2017-09-26 Thread Tariq Toukan
On 26/09/2017 3:51 PM, Eric Dumazet wrote: On Tue, Sep 26, 2017 at 4:21 AM, Tariq Toukan wrote: Hi Eric, We see a regression introduced in this series, specifically in the patches touching lib/kobject_uevent.c. We tried to figure out what is wrong there, but couldn't point it out. Bug is t

[PATCH] p54: don't unregister leds when they are inited

2017-09-26 Thread Andrey Konovalov
ieee80211_register_hw() in p54_register_common() may fail and leds won't get initialized. Currently p54_unregister_common() doesn't check that and always calls p54_unregister_leds(). The fix is to check priv->registered flag before calling p54_unregister_leds(). Found by syzkaller. INFO: trying t

Re: [RESEND] Re: usb/net/p54: trying to register non-static key in p54_unregister_leds

2017-09-26 Thread Andrey Konovalov
On Sat, Sep 23, 2017 at 9:37 PM, 'Christian Lamparter' via syzkaller wrote: > This got rejected by gmail once. Let's see if it works now. > > On Thursday, September 21, 2017 8:22:45 PM CEST Andrey Konovalov wrote: >> On Wed, Sep 20, 2017 at 9:55 PM, Johannes Berg >> wrote: >> > On Wed, 2017-09-20

Re: [PATCH] tun: bail out from tun_get_user() if the skb is empty

2017-09-26 Thread Alexander Potapenko
On Tue, Sep 26, 2017 at 5:02 PM, 'Eric Dumazet' via syzkaller wrote: > On Tue, Sep 26, 2017 at 7:53 AM, Alexander Potapenko > wrote: >> KMSAN (https://github.com/google/kmsan) reported accessing uninitialized >> skb->data[0] in the case the skb is empty (i.e. skb->len is 0): >> >> ==

Re: [PATCH] p54: don't unregister leds when they are inited

2017-09-26 Thread Johannes Berg
Subject should say *not* initialized? johannes

Re: [PATCH net-next 2/7] nfp: compile flower vxlan tunnel metadata match fields

2017-09-26 Thread John Hurley
On Tue, Sep 26, 2017 at 3:12 PM, Or Gerlitz wrote: > On Tue, Sep 26, 2017 at 4:58 PM, John Hurley > wrote: >> On Mon, Sep 25, 2017 at 7:35 PM, Or Gerlitz wrote: >>> On Mon, Sep 25, 2017 at 1:23 PM, Simon Horman >>> wrote: From: John Hurley Compile ovs-tc flower vxlan metadata m

[PATCH v2] p54: don't unregister leds when they are not initialized

2017-09-26 Thread Andrey Konovalov
ieee80211_register_hw() in p54_register_common() may fail and leds won't get initialized. Currently p54_unregister_common() doesn't check that and always calls p54_unregister_leds(). The fix is to check priv->registered flag before calling p54_unregister_leds(). Found by syzkaller. INFO: trying t

Re: [PATCH] p54: don't unregister leds when they are inited

2017-09-26 Thread Andrey Konovalov
On Tue, Sep 26, 2017 at 5:08 PM, Johannes Berg wrote: > Subject should say *not* initialized? Yes, sent v2. > > johannes

Re: [PATCH v2 net-next 0/7] net: speedup netns create/delete time

2017-09-26 Thread Eric Dumazet
On Tue, Sep 26, 2017 at 8:04 AM, Tariq Toukan wrote: > > > On 26/09/2017 3:51 PM, Eric Dumazet wrote: >> >> On Tue, Sep 26, 2017 at 4:21 AM, Tariq Toukan wrote: >>> >>> >>> Hi Eric, >>> >>> We see a regression introduced in this series, specifically in the >>> patches >>> touching lib/kobject_uev

[PATCH][next] cxgb4: make function ch_flower_stats_cb, fixes warning

2017-09-26 Thread Colin King
From: Colin Ian King The function ch_flower_stats_cb is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warnings: symbol 'ch_flower_stats_cb' was not declared. Should it be static? Signed-off-by: Colin Ian King --- drivers/net/ethernet/chelsio/

Re: [PATCH v2 2/2] ip_tunnel: add mpls over gre encapsulation

2017-09-26 Thread Roopa Prabhu
On Tue, Sep 26, 2017 at 2:22 AM, Amine Kherbouche wrote: > This commit introduces the MPLSoGRE support (RFC 4023), using ip tunnel > API. > > Encap: > - Add a new iptunnel type mpls. > - Share tx path: gre type mpls loaded from skb->protocol. > > Decap: > - pull gre hdr and call mpls_forward

Re: [PATCH V2] r8152: add Linksys USB3GIGV1 id

2017-09-26 Thread Doug Anderson
Hi On Mon, Sep 25, 2017 at 6:09 PM, Grant Grundler wrote: > This linksys dongle by default comes up in cdc_ether mode. > This patch allows r8152 to claim the device: >Bus 002 Device 002: ID 13b1:0041 Linksys > > Signed-off-by: Grant Grundler > --- > drivers/net/usb/cdc_ether.c | 8

Re: [PATCH v2 net-next 0/7] net: speedup netns create/delete time

2017-09-26 Thread Dmitry Torokhov
On September 26, 2017 8:13:21 AM PDT, Eric Dumazet wrote: >On Tue, Sep 26, 2017 at 8:04 AM, Tariq Toukan >wrote: >> >> >> On 26/09/2017 3:51 PM, Eric Dumazet wrote: >>> >>> On Tue, Sep 26, 2017 at 4:21 AM, Tariq Toukan >wrote: Hi Eric, We see a regression introduced in t

Re: [PATCH v2 net-next 0/7] net: speedup netns create/delete time

2017-09-26 Thread Tariq Toukan
On 26/09/2017 6:13 PM, Eric Dumazet wrote: On Tue, Sep 26, 2017 at 8:04 AM, Tariq Toukan wrote: On 26/09/2017 3:51 PM, Eric Dumazet wrote: On Tue, Sep 26, 2017 at 4:21 AM, Tariq Toukan wrote: Hi Eric, We see a regression introduced in this series, specifically in the patches touching li

Re: [PATCH v2 net-next 0/7] net: speedup netns create/delete time

2017-09-26 Thread Eric Dumazet
On Tue, Sep 26, 2017 at 8:22 AM, Dmitry Torokhov wrote: > It is in Greg's tree where all kobject patches should go through as far as I > know. Yes, I will fix this, adding a second memmove()

Re: [PATCH net-next 2/7] nfp: compile flower vxlan tunnel metadata match fields

2017-09-26 Thread Or Gerlitz
On Tue, Sep 26, 2017 at 6:11 PM, John Hurley wrote: > On Tue, Sep 26, 2017 at 3:12 PM, Or Gerlitz wrote: >> On Tue, Sep 26, 2017 at 4:58 PM, John Hurley >> wrote: >>> On Mon, Sep 25, 2017 at 7:35 PM, Or Gerlitz wrote: On Mon, Sep 25, 2017 at 1:23 PM, Simon Horman wrote: > From:

[PATCH v2 net-next 0/2] bpf/verifier: disassembly improvements

2017-09-26 Thread Edward Cree
Fix the output of print_bpf_insn() for ALU ops that don't look like compound assignment (i.e. BPF_END and BPF_NEG). Sample output for a short test program: 0: (b4) (u32) r0 = (u32) 0 1: (dc) r0 = be32 r0 2: (84) r0 = (u32) -r0 3: (95) exit processed 4 insns, stack depth 0 Edward Cree (2): bpf/

[PATCH net-next 1/2] tools: rename tools/net directory to tools/bpf

2017-09-26 Thread Jakub Kicinski
We currently only have BPF tools in the tools/net directory. We are about to add more BPF tools there, not necessarily networking related, rename the directory and related Makefile targets to bpf. Suggested-by: Daniel Borkmann Signed-off-by: Jakub Kicinski Reviewed-by: Simon Horman --- MAINTAI

[PATCH net-next 0/2] tools: add bpftool

2017-09-26 Thread Jakub Kicinski
Hi! I'm looking for a home for bpftool, Daniel suggested that tools/net could be a good place, since there are only BPF utilities there already. The tool should be complete for simple use cases and we will continue extending it as we go along. E.g. providing disassembly of loaded programs direc

[PATCH v2 net-next 2/2] bpf/verifier: improve disassembly of BPF_NEG instructions

2017-09-26 Thread Edward Cree
BPF_NEG takes only one operand, unlike the bulk of BPF_ALU[64] which are compound-assignments. So give it its own format in print_bpf_insn(). Signed-off-by: Edward Cree --- kernel/bpf/verifier.c | 5 + 1 file changed, 5 insertions(+) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifie

[PATCH v2 net-next 1/2] bpf/verifier: improve disassembly of BPF_END instructions

2017-09-26 Thread Edward Cree
print_bpf_insn() was treating all BPF_ALU[64] the same, but BPF_END has a different structure: it has a size in insn->imm (even if it's BPF_X) and uses the BPF_SRC (X or K) to indicate which endianness to use. So it needs different code to print it. Signed-off-by: Edward Cree --- kernel/bpf/

[PATCH net-next 2/2] tools: bpf: add bpftool

2017-09-26 Thread Jakub Kicinski
Add a simple tool for querying and updating BPF objects on the system. Signed-off-by: Jakub Kicinski Reviewed-by: Simon Horman --- tools/bpf/Makefile | 18 +- tools/bpf/bpftool/Makefile | 80 + tools/bpf/bpftool/common.c | 214 tools/bpf/bpftool/jit_disasm

Re: [PATCH net-next 2/7] nfp: compile flower vxlan tunnel metadata match fields

2017-09-26 Thread John Hurley
On Tue, Sep 26, 2017 at 4:33 PM, Or Gerlitz wrote: > On Tue, Sep 26, 2017 at 6:11 PM, John Hurley > wrote: >> On Tue, Sep 26, 2017 at 3:12 PM, Or Gerlitz wrote: >>> On Tue, Sep 26, 2017 at 4:58 PM, John Hurley >>> wrote: On Mon, Sep 25, 2017 at 7:35 PM, Or Gerlitz wrote: > On Mon, S

[PATCH v2] ebtables: fix race condition in frame_filter_net_init()

2017-09-26 Thread Artem Savkov
It is possible for ebt_in_hook to be triggered before ebt_table is assigned resulting in a NULL-pointer dereference. Make sure hooks are registered as the last step. Fixes: aee12a0a3727 ebtables: remove nf_hook_register usage Signed-off-by: Artem Savkov --- include/linux/netfilter_bridge/ebtable

Re: [PATCH] lib: fix multiple strlcpy definition

2017-09-26 Thread Phil Sutter
On Tue, Sep 26, 2017 at 02:08:49PM +0300, Baruch Siach wrote: [...] > diff --git a/configure b/configure > index 7be8fb113cc9..787b2e061af9 100755 > --- a/configure > +++ b/configure > @@ -326,6 +326,27 @@ EOF > rm -f $TMPDIR/dbtest.c $TMPDIR/dbtest > } > > +check_strlcpy() > +{ > +cat

[PATCH net] packet: only test po->has_vnet_hdr once in packet_snd

2017-09-26 Thread Willem de Bruijn
From: Willem de Bruijn Packet socket option po->has_vnet_hdr can be updated concurrently with other operations if no ring is attached. Do not test the option twice in packet_snd, as the value may change in between calls. A race on setsockopt disable may cause a packet > mtu to be sent without ha

[PATCH net] packet: in packet_do_bind, test fanout with bind_lock held

2017-09-26 Thread Willem de Bruijn
From: Willem de Bruijn Once a socket has po->fanout set, it remains a member of the group until it is destroyed. The prot_hook must be constant and identical across sockets in the group. If fanout_add races with packet_do_bind between the test of po->fanout and taking the lock, the bind call may

Re: [PATCH] lib: fix multiple strlcpy definition

2017-09-26 Thread Baruch Siach
Hi Phil, On Tue, Sep 26, 2017 at 05:55:24PM +0200, Phil Sutter wrote: > On Tue, Sep 26, 2017 at 02:08:49PM +0300, Baruch Siach wrote: > [...] > > diff --git a/configure b/configure > > index 7be8fb113cc9..787b2e061af9 100755 > > --- a/configure > > +++ b/configure > > @@ -326,6 +326,27 @@ EOF > >

[iproute PATCH v2 3/3] Check user supplied interface name lengths

2017-09-26 Thread Phil Sutter
The original problem was that something like: | strncpy(ifr.ifr_name, *argv, IFNAMSIZ); might leave ifr.ifr_name unterminated if length of *argv exceeds IFNAMSIZ. In order to fix this, I thought about replacing all those cases with (equivalent) calls to snprintf() or even introducing strlcpy(). B

[PATCH v3] ebtables: fix race condition in frame_filter_net_init()

2017-09-26 Thread Artem Savkov
It is possible for ebt_in_hook to be triggered before ebt_table is assigned resulting in a NULL-pointer dereference. Make sure hooks are registered as the last step. v3: restore errorneously removed ops == NULL case check Fixes: aee12a0a3727 ebtables: remove nf_hook_register usage Signed-off-by:

[iproute PATCH v2 0/3] Check user supplied interface name lengths

2017-09-26 Thread Phil Sutter
This series adds explicit checks for user-supplied interface names to make sure their length fits Linux's requirements. The first two patches simplify interface name parsing in some places - these are side-effects of working on the actual implementation provided in patch three. Changes since v1:

[iproute PATCH v2 1/3] ip{6,}tunnel: Avoid copying user-supplied interface name around

2017-09-26 Thread Phil Sutter
In both files' parse_args() functions as well as in iptunnel's do_prl() and do_6rd() functions, a user-supplied 'dev' parameter is uselessly copied into a temporary buffer before passing it to ll_name_to_index() or copying into a struct ifreq. Avoid this by just caching the argv pointer value unti

Re: Can libpcap filter on vlan tags when vlans are hardware-accelerated?

2017-09-26 Thread Ben Greear
On 09/12/2017 01:26 PM, Michal Kubecek wrote: On Tue, Sep 12, 2017 at 11:54:43AM -0700, Ben Greear wrote: It does not appear to work on Fedora-26, and I'm curious if someone knows what needs doing to get this support working? It's rather complicated. The "vlan" and "vlan " filters didn't handl

  1   2   3   >