[PATCH net-next] qed: Remove set but not used variable 'p_archipelago'

2018-09-26 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/qlogic/qed/qed_ooo.c: In function 'qed_ooo_delete_isles': drivers/net/ethernet/qlogic/qed/qed_ooo.c:354:30: warning: variable 'p_archipelago' set but not used [-Wunused-but-set-variable] drivers/net/ethernet/qlogic/qed/qed_ooo.

[PATCH 1/1] Update maintainers for bnx2/bnx2x/qlge/qlcnic drivers.

2018-09-26 Thread Sudarsana Reddy Kalluru
Signed-off-by: Sudarsana Reddy Kalluru Signed-off-by: Ameen Rahman --- MAINTAINERS | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 15565de..e941d1b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2956,7 +2956,6 @@ F:include/linux/bc

Re: [PATCH] net/ncsi: Add NCSI OEM command for FB Tiogapass

2018-09-26 Thread Samuel Mendoza-Jonas
On Thu, 2018-09-27 at 13:43 +1000, Samuel Mendoza-Jonas wrote: > On Mon, 2018-09-24 at 17:08 -0700, Vijay Khemka wrote: > > This patch adds OEM command to get mac address from NCSI device and and > > configure the same to the network card. > > > > ncsi_cmd_arg - Modified this structure to include

Re: [PATCH net v2] bnxt_en: Fix TX timeout during netpoll.

2018-09-26 Thread Eric Dumazet
On Wed, Sep 26, 2018 at 8:49 PM Song Liu wrote: > > We also need this patch from Eric: > > https://marc.info/?l=linux-netdev&m=153780304905946 > I will submit this formally tomorrow, thanks.

Re: [PATCH net v2] bnxt_en: Fix TX timeout during netpoll.

2018-09-26 Thread Song Liu
> On Sep 26, 2018, at 8:33 PM, David Miller wrote: > > From: Michael Chan > Date: Wed, 26 Sep 2018 00:41:04 -0400 > >> The current netpoll implementation in the bnxt_en driver has problems >> that may miss TX completion events. bnxt_poll_work() in effect is >> only handling at most 1 TX pac

Re: [PATCH] net-tcp: /proc/sys/net/ipv4/tcp_probe_interval is a u32 not int

2018-09-26 Thread David Miller
From: "Maciej Żenczykowski" Date: Tue, 25 Sep 2018 21:59:28 -0700 > From: Maciej Żenczykowski > > (fix documentation and sysctl access to treat it as such) > > Tested: > # zcat /proc/config.gz | egrep ^CONFIG_HZ > CONFIG_HZ_1000=y > CONFIG_HZ=1000 > # echo $[(1<<32)/1000 + 1] | tee /pr

Re: [PATCH net v2] bnxt_en: Fix TX timeout during netpoll.

2018-09-26 Thread David Miller
From: Michael Chan Date: Wed, 26 Sep 2018 00:41:04 -0400 > The current netpoll implementation in the bnxt_en driver has problems > that may miss TX completion events. bnxt_poll_work() in effect is > only handling at most 1 TX packet before exiting. In addition, > there may be in flight TX compl

Re: [PATCH 1/2] net-ipv4: remove 2 always zero parameters from ipv4_update_pmtu()

2018-09-26 Thread David Miller
From: "Maciej Żenczykowski" Date: Tue, 25 Sep 2018 20:56:26 -0700 > From: Maciej Żenczykowski > > (the parameters in question are mark and flow_flags) > > Reviewed-by: David Ahern > Signed-off-by: Maciej Żenczykowski Applied.

Re: [PATCH 2/2] net-ipv4: remove 2 always zero parameters from ipv4_redirect()

2018-09-26 Thread David Miller
From: "Maciej Żenczykowski" Date: Tue, 25 Sep 2018 20:56:27 -0700 > From: Maciej Żenczykowski > > (the parameters in question are mark and flow_flags) > > Reviewed-by: David Ahern > Signed-off-by: Maciej Żenczykowski Applied.

Re: [PATCH net] vxlan: fill ttl inherit info

2018-09-26 Thread David Miller
From: Hangbin Liu Date: Wed, 26 Sep 2018 10:35:42 +0800 > When add vxlan ttl inherit support, I forgot to fill it when dump > vlxan info. Fix it now. > > Fixes: 72f6d71e491e6 ("vxlan: add ttl inherit support") > Signed-off-by: Hangbin Liu Applied and queued up for -stable.

Re: [PATCH v2 net] net: phy: sfp: Fix unregistering of HWMON SFP device

2018-09-26 Thread David Miller
From: Andrew Lunn Date: Tue, 25 Sep 2018 01:50:00 +0200 > A HWMON device is only registered is the SFP module supports the > diagnostic page and is complient to SFF8472. Don't unconditionally > unregister the hwmon device when the SFP module is remove, otherwise > we access data structures which

Re: [PATCH net] bonding: avoid possible dead-lock

2018-09-26 Thread David Miller
From: Mahesh Bandewar Date: Mon, 24 Sep 2018 14:40:11 -0700 > From: Mahesh Bandewar > > Syzkaller reported this on a slightly older kernel but it's still > applicable to the current kernel - ... > Signed-off-by: Mahesh Bandewar Applied and queued up for -stable.

Re: [PATCH net] bonding: pass link-local packets to bonding master also.

2018-09-26 Thread David Miller
From: Mahesh Bandewar Date: Mon, 24 Sep 2018 14:39:42 -0700 > From: Mahesh Bandewar > > Commit b89f04c61efe ("bonding: deliver link-local packets with > skb->dev set to link that packets arrived on") changed the behavior > of how link-local-multicast packets are processed. The change in > the b

Re: [PATCH net-next] net: phy: improve handling delayed work

2018-09-26 Thread David Miller
From: Heiner Kallweit Date: Mon, 24 Sep 2018 23:36:50 +0200 > diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c > index a1f8e4816..40a7dc101 100644 > --- a/drivers/net/phy/phy.c > +++ b/drivers/net/phy/phy.c ... > @@ -635,6 +635,13 @@ int phy_speed_up(struct phy_device *phydev) > } >

Re: [PATCH] net/ncsi: Add NCSI OEM command for FB Tiogapass

2018-09-26 Thread Joel Stanley
On Thu, 27 Sep 2018 at 00:39, wrote: > > > > As I understand Justin's version adds a generic handler, using the NCSI > > > Netlink interface to pass OEM commands and responses to and from > > > userspace, which does the actual packet handling. > > Thanks for the direction Sam! Justin, if you do

Re: bond: take rcu lock in bond_poll_controller

2018-09-26 Thread David Miller
From: Dave Jones Date: Mon, 24 Sep 2018 15:23:17 -0400 > Callers of bond_for_each_slave_rcu are expected to hold the rcu lock, > otherwise a trace like below is shown ... > Signed-off-by: Dave Jones Hey Dave, after some recent changes by Eric Dumazet this no longer applies. Please respin agai

Re: [PATCH net v2 0/2] net: phy: fix WoL handling when suspending the PHY

2018-09-26 Thread David Miller
From: Heiner Kallweit Date: Mon, 24 Sep 2018 21:58:04 +0200 > phy_suspend doesn't always recognize that WoL is enabled and therefore > suspends the PHY when it should not. First idea to address the issue > was to reuse checks used in mdio_bus_phy_may_suspend which check > whether relevant devices

Re: [PATCH net] net/ipv6: Remove extra call to ip6_convert_metrics for multipath case

2018-09-26 Thread David Miller
From: dsah...@kernel.org Date: Wed, 26 Sep 2018 17:35:14 -0700 > From: David Ahern > > The change to move metrics from the dst to rt6_info moved the call > to ip6_convert_metrics from ip6_route_add to ip6_route_info_create. In > doing so it makes the call in ip6_route_info_append redundant and >

Could your company tell us if you can supply us

2018-09-26 Thread DEBENHAMS PLC
Hi Situated in (United Kingdom) DEBENHAMS RETAIL PLC is a retailer shop furnished by European products.We are looking to buy ( Fashion items,Perfumes, Lighters, Tiles Marbles, Wooden Floors, Smart-phones, Tablets,Laptops, TVs, Air conditioner etc...) and find new partnership with companies

Re: [PATCH bpf-next 0/5] Introduce libbpf_attach_type_by_name

2018-09-26 Thread Jakub Kicinski
On Wed, 26 Sep 2018 23:54:17 +, Andrey Ignatov wrote: > Jakub Kicinski [Wed, 2018-09-26 16:20 -0700]: > > On Wed, 26 Sep 2018 15:24:52 -0700, Andrey Ignatov wrote: > > > This patch set introduces libbpf_attach_type_by_name function in libbpf to > > > identify attach type by section name. > >

Reminder,

2018-09-26 Thread Juliet Muhammad
Hello Please i still await your response regarding my previous email.

Reminder,

2018-09-26 Thread Juliet Muhammad
Hello Please i still await your response regarding my previous email.

Re: [PATCH bpf-next] flow_dissector: lookup netns by skb->sk if skb->dev is NULL

2018-09-26 Thread Eric Dumazet
On 09/25/2018 08:38 AM, Daniel Borkmann wrote: > On 09/24/2018 10:49 PM, Willem de Bruijn wrote: >> From: Willem de Bruijn >> >> BPF flow dissectors are configured per network namespace. >> __skb_flow_dissect looks up the netns through dev_net(skb->dev). >> >> In some dissector paths skb->dev i

[PATCH net] net/ipv6: Remove extra call to ip6_convert_metrics for multipath case

2018-09-26 Thread dsahern
From: David Ahern The change to move metrics from the dst to rt6_info moved the call to ip6_convert_metrics from ip6_route_add to ip6_route_info_create. In doing so it makes the call in ip6_route_info_append redundant and actually leaks the metrics installed as part of the ip6_route_info_create.

Reminder,

2018-09-26 Thread Juliet Muhammad
Hello Please i still await your response regarding my previous email.

Re: WARN_ON in TLP causing RT throttling

2018-09-26 Thread Eric Dumazet
On 09/26/2018 04:46 PM, stran...@codeaurora.org wrote: > Hi Eric, > > Someone recently reported a crash to us on the 4.14.62 kernel where excessive > WARNING prints were spamming the logs and causing watchdog bites. The kernel > does have the following commit by Soheil: > bffd168c3fc5 "tcp: cle

Re: [PATCH bpf-next 0/5] Introduce libbpf_attach_type_by_name

2018-09-26 Thread Andrey Ignatov
Jakub Kicinski [Wed, 2018-09-26 16:20 -0700]: > On Wed, 26 Sep 2018 15:24:52 -0700, Andrey Ignatov wrote: > > This patch set introduces libbpf_attach_type_by_name function in libbpf to > > identify attach type by section name. > > > > This is useful to avoid writing same logic over and over again

WARN_ON in TLP causing RT throttling

2018-09-26 Thread stranche
Hi Eric, Someone recently reported a crash to us on the 4.14.62 kernel where excessive WARNING prints were spamming the logs and causing watchdog bites. The kernel does have the following commit by Soheil: bffd168c3fc5 "tcp: clear tp->packets_out when purging write queue" Before this bug we s

Re: bpf: Massive skbuff_head_cache memory leak?

2018-09-26 Thread John Johansen
On 09/26/2018 02:22 PM, Daniel Borkmann wrote: > On 09/26/2018 11:09 PM, Tetsuo Handa wrote: >> Hello, Alexei and Daniel. >> >> Can you show us how to run testcases you are testing? > > Sorry for the delay; currently quite backlogged but will definitely take a > look > at these reports. Regarding

Re: [PATCH bpf-next 0/5] Introduce libbpf_attach_type_by_name

2018-09-26 Thread Jakub Kicinski
On Wed, 26 Sep 2018 15:24:52 -0700, Andrey Ignatov wrote: > This patch set introduces libbpf_attach_type_by_name function in libbpf to > identify attach type by section name. > > This is useful to avoid writing same logic over and over again in user > space applications that leverage libbpf. > >

[PATCH net-next] nfp: warn on experimental TLV types

2018-09-26 Thread Jakub Kicinski
Reserve two TLV types for feature development, and warn in the driver if they ever leak into production. Signed-off-by: Jakub Kicinski Reviewed-by: Simon Horman --- drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c | 7 +++ drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.h | 8 2 f

Re: [PATCHv2 bpf-next 08/11] selftests/bpf: Add tests for reference tracking

2018-09-26 Thread Joe Stringer
On Mon, 24 Sep 2018 at 05:22, Daniel Borkmann wrote: > > On 09/21/2018 07:10 PM, Joe Stringer wrote: > > reference tracking: leak potential reference > > reference tracking: leak potential reference on stack > > reference tracking: leak potential reference on stack 2 > > reference tracking: zero p

[PATCH bpf-next 3/5] libbpf: Support sk_skb/stream_{parser,verdict} section names

2018-09-26 Thread Andrey Ignatov
Add section names for BPF_SK_SKB_STREAM_PARSER and BPF_SK_SKB_STREAM_VERDICT attach types to be able to identify them in libbpf_attach_type_by_name. "stream_parser" and "stream_verdict" are used instead of simple "parser" and "verdict" just to avoid possible confusion in a place where attach type

[PATCH bpf-next 5/5] selftests/bpf: Test libbpf_{prog,attach}_type_by_name

2018-09-26 Thread Andrey Ignatov
Add selftest for libbpf functions libbpf_prog_type_by_name and libbpf_attach_type_by_name. Example of output: % ./tools/testing/selftests/bpf/test_section_names Summary: 35 PASSED, 0 FAILED Signed-off-by: Andrey Ignatov --- tools/testing/selftests/bpf/Makefile | 2 +- .../selftes

[PATCH bpf-next 4/5] selftests/bpf: Use libbpf_attach_type_by_name in test_socket_cookie

2018-09-26 Thread Andrey Ignatov
Use newly introduced libbpf_attach_type_by_name in test_socket_cookie selftest. Signed-off-by: Andrey Ignatov --- tools/testing/selftests/bpf/test_socket_cookie.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/testing/selftests/bpf/test_socket_cookie.c b/tools/te

[PATCH bpf-next 0/5] Introduce libbpf_attach_type_by_name

2018-09-26 Thread Andrey Ignatov
This patch set introduces libbpf_attach_type_by_name function in libbpf to identify attach type by section name. This is useful to avoid writing same logic over and over again in user space applications that leverage libbpf. Patch 1 has more details on the new function and problem being solved. P

[PATCH bpf-next 1/5] libbpf: Introduce libbpf_attach_type_by_name

2018-09-26 Thread Andrey Ignatov
There is a common use-case when ELF object contains multiple BPF programs and every program has its own section name. If it's cgroup-bpf then programs have to be 1) loaded and 2) attached to a cgroup. It's convenient to have information necessary to load BPF program together with program itself. T

[PATCH bpf-next 2/5] libbpf: Support cgroup_skb/{e,in}gress section names

2018-09-26 Thread Andrey Ignatov
Add section names for BPF_CGROUP_INET_INGRESS and BPF_CGROUP_INET_EGRESS attach types to be able to identify them in libbpf_attach_type_by_name. "cgroup_skb" is used instead of "cgroup/skb" mostly to easy possible unifying of how libbpf and bpftool works with section names: * bpftool uses "cgroup_

Re: [RFC PATCH v2 bpf-next 0/2] verifier liveness simplification

2018-09-26 Thread Jiong Wang
On 22/08/2018 20:00, Edward Cree wrote: The first patch is a simplification of register liveness tracking by using a separate parentage chain for each register and stack slot, thus avoiding the need for logic to handle callee-saved registers when applying read marks. In the future this idea m

Re: bug: 'ethtool -m' reports spurious alarm & warning threshold values for QSFP28 transceivers

2018-09-26 Thread Andrew Lunn
> When you run ethtool -m on this driver, the kernel calls > mlx4_en_get_module_info > to determine the length of the eeprom, and that value will be either 256 or > 512 > bytes. So it sounds like QSFP modules using 8636 are not supported. You would expect a size to be one of 256, 384, 512 or 640

Re: bug: 'ethtool -m' reports spurious alarm & warning threshold values for QSFP28 transceivers

2018-09-26 Thread Andrew Lunn
On Wed, Sep 26, 2018 at 08:47:34PM +, Chris Preimesberger wrote: > Hello Andrew, > > Thank you for the quick response!! > Apologies in advance for my use of outlook and top-posting, etc... > > I've run the raw option and the hex option, and pasted the results below. > Since the raw option pri

Re: bug: 'ethtool -m' reports spurious alarm & warning threshold values for QSFP28 transceivers

2018-09-26 Thread Neil Horman
On Wed, Sep 26, 2018 at 07:29:23PM +, Chris Preimesberger wrote: > Hello, > > I'm re-sending in plain text per the auto-reply from a spam filter. I have > attached some text files this time, which explain the situation below, in > case the below email's font & formatting is now too messed u

Re: bpf: Massive skbuff_head_cache memory leak?

2018-09-26 Thread Daniel Borkmann
On 09/26/2018 11:09 PM, Tetsuo Handa wrote: > Hello, Alexei and Daniel. > > Can you show us how to run testcases you are testing? Sorry for the delay; currently quite backlogged but will definitely take a look at these reports. Regarding your question: majority of test cases are in the kernel tre

Re: [PATCH] Documentation: Add HOWTO Korean translation into BPF and XDP Reference Guide.

2018-09-26 Thread Daniel Borkmann
On 09/26/2018 09:44 PM, Jonathan Corbet wrote: > On Wed, 26 Sep 2018 18:11:42 +0900 > Chang-an Song wrote: > >>> - The original document has a copyright assertion but no associated >>>license. Do we know what the license is? I assume it's something >>>that is free and GPL-compatible, b

Re: bpf: Massive skbuff_head_cache memory leak?

2018-09-26 Thread Tetsuo Handa
Hello, Alexei and Daniel. Can you show us how to run testcases you are testing? On 2018/09/22 22:25, Tetsuo Handa wrote: > Hello. > > syzbot is reporting many lockup problems on bpf.git / bpf-next.git / net.git > / net-next.git trees. > > INFO: rcu detected stall in br_multicast_port_group_e

Re: [PATCH] 9p: potential NULL dereference

2018-09-26 Thread Dominique Martinet
Dan Carpenter wrote on Wed, Sep 26, 2018: > p9_tag_alloc() is supposed to return error pointers, but we accidentally > return a NULL here. It would cause a NULL dereference in the caller. > > Fixes: 996d5b4db4b1 ("9p: Use a slab for allocating requests") > Signed-off-by: Dan Carpenter Good catc

[PATCH net-next 1/2] tcp: set recv_skip_hint when tcp_inq is less than PAGE_SIZE

2018-09-26 Thread Soheil Hassas Yeganeh
From: Soheil Hassas Yeganeh When we have less than PAGE_SIZE of data on receive queue, we set recv_skip_hint to 0. Instead, set it to the actual number of bytes available. Signed-off-by: Soheil Hassas Yeganeh Signed-off-by: Eric Dumazet --- net/ipv4/tcp.c | 14 +- 1 file changed,

[PATCH net-next 2/2] tcp: adjust rcv zerocopy hints based on frag sizes

2018-09-26 Thread Soheil Hassas Yeganeh
From: Soheil Hassas Yeganeh When SKBs are coalesced, we can have SKBs with different frag sizes. Some with PAGE_SIZE and some not with PAGE_SIZE. Since recv_skip_hint is always set to the full SKB size, it can overestimate the amount that should be read using normal read for coalesced packets. C

RE: bug: 'ethtool -m' reports spurious alarm & warning threshold values for QSFP28 transceivers

2018-09-26 Thread Chris Preimesberger
Hello Andrew, Thank you for the quick response!! Apologies in advance for my use of outlook and top-posting, etc... I've run the raw option and the hex option, and pasted the results below. Since the raw option printed strange characters on the CLI, I re-ran it, Sending the output to a file (raw.

RE: [PATCH] net/ncsi: Add NCSI OEM command for FB Tiogapass

2018-09-26 Thread Justin.Lee1
> > As I understand Justin's version adds a generic handler, using the NCSI > > Netlink interface to pass OEM commands and responses to and from > > userspace, which does the actual packet handling. > Thanks for the direction Sam! Justin, if you don't mind, can you share the > patches you have

[PATCH] netlink: fix typo in nla_parse_nested() comment

2018-09-26 Thread Johannes Berg
From: Johannes Berg Fix a simple typo: attribuets -> attributes Signed-off-by: Johannes Berg --- include/net/netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/netlink.h b/include/net/netlink.h index ddabc832febc..69866f5a97f2 100644 --- a/include/net/net

[PATCH] r8169: Disable clk during suspend / resume

2018-09-26 Thread Hans de Goede
Disable the clk during suspend to save power. Note that tp->clk may be NULL, the clk core functions handle this without problems. Reviewed-by: Andy Shevchenko Tested-by: Carlo Caione Signed-off-by: Hans de Goede --- drivers/net/ethernet/realtek/r8169.c | 5 + 1 file changed, 5 insertions(+

[PATCH net 1/1] qlcnic: fix Tx descriptor corruption on 82xx devices

2018-09-26 Thread Shahed Shaikh
In regular NIC transmission flow, driver always configures MAC using Tx queue zero descriptor as a part of MAC learning flow. But with multi Tx queue supported NIC, regular transmission can occur on any non-zero Tx queue and from that context it uses Tx queue zero descriptor to configure MAC, at th

Re: bug: 'ethtool -m' reports spurious alarm & warning threshold values for QSFP28 transceivers

2018-09-26 Thread Andrew Lunn
On Wed, Sep 26, 2018 at 07:29:23PM +, Chris Preimesberger wrote: > Hello, > > I'm re-sending in plain text per the auto-reply from a spam filter. Yep. no html obfustication accepted here. Please ASCII only please :-) Please can you also wrap your lines at about 75 characters. > I have atta

Re: [PATCH] Documentation: Add HOWTO Korean translation into BPF and XDP Reference Guide.

2018-09-26 Thread Jonathan Corbet
On Wed, 26 Sep 2018 18:11:42 +0900 Chang-an Song wrote: > > - The original document has a copyright assertion but no associated > >license. Do we know what the license is? I assume it's something > >that is free and GPL-compatible, but that would be good to know for > >sure. > >

RE: bug: 'ethtool -m' reports spurious alarm & warning threshold values for QSFP28 transceivers

2018-09-26 Thread Chris Preimesberger
Hello, I'm re-sending in plain text per the auto-reply from a spam filter. I have attached some text files this time, which explain the situation below, in case the below email's font & formatting is now too messed up for easy comprehension. Thank you and best regards. Chris Preimesberger |

Re: [PATCH RFC,net-next 08/10] flow_dissector: add wake-up-on-lan and queue to flow_action

2018-09-26 Thread Florian Fainelli
On 09/25/2018 12:19 PM, Pablo Neira Ayuso wrote: > These actions need to be added to support bcm sf2 features available > through the ethtool_rx_flow interface. > > Signed-off-by: Pablo Neira Ayuso Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH RFC,net-next 00/10] add flow_rule infrastructure

2018-09-26 Thread Florian Fainelli
On 09/26/2018 08:51 AM, Jakub Kicinski wrote: > On Tue, 25 Sep 2018 21:19:51 +0200, Pablo Neira Ayuso wrote: >> This patchset is adding a new layer between drivers and the existing >> software frontends, so it's a bit more code, but it is core >> infrastructure common to everyone and this comes wit

Re: [PATCH RFC,net-next 10/10] dsa: bcm_sf2: use flow_rule infrastructure

2018-09-26 Thread Florian Fainelli
Hi Pablo, On 09/25/2018 12:20 PM, Pablo Neira Ayuso wrote: > Update this driver to use the flow_rule infrastructure, hence the same > code to populate hardware IR can be used from ethtool_rx_flow and the > cls_flower interfaces. Thanks for doing the conversion, I believe we could change things a

[PATCH] [PATCH net-next] openvswitch: Use correct reply values in datapath and vport ops

2018-09-26 Thread Yifeng Sun
This patch fixes the bug that all datapath and vport ops are returning wrong values (OVS_FLOW_CMD_NEW or OVS_DP_CMD_NEW) in their replies. Signed-off-by: Yifeng Sun --- net/openvswitch/datapath.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/net/openv

Re: [PATCH net 0/2] s390/qeth: fixes 2019-09-26

2018-09-26 Thread David Miller
From: Julian Wiedmann Date: Wed, 26 Sep 2018 18:07:08 +0200 > please apply two qeth patches for -net. The first is a trivial cleanup > required for patch #2 by Jean, which fixes a potential endless loop. Series applied, thank you.

Re: [PATCH net-next] net: aquantia: Make function aq_fw1x_set_power() static

2018-09-26 Thread David Miller
From: Wei Yongjun Date: Wed, 26 Sep 2018 12:20:00 + > Fixes the following sparse warning: > > drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c:873:5: warning: > symbol 'aq_fw1x_set_power' was not declared. Should it be static? > > Fixes: a0da96c08cfa ("net: aquantia: implement

Re: [PATCH net-next] net/core: make function ___gnet_stats_copy_basic() static

2018-09-26 Thread David Miller
From: Wei Yongjun Date: Wed, 26 Sep 2018 12:09:45 + > Fixes the following sparse warning: > > net/core/gen_stats.c:166:1: warning: > symbol '___gnet_stats_copy_basic' was not declared. Should it be static? > > Fixes: 5e111210a443 ("net/core: Add new basic hardware counter") > Signed-off-by

Re: [PATCH net-next] net/tls: Make function get_rec() static

2018-09-26 Thread David Miller
From: Wei Yongjun Date: Wed, 26 Sep 2018 12:10:48 + > Fixes the following sparse warning: > > net/tls/tls_sw.c:655:16: warning: > symbol 'get_rec' was not declared. Should it be static? > > Fixes: a42055e8d2c3 ("net/tls: Add support for async encryption of records > for performance") > Si

Re: [PATCH net-next v3 1/2] netlink: ipv4 igmp join notifications

2018-09-26 Thread Roopa Prabhu
On Tue, Sep 25, 2018 at 2:34 AM, Patrick Ruddy wrote: > On Wed, 2018-09-19 at 21:47 -0700, David Ahern wrote: >> On 9/18/18 6:12 AM, Patrick Ruddy wrote: >> > >> > I've hit a small snag with adding the new groups. The number of defined >> > groups currently sits at 31 so I can only add one before

Re: [PATCH v3 0/5] netlink: nested policy validation

2018-09-26 Thread David Miller
From: Johannes Berg Date: Wed, 26 Sep 2018 11:15:29 +0200 > This adds nested policy validation, which lets you specify the > nested attribute type, e.g. NLA_NESTED with sub-policy, or the > new NLA_NESTED_ARRAY with sub-sub-policy. > > > Changes in v2: > * move setting the bad attr pointer/mes

Re: [PATCH] net/ncsi: Add NCSI OEM command for FB Tiogapass

2018-09-26 Thread Vijay Khemka
>Hi Vijay, > Thanks for the patch; before I get too into a review though I'd like to > loop in Justin (cc'd) who I know is also working on an OEM command patch. > The changes here are very specific (eg. a command specific config option > "CONFIG_NCSI_OEM_CMD_GET_MAC"), which is ok

Re: [PATCH net-next 00/15] s390/net: updates 2018-09-26

2018-09-26 Thread David Miller
From: Julian Wiedmann Date: Wed, 26 Sep 2018 18:29:01 +0200 > please apply one more series of cleanups and small improvements for qeth > to net-next. Note that one patch needs to touch both af_iucv and qeth, in > order to untangle their receive paths. Series applied, thank you.

[PATCH net-next 10/15] s390/qeth: remove CARD_FROM_CDEV helper

2018-09-26 Thread Julian Wiedmann
The cdev-to-card translation walks through two layers of drvdata, with no locking or refcounting (where eg. the ccwgroup core only accesses a cdev's drvdata while holding the ccwlock). This might be safe for now, but any careless usage of the helper has the potential for subtle races and use-after

[PATCH net-next 14/15] s390/qeth: clean up drop conditions for received cmds

2018-09-26 Thread Julian Wiedmann
If qeth_check_ipa_data() consumed an event, there's no point in processing it further. So drop it early, and make the surrounding code a tiny bit more readable. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 21 +++-- 1 file changed, 11 insertions(+), 10 d

[PATCH net-next 11/15] s390/qeth: remove various redundant code

2018-09-26 Thread Julian Wiedmann
1. tracing iob->rc makes no sense when it hasn't been modified by the callback, 2. the qeth_dbf_list is declared with LIST_HEAD, which also initializes the list, 3. the ccwgroup core only calls the thaw/restore callbacks if the gdev is online, so we don't have to check for it again. Signe

[PATCH net-next 15/15] s390/qeth: remove duplicated carrier state tracking

2018-09-26 Thread Julian Wiedmann
The netdevice is always available, apply any carrier state changes to it without caching them. On a STARTLAN event (ie. carrier-up), defer updating the state to qeth_core_hardsetup_card() in the subsequent recovery action. Also remove the carrier-state checks from the xmit routines. Stopping trans

[PATCH net-next 13/15] s390/qeth: re-indent qeth_check_ipa_data()

2018-09-26 Thread Julian Wiedmann
Pull one level of checking up into qeth_send_control_data_cb(), and clean up an else-after-return. No functional change. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 129 +- 1 file changed, 58 insertions(+), 71 deletions(-) diff --gi

[PATCH net-next 00/15] s390/net: updates 2018-09-26

2018-09-26 Thread Julian Wiedmann
Hi Dave, please apply one more series of cleanups and small improvements for qeth to net-next. Note that one patch needs to touch both af_iucv and qeth, in order to untangle their receive paths. Thanks, Julian Julian Wiedmann (15): s390/qeth: convert layer attribute to enum s390/qeth: use D

[PATCH net-next 12/15] s390/qeth: consume local address events

2018-09-26 Thread Julian Wiedmann
We have no code that is waiting for these events, so just drop them when they arrive. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.

[PATCH net-next 09/15] s390/qeth: pass card pointer in iob callback

2018-09-26 Thread Julian Wiedmann
This allows us to remove the CARD_FROM_CDEV calls in the iob callbacks. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 3 ++- drivers/s390/net/qeth_core_main.c | 53 ++- 2 files changed, 32 insertions(+), 24 deletions(-) diff --git a/

[PATCH net-next 08/15] s390/qeth: re-use qeth_notify_skbs()

2018-09-26 Thread Julian Wiedmann
When not using the CQ, this allows us avoid the second skb queue walk in qeth_release_skbs(). Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 29 + 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/drivers/s390/net/qeth_core_main.c

[PATCH net-next 07/15] s390/qeth: remove additional skb refcount

2018-09-26 Thread Julian Wiedmann
This was presumably left over from back when qeth recursed into dev_queue_xmit(). Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index c5c40c6d8b7d..0

[PATCH net-next 06/15] s390/qeth: replace open-coded skb_queue_walk()

2018-09-26 Thread Julian Wiedmann
To match the use of __skb_queue_purge(), also make the skb's enqueue in qeth_fill_buffer() lockless. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/s390/net/qeth_core_main.c b/

[PATCH net-next 05/15] net/af_iucv: locate IUCV header via skb_network_header()

2018-09-26 Thread Julian Wiedmann
This patch attempts to untangle the TX and RX code in qeth from af_iucv's respective HiperTransport path: On the TX side, pointing skb_network_header() at the IUCV header means that qeth_l3_fill_af_iucv_hdr() no longer needs a magical offset to access the header. On the RX side, qeth pulls the (fak

[PATCH net-next 03/15] s390/qeth: fix discipline unload after setup error

2018-09-26 Thread Julian Wiedmann
Device initialization code usually first loads a subdriver (via qeth_core_load_discipline()), and then runs its setup() callback. If this fails, it rolls back the load via qeth_core_free_discipline(). qeth_core_free_discipline() expects the options.layer attribute to be initialized, but on error i

[PATCH net-next 04/15] s390/qeth: on gdev release, reset drvdata

2018-09-26 Thread Julian Wiedmann
qeth_core_probe_device() sets the gdev's drvdata, but doesn't reset it on a subsequent error. Move the (re-)setting around a bit, so that it happens symmetrically on allocating/freeing the qeth_card struct. This is no actual problem, as the ccwgroup core will discard the gdev on a probe error. But

[PATCH net-next 02/15] s390/qeth: use DEFINE_MUTEX for qeth_mod_mutex

2018-09-26 Thread Julian Wiedmann
Consolidate declaration and initialization of a static variable. While at it reduce its scope in qeth_core_load_discipline(), and simplify the return logic accordingly. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_main.c | 13 ++--- 1 file changed, 6 insertions(+), 7 del

[PATCH net-next 01/15] s390/qeth: convert layer attribute to enum

2018-09-26 Thread Julian Wiedmann
While the raw values are fixed due to their use in a sysfs attribute, we can still use the proper QETH_DISCIPLINE_* enum within the driver. Also move the initialization into qeth_set_initial_options(), along with all other user-configurable fields. Signed-off-by: Julian Wiedmann --- drivers/s39

Re: [PATCH net v2] bnxt_en: Fix TX timeout during netpoll.

2018-09-26 Thread Song Liu
> On Sep 25, 2018, at 9:41 PM, Michael Chan wrote: > > The current netpoll implementation in the bnxt_en driver has problems > that may miss TX completion events. bnxt_poll_work() in effect is > only handling at most 1 TX packet before exiting. In addition, > there may be in flight TX comple

[PATCH net 2/2] s390: qeth: Fix potential array overrun in cmd/rc lookup

2018-09-26 Thread Julian Wiedmann
From: Jean Delvare Functions qeth_get_ipa_msg and qeth_get_ipa_cmd_name are modifying the last member of global arrays without any locking that I can see. If two instances of either function are running at the same time, it could cause a race ultimately leading to an array overrun (the contents o

[PATCH net 1/2] s390: qeth_core_mpc: Use ARRAY_SIZE instead of reimplementing its function

2018-09-26 Thread Julian Wiedmann
From: zhong jiang Use the common code ARRAY_SIZE macro instead of a private implementation. Reviewed-by: Jean Delvare Signed-off-by: zhong jiang Signed-off-by: Martin Schwidefsky Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core_mpc.c | 7 ++- 1 file changed, 2 insertions(+)

[PATCH net 0/2] s390/qeth: fixes 2019-09-26

2018-09-26 Thread Julian Wiedmann
Hi Dave, please apply two qeth patches for -net. The first is a trivial cleanup required for patch #2 by Jean, which fixes a potential endless loop. Thanks, Julian Jean Delvare (1): s390: qeth: Fix potential array overrun in cmd/rc lookup zhong jiang (1): s390: qeth_core_mpc: Use ARRAY_SIZ

Re: [PATCH RFC,net-next 00/10] add flow_rule infrastructure

2018-09-26 Thread Jakub Kicinski
On Tue, 25 Sep 2018 21:19:51 +0200, Pablo Neira Ayuso wrote: > This patchset is adding a new layer between drivers and the existing > software frontends, so it's a bit more code, but it is core > infrastructure common to everyone and this comes with benefits for > driver developers: Thanks a lot f

Re: [PATCH net-next v6 07/23] zinc: ChaCha20 ARM and ARM64 implementations

2018-09-26 Thread Ard Biesheuvel
On Wed, 26 Sep 2018 at 17:50, Jason A. Donenfeld wrote: > > On Wed, Sep 26, 2018 at 5:45 PM Jason A. Donenfeld wrote: > > So what you have in mind is something like calling simd_relax() every > > 4096 bytes or so? > > That was actually pretty easy, putting together both of your suggestions: > > s

Re: [PATCH RFC,net-next 04/10] cls_flower: add translator to flow_action representation

2018-09-26 Thread Jakub Kicinski
On Tue, 25 Sep 2018 21:19:55 +0200, Pablo Neira Ayuso wrote: > This implements TC action to flow_action translation from cls_flower. > > Signed-off-by: Pablo Neira Ayuso > --- > net/sched/cls_flower.c | 124 > - > 1 file changed, 123 insertions(+)

Re: Marvell phy errata origins?

2018-09-26 Thread Daniel Walker
On 09/25/2018 10:42 PM, Harini Katakam wrote: Hi, On Tue, Sep 25, 2018 at 11:00 PM Harini Katakam wrote: Hi Daniel, On Tue, Sep 25, 2018 at 9:10 PM Andrew Lunn wrote: I hope this this thread isn't too old to bring back to life. So it seems that Harini found that m88e did not need this

Re: netlink: 16 bytes leftover after parsing attributes in process `ip'.

2018-09-26 Thread Stephen Hemminger
On Wed, 26 Sep 2018 08:54:43 -0600 David Ahern wrote: > On 9/25/18 11:51 PM, Jiri Benc wrote: > > On Tue, 25 Sep 2018 09:37:41 -0600, David Ahern wrote: > >> For ifaddrmsg ifa_flags aligns with ifi_type which is set by kernel side > >> so this should be ok. > > > > Does the existing user spa

Re: netlink: 16 bytes leftover after parsing attributes in process `ip'.

2018-09-26 Thread David Ahern
On 9/25/18 11:51 PM, Jiri Benc wrote: > On Tue, 25 Sep 2018 09:37:41 -0600, David Ahern wrote: >> For ifaddrmsg ifa_flags aligns with ifi_type which is set by kernel side >> so this should be ok. > > Does the existing user space set ifi_type to anything? Does it zero out > the field? > > Are we a

Re: [PATCH 3/5] ixgbe: add AF_XDP zero-copy Rx support

2018-09-26 Thread Björn Töpel
Den tis 25 sep. 2018 kl 16:57 skrev Jakub Kicinski : > > On Mon, 24 Sep 2018 18:35:55 +0200, Björn Töpel wrote: > > + if (adapter->flags & IXGBE_FLAG_SRIOV_ENABLED) > > + return -EINVAL; > > + > > + if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) > > + return -EINVAL; >

Re: [PATCH net-next] net/core: make function ___gnet_stats_copy_basic() static

2018-09-26 Thread Eelco Chaudron
On 26 Sep 2018, at 14:09, Wei Yongjun wrote: > Fixes the following sparse warning: > > net/core/gen_stats.c:166:1: warning: > symbol '___gnet_stats_copy_basic' was not declared. Should it be static? > Thanks for fixing my commit ;) Acked-by: Eelco Chaudron > Fixes: 5e111210a443 ("net/core:

[PATCH net-next] net: aquantia: Make function aq_fw1x_set_power() static

2018-09-26 Thread Wei Yongjun
Fixes the following sparse warning: drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c:873:5: warning: symbol 'aq_fw1x_set_power' was not declared. Should it be static? Fixes: a0da96c08cfa ("net: aquantia: implement WOL support") Signed-off-by: Wei Yongjun --- drivers/net/ethernet/aq

[PATCH net-next] net/tls: Make function get_rec() static

2018-09-26 Thread Wei Yongjun
Fixes the following sparse warning: net/tls/tls_sw.c:655:16: warning: symbol 'get_rec' was not declared. Should it be static? Fixes: a42055e8d2c3 ("net/tls: Add support for async encryption of records for performance") Signed-off-by: Wei Yongjun --- net/tls/tls_sw.c | 2 +- 1 file changed, 1

[PATCH net-next] net/core: make function ___gnet_stats_copy_basic() static

2018-09-26 Thread Wei Yongjun
Fixes the following sparse warning: net/core/gen_stats.c:166:1: warning: symbol '___gnet_stats_copy_basic' was not declared. Should it be static? Fixes: 5e111210a443 ("net/core: Add new basic hardware counter") Signed-off-by: Wei Yongjun --- net/core/gen_stats.c | 2 +- 1 file changed, 1 inser

[RFC PATCH iproute2-next V2] System specification exception API

2018-09-26 Thread Eran Ben Elisha
The exception spec is targeted for Real Time Alerting, in order to know when something bad had happened to a PCI device - Provide alert debug information - Self healing - If problem needs vendor support, provide a way to gather all needed debugging information. The exception mechanism contains c

  1   2   >