Re: [Potential Spoof] [PATCH bpf-next] bpf: fix use-after-free of bpf_link when priming half-fails

2020-05-01 Thread Martin KaFai Lau
On Thu, Apr 30, 2020 at 11:32:59PM -0700, Andrii Nakryiko wrote: > On Thu, Apr 30, 2020 at 11:25 PM Martin KaFai Lau wrote: > > > > On Thu, Apr 30, 2020 at 12:46:08PM -0700, Andrii Nakryiko wrote: > > > If bpf_link_prime() succeeds to allocate new anon file, but then fails to > > > allocate ID for

[PATCH net-next v4 0/2] provide support for PHY master/slave configuration

2020-05-01 Thread Oleksij Rempel
changes v3: - rename port_mode to master_slave - move validation code to net/ethtool/linkmodes.c - add UNSUPPORTED state and avoid sending unsupported fields - more formatting and naming fixes - tja11xx: support only force mode - tja11xx: mark state as unsupported changes v3: - provide separate

[PATCH net-next v4 1/2] ethtool: provide UAPI for PHY master/slave configuration.

2020-05-01 Thread Oleksij Rempel
This UAPI is needed for BroadR-Reach 100BASE-T1 devices. Due to lack of auto-negotiation support, we needed to be able to configure the MASTER-SLAVE role of the port manually or from an application in user space. The same UAPI can be used for 1000BASE-T or MultiGBASE-T devices to force MASTER or S

[PATCH net-next v4 2/2] net: phy: tja11xx: add support for master-slave configuration

2020-05-01 Thread Oleksij Rempel
The TJA11xx PHYs have a vendor specific Master/Slave configuration bit, which is not compatible with IEEE 803.2-2018 spec for 100Base-T1 devices. So, provide a custom config_ange call back to solve this problem. Signed-off-by: Oleksij Rempel --- drivers/net/phy/nxp-tja11xx.c | 47 +++

[PATCH net-next] r8169: remove not needed parameter in rtl8169_set_magic_reg

2020-05-01 Thread Heiner Kallweit
Remove a not needed parameter in rtl8169_set_magic_reg. Signed-off-by: Heiner Kallweit --- drivers/net/ethernet/realtek/r8169_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c inde

[PATCH iproute2 v2 4/6] json_print: Return number of characters printed

2020-05-01 Thread Benjamin Poirier
When outputting in normal mode, forward the return value from color_fprintf(). Signed-off-by: Benjamin Poirier --- include/json_print.h | 24 ++- lib/json_print.c | 95 +++- 2 files changed, 73 insertions(+), 46 deletions(-) diff --git a/inclu

[PATCH iproute2 v2 3/6] bridge: Fix output with empty vlan lists

2020-05-01 Thread Benjamin Poirier
Consider this configuration: ip link add br0 type bridge ip link add vx0 type vxlan dstport 4789 external ip link set dev vx0 master br0 bridge vlan del vid 1 dev vx0 ip link add vx1 type vxlan dstport 4790 external ip link set dev vx1 master br0 root@vsid:/src/iproute2# ./bridge/bridge v

[PATCH iproute2 v2 1/6] bridge: Use consistent column names in vlan output

2020-05-01 Thread Benjamin Poirier
Fix singular vs plural. Add a hyphen to clarify that each of those are single fields. Signed-off-by: Benjamin Poirier --- bridge/vlan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridge/vlan.c b/bridge/vlan.c index 205851e4..ac0796f6 100644 --- a/bridge/vlan.c +++

[PATCH iproute2 v2 2/6] bridge: Fix typo

2020-05-01 Thread Benjamin Poirier
Fixes: 7abf5de677e3 ("bridge: vlan: add support to display per-vlan statistics") Signed-off-by: Benjamin Poirier --- bridge/vlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/vlan.c b/bridge/vlan.c index ac0796f6..37ff2973 100644 --- a/bridge/vlan.c +++ b/bridge/vla

[PATCH iproute2 v2 5/6] bridge: Align output columns

2020-05-01 Thread Benjamin Poirier
Use fixed column widths to improve readability. Before: root@vsid:/src/iproute2# ./bridge/bridge vlan tunnelshow portvlan-id tunnel-id vx0 2 2 1010-1020 1010-1020 103065556 vx-longname 2 2 After: root@vsid:/src/iproute2# ./bridge/bridge vlan t

[PATCH iproute2 v2 6/6] Replace open-coded instances of print_nl()

2020-05-01 Thread Benjamin Poirier
Signed-off-by: Benjamin Poirier --- bridge/vlan.c | 4 ++-- tc/m_action.c | 14 +++--- tc/m_connmark.c | 4 ++-- tc/m_ctinfo.c | 4 ++-- tc/m_ife.c| 4 ++-- tc/m_mpls.c | 2 +- tc/m_nat.c| 4 ++-- tc/m_sample.c | 4 ++-- tc/m_skbedit.c|

[PATCH iproute2 v2 0/6] bridge vlan output fixes

2020-05-01 Thread Benjamin Poirier
More fixes for `bridge vlan` and `bridge vlan tunnelshow` normal and JSON mode output. Some column titles are changed, empty lines removed from the output, interfaces with no vlans or tunnels are removed, columns are aligned. Changes v2: * dropped patch 1, "bridge: Use the same flag names in inpu

Re: [PATCH net-next v3 1/3] devlink: factor out building a snapshot notification

2020-05-01 Thread Jiri Pirko
Thu, Apr 30, 2020 at 07:57:56PM CEST, k...@kernel.org wrote: >We'll need to send snapshot info back on the socket >which requested a snapshot to be created. Factor out >constructing a snapshot description from the broadcast >notification code. > >v3: new patch > >Signed-off-by: Jakub Kicinski Rev

Re: [PATCH net-next v3 2/3] devlink: let kernel allocate region snapshot id

2020-05-01 Thread Jiri Pirko
Thu, Apr 30, 2020 at 07:57:57PM CEST, k...@kernel.org wrote: >Currently users have to choose a free snapshot id before >calling DEVLINK_CMD_REGION_NEW. This is potentially racy >and inconvenient. > >Make the DEVLINK_ATTR_REGION_SNAPSHOT_ID optional and try >to allocate id automatically. Send a mess

Re: [PATCH net-next v3 3/3] docs: devlink: clarify the scope of snapshot id

2020-05-01 Thread Jiri Pirko
Thu, Apr 30, 2020 at 07:57:58PM CEST, k...@kernel.org wrote: >In past discussions Jiri explained snapshot ids are cross-region. >Explain this in the docs. > >v3: new patch > >Signed-off-by: Jakub Kicinski Reviewed-by: Jiri Pirko

[RFC v2] current devlink extension plan for NICs

2020-05-01 Thread Jiri Pirko
Hi all. First, I would like to apologize for very long email. But I think it would be beneficial to the see the whole picture, where we are going. Currently we are working internally on several features with need of extension of the current devlink infrastructure. I took a stab at putting it all

Re: [PATCH v2 net-next 1/4] net: bridge: allow enslaving some DSA master network devices

2020-05-01 Thread Nikolay Aleksandrov
On 30/04/2020 23:25, Vladimir Oltean wrote: > From: Vladimir Oltean > > Commit 8db0a2ee2c63 ("net: bridge: reject DSA-enabled master netdevices > as bridge members") added a special check in br_if.c in order to check > for a DSA master network device with a tagging protocol configured. This > was

Re: [PATCH iproute2 v2 0/6] bridge vlan output fixes

2020-05-01 Thread Nikolay Aleksandrov
On 01/05/2020 11:47, Benjamin Poirier wrote: > More fixes for `bridge vlan` and `bridge vlan tunnelshow` normal and JSON > mode output. > > Some column titles are changed, empty lines removed from the output, > interfaces with no vlans or tunnels are removed, columns are aligned. > > Changes v2:

Re: [PATCH bpf-next] libbpf: fix probe code to return EPERM if encountered

2020-05-01 Thread Eelco Chaudron
On 30 Apr 2020, at 20:12, Andrii Nakryiko wrote: On Thu, Apr 30, 2020 at 3:24 AM Eelco Chaudron wrote: When the probe code was failing for any reason ENOTSUP was returned, even if this was due to no having enough lock space. This patch fixes this by returning EPERM to the user applicatio

[PATCH net-next v6 1/2] xen networking: add basic XDP support for xen-netfront

2020-05-01 Thread Denis Kirjanov
The patch adds a basic XDP processing to xen-netfront driver. We ran an XDP program for an RX response received from netback driver. Also we request xen-netback to adjust data offset for bpf_xdp_adjust_head() header space for custom headers. synchronization between frontend and backend parts is d

[PATCH net-next v6 2/2] xen networking: add XDP offset adjustment to xen-netback

2020-05-01 Thread Denis Kirjanov
the patch basically adds the offset adjustment and netfront state reading to make XDP work on netfront side. Signed-off-by: Denis Kirjanov --- drivers/net/xen-netback/common.h | 2 ++ drivers/net/xen-netback/netback.c | 7 +++ drivers/net/xen-netback/rx.c | 7 ++- drivers/net/xe

[PATCH net-next 05/13] net/smc: mutex to protect the lgr against parallel reconfigurations

2020-05-01 Thread Karsten Graul
Introduce llc_conf_mutex in the link group which is used to protect the buffers and lgr states against parallel link reconfiguration. This ensures that new connections do not start to register buffers with the links of a link group when link creation or termination is running. Signed-off-by: Karst

[PATCH net-next 04/13] net/smc: extend smc_llc_send_add_link() and smc_llc_send_delete_link()

2020-05-01 Thread Karsten Graul
All LLC sends are done from worker context only, so remove the prep functions which were used to build the message before it was sent, and add the function content into the respective send function smc_llc_send_add_link() and smc_llc_send_delete_link(). Extend smc_llc_send_add_link() to include the

[PATCH net-next 06/13] net/smc: remember PNETID of IB device for later device matching

2020-05-01 Thread Karsten Graul
The PNETID is needed to find an alternate link for a link group. Save the PNETID of the link that is used to create the link group for later device matching. Signed-off-by: Karsten Graul Reviewed-by: Ursula Braun --- net/smc/smc_core.c | 2 ++ net/smc/smc_core.h | 2 ++ 2 files changed, 4 inser

[PATCH net-next 10/13] net/smc: remove DELETE LINK processing from smc_core.c

2020-05-01 Thread Karsten Graul
Support for multiple links makes the former DELETE LINK processing obsolete which sent one DELETE_LINK LLC message for each single link. Remove this processing from smc_core.c. Signed-off-by: Karsten Graul Reviewed-by: Ursula Braun --- net/smc/smc_core.c | 33 -

[PATCH net-next 08/13] net/smc: add smcr_port_err() and smcr_link_down() processing

2020-05-01 Thread Karsten Graul
Call smcr_port_err() when an IB event reports an inactive IB device. smcr_port_err() calls smcr_link_down() for all affected links. smcr_link_down() either triggers the local DELETE_LINK processing, or sends an DELETE_LINK LLC message to the SMC server to initiate the processing. The old handler fu

[PATCH net-next 11/13] net/smc: introduce smc_pnet_find_alt_roce()

2020-05-01 Thread Karsten Graul
Introduce a new function in smc_pnet.c that searches for an alternate IB device, using an existing link group and a primary IB device. The alternate IB device needs to be active and must have the same PNETID as the link group. Signed-off-by: Karsten Graul Reviewed-by: Ursula Braun --- net/smc/s

[PATCH net-next 09/13] net/smc: take link down instead of terminating the link group

2020-05-01 Thread Karsten Graul
Use the introduced link down processing in all places where the link group is terminated and take down the affected link only. Signed-off-by: Karsten Graul Reviewed-by: Ursula Braun --- net/smc/smc_core.c | 7 ++- net/smc/smc_llc.c | 4 ++-- net/smc/smc_tx.c | 2 +- net/smc/smc_wr.c

[PATCH net-next 13/13] net/smc: llc_add_link_work to handle ADD_LINK LLC requests

2020-05-01 Thread Karsten Graul
Introduce a work that is scheduled when a new ADD_LINK LLC request is received. The work will call either the SMC client or SMC server ADD_LINK processing. Signed-off-by: Karsten Graul Reviewed-by: Ursula Braun --- net/smc/smc_core.h | 1 + net/smc/smc_llc.c | 24 ++-- 2 f

[PATCH net-next 07/13] net/smc: add smcr_port_add() and smcr_link_up() processing

2020-05-01 Thread Karsten Graul
Call smcr_port_add() when an IB event reports a new active IB device. smcr_port_add() will start a work which either triggers the local ADD_LINK processing, or send an ADD_LINK LLC message to the SMC server to initiate the processing. Signed-off-by: Karsten Graul Reviewed-by: Ursula Braun --- n

[PATCH net-next 03/13] net/smc: map and register buffers for a new link

2020-05-01 Thread Karsten Graul
Introduce support to map and register all current buffers for a new link. smcr_buf_map_lgr() will map used buffers for a new link and smcr_buf_reg_lgr() can be called to register used buffers on the IB device of the new link. Signed-off-by: Karsten Graul Reviewed-by: Ursula Braun --- net/smc/sm

[PATCH net-next 01/13] net/smc: multiple link support for rmb buffer registration

2020-05-01 Thread Karsten Graul
The CONFIRM_RKEY LLC processing handles all links in one LLC message. Move the call to this processing out of smcr_link_reg_rmb() which does processing per link, into smcr_lgr_reg_rmbs() which is responsible for link group level processing. Move smcr_link_reg_rmb() into module smc_core.c. >From af_

[PATCH net-next 02/13] net/smc: unmapping of buffers to support multiple links

2020-05-01 Thread Karsten Graul
With the support of multiple links that are created and cleared there is a need to unmap one link from all current buffers. Add unmapping by link and by rmb. And make smcr_link_clear() available to be called from the LLC layer. Signed-off-by: Karsten Graul Reviewed-by: Ursula Braun --- net/smc/

[PATCH net-next 12/13] net/smc: allocate index for a new link

2020-05-01 Thread Karsten Graul
Add smc_llc_alloc_alt_link() to find a free link index for a new link, depending on the new link group type. And update constants for the maximum number of links to 3 (2 symmetric and 1 dangling asymmetric link). These maximum numbers are the same as used by other implementations of the SMC-R proto

[PATCH net-next 00/13] net/smc: extent buffer mapping and port handling

2020-05-01 Thread Karsten Graul
Add functionality to map/unmap and register/unregister memory buffers for specific SMC-R links and for the whole link group. Prepare LLC layer messages for the support of multiple links and extent the processing of adapter events. And add further small preparations needed for the SMC-R failover sup

KASAN: use-after-free Read in inet_diag_bc_sk

2020-05-01 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:37ecb5b8 hinic: Use kmemdup instead of kzalloc and memcpy git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=141e54bc10 kernel config: https://syzkaller.appspot.com/x/.config?x=b1494ce3fbc02154 dashbo

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

2020-05-01 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:37ecb5b8 hinic: Use kmemdup instead of kzalloc and memcpy git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=15f93c4c10 kernel config: https://syzkaller.appspot.com/x/.config?x=b1494ce3fbc02154 dashbo

Re: [PATCH net-next] net_sched: sch_fq: add horizon attribute

2020-05-01 Thread kbuild test robot
suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Eric-Dumazet/net_sched-sch_fq-add-horizon-attribute/20200501-135537 base: https://git.kernel.org/pub/scm/linux/

Re: [PATCH net-next V2] net: sched: fallback to qdisc noqueue if default qdisc setup fail

2020-05-01 Thread Jesper Dangaard Brouer
On Thu, 30 Apr 2020 12:45:49 -0700 Jakub Kicinski wrote: > On Thu, 30 Apr 2020 13:42:22 +0200 Jesper Dangaard Brouer wrote: > > Currently if the default qdisc setup/init fails, the device ends up with > > qdisc "noop", which causes all TX packets to get dropped. > > > > With the introduction of

Re: [PATCH net-next v6 1/2] xen networking: add basic XDP support for xen-netfront

2020-05-01 Thread Ilias Apalodimas
On Fri, May 01, 2020 at 01:12:17PM +0300, Denis Kirjanov wrote: > The patch adds a basic XDP processing to xen-netfront driver. > > We ran an XDP program for an RX response received from netback > driver. Also we request xen-netback to adjust data offset for > bpf_xdp_adjust_head() header space fo

Re: [PATCH net-next v2 28/33] mlx5: rx queue setup time determine frame_sz for XDP

2020-05-01 Thread Jesper Dangaard Brouer
On Thu, 30 Apr 2020 20:12:11 +0300 Tariq Toukan wrote: > >> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h > >> b/drivers/net/ethernet/mellanox/mlx5/core/en.h > >> index 23701c0e36ec..ba6a0ee297c6 100644 > >> --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h > >> +++ b/drivers/net/et

Re: [PATCH 07/15] drop_monitor: work around gcc-10 stringop-overflow warning

2020-05-01 Thread Neil Horman
On Thu, Apr 30, 2020 at 11:30:49PM +0200, Arnd Bergmann wrote: > The current gcc-10 snapshot produces a false-positive warning: > > net/core/drop_monitor.c: In function 'trace_drop_common.constprop': > cc1: error: writing 8 bytes into a region of size 0 > [-Werror=stringop-overflow=] > In file in

Re: [PATCH net-next v2 28/33] mlx5: rx queue setup time determine frame_sz for XDP

2020-05-01 Thread Jesper Dangaard Brouer
On Thu, 30 Apr 2020 20:07:43 +0300 Tariq Toukan wrote: > On 4/30/2020 2:22 PM, Jesper Dangaard Brouer wrote: > > The mlx5 driver have multiple memory models, which are also changed > > according to whether a XDP bpf_prog is attached. > > > > The 'rx_striding_rq' setting is adjusted via ethtool p

Re: Net: [DSA]: dsa-loop kernel panic

2020-05-01 Thread Andrew Lunn
On Thu, Apr 30, 2020 at 11:54:15AM +0530, Allen wrote: > Hi, > > $ rmmod dsa-loop > [ 50.688935] Unable to handle kernel read from unreadable memory at > virtual address 0040 > [ 50.718185] pstate: 6045 (nZCv daif +PAN -UAO) > [ 50.719274] pc : __dev_set_rx_mode+0x48/0xa0 f

Re: [PATCH v2 net-next 4/4] net: dsa: sja1105: implement cross-chip bridging operations

2020-05-01 Thread Vladimir Oltean
On Thu, 30 Apr 2020 at 23:25, Vladimir Oltean wrote: > > From: Vladimir Oltean > > sja1105 uses dsa_8021q for DSA tagging, a format which is VLAN at heart > and which is compatible with cascading. A complete description of this > tagging format is in net/dsa/tag_8021q.c, but a quick summary is th

Re: ABI breakage in sctp_event_subscribe (was [PATCH net-next 0/4] sctp: add some missing events from rfc5061)

2020-05-01 Thread Harald Welte
Dear Linux SCTP developers, On Sun, Apr 19, 2020 at 12:25:36PM +0200, Harald Welte wrote: > this patchset (merged back in Q4/2019) has broken ABI compatibility, more > or less exactly as it was discussed/predicted in Message-Id > <20190206201430.18830-1-jul...@arista.com> > "[PATCH net] sctp: make

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

2020-05-01 Thread Colin King
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 the speed to be 1000 MBS. Fix this by masking bps a

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

2020-05-01 Thread Vincent Cheng
On Thu, Apr 30, 2020 at 11:37:34PM EDT, Richard Cochran wrote: >On Wed, Apr 29, 2020 at 08:28:23PM -0400, vincent.cheng...@renesas.com wrote: >> diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c >> index acabbe7..c46ff98 100644 >> --- a/drivers/ptp/ptp_clock.c >> +++ b/drivers/ptp/ptp_

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

2020-05-01 Thread Vincent Cheng
On Thu, Apr 30, 2020 at 11:56:01PM EDT, Richard Cochran wrote: >On Wed, Apr 29, 2020 at 08:28:25PM -0400, vincent.cheng...@renesas.com wrote: >> @@ -871,6 +880,69 @@ static int idtcm_set_pll_mode(struct idtcm_channel >> *channel, >> >> +int err; >> +u8 i; >> +u8 buf[4] = {0}; >> +

Re: [RFC next-next v2 2/5] net: marvell: prestera: Add PCI interface support

2020-05-01 Thread Andrew Lunn
> > Hi Vadym > > > > What are the plans for getting the firmware into linux-firmware git > > repo? > > > > Andrew > > Well, what is the procedure ? I was thinking that probably after > conceptual part will be approved and I will send official PATCH series > along with the firmware image to t

[PATCH] net: stmmac: gmac5+: fix potential integer overflow on 32 bit multiply

2020-05-01 Thread Colin King
From: Colin Ian King The multiplication of cfg->ctr[1] by 10 is performed using a 32 bit multiplication (since cfg->ctr[1] is a u32) and this can lead to a potential overflow. Fix this by making the constant a ULL to ensure a 64 bit multiply occurs. Fixes: 504723af0d85 ("net: stmmac: Add

Re: ABI breakage in sctp_event_subscribe (was [PATCH net-next 0/4] sctp: add some missing events from rfc5061)

2020-05-01 Thread Marcelo Ricardo Leitner
On Fri, May 01, 2020 at 03:16:07PM +0200, Harald Welte wrote: > Dear Linux SCTP developers, > > On Sun, Apr 19, 2020 at 12:25:36PM +0200, Harald Welte wrote: > > this patchset (merged back in Q4/2019) has broken ABI compatibility, more > > or less exactly as it was discussed/predicted in Message-I

Re: [PATCH] vhost: vsock: don't send pkt when vq is not started

2020-05-01 Thread Stefano Garzarella
On Thu, Apr 30, 2020 at 03:43:00PM -0400, Michael S. Tsirkin wrote: > On Thu, Apr 30, 2020 at 06:25:21PM +0200, Stefano Garzarella wrote: > > On Thu, Apr 30, 2020 at 10:06:26AM +, Justin He wrote: > > > Hi Stefano > > > > > > > -Original Message- > > > > From: Stefano Garzarella > > >

Re: [PATCH v2] vhost: vsock: kick send_pkt worker once device is started

2020-05-01 Thread Stefano Garzarella
On Fri, May 01, 2020 at 12:38:40PM +0800, Jia He wrote: > Ning Bo reported an abnormal 2-second gap when booting Kata container [1]. > The unconditional timeout was caused by VSOCK_DEFAULT_CONNECT_TIMEOUT of > connecting from the client side. The vhost vsock client tries to connect > an initializin

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

2020-05-01 Thread Jason Gunthorpe
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 > conflicts, we would like to ask you to route this series through > mlx5-next shared branch. It is based on v5.7-rc2 tag. > > > The following serie

[PATCH 07/37] docs: networking: convert xfrm_device.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - mark code blocks and literals as such; - mark tables as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/networking/index.rst| 1 + .../{xfrm_device.txt =>

[PATCH 36/37] net: docs: add page_pool.rst to index.rst

2020-05-01 Thread Mauro Carvalho Chehab
This file is already in ReST format. Add it to the net index.rst, in order to make it part of the documentation body. Signed-off-by: Mauro Carvalho Chehab --- Documentation/networking/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/networking/index.rst b/Documentatio

[PATCH 37/37] docs: networking: arcnet-hardware.rst: don't duplicate chapter names

2020-05-01 Thread Mauro Carvalho Chehab
Since changeset 58ad30cf91f0 ("docs: fix reference to core-api/namespaces.rst"), auto-references for chapters are generated. This is a nice feature, but has a drawback: no chapters can have the same sumber. So, we need to change two chapter titles, to avoid warnings when building the docs. Fixes:

[PATCH 35/37] docs: networking: device drivers: convert toshiba/spider_net.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust title markup; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../networking/device_drivers/index.rst | 1 + .../{spider_net.txt => s

[PATCH 09/37] docs: networking: convert xfrm_sync.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - add a document title; - adjust titles and chapters, adding proper markups; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/networking

[PATCH 33/37] docs: networking: device drivers: convert ti/cpsw.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../networking/device_drivers/index.rst |

[PATCH 25/37] docs: networking: device drivers: convert intel/ipw2200.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - comment out text-only TOC from html/pdf output; - use copyright symbol; - use :field: markup; - mark code blocks and literals as such; - mark tables as such; - adjust identation, whitespaces and blank lines where needed; - ad

RE: [PATCH 1/4] fs: Implement close-on-fork

2020-05-01 Thread Karstens, Nate
Eric, Thanks for the suggestion. I looked into it and noticed that do_close_on_exec() appears to have some optimizations as well: > set = fdt->close_on_exec[i]; > if (!set) > continue; If we interleave the close-on-exec and close-on-fork flags then this optimization will have to be remo

[PATCH 24/37] docs: networking: device drivers: convert intel/ipw2100.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - comment out text-only TOC from html/pdf output; - use copyright symbol; - use :field: markup; - mark code blocks and literals as such; - mark tables as such; - adjust identation, whitespaces and blank lines where needed; - ad

[PATCH 34/37] docs: networking: device drivers: convert ti/tlan.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - mark tables as such; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../networking/device_dri

[PATCH 30/37] docs: networking: device drivers: convert sb1000.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - add a document title; - adjust titles and chapters, adding proper markups; - mark code blocks and literals as such; - mark lists as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- ..

[PATCH 16/37] docs: networking: device drivers: convert chelsio/cxgb.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - use copyright symbol; - adjust titles and chapters, adding proper markups; - comment out text-only TOC from html/pdf output; - mark code blocks and literals as such; - add notes markups; - mark tables as such; - mark lists as such; - adjust identation, whitespaces and blank lin

[PATCH 31/37] docs: networking: device drivers: convert smsc/smc9.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../networking/device_drivers/index.rst | 1 + .../networking/device_drivers/smsc/smc9.rst |

[PATCH 15/37] docs: networking: device drivers: convert aquantia/atlantic.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - use copyright symbol; - adjust title and its markup; - comment out text-only TOC from html/pdf output; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab -

[PATCH 12/37] docs: networking: device drivers: convert 3com/3c509.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - mark code blocks and literals as such; - add notes markups; - mark tables as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../

[PATCH 32/37] docs: networking: device drivers: convert ti/cpsw_switchdev.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - use :field: markup; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../networking/device_driv

[PATCH 11/37] docs: networking: convert z8530drv.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - use copyright symbol; - adjust titles and chapters, adding proper markups; - mark tables as such; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- D

[PATCH 28/37] docs: networking: device drivers: convert neterion/vxge.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - comment out text-only TOC from html/pdf output; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH 26/37] docs: networking: device drivers: convert microsoft/netvsc.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../networking/device_drivers/index.rst |

[PATCH 17/37] docs: networking: device drivers: convert cirrus/cs89x0.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust title markup; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../cirrus/{cs89x0.txt => cs89x0.rst} | 557 +- .../ne

[PATCH 03/37] docs: networking: convert vrf.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust title markup; - Add a subtitle for the first section; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/networking/index.rst | 1 + Documen

Re: [PATCH net-next v2 12/33] hv_netvsc: add XDP frame size to driver

2020-05-01 Thread Jesper Dangaard Brouer
On Thu, 30 Apr 2020 14:20:20 + Haiyang Zhang wrote: > > -Original Message- > > From: Jesper Dangaard Brouer > > > > The hyperv NIC drivers XDP implementation is rather disappointing as it will > > be a slowdown to enable XDP on this driver, given it will allocate a new > > page > >

[PATCH 29/37] docs: networking: device drivers: convert qualcomm/rmnet.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - add a document title; - mark code blocks and literals as such; - mark tables as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../networking/device_drivers/index.rst | 1 +

[PATCH 27/37] docs: networking: device drivers: convert neterion/s2io.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - add a document title; - comment out text-only TOC from html/pdf output; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../networking/device_drive

[PATCH 06/37] docs: networking: convert x25.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
Not much to be done here: - add SPDX header; - add a document title; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/networking/index.rst| 1 + Documentation/networking/{x25.txt => x25.rst} | 4 net/x25/Kconfig

[PATCH 13/37] docs: networking: device drivers: convert 3com/vortex.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - add a document title; - mark code blocks and literals as such; - mark tables as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../3com/{vortex.txt => vortex.rst} | 223 ++

[PATCH 20/37] docs: networking: device drivers: convert dec/dmfe.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - comment out text-only TOC from html/pdf output; - mark code blocks and literals as such; - mark tables as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mau

[PATCH 04/37] docs: networking: convert vxlan.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust title markup; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/networking/index.rst| 1 + .../networking/{vxlan.tx

[PATCH 21/37] docs: networking: device drivers: convert dlink/dl2k.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - mark code blocks and literals as such; - mark lists as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../dlink/{dl2k.txt => dl2k.rst} | 228 ++ .../net

[PATCH 00/37]net: manually convert files to ReST format - part 3 (final)

2020-05-01 Thread Mauro Carvalho Chehab
That's the third part (and the final one) of my work to convert the networking text files into ReST. it is based on linux-next next-20200430 branch. The full series (including those ones) are at: https://git.linuxtv.org/mchehab/experimental.git/log/?h=net-docs The built output documents

Re: [PATCH RFC v2 00/11] dwmac-meson8b Ethernet RX delay configuration

2020-05-01 Thread Martin Blumenstingl
Hi Andrew, On Wed, Apr 29, 2020 at 11:29 PM Andrew Lunn wrote: > > > - Khadas VIM2 seems to have the RX delay built into the PCB trace > > length. When I enable the RX delay on the PHY or MAC I can't get any > > data through. I expect that we will have the same situation on all > > GXBB, GX

[PATCH 08/37] docs: networking: convert xfrm_proc.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust title markup; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/networking/index.rst| 1 + .../{xfrm_proc.txt => xfrm_proc.rst} | 31 ++

[PATCH 22/37] docs: networking: device drivers: convert freescale/dpaa.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - mark code blocks and literals as such; - use :field: markup; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../freescale/{dpaa.txt => dpaa.rst} | 139 ++ .../networking/de

[PATCH 19/37] docs: networking: device drivers: convert dec/de4x5.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - add a document title; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../dec/{de4x5.txt => de4x5.rst} | 105 ++ .../n

[PATCH 02/37] docs: networking: convert udplite.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - mark lists as such; - mark tables as such; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Doc

[PATCH 05/37] docs: networking: convert x25-iface.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
Not much to be done here: - add SPDX header; - adjust title markup; - remove a tail whitespace; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/networking/index.rst | 1 + .../networking/{x25-iface.txt => x25-iface.rst}| 10

Re: KASAN: use-after-free Read in inet_diag_bc_sk

2020-05-01 Thread syzbot
syzbot has bisected this bug to: commit b1f3e43dbfacfcd95296b0f80f84b186add9ef54 Author: Dmitry Yakunin Date: Thu Apr 30 15:51:15 2020 + inet_diag: add support for cgroup filter bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=106b15f810 start commit: 37ecb5b8 hinic:

[PATCH 10/37] docs: networking: convert xfrm_sysctl.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
Not much to be done here: - add SPDX header; - add a document title; - add a chapter's markup; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/networking/index.rst | 1 + .../networking/{xfrm_sysctl.txt => xfrm_sysctl.rst}| 7

[PATCH 23/37] docs: networking: device drivers: convert freescale/gianfar.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - use :field: markup; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../freescale/{gianfar.txt => gianfar.rst}| 21 +-- .../networking/device_drivers/index.rst | 1 + 2 fi

[PATCH 01/37] docs: networking: convert tuntap.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - use copyright symbol; - adjust titles and chapters, adding proper markups; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/networking

[PATCH 14/37] docs: networking: device drivers: convert amazon/ena.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - adjust titles and chapters, adding proper markups; - mark code blocks and literals as such; - mark tables as such; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab --- .../amazon/{ena.txt => en

[PATCH 18/37] docs: networking: device drivers: convert davicom/dm9000.txt to ReST

2020-05-01 Thread Mauro Carvalho Chehab
- add SPDX header; - add a document title; - mark lists as such; - mark tables as such; - mark code blocks and literals as such; - use the right horizontal tag markup; - adjust identation, whitespaces and blank lines where needed; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab

Re: [PATCH 03/37] docs: networking: convert vrf.txt to ReST

2020-05-01 Thread David Ahern
On 5/1/20 8:44 AM, Mauro Carvalho Chehab wrote: > - add SPDX header; > - adjust title markup; > - Add a subtitle for the first section; > - mark code blocks and literals as such; > - adjust identation, whitespaces and blank lines; > - add to networking/index.rst. > > Signed-off-by: Mauro Carvalho

[PATCH v2 net] ipv6: Use global sernum for dst validation with nexthop objects

2020-05-01 Thread David Ahern
Nik reported a bug with pcpu dst cache when nexthop objects are used illustrated by the following: $ ip netns add foo $ ip -netns foo li set lo up $ ip -netns foo addr add 2001:db8:11::1/128 dev lo $ ip netns exec foo sysctl net.ipv6.conf.all.forwarding=1 $ ip li add veth1 type

Re: [PATCH 1/4] fs: Implement close-on-fork

2020-05-01 Thread Matthew Wilcox
On Fri, May 01, 2020 at 02:45:16PM +, Karstens, Nate wrote: > Others -- I will respond to feedback outside of implementation details in a > separate message. FWIW, I'm opposed to the entire feature. Improving the implementation will not change that.

  1   2   3   >