[v3,iproute2 1/2] iproute2:tc:action: add a gate control action

2020-05-02 Thread Po Liu
Introduce a ingress frame gate control flow action. Tc gate action does the work like this: Assume there is a gate allow specified ingress frames can pass at specific time slot, and also drop at specific time slot. Tc filter chooses the ingress frames, and tc gate action would specify what slot doe

[v3,iproute2 2/2] iproute2: add gate action man page

2020-05-02 Thread Po Liu
This patch is to add the man page for the tc gate action. Signed-off-by: Po Liu --- man/man8/tc-gate.8 | 123 + 1 file changed, 123 insertions(+) create mode 100644 man/man8/tc-gate.8 diff --git a/man/man8/tc-gate.8 b/man/man8/tc-gate.8 new file mode

RE: Re: [v5,net-next 0/4] Introduce a flow gate control action and apply IEEE

2020-05-02 Thread Po Liu
Hi David, Stephen, > -Original Message- > From: David Miller > Sent: 2020年5月2日 7:09 > To: Po Liu > Cc: linux-ker...@vger.kernel.org; netdev@vger.kernel.org; > vinicius.go...@intel.com; v...@buslov.dev; Claudiu Manoil > ; Vladimir Oltean ; > Alexandru Marginean ; > michael.c...@broadcom.c

BUG: stack guard page was hit in unwind_next_frame

2020-05-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8999dc89 net/x25: Fix null-ptr-deref in x25_disconnect git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=1600444010 kernel config: https://syzkaller.appspot.com/x/.config?x=b7a70e992f2f9b68 dashboard link

Re: [PATCH] net/mlx5: reduce stack usage in qp_read_field

2020-05-02 Thread Leon Romanovsky
On Thu, Apr 30, 2020 at 04:37:14PM +0200, Arnd Bergmann wrote: > On Thu, Apr 30, 2020 at 7:22 AM Leon Romanovsky wrote: > > On Tue, Apr 28, 2020 at 11:23:47PM +0200, Arnd Bergmann wrote: > > > Moving the mlx5_ifc_query_qp_out_bits structure on the stack was a bit > > > excessive and now causes the

[Patch net-next v2 1/2] net: partially revert dynamic lockdep key changes

2020-05-02 Thread Cong Wang
This patch reverts the folowing commits: commit 064ff66e2bef84f1153087612032b5b9eab005bd "bonding: add missing netdev_update_lockdep_key()" commit 53d374979ef147ab51f5d632dfe20b14aebeccd0 "net: avoid updating qdisc_xmit_lock_key in netdev_update_lockdep_key()" commit 1f26c0d3d24125992ab0026b0dab

[Patch net-next v2 2/2] bonding: remove useless stats_lock_key

2020-05-02 Thread Cong Wang
After commit b3e80d44f5b1 ("bonding: fix lockdep warning in bond_get_stats()") the dynamic key is no longer necessary, as we compute nest level at run-time. So, we can just remove it to save some lockdep key entries. Test commands: ip link add bond0 type bond ip link add bond1 type bond ip link

[Patch net-next v2 0/2] net: reduce dynamic lockdep keys

2020-05-02 Thread Cong Wang
syzbot has been complaining about low MAX_LOCKDEP_KEYS for a long time, it is mostly because we register 4 dynamic keys per network device. This patchset reduces the number of dynamic lockdep keys from 4 to 1 per netdev, by reverting to the previous static keys, except for addr_list_lock which sti

Re: linux-next: manual merge of the net-next tree with the net tree

2020-05-02 Thread Leon Romanovsky
On Fri, May 01, 2020 at 12:48:36PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c > > between commit: > > 8075411d93b6 ("net/mlx5: DR, On creation set CQ's arm_db member

Re: [Patch net-next 1/2] net: partially revert dynamic lockdep key changes

2020-05-02 Thread Cong Wang
On Sat, May 2, 2020 at 12:36 AM Taehee Yoo wrote: > > On Fri, 1 May 2020 at 15:02, Cong Wang wrote: > > > > Hi Cong, > > > On Thu, Apr 30, 2020 at 12:40 AM Taehee Yoo wrote: > > > > +static void vlan_dev_set_lockdep_one(struct net_device *dev, > > > > +struct

Re: NET: r8168/r8169 identifying fix

2020-05-02 Thread Lauri Jakku
Hi, On 3.5.2020 4.34, Lauri Jakku wrote: Hi, On 3.5.2020 3.11, Lauri Jakku wrote: On 3.5.2020 2.15, Heiner Kallweit wrote: On 03.05.2020 00:42, Lauri Jakku wrote: Hi, On 2.5.2020 20.56, Lauri Jakku wrote: Hi, On 1.5.2020 22.12, Lauri Jakku wrote: Hi, On 19.4.2020 19.00, Heiner Kall

Re: [Patch net v2] net_sched: fix tcm_parent in tc filter dump

2020-05-02 Thread Cong Wang
On Sat, May 2, 2020 at 2:19 AM Jamal Hadi Salim wrote: > > On 2020-05-02 4:48 a.m., Jamal Hadi Salim wrote: > > On 2020-04-30 11:53 p.m., Cong Wang wrote: > > [..] > >> Steps to reproduce this: > >> ip li set dev dummy0 up > >> tc qd add dev dummy0 ingress > >> tc filter add dev dummy0 paren

Re: NET: r8168/r8169 identifying fix

2020-05-02 Thread Lauri Jakku
Hi, On 3.5.2020 3.11, Lauri Jakku wrote: On 3.5.2020 2.15, Heiner Kallweit wrote: On 03.05.2020 00:42, Lauri Jakku wrote: Hi, On 2.5.2020 20.56, Lauri Jakku wrote: Hi, On 1.5.2020 22.12, Lauri Jakku wrote: Hi, On 19.4.2020 19.00, Heiner Kallweit wrote: On 19.04.2020 18:49, Lauri Jak

Re: NET: r8168/r8169 identifying fix

2020-05-02 Thread Lauri Jakku
On 3.5.2020 2.15, Heiner Kallweit wrote: On 03.05.2020 00:42, Lauri Jakku wrote: Hi, On 2.5.2020 20.56, Lauri Jakku wrote: Hi, On 1.5.2020 22.12, Lauri Jakku wrote: Hi, On 19.4.2020 19.00, Heiner Kallweit wrote: On 19.04.2020 18:49, Lauri Jakku wrote: Hi, On 19.4.2020 18.09, Lauri J

Re: [PATCH net-next 1/3] net: napi: add hard irqs deferral feature

2020-05-02 Thread David Miller
From: Eric Dumazet Date: Sat, 2 May 2020 09:24:19 -0700 > Doing the unmap stuff can be costly in IOMMU world, and freeing skb > can be also expensive. Add to this that TCP stack might be called > back (via skb->destructor()) to add more packets to the > qdisc/device. > > So using effectively th

Re: [PATCH] net: usb: qmi_wwan: add support for DW5816e

2020-05-02 Thread David Miller
From: Matt Jolly Date: Sun, 3 May 2020 01:52:28 +1000 > Add support for Dell Wireless 5816e to drivers/net/usb/qmi_wwan.c > > Signed-off-by: Matt Jolly Bjørn, please review.

Re: [PATCH net-next v5] net: ethernet: fec: Replace interrupt driven MDIO with polled IO

2020-05-02 Thread David Miller
From: Andrew Lunn Date: Sat, 2 May 2020 17:25:04 +0200 > Measurements of the MDIO bus have shown that driving the MDIO bus > using interrupts is slow. Back to back MDIO transactions take about > 90us, with 25us spent performing the transaction, and the remainder of > the time the bus is idle. >

Re: [PATCH net-next] inet_diag: bc: read cgroup id only for full sockets

2020-05-02 Thread David Miller
From: Dmitry Yakunin Date: Sat, 2 May 2020 18:34:42 +0300 > Fix bug introduced by commit b1f3e43dbfac ("inet_diag: add support for > cgroup filter"). > > Signed-off-by: Dmitry Yakunin > Reported-by: syzbot+ee80f840d9bf68932...@syzkaller.appspotmail.com > Reported-by: syzbot+13bef047dbfffa5cd..

[PATCH] net: ethernet: ti: Remove TI_CPTS_MOD workaround

2020-05-02 Thread Clay McClure
My recent commit b6d49cab44b5 ("net: Make PTP-specific drivers depend on PTP_1588_CLOCK") exposes a missing dependency in defconfigs that select TI_CPTS without selecting PTP_1588_CLOCK, leading to linker errors of the form: drivers/net/ethernet/ti/cpsw.o: in function `cpsw_ndo_stop': cpsw.c:(.te

Re: [PATCH net-next 01/13] net/smc: first part of add link processing as SMC client

2020-05-02 Thread David Miller
From: Karsten Graul Date: Sat, 2 May 2020 14:35:40 +0200 > +static void smc_llc_process_cli_add_link(struct smc_link_group *lgr) > +{ > + struct smc_llc_qentry *qentry; > + > + qentry = smc_llc_flow_qentry_clr(&lgr->llc_flow_lcl); > + > + mutex_lock(&lgr->llc_conf_mutex); > + smc

Re: [PATCH] stmmac: fix pointer check after utilization in stmmac_interrupt

2020-05-02 Thread David Miller
From: Maxim Petrov Date: Sat, 2 May 2020 12:29:08 +0300 > The paranoidal pointer check in IRQ handler looks very strange - it > really protects us only against bogus drivers which request IRQ line > with null pointer dev_id. However, the code fragment is incorrect > because the dev pointer is use

Re: [PATCH V8 mlx5-next 00/16] Add support to get xmit slave

2020-05-02 Thread Jason Gunthorpe
On Fri, May 01, 2020 at 07:28:14PM +, Saeed Mahameed wrote: > On Fri, 2020-05-01 at 11:44 -0300, Jason Gunthorpe wrote: > > On Thu, Apr 30, 2020 at 10:21:30PM +0300, Maor Gottlieb wrote: > > > Hi Dave, > > > > > > This series is a combination of netdev and RDMA, so in order to > > > avoid > >

Re: [PATCH v2 net-next 0/3] ptp: Add adjust phase to support phase offset.

2020-05-02 Thread David Miller
From: Date: Fri, 1 May 2020 23:35:35 -0400 > From: Vincent Cheng > > This series adds adjust phase to the PTP Hardware Clock device interface. > > Some PTP hardware clocks have a write phase mode that has > a built-in hardware filtering capability. The write phase mode > utilizes a phase offs

Re: NET: r8168/r8169 identifying fix

2020-05-02 Thread Heiner Kallweit
On 03.05.2020 00:42, Lauri Jakku wrote: > Hi, > > > > On 2.5.2020 20.56, Lauri Jakku wrote: >> Hi, >> >> On 1.5.2020 22.12, Lauri Jakku wrote: >>> Hi, >>> >>> >>> On 19.4.2020 19.00, Heiner Kallweit wrote: On 19.04.2020 18:49, Lauri Jakku wrote: > Hi, > > On 19.4.2020 18.09, Lau

[PATCH iproute2-next 1/2] uapi: updates to lwtunnel and rpl iptunnel

2020-05-02 Thread Alexander Aring
Update uapi headers. Signed-off-by: Alexander Aring --- include/uapi/linux/rpl.h | 48 +++ include/uapi/linux/rpl_iptunnel.h | 21 ++ 2 files changed, 69 insertions(+) create mode 100644 include/uapi/linux/rpl.h create mode 100644 include/uapi/l

[PATCH iproute2-next 2/2] lwtunnel: add support for rpl segment routing

2020-05-02 Thread Alexander Aring
This patch adds support for rpl segment routing settings. Example: ip -n ns0 -6 route add 2001::3 encap rpl segs \ fe80::c8fe:beef:cafe:cafe,fe80::c8fe:beef:cafe:beef dev lowpan0 Signed-off-by: Alexander Aring --- ip/iproute.c | 2 +- ip/iproute_lwtunnel.c | 111 +

[PATCH] nfp: abm: fix a memory leak bug

2020-05-02 Thread wu000273
From: Qiushi Wu In function nfp_abm_vnic_set_mac, pointer nsp is allocated by nfp_nsp_open. But when nfp_nsp_has_hwinfo_lookup fail, the pointer is not released, which can lead to a memory leak bug. Fix this issue by adding nfp_nsp_close(nsp) in the error path. Signed-off-by: Qiushi Wu --- dri

Re: NET: r8168/r8169 identifying fix

2020-05-02 Thread Lauri Jakku
Hi, On 2.5.2020 20.56, Lauri Jakku wrote: Hi, On 1.5.2020 22.12, Lauri Jakku wrote: Hi, On 19.4.2020 19.00, Heiner Kallweit wrote: On 19.04.2020 18:49, Lauri Jakku wrote: Hi, On 19.4.2020 18.09, Lauri Jakku wrote: Hi, On 18.4.2020 21.46, Lauri Jakku wrote: Hi, On 18.4.2020 14.06, L

Re: [PATCH v2 net-next 3/3] ptp: ptp_clockmatrix: Add adjphase() to support PHC write phase mode.

2020-05-02 Thread Richard Cochran
On Fri, May 01, 2020 at 11:35:38PM -0400, vincent.cheng...@renesas.com wrote: > From: Vincent Cheng > > Add idtcm_adjphase() to support PHC write phase mode. > > Signed-off-by: Vincent Cheng Acked-by: Richard Cochran

Re: [PATCH v2 net-next 1/3] ptp: Add adjphase function to support phase offset control.

2020-05-02 Thread Richard Cochran
On Fri, May 01, 2020 at 11:35:36PM -0400, vincent.cheng...@renesas.com wrote: > From: Vincent Cheng > > Adds adjust phase function to take advantage of a PHC > clock's hardware filtering capability that uses phase offset > control word instead of frequency offset control word. > > Signed-off-by:

Re: [PATCH v9 bpf-next 2/3] libbpf: add support for command BPF_ENABLE_STATS

2020-05-02 Thread Alexei Starovoitov
On Thu, Apr 30, 2020 at 12:15 AM Song Liu wrote: > > bpf_enable_stats() is added to enable given stats. > > Signed-off-by: Song Liu ... > diff --git a/tools/lib/bpf/bpf.h b/tools/lib/bpf/bpf.h > index 335b457b3a25..1901b2777854 100644 > --- a/tools/lib/bpf/bpf.h > +++ b/tools/lib/bpf/bpf.h > @@ -

Re: network unreliable on ReadyNAS 104 with Debian kernel

2020-05-02 Thread Thomas Petazzoni
Hello Uwe, +Maxime Chevallier and Antoine Ténart, who have also worked on mvneta. On Sat, 2 May 2020 16:14:08 +0200 Uwe Kleine-König wrote: > I own a ReadyNAS 104 (CPU: Armada 370, mvneta driver) and since some > time its network driver isn't reliable any more. I see things like: > > $ r

Re: [PATCH] bpf: Tweak BPF jump table optimizations for objtool compatibility

2020-05-02 Thread Josh Poimboeuf
On Fri, May 01, 2020 at 08:06:22PM -0700, Alexei Starovoitov wrote: > On Fri, May 01, 2020 at 02:56:17PM -0500, Josh Poimboeuf wrote: > > On Fri, May 01, 2020 at 12:40:53PM -0700, Alexei Starovoitov wrote: > > > On Fri, May 01, 2020 at 02:22:04PM -0500, Josh Poimboeuf wrote: > > > > On Fri, May 01,

Re: NET: r8168/r8169 identifying fix

2020-05-02 Thread Lauri Jakku
Hi, On 1.5.2020 22.12, Lauri Jakku wrote: Hi, On 19.4.2020 19.00, Heiner Kallweit wrote: On 19.04.2020 18:49, Lauri Jakku wrote: Hi, On 19.4.2020 18.09, Lauri Jakku wrote: Hi, On 18.4.2020 21.46, Lauri Jakku wrote: Hi, On 18.4.2020 14.06, Lauri Jakku wrote: Hi, On 17.4.2020 10.30, La

Re: [PATCH net-next 1/3] net: napi: add hard irqs deferral feature

2020-05-02 Thread Eric Dumazet
On 5/2/20 9:10 AM, Julian Wiedmann wrote: > On 02.05.20 17:40, Eric Dumazet wrote: >> On Sat, May 2, 2020 at 7:56 AM Julian Wiedmann wrote: >>> >>> On 22.04.20 18:13, Eric Dumazet wrote: Back in commit 3b47d30396ba ("net: gro: add a per device gro flush timer") we added the ability to

Re: [PATCH net-next 1/3] net: napi: add hard irqs deferral feature

2020-05-02 Thread Julian Wiedmann
On 02.05.20 17:40, Eric Dumazet wrote: > On Sat, May 2, 2020 at 7:56 AM Julian Wiedmann wrote: >> >> On 22.04.20 18:13, Eric Dumazet wrote: >>> Back in commit 3b47d30396ba ("net: gro: add a per device gro flush timer") >>> we added the ability to arm one high resolution timer, that we used >>> to

[PATCH] net: usb: qmi_wwan: add support for DW5816e

2020-05-02 Thread Matt Jolly
Add support for Dell Wireless 5816e to drivers/net/usb/qmi_wwan.c Signed-off-by: Matt Jolly --- drivers/net/usb/qmi_wwan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index 6c738a271257..4bb8552a00d3 100644 --- a/drivers/net/usb/qmi

[PATCH net-next] inet_diag: bc: read cgroup id only for full sockets

2020-05-02 Thread Dmitry Yakunin
Fix bug introduced by commit b1f3e43dbfac ("inet_diag: add support for cgroup filter"). Signed-off-by: Dmitry Yakunin Reported-by: syzbot+ee80f840d9bf68932...@syzkaller.appspotmail.com Reported-by: syzbot+13bef047dbfffa5cd...@syzkaller.appspotmail.com Fixes: b1f3e43dbfac ("inet_diag: add support

[PATCH net-next v5] net: ethernet: fec: Replace interrupt driven MDIO with polled IO

2020-05-02 Thread Andrew Lunn
Measurements of the MDIO bus have shown that driving the MDIO bus using interrupts is slow. Back to back MDIO transactions take about 90us, with 25us spent performing the transaction, and the remainder of the time the bus is idle. Replacing the completion interrupt with polled IO results in back t

Re: [RFC net-next 1/3] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX325x (AC3x)

2020-05-02 Thread Vadym Kochan
Hi Ido, On Thu, Mar 05, 2020 at 04:49:37PM +0200, Ido Schimmel wrote: > On Tue, Feb 25, 2020 at 04:30:54PM +, Vadym Kochan wrote: > > +int mvsw_pr_port_learning_set(struct mvsw_pr_port *port, bool learn) > > +{ > > + return mvsw_pr_hw_port_learning_set(port, learn); > > +} > > + > > +int mvs

Re: [PATCH net-next 1/2] ethtool: Add support for 100Gbps per lane link modes

2020-05-02 Thread Andrew Lunn
On Thu, Apr 30, 2020 at 04:41:05PM -0700, Saeed Mahameed wrote: > From: Meir Lichtinger > > Define 100G, 200G and 400G link modes using 100Gbps per lane > > Signed-off-by: Meir Lichtinger > CC: Andrew Lunn > Reviewed-by: Aya Levin > Signed-off-by: Saeed Mahameed > --- > drivers/net/phy/phy-

Re: [PATCH net-next 1/3] net: napi: add hard irqs deferral feature

2020-05-02 Thread Julian Wiedmann
On 22.04.20 18:13, Eric Dumazet wrote: > Back in commit 3b47d30396ba ("net: gro: add a per device gro flush timer") > we added the ability to arm one high resolution timer, that we used > to keep not-complete packets in GRO engine a bit longer, hoping that further > frames might be added to them. >

[PATCH] can: mscan: mpc5xxx_can: update contact email

2020-05-02 Thread Wolfram Sang
The 'pengutronix' address is defunct for years. Use the proper contact address. Signed-off-by: Wolfram Sang --- drivers/net/can/mscan/mpc5xxx_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/mscan/mpc5xxx_can.c b/drivers/net/can/mscan/mpc5xxx_can.c index

network unreliable on ReadyNAS 104 with Debian kernel

2020-05-02 Thread Uwe Kleine-König
Hello Arnaud, hello Thomas, I own a ReadyNAS 104 (CPU: Armada 370, mvneta driver) and since some time its network driver isn't reliable any more. I see things like: $ rsync -a remotehost:dir /srv/dir ssh_dispatch_run_fatal: Connection to $remoteaddress port 22: message authentica

[PATCH net-next 02/13] net/smc: rkey processing for a new link as SMC client

2020-05-02 Thread Karsten Graul
Part of the SMC client new link establishment process is the exchange of rkeys for all used buffers. Add new LLC message type ADD_LINK_CONTINUE which is used to exchange rkeys of all current RMB buffers. Add functions to iterate over all used RMB buffers of the link group, and implement the ADD_LIN

[PATCH net-next 12/13] net/smc: enqueue local LLC messages

2020-05-02 Thread Karsten Graul
As SMC server, when a second link was deleted, trigger the setup of an asymmetric link. Do this by enqueueing a local ADD_LINK message which is processed by the LLC layer as if it were received from peer. Do the same when a new IB port became active and a new link could be created. smc_llc_srv_add_

[PATCH net-next 04/13] net/smc: first part of add link processing as SMC server

2020-05-02 Thread Karsten Graul
First set of functions to process an ADD_LINK LLC request as an SMC server. Find an alternate IB device, determine the new link group type and get the index for the new link. Then initialize the link and send the ADD_LINK LLC message to the peer. Save the contents of the response, ready the link, m

[PATCH net-next 10/13] net/smc: delete link processing as SMC client

2020-05-02 Thread Karsten Graul
Add smc_llc_process_cli_delete_link() to process a DELETE_LINK request as SMC client. When the request is to delete ALL links then terminate the whole link group. If not, find the link to delete by its link_id, send the DELETE_LINK response LLC message and then clear the deleted link. Finally deter

[PATCH net-next 01/13] net/smc: first part of add link processing as SMC client

2020-05-02 Thread Karsten Graul
First set of functions to process an ADD_LINK LLC request as an SMC client. Find an alternate IB device, determine the new link group type and get the index for the new link. Then ready the link, map the buffers and send an ADD_LINK LLC response. If any error occurs, send a reject LLC message and t

[PATCH net-next 05/13] net/smc: rkey processing for a new link as SMC server

2020-05-02 Thread Karsten Graul
Part of SMC server new link establishment is the exchange of rkeys for used buffers. Loop over all used RMB buffers and send ADD_LINK_CONTINUE LLC messages to the peer. Signed-off-by: Karsten Graul Reviewed-by: Ursula Braun --- net/smc/smc_llc.c | 43 ++-

[PATCH net-next 00/13] net/smc: add and delete link processing

2020-05-02 Thread Karsten Graul
These patches add the 'add link' and 'delete link' processing as SMC server and client. This processing allows to establish and remove links of a link group dynamically. They are based on the patches I sent yesterday, I cannot see yesterdays patches in the net-next git tree yet. Karsten Graul (1

[PATCH net-next 09/13] net/smc: llc_del_link_work and use the LLC flow for delete link

2020-05-02 Thread Karsten Graul
Introduce a work that is scheduled when a new DELETE_LINK LLC request is received. The work will call either the SMC client or SMC server DELETE_LINK processing. And use the LLC flow framework to process incoming DELETE_LINK LLC messages, scheduling the llc_del_link_work for those events. With thes

[PATCH net-next 06/13] net/smc: final part of add link processing as SMC server

2020-05-02 Thread Karsten Graul
This patch finalizes the ADD_LINK processing of new links. Send the CONFIRM_LINK request to the peer, receive the response and set link state to ACTIVE. Signed-off-by: Karsten Graul Reviewed-by: Ursula Braun --- net/smc/smc_llc.c | 29 - 1 file changed, 28 insertions

[PATCH net-next 08/13] net/smc: activate SMC server add link functions

2020-05-02 Thread Karsten Graul
Activate smc_llc_srv_add_link() in af_smc.c to start second link establishment after the initial link of a link group was created. And activate it in smc_llc.c to process an incoming ADD_LINK request from an SMC client. Signed-off-by: Karsten Graul Reviewed-by: Ursula Braun --- net/smc/af_smc.c

[PATCH net-next 07/13] net/smc: delete an asymmetric link as SMC server

2020-05-02 Thread Karsten Graul
When a link group moved from asymmetric to symmetric state then the dangling asymmetric link can be deleted. Add smc_llc_find_asym_link() to find the respective link and add smc_llc_delete_asym_link() to delete it. Signed-off-by: Karsten Graul Reviewed-by: Ursula Braun --- net/smc/smc_llc.c | 8

[PATCH net-next 11/13] net/smc: delete link processing as SMC server

2020-05-02 Thread Karsten Graul
Add smc_llc_process_srv_delete_link() to process a DELETE_LINK request as SMC server. When the request is to delete ALL links then terminate the whole link group. If not, find the link to delete by its link_id, send the DELETE_LINK request LLC message and wait for the response. No matter if a respo

[PATCH net-next 03/13] net/smc: final part of add link processing as SMC client

2020-05-02 Thread Karsten Graul
This patch finalizes the ADD_LINK processing of new links. Receive the CONFIRM_LINK request from peer, complete the link initialization, register all used buffers with the IB device and finally send the CONFIRM_LINK response, which completes the ADD_LINK processing. And activate smc_llc_cli_add_lin

[PATCH net-next 13/13] net/smc: save state of last sent CDC message

2020-05-02 Thread Karsten Graul
When a link goes down and all connections of this link need to be switched to an other link then the producer cursor and the sequence of the last successfully sent CDC message must be known. Add the two fields to the SMC connection and update it in the tx completion handler. And to allow matching o

Re: [PATCH] net: dsa: sja1105: fix speed setting for 10 MBPS

2020-05-02 Thread Sergei Shtylyov
Hello! On 01.05.2020 16:43, Colin King wrote: From: Colin Ian King The current logic for speed checking will never set the speed to 10 MBPS because bmcr & BMCR_SPEED10 is always 0 since BMCR_SPEED10 is 0. Also the erroneous setting where BMCR_SPEED1000 and BMCR_SPEED100 are both set causes th

Re: [PATCH 07/14] docs: add IRQ documentation at the core-api book

2020-05-02 Thread Mike Rapoport
On Sat, May 02, 2020 at 12:16:41PM +0200, Mauro Carvalho Chehab wrote: > Em Sat, 2 May 2020 10:41:33 +0300 > Mike Rapoport escreveu: > > > Hello Mauro, > > > > On Fri, May 01, 2020 at 05:37:51PM +0200, Mauro Carvalho Chehab wrote: > > > There are 4 IRQ documentation files under Documentation/*.t

pull-request: bpf-next 2020-05-01

2020-05-02 Thread Alexei Starovoitov
Hi David, The following pull-request contains BPF updates for your *net-next* tree. We've added 60 non-merge commits during the last 6 day(s) which contain a total of 154 files changed, 6740 insertions(+), 3367 deletions(-). The main changes are: 1) pulled work.sysctl from vfs tree with sysctl

cgroup pointed by sock is leaked on mode switch

2020-05-02 Thread Yang Yingliang
Hi, I got an oom panic because cgroup is leaked. Here is the steps :   - run a docker with --cap-add sys_admin parameter and the systemd process in the docker uses both cgroupv1 and cgroupv2   - ssh/exit from host to docker repeately I find the number nr_dying_descendants is increasing: linux

Re: [PATCH 07/14] docs: add IRQ documentation at the core-api book

2020-05-02 Thread Mauro Carvalho Chehab
Em Sat, 2 May 2020 10:41:33 +0300 Mike Rapoport escreveu: > Hello Mauro, > > On Fri, May 01, 2020 at 05:37:51PM +0200, Mauro Carvalho Chehab wrote: > > There are 4 IRQ documentation files under Documentation/*.txt. > > > > Move them into a new directory (core-api/irq) and add a new > > index fi

[PATCH] stmmac: fix pointer check after utilization in stmmac_interrupt

2020-05-02 Thread Maxim Petrov
The paranoidal pointer check in IRQ handler looks very strange - it really protects us only against bogus drivers which request IRQ line with null pointer dev_id. However, the code fragment is incorrect because the dev pointer is used before the actual check. That leads to undefined behavior thus c

Re: [Patch net v2] net_sched: fix tcm_parent in tc filter dump

2020-05-02 Thread Jamal Hadi Salim
On 2020-05-02 4:48 a.m., Jamal Hadi Salim wrote: On 2020-04-30 11:53 p.m., Cong Wang wrote: [..] Steps to reproduce this:   ip li set dev dummy0 up   tc qd add dev dummy0 ingress   tc filter add dev dummy0 parent : protocol arp basic action pass   tc filter show dev dummy0 root Before thi

Re: [RFC PATCH v11 5/9] psci: Add hypercall service for ptp_kvm.

2020-05-02 Thread Jianyong Wu
On 2020/4/30 6:36 PM, Mark Rutland wrote: > On Tue, Apr 28, 2020 at 07:14:52AM +0100, Jianyong Wu wrote: >> On 2020/4/24 6:39 PM, Mark Rutland wrote: >>> On Fri, Apr 24, 2020 at 03:50:22AM +0100, Jianyong Wu wrote: On 2020/4/21 5:57 PM, Mark Rutland wrote: > On Tue, Apr 21, 2020 at 11:23:0

KASAN: global-out-of-bounds Read in inet_diag_bc_sk

2020-05-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:4b4976a6 Merge branch 'net-ReST-part-three' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=13e3824c10 kernel config: https://syzkaller.appspot.com/x/.config?x=b1494ce3fbc02154 dashboard link: http

Re: [Patch net v2] net_sched: fix tcm_parent in tc filter dump

2020-05-02 Thread Jamal Hadi Salim
On 2020-04-30 11:53 p.m., Cong Wang wrote: When we tell kernel to dump filters from root (:), those filters on ingress (:) are matched, but their true parents must be dumped as they are. However, kernel dumps just whatever we tell it, that is either : or :: $ nl

[PATCH v6] net: Option to retrieve the pending data from send queue of UDP socket

2020-05-02 Thread Lese Doru Calin
In this year's edition of GSoC, there is a project idea for CRIU to add support for checkpoint/restore of cork-ed UDP sockets. But to add it, the kernel API needs to be extended. This is what this patch does. It adds a new command, called SIOUDPPENDGET, to the ioctl syscall regarding UDP sockets

Re: [PATCH 07/14] docs: add IRQ documentation at the core-api book

2020-05-02 Thread Mike Rapoport
Hello Mauro, On Fri, May 01, 2020 at 05:37:51PM +0200, Mauro Carvalho Chehab wrote: > There are 4 IRQ documentation files under Documentation/*.txt. > > Move them into a new directory (core-api/irq) and add a new > index file for it. Just curious, why IRQ docs got their subdirectory and DMA didn

Re: [Patch net-next 1/2] net: partially revert dynamic lockdep key changes

2020-05-02 Thread Taehee Yoo
On Fri, 1 May 2020 at 15:02, Cong Wang wrote: > Hi Cong, > On Thu, Apr 30, 2020 at 12:40 AM Taehee Yoo wrote: > > > +static void vlan_dev_set_lockdep_one(struct net_device *dev, > > > +struct netdev_queue *txq, > > > +void

Re: [PATCH bpf-next v1 15/19] tools/libbpf: add bpf_iter support

2020-05-02 Thread Yonghong Song
On 4/29/20 6:41 PM, Andrii Nakryiko wrote: On Mon, Apr 27, 2020 at 1:17 PM Yonghong Song wrote: Three new libbpf APIs are added to support bpf_iter: - bpf_program__attach_iter Given a bpf program and additional parameters, which is none now, returns a bpf_link. - bpf_link__c