Re: [PATCH v3 bpf-next 0/5] bpf: Introduce minimal support for sleepable progs

2020-08-28 Thread Daniel Borkmann
On 8/28/20 12:01 AM, Alexei Starovoitov wrote: From: Alexei Starovoitov v2->v3: - switched to minimal allowlist approach. Essentially that means that syscall entry, few btrfs allow_error_inject functions, should_fail_bio(), and two LSM hooks: file_mprotect and bprm_committed_creds are the

Re: [PATCH v3 bpf-next 1/5] mm/error_inject: Fix allow_error_inject function signatures.

2020-08-28 Thread Daniel Borkmann
On 8/28/20 12:01 AM, Alexei Starovoitov wrote: From: Alexei Starovoitov 'static' and 'static noinline' function attributes make no guarantees that gcc/clang won't optimize them. The compiler may decide to inline 'static' function and in such case ALLOW_ERROR_INJECT becomes meaningless. The comp

Re: [PATCH v2 08/30] net: wireless: ath: carl9170: Convert 'ar9170_qmap' to inline function

2020-08-28 Thread Christian Lamparter
On Thursday, 27 August 2020 11:33:51 CEST Lee Jones wrote: > 'ar9170_qmap' is used in some source files which include carl9170.h, > but not all of them. A 'defined but not used' warning is thrown when > compiling the ones which do not use it. > > Fixes the following W=1 kernel build warning(s) >

[PATCH net-next] net: ethernet: ti: am65-cpts: fix i2083 genf (and estf) Reconfiguration Issue

2020-08-28 Thread Grygorii Strashko
The new bit TX_GENF_CLR_EN has been added in AM65x SR2.0 to fix i2083 errata, which can be just set unconditionally for all SoCs. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/am65-cpts.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet

[PATCH v3] net: Use standardized (IANA) local port range

2020-08-28 Thread Bart Groeneveld
IANA specifies User ports as 1024-49151, and Private ports (local/ephemeral/dynamic/w/e) as 49152-65535 [1]. This means Linux uses 32768-49151 'illegally'. This is not just a matter of following specifications: IANA actually assigns numbers in this range [1]. I understand that Linux uses 61000-65

Re: packet deadline and process scheduling

2020-08-28 Thread Stephen Hemminger
On Fri, 28 Aug 2020 16:01:31 +0200 Willem de Bruijn wrote: > On Fri, Aug 28, 2020 at 10:51 AM S.V.R.Anand wrote: > > > > There is an active Internet draft "Packet Delivery Deadline time in > > 6LoWPAN Routing Header" > > (https://datatracker.ietf.org/doc/draft-ietf-6lo-deadline-time/) which > >

[PATCH v2] net: Use standardized (IANA) local port range

2020-08-28 Thread Bart Groeneveld
IANA specifies User ports as 1024-49151, and Private ports (local/ephemeral/dynamic/w/e) as 49152-65535 [1]. This means Linux uses 32768-49151 'illegally'. This is not just a matter of following specifications: IANA actually assigns numbers in this range [1]. I understand that Linux uses 61000-65

Re: [PATCH net] drivers/net/wan/hdlc_cisco: Add hard_header_len

2020-08-28 Thread Xie He
On Fri, Aug 28, 2020 at 3:37 AM Krzysztof Hałasa wrote: > > OTOH hdlc_setup_dev() initializes hard_header_len to 16, > but in this case I guess 4 bytes are better. > > Acked-by: Krzysztof Halasa Thank you, Krzysztof! Actually I'm thinking about changing the default value of 16 in hdlc.c to 0.

Re: [PATCH bpf-next v3 4/8] libbpf: implement bpf_prog_find_metadata

2020-08-28 Thread Toke Høiland-Jørgensen
Stanislav Fomichev writes: > This is a low-level function (hence in bpf.c) to find out the metadata > map id for the provided program fd. > It will be used in the next commits from bpftool. > > Cc: Toke Høiland-Jørgensen > Cc: YiFei Zhu > Signed-off-by: Stanislav Fomichev > --- > tools/lib/bp

pull-request: bpf 2020-08-28

2020-08-28 Thread Daniel Borkmann
Hi David, The following pull-request contains BPF updates for your *net* tree. We've added 4 non-merge commits during the last 4 day(s) which contain a total of 4 files changed, 7 insertions(+), 4 deletions(-). The main changes are: 1) Fix out of bounds access for BPF_OBJ_GET_INFO_BY_FD retriev

Re: [PATCH 12/30] net: wireless: cisco: airo: Fix a myriad of coding style issues

2020-08-28 Thread Ondrej Zary
On Friday 28 August 2020 10:59:37 Kalle Valo wrote: > Ondrej Zary writes: > > > On Thursday 27 August 2020 09:49:12 Kalle Valo wrote: > >> Ondrej Zary writes: > >> > >> > On Monday 17 August 2020 20:27:06 Jesse Brandeburg wrote: > >> >> On Mon, 17 Aug 2020 16:27:01 +0300 > >> >> Kalle Valo wro

Re: [PATCH v3] net: Use standardized (IANA) local port range

2020-08-28 Thread Stephen Hemminger
On Fri, 28 Aug 2020 22:44:47 +0200 Bart Groeneveld wrote: > IANA specifies User ports as 1024-49151, > and Private ports (local/ephemeral/dynamic/w/e) as 49152-65535 [1]. > > This means Linux uses 32768-49151 'illegally'. > This is not just a matter of following specifications: > IANA actually a

Re: [PATCHv9 bpf-next 1/5] bpf: add a new bpf argument type ARG_CONST_MAP_PTR_OR_NULL

2020-08-28 Thread Daniel Borkmann
On 8/26/20 3:19 PM, Hangbin Liu wrote: Add a new bpf argument type ARG_CONST_MAP_PTR_OR_NULL which could be used when we want to allow NULL pointer for map parameter. The bpf helper need to take care and check if the map is NULL when use this type. Signed-off-by: Hangbin Liu --- v9: merge the

Re: [PATCHv9 bpf-next 2/5] xdp: add a new helper for dev map multicast support

2020-08-28 Thread Daniel Borkmann
On 8/26/20 3:19 PM, Hangbin Liu wrote: [...] +BPF_CALL_3(bpf_xdp_redirect_map_multi, struct bpf_map *, map, + struct bpf_map *, ex_map, u64, flags) +{ + struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info); + + /* Limit ex_map type to DEVMAP_HASH to get better perf

tc filter add with handle 800::10:800

2020-08-28 Thread Denis Gubin
Hello, everyone! How can I add filter rule with full handle option tc filter replace dev eno5 parent : pref 49100 handle 800:10:800 protocol ip u32 match u8 0 0 I get error: Error: cls_u32: Handle specified hash table address mismatch Why I get error? Am I right to article below? handle 8

Re: drivers/of/of_mdio.c needs a small modification

2020-08-28 Thread Andrew Lunn
Hi Adam > If kernel has to bring up two Ethernet interfaces, the processor has two > peripherals with functionality of MACs (in i.MX6ULL these are Fast Ethernet > Controllers, FECs), but uses a shared MDIO bus, then the kernel first probes > one MAC, enables clock for its PHY, probes MDIO bus tryn

Re: drivers/of/of_mdio.c needs a small modification

2020-08-28 Thread Adam Rudziński
Hi Andrew. W dniu 2020-08-29 o 00:28, Andrew Lunn pisze: Hi Adam If kernel has to bring up two Ethernet interfaces, the processor has two peripherals with functionality of MACs (in i.MX6ULL these are Fast Ethernet Controllers, FECs), but uses a shared MDIO bus, then the kernel first probes one

Re: drivers/of/of_mdio.c needs a small modification

2020-08-28 Thread Andrew Lunn
On Sat, Aug 29, 2020 at 12:34:05AM +0200, Adam Rudziński wrote: > Hi Andrew. > > W dniu 2020-08-29 o 00:28, Andrew Lunn pisze: > > Hi Adam > > > > > If kernel has to bring up two Ethernet interfaces, the processor has two > > > peripherals with functionality of MACs (in i.MX6ULL these are Fast >

Re: pull-request: bpf 2020-08-28

2020-08-28 Thread David Miller
From: Daniel Borkmann Date: Fri, 28 Aug 2020 23:14:52 +0200 > The following pull-request contains BPF updates for your *net* tree. > > We've added 4 non-merge commits during the last 4 day(s) which contain > a total of 4 files changed, 7 insertions(+), 4 deletions(-). > > The main changes are:

Re: [PATCH v3] net: Use standardized (IANA) local port range

2020-08-28 Thread David Miller
From: Stephen Hemminger Date: Fri, 28 Aug 2020 14:52:03 -0700 > Changing the default range impacts existing users. Since Linux has been doing > this for so long, I don't think just because a standards body decided to > reserve > some space is sufficient justification to do this. Agreed, there i

Re: drivers/of/of_mdio.c needs a small modification

2020-08-28 Thread Adam Rudziński
W dniu 2020-08-29 o 00:53, Andrew Lunn pisze: On Sat, Aug 29, 2020 at 12:34:05AM +0200, Adam Rudziński wrote: Hi Andrew. W dniu 2020-08-29 o 00:28, Andrew Lunn pisze: Hi Adam If kernel has to bring up two Ethernet interfaces, the processor has two peripherals with functionality of MACs (in i

proposed modification of drivers/of/of_mdio.c and include/linux/of_mdio.h

2020-08-28 Thread Adam Rudziński
Hi, I have found that a device with two Ethernet interfaces may have a problem with bringing up both interfaces on fresh boot (after power-on). According to my investigation, the problem is caused by probing PHYs on shared MDIO bus while one PHY still has no clock provided. The possible work

Re: linux-next: build failure after merge of the net-next tree

2020-08-28 Thread Randy Dunlap
On 8/28/20 4:16 PM, Brian Vazquez wrote: > On Fri, Aug 28, 2020 at 8:12 AM Randy Dunlap wrote: >> >> On 8/28/20 8:09 AM, Sven Joachim wrote: >>> On 2020-08-27 11:12 -0700, Brian Vazquez wrote: >>> I've been trying to reproduce it with your config but I didn't succeed. I also looked at th

rtnl_lock deadlock with tg3 driver

2020-08-28 Thread Baptiste Covolato
Hi David, Michael, I am contacting you because I'm experiencing an issue that seems to be awfully close to what David attempted to fix related to the tg3 driver infinite sleep while holding rtnl_lock (https://lkml.org/lkml/2020/6/15/1122). I have a system with a bunch of "Broadcom Limited NetXtre

Re: [PATCH net-next v1 3/3] hinic: add support to query function table

2020-08-28 Thread luobin (L)
On 2020/8/29 1:19, Jakub Kicinski wrote: > On Fri, 28 Aug 2020 11:16:22 +0800 luobin (L) wrote: >> On 2020/8/28 3:44, Jakub Kicinski wrote: >>> On Thu, 27 Aug 2020 19:13:21 +0800 Luo bin wrote: + switch (idx) { + case VALID: + return funcfg_table_elem->dw0.bs.valid;

[PATCH net-next v3 0/3] hinic: add debugfs support

2020-08-28 Thread Luo bin
add debugfs node for querying sq/rq info and function table Luo bin (3): hinic: add support to query sq info hinic: add support to query rq info hinic: add support to query function table drivers/net/ethernet/huawei/hinic/Makefile| 3 +- .../net/ethernet/huawei/hinic/hinic_debugfs.c

[PATCH net-next v3 1/3] hinic: add support to query sq info

2020-08-28 Thread Luo bin
add debugfs node for querying sq info, for example: cat /sys/kernel/debug/hinic/:15:00.0/SQs/0x0/sq_pi Signed-off-by: Luo bin --- V0~V1: - remove command interfaces to the read only files - split addition of each object into a separate patch drivers/net/ethernet/huawei/hinic/Makefile|

[PATCH net-next v3 2/3] hinic: add support to query rq info

2020-08-28 Thread Luo bin
add debugfs node for querying rq info, for example: cat /sys/kernel/debug/hinic/:15:00.0/RQs/0x0/rq_hw_pi Signed-off-by: Luo bin --- V0~V1: - remove command interfaces to the read only files - split addition of each object into a separate patch .../net/ethernet/huawei/hinic/hinic_debugfs.c

[PATCH net-next v3 3/3] hinic: add support to query function table

2020-08-28 Thread Luo bin
add debugfs node for querying function table, for example: cat /sys/kernel/debug/hinic/:15:00.0/func_table/valid Signed-off-by: Luo bin --- V0~V1: - remove command interfaces to the read only files - split addition of each object into a separate patch V1~V2: - remove vlan_id and vlan_mode fr

Re: [PATCH net-next v2 0/2] Add ip6_fragment in ipv6_stub

2020-08-28 Thread Marcelo Ricardo Leitner
On Fri, Aug 28, 2020 at 11:14:30PM +0800, we...@ucloud.cn wrote: > From: wenxu > > Add ip6_fragment in ipv6_stub and use it in openvswitch > This version add default function eafnosupport_ipv6_fragment Reviewed-by: Marcelo Ricardo Leitner

START UP FUNDS.

2020-08-28 Thread Angel Investors
Attention To Email : netdev@vger.kernel.org Good Day Sir, Our Group have the financial capability to finance any investment portfolio as far as is genuine, all we need is a capable business partner that possesses investment strategies for profitable business information for good turn over within

[net-next:master 43/71] WARNING: modpost: vmlinux.o(__ex_table+0x1150): Section mismatch in reference from the (unknown reference) (unknown) to the variable .rodata.str1.4:.LC2

2020-08-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: 0f091e43310f5c292b7094f9f115e651358e8053 commit: 4718a471f1a7fc5cc943377c09300bb35138daf9 [43/71] netlink: remove duplicated nla_need_padding_for_64bit() check config: riscv-randconfig-r006-20200828

Re: drivers/of/of_mdio.c needs a small modification

2020-08-28 Thread Florian Fainelli
On 8/28/2020 4:14 PM, Adam Rudziński wrote: W dniu 2020-08-29 o 00:53, Andrew Lunn pisze: On Sat, Aug 29, 2020 at 12:34:05AM +0200, Adam Rudziński wrote: Hi Andrew. W dniu 2020-08-29 o 00:28, Andrew Lunn pisze: Hi Adam If kernel has to bring up two Ethernet interfaces, the processor has

Re: [PATCH iproute2 net-next] iplink: add support for protodown reason

2020-08-28 Thread Roopa Prabhu
On 8/21/20 6:30 PM, Stephen Hemminger wrote: External email: Use caution opening links or attachments On Fri, 21 Aug 2020 14:09:14 -0700 Roopa Prabhu wrote: On 8/20/20 10:18 PM, Roopa Prabhu wrote: On 8/20/20 9:36 PM, Stephen Hemminger wrote: On Thu, 20 Aug 2020 20:52:02 -0700 Roopa Pra

Re: [PATCH iproute2 net-next] iplink: add support for protodown reason

2020-08-28 Thread Roopa Prabhu
On 8/23/20 7:20 PM, David Ahern wrote: External email: Use caution opening links or attachments On 8/20/20 9:52 PM, Roopa Prabhu wrote: +void protodown_reason_n2a(int id, char *buf, int len) +{ + if (id < 0 || id >= PROTODOWN_REASON_NUM_BITS || numeric) { since the reason is limited to

[PATCH iproute2 net-next v2] iplink: add support for protodown reason

2020-08-28 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support for recently added link IFLA_PROTO_DOWN_REASON attribute. IFLA_PROTO_DOWN_REASON enumerates reasons for the already existing IFLA_PROTO_DOWN link attribute. $ cat /etc/iproute2/protodown_reasons.d/r.conf 0 mlag 1 evpn 2 vrrp 3 psecurity $ ip link set d

RE: [PATCH net-next 2/3] devlink: Consider other controller while building phys_port_name

2020-08-28 Thread Parav Pandit
> From: Jakub Kicinski > Sent: Friday, August 28, 2020 10:14 PM > > On Fri, 28 Aug 2020 04:27:19 + Parav Pandit wrote: > > > From: Jakub Kicinski > > > Sent: Friday, August 28, 2020 3:12 AM > > > > > > On Thu, 27 Aug 2020 20:15:01 + Parav Pandit wrote: > > > > > From: Jakub Kicinski

Re: INFO: task hung in tls_sk_proto_close

2020-08-28 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:b36c9697 Add linux-next specific files for 20200828 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=11ae3d6190 kernel config: https://syzkaller.appspot.com/x/.config?x

Re: linux-next: build failure after merge of the net-next tree

2020-08-28 Thread Sven Joachim
On 2020-08-28 16:42 -0700, Randy Dunlap wrote: > On 8/28/20 4:16 PM, Brian Vazquez wrote: >> On Fri, Aug 28, 2020 at 8:12 AM Randy Dunlap wrote: >>> >>> On 8/28/20 8:09 AM, Sven Joachim wrote: On 2020-08-27 11:12 -0700, Brian Vazquez wrote: > I've been trying to reproduce it with yo

<    1   2