Re: [Patch net-next v3] net_sched: change tcf_del_walker() to take idrinfo->lock

2018-09-28 Thread Cong Wang
On Fri, Sep 28, 2018 at 11:29 AM Cong Wang wrote: > > On Fri, Sep 28, 2018 at 11:11 AM Ido Schimmel wrote: > > I don't think this will work given the reference count already dropped > > to 0, which is why the template deletion function was invoked. I didn't > > test the patch, but I don't see

Re: [PATCH v2] net/ncsi: Add NCSI OEM command support

2018-09-28 Thread Vijay Khemka
> On 9/28/18, 6:07 PM, "Vijay Khemka" wrote: > This patch adds OEM commands and response handling. It also defines OEM > command and response structure as per NCSI specification along with its > handlers. > > ncsi_cmd_handler_oem: This is a generic command request handler for

[PATCH iproute2 net-next v1 5/6] tc: Add support for configuring the taprio scheduler

2018-09-28 Thread Vinicius Costa Gomes
This traffic scheduler allows traffic classes states (transmission allowed/not allowed, in the simplest case) to be scheduled, according to a pre-generated time sequence. This is the basis of the IEEE 802.1Qbv specification. Example configuration: tc qdisc replace dev enp3s0 parent root handle

[PATCH iproute2 net-next v1 1/6] utils: Implement get_s64()

2018-09-28 Thread Vinicius Costa Gomes
Add this helper to read signed 64-bit integers from a string. Signed-off-by: Vinicius Costa Gomes --- include/utils.h | 1 + lib/utils.c | 21 + 2 files changed, 22 insertions(+) diff --git a/include/utils.h b/include/utils.h index 8cb4349e..58574a05 100644 ---

[PATCH iproute2 net-next v1 2/6] include: Add helper to retrieve a __s64 from a netlink msg

2018-09-28 Thread Vinicius Costa Gomes
This allows signed 64-bit integers to be retrieved from a netlink message. --- include/libnetlink.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/libnetlink.h b/include/libnetlink.h index 9d9249e6..88164975 100644 --- a/include/libnetlink.h +++ b/include/libnetlink.h @@

[PATCH iproute2 net-next v1 0/6] introduce the taprio scheduler

2018-09-28 Thread Vinicius Costa Gomes
Hi, Changes from RFC: - Removed support for the sched-file parameter, in favor of supporting the batch mode feature; This is the iproute2 side of the taprio v1 series. Please see the kernel side cover letter for more information about how to test this. Cheers, -- Vinicius Jesus

[PATCH iproute2 net-next v1 3/6] libnetlink: Add helper for getting a __s32 from netlink msgs

2018-09-28 Thread Vinicius Costa Gomes
From: Jesus Sanchez-Palencia This function retrieves a signed 32-bit integer from a netlink message and returns it. Signed-off-by: Jesus Sanchez-Palencia --- include/libnetlink.h | 4 1 file changed, 4 insertions(+) diff --git a/include/libnetlink.h b/include/libnetlink.h index

[PATCH iproute2 net-next v1 6/6] taprio: Add manpage for tc-taprio(8)

2018-09-28 Thread Vinicius Costa Gomes
This documents the parameters and provides an example of usage. Signed-off-by: Vinicius Costa Gomes --- man/man8/tc-taprio.8 | 142 +++ 1 file changed, 142 insertions(+) create mode 100644 man/man8/tc-taprio.8 diff --git a/man/man8/tc-taprio.8

[PATCH iproute2 net-next v1 4/6] include: add definitions for taprio [DO NOT COMMIT]

2018-09-28 Thread Vinicius Costa Gomes
DO NOT COMMIT This patch exists only to ease the testing, until this header is updated with the definitions from the kernel. Signed-off-by: Vinicius Costa Gomes --- include/uapi/linux/pkt_sched.h | 52 -- 1 file changed, 49 insertions(+), 3 deletions(-) diff

[PATCH net-next v1 1/1] tc: Add support for configuring the taprio scheduler

2018-09-28 Thread Vinicius Costa Gomes
This traffic scheduler allows traffic classes states (transmission allowed/not allowed, in the simplest case) to be scheduled, according to a pre-generated time sequence. This is the basis of the IEEE 802.1Qbv specification. Example configuration: tc qdisc replace dev enp3s0 parent root handle

[PATCH net-next v1 0/1] net/sched: Introduce the taprio scheduler

2018-09-28 Thread Vinicius Costa Gomes
Hi, Changes from the RFC: - Moved some fields from the per-qdisc data structure to the per schedule entry one, mainly "expires" (now called "close_time", when an entry ends) and "budget" (how many bytes can be sent during an entry); - Removed support for the schedule file, in

[PATCH v2] net/ncsi: Add NCSI OEM command support

2018-09-28 Thread Vijay Khemka
This patch adds OEM commands and response handling. It also defines OEM command and response structure as per NCSI specification along with its handlers. ncsi_cmd_handler_oem: This is a generic command request handler for OEM commands ncsi_rsp_handler_oem: This is a generic response handler for

[PATCH linux-firmware] linux-firmware: liquidio: fix GPL compliance issue

2018-09-28 Thread Manlunas, Felix
Part of the code inside the lio_vsw_23xx.bin firmware image is under GPL, but the LICENCE.cavium file neglects to indicate that. However, LICENCE.cavium does correctly specify the license that covers the other Cavium firmware images that do not contain any GPL code. Fix the GPL compliance issue

Re: [PATCH net-next] geneve: fix ttl inherit type

2018-09-28 Thread Michal Kubecek
On Fri, Sep 28, 2018 at 09:09:58AM +0800, Hangbin Liu wrote: > Phil pointed out that there is a mismatch between vxlan and geneve ttl > inherit. We should define it as a flag and use nla_put_flag to export this > opiton. > > Fixes: 52d0d404d39dd ("geneve: add ttl inherit support") > Reported-by:

[PATCH net-next 2/3] ibmvnic: Introduce driver limits for ring sizes

2018-09-28 Thread Thomas Falcon
Introduce driver-defined maximums for queue ring sizes. Devices available for IBM vNIC today will likely not allow this amount, but this should give us some leeway for future devices that may support larger ring sizes. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.h | 1 + 1

[PATCH net-next 1/3] ibmvnic: Increase maximum queue size limit

2018-09-28 Thread Thomas Falcon
Increase queue size limit to 16. Devices available for IBM vNIC today will not allow this amount, but this should give us some leeway for future devices that may support more RX or TX queues. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.h | 2 +- 1 file changed, 1

[PATCH net-next 0/3] ibmvnic: Implement driver-defined queue limits

2018-09-28 Thread Thomas Falcon
In this patch series, update the ibmvnic driver to use driver-defined queue limits instead of limits imposed by the Virtual I/O server management partition. For some deviced, initial max queue size and amount limits, despite their definition, can actually be exceeded if the client driver requests

[PATCH net-next 3/3] ibmvnic: Add ethtool private flag for driver-defined queue limits

2018-09-28 Thread Thomas Falcon
When choosing channel amounts and ring sizes, the maximums in the ibmvnic driver are defined by the virtual i/o server management partition. Even though they are defined as maximums, the client driver may in fact successfully request resources that exceed these limits, which are mostly dependent

Re: [PATCH net v2] net/ncsi: Extend NC-SI Netlink interface to allow user space to send NC-SI command

2018-09-28 Thread Vijay Khemka
>On 9/28/18, 11:16 AM, "justin.l...@dell.com" wrote: > The new command (NCSI_CMD_SEND_CMD) is added to allow user space application > to send NC-SI command to the network card. > Also, add a new attribute (NCSI_ATTR_DATA) for transferring request and response. > > The work

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

2018-09-28 Thread Vijay Khemka
On 9/26/18, 8:44 PM, "Samuel Mendoza-Jonas" wrote: >Hi Vijay, >Having had a chance to take a closer look, there is probably room for > both this patchset and Justin's potential changes to coexist; while > Justin's is a more general solution for sending arbitrary commands, the

Re: [PATCH net-next] tcp/fq: move back to CLOCK_MONOTONIC

2018-09-28 Thread Eric Dumazet
7e41923 ("net_sched: sch_fq: switch to CLOCK_TAI") >> Fixes: fd2bca2aa789 ("tcp: switch internal pacing timer to CLOCK_TAI") >> Signed-off-by: Eric Dumazet >> Reported-by: Leonard Crestez > > Tested-by: Leonard Crestez > > Fixes the problem reported earlier when applied on top of next-20180928 > Thanks again ;)

Re: [net] r8169: fix network stalls due to missing bit TXCFG_AUTO_FIFO

2018-09-28 Thread Heiner Kallweit
On 28.09.2018 23:47, Maciej S. Szmigiero wrote: > On 28.09.2018 22:19, Heiner Kallweit wrote: >> Some of the chip-specific hw_start functions set bit TXCFG_AUTO_FIFO >> in register TxConfig. The original patch changed the order of some >> calls resulting in these changes being overwritten by >>

[PATCH net 1/3] tun: remove unused parameters

2018-09-28 Thread Eric Dumazet
tun_napi_disable() and tun_napi_del() do not need a pointer to the tun_struct Signed-off-by: Eric Dumazet --- drivers/net/tun.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index

[PATCH net 3/3] tun: napi flags belong to tfile

2018-09-28 Thread Eric Dumazet
Since tun->flags might be shared by multiple tfile structures, it is better to make sure tun_get_user() is using the flags for the current tfile. Presence of the READ_ONCE() in tun_napi_frags_enabled() gave a hint of what could happen, but we need something stronger to please syzbot. kasan:

[PATCH net v2] r8169: fix network stalls due to missing bit TXCFG_AUTO_FIFO

2018-09-28 Thread Heiner Kallweit
Some of the chip-specific hw_start functions set bit TXCFG_AUTO_FIFO in register TxConfig. The original patch changed the order of some calls resulting in these changes being overwritten by rtl_set_tx_config_registers() in rtl_hw_start(). This eventually resulted in network stalls especially under

[PATCH net 0/3] tun: address two syzbot reports

2018-09-28 Thread Eric Dumazet
Small changes addressing races discovered by syzbot. First patch is a cleanup. Second patch moves a mutex init sooner. Third patch makes sure each tfile gets its own napi enable flags. Eric Dumazet (3): tun: remove unused parameters tun: initialize napi_mutex unconditionally tun: napi

[PATCH net 2/3] tun: initialize napi_mutex unconditionally

2018-09-28 Thread Eric Dumazet
This is the first part to fix following syzbot report : console output: https://syzkaller.appspot.com/x/log.txt?x=145378e640 kernel config: https://syzkaller.appspot.com/x/.config?x=443816db871edd66 dashboard link: https://syzkaller.appspot.com/bug?extid=e662df0ac1d753b57e80 Following patch

Re: [net] r8169: fix network stalls due to missing bit TXCFG_AUTO_FIFO

2018-09-28 Thread Maciej S. Szmigiero
On 28.09.2018 22:19, Heiner Kallweit wrote: > Some of the chip-specific hw_start functions set bit TXCFG_AUTO_FIFO > in register TxConfig. The original patch changed the order of some > calls resulting in these changes being overwritten by > rtl_set_tx_config_registers() in rtl_hw_start(). This

Re: [PATCH net-next] tcp/fq: move back to CLOCK_MONOTONIC

2018-09-28 Thread Leonard Crestez
ternal pacing timer to CLOCK_TAI") > Signed-off-by: Eric Dumazet > Reported-by: Leonard Crestez Tested-by: Leonard Crestez Fixes the problem reported earlier when applied on top of next-20180928

bond: take rcu lock in netpoll_send_skb_on_dev

2018-09-28 Thread Dave Jones
The bonding driver lacks the rcu lock when it calls down into netdev_lower_get_next_private_rcu from bond_poll_controller, which results in a trace like: WARNING: CPU: 2 PID: 179 at net/core/dev.c:6567 netdev_lower_get_next_private_rcu+0x34/0x40 CPU: 2 PID: 179 Comm: kworker/u16:15 Not tainted

[PATCH net] r8169: fix network stalls due to missing bit TXCFG_AUTO_FIFO

2018-09-28 Thread Heiner Kallweit
Some of the chip-specific hw_start functions set bit TXCFG_AUTO_FIFO in register TxConfig. The original patch changed the order of some calls resulting in these changes being overwritten by rtl_set_tx_config_registers() in rtl_hw_start(). This eventually resulted in network stalls especially under

[PATCH net-next v2] tcp: up initial rmem to 128KB and SYN rwin to around 64KB

2018-09-28 Thread Yuchung Cheng
Previously TCP initial receive buffer is ~87KB by default and the initial receive window is ~29KB (20 MSS). This patch changes the two numbers to 128KB and ~64KB (rounding down to the multiples of MSS) respectively. The patch also simplifies the calculations s.t. the two numbers are directly

Re: bond: take rcu lock in bond_poll_controller

2018-09-28 Thread Dave Jones
On Fri, Sep 28, 2018 at 12:03:22PM -0700, Cong Wang wrote: > On Fri, Sep 28, 2018 at 12:02 PM Cong Wang wrote: > > > > On Fri, Sep 28, 2018 at 11:26 AM Dave Jones > > wrote: > > > diff --git a/net/core/netpoll.c b/net/core/netpoll.c > > > index 3219a2932463..4f9494381635 100644 > > > ---

[net-next:master 729/738] drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:496:31: error: 'HNAE3_REVISION_ID_21' undeclared; did you mean 'FADT2_REVISION_ID'?

2018-09-28 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: 5362700c942b2cc4bab328361545a6d6fe649534 commit: 4dc13b9668d8ba7a5d1a26b88fa30baa8a214dcc [729/738] net: hns3: Add serdes parallel inner loopback support config: i386-allmodconfig (attached as .config)

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

2018-09-28 Thread Heiner Kallweit
On 27.09.2018 05:04, David Miller wrote: > 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

[PATCH net-next] rtnetlink: fix rtnl_fdb_dump() for shorter family headers

2018-09-28 Thread Mauricio Faria de Oliveira
Currently, rtnl_fdb_dump() assumes the family header is 'struct ifinfomsg', which is not always true. For example, 'struct ndmsg' is used by iproute2 as well (in the 'ip neigh' command). The problem is, the function bails out early if nlmsg_parse() fails, which does occur for iproute2 usage of

[PATCH net] rtnetlink: Fail dump if target netnsid is invalid

2018-09-28 Thread David Ahern
From: David Ahern Link dumps can return results from a target namespace. If the namespace id is invalid, then the dump request should fail if get_target_net fails rather than continuing with a dump of the current namespace. Fixes: 79e1ad148c844 ("rtnetlink: use netnsid to query interface")

Re: bond: take rcu lock in bond_poll_controller

2018-09-28 Thread Cong Wang
On Fri, Sep 28, 2018 at 12:02 PM Cong Wang wrote: > > On Fri, Sep 28, 2018 at 11:26 AM Dave Jones wrote: > > diff --git a/net/core/netpoll.c b/net/core/netpoll.c > > index 3219a2932463..4f9494381635 100644 > > --- a/net/core/netpoll.c > > +++ b/net/core/netpoll.c > > @@ -330,6 +330,7 @@ void

Re: bond: take rcu lock in bond_poll_controller

2018-09-28 Thread Cong Wang
On Fri, Sep 28, 2018 at 11:26 AM Dave Jones wrote: > diff --git a/net/core/netpoll.c b/net/core/netpoll.c > index 3219a2932463..4f9494381635 100644 > --- a/net/core/netpoll.c > +++ b/net/core/netpoll.c > @@ -330,6 +330,7 @@ void netpoll_send_skb_on_dev(struct netpoll *np, struct > sk_buff *skb,

Re: [PATCH RFC net-next 0/5] rtnetlink: Add support for rigid checking of data in dump request

2018-09-28 Thread Christian Brauner
On Fri, Sep 28, 2018 at 08:44:57AM -0700, dsah...@kernel.org wrote: > From: David Ahern > > There are many use cases where a user wants to influence what is > returned in a dump for some rtnetlink command: one is wanting data > for a different namespace than the one the request is received and >

Re: [PATCH RFC net-next 2/5] net/ipv6: Refactor address dump to push inet6_fill_args to in6_dump_addrs

2018-09-28 Thread Christian Brauner
On Fri, Sep 28, 2018 at 08:44:59AM -0700, dsah...@kernel.org wrote: > From: David Ahern > > Pull the inet6_fill_args arg up to in6_dump_addrs and move netnsid > into it. Since IFA_TARGET_NETNSID is a kernel side filter add the > NLM_F_DUMP_FILTERED flag so userspace knows the request was

Re: [PATCH RFC net-next 1/5] net/netlink: Pass extack to dump callbacks

2018-09-28 Thread Christian Brauner
On Fri, Sep 28, 2018 at 08:44:58AM -0700, dsah...@kernel.org wrote: > From: David Ahern > > Pass extack to dump callbacks by adding extack to netlink_dump_control > and transferring to netlink_callback. Update rtnetlink as the first > user. > > Signed-off-by: David Ahern I like the idea of

Re: [PATCH RFC net-next 4/5] net/ipv4: Update inet_dump_ifaddr to support NLM_F_DUMP_PROPER_HDR

2018-09-28 Thread David Ahern
On 9/28/18 12:41 PM, Christian Brauner wrote: >> @@ -1683,15 +1683,45 @@ static int inet_dump_ifaddr(struct sk_buff *skb, >> struct netlink_callback *cb) >> s_idx = idx = cb->args[1]; >> s_ip_idx = ip_idx = cb->args[2]; >> >> -if (nlmsg_parse(cb->nlh, sizeof(struct ifaddrmsg), tb,

Re: [PATCH RFC net-next 5/5] net/ipv6: Update inet6_dump_addr to support NLM_F_DUMP_PROPER_HDR

2018-09-28 Thread Christian Brauner
On Fri, Sep 28, 2018 at 08:45:02AM -0700, dsah...@kernel.org wrote: > From: David Ahern > > Update inet6_dump_addr to check for NLM_F_DUMP_PROPER_HDR in the netlink > message header. If the flag is set, the dump request is expected to have > an ifaddrmsg struct as the header potentially followed

Re: [PATCH RFC net-next 4/5] net/ipv4: Update inet_dump_ifaddr to support NLM_F_DUMP_PROPER_HDR

2018-09-28 Thread Christian Brauner
On Fri, Sep 28, 2018 at 08:45:01AM -0700, dsah...@kernel.org wrote: > From: David Ahern > > Update inet_dump_ifaddr to check for NLM_F_DUMP_PROPER_HDR in the netlink > message header. If the flag is set, the dump request is expected to have > an ifaddrmsg struct as the header potentially

Re: bond: take rcu lock in bond_poll_controller

2018-09-28 Thread Eric Dumazet
On 09/28/2018 11:24 AM, Dave Jones wrote: > Callers of bond_for_each_slave_rcu are expected to hold the rcu lock, > otherwise a trace like below is shown > > WARNING: CPU: 2 PID: 179 at net/core/dev.c:6567 > netdev_lower_get_next_private_rcu+0x34/0x40 > CPU: 2 PID: 179 Comm: kworker/u16:15

Re: [Patch net-next v3] net_sched: change tcf_del_walker() to take idrinfo->lock

2018-09-28 Thread Cong Wang
On Fri, Sep 28, 2018 at 11:11 AM Ido Schimmel wrote: > I don't think this will work given the reference count already dropped > to 0, which is why the template deletion function was invoked. I didn't > test the patch, but I don't see what would prevent the chain from being > freed. Good catch!

bond: take rcu lock in bond_poll_controller

2018-09-28 Thread Dave Jones
Callers of bond_for_each_slave_rcu are expected to hold the rcu lock, otherwise a trace like below is shown WARNING: CPU: 2 PID: 179 at net/core/dev.c:6567 netdev_lower_get_next_private_rcu+0x34/0x40 CPU: 2 PID: 179 Comm: kworker/u16:15 Not tainted 4.19.0-rc5-backup+ #1 Workqueue: bond0

Re: bond: take rcu lock in bond_poll_controller

2018-09-28 Thread Dave Jones
On Fri, Sep 28, 2018 at 10:31:39AM -0700, Cong Wang wrote: > On Fri, Sep 28, 2018 at 10:25 AM Dave Jones wrote: > > > > On Fri, Sep 28, 2018 at 09:55:52AM -0700, Cong Wang wrote: > > > On Fri, Sep 28, 2018 at 9:18 AM Dave Jones > > wrote: > > > > > > > > Callers of

[PATCH net v2] net/ncsi: Extend NC-SI Netlink interface to allow user space to send NC-SI command

2018-09-28 Thread Justin.Lee1
The new command (NCSI_CMD_SEND_CMD) is added to allow user space application to send NC-SI command to the network card. Also, add a new attribute (NCSI_ATTR_DATA) for transferring request and response. The work flow is as below. Request: User space application -> Netlink interface (msg)

Re: [PATCH net 00/11] netpoll: second round of fixes.

2018-09-28 Thread David Miller
From: Eric Dumazet Date: Thu, 27 Sep 2018 09:31:50 -0700 > As diagnosed by Song Liu, ndo_poll_controller() can > be very dangerous on loaded hosts, since the cpu > calling ndo_poll_controller() might steal all NAPI > contexts (for all RX/TX queues of the NIC). > > This capture, showing one

Re: [net-next 0/8][pull request] 100GbE Intel Wired LAN Driver Updates 2018-09-27

2018-09-28 Thread David Miller
From: Jeff Kirsher Date: Thu, 27 Sep 2018 09:21:53 -0700 > This series contains fixes to the ice driver only. ... > The following are changes since commit > 1042caa79e9351b81ed19dc8d2d7fd6ff51a4422: > net-ipv4: remove 2 always zero parameters from ipv4_redirect() > and are available in the

Re: [Patch net-next v3] net_sched: change tcf_del_walker() to take idrinfo->lock

2018-09-28 Thread Ido Schimmel
On Fri, Sep 28, 2018 at 10:56:47AM -0700, Cong Wang wrote: > On Fri, Sep 28, 2018 at 7:59 AM Ido Schimmel wrote: > > > > On Wed, Sep 19, 2018 at 04:37:29PM -0700, Cong Wang wrote: > > > From: Vlad Buslov > > > > > > From: Vlad Buslov > > > > > > Action API was changed to work with actions and

Re: [PATCH net-next] net: sched: make function qdisc_free_cb() static

2018-09-28 Thread David Miller
From: Wei Yongjun Date: Thu, 27 Sep 2018 14:47:56 + > Fixes the following sparse warning: > > net/sched/sch_generic.c:944:6: warning: > symbol 'qdisc_free_cb' was not declared. Should it be static? > > Fixes: 3a7d0d07a386 ("net: sched: extend Qdisc with rcu") > Signed-off-by: Wei Yongjun

Re: [PATCH net-next] geneve: fix ttl inherit type

2018-09-28 Thread David Ahern
On 9/27/18 7:09 PM, Hangbin Liu wrote: > Phil pointed out that there is a mismatch between vxlan and geneve ttl > inherit. We should define it as a flag and use nla_put_flag to export this > opiton. > > Fixes: 52d0d404d39dd ("geneve: add ttl inherit support") same here .. getting an unknown

Re: [PATCH net] vxlan: use nla_put_flag for ttl inherit

2018-09-28 Thread David Ahern
On 9/27/18 7:08 PM, Hangbin Liu wrote: > Phil pointed out that there is a mismatch between vxlan and geneve ttl > inherit. > We should define it as a flag and use nla_put_flag to export this opiton. > > Fixes: 8fd780698745b ("vxlan: fill ttl inherit info") Wrong Fixes tag:

Re: [Patch net-next v3] net_sched: change tcf_del_walker() to take idrinfo->lock

2018-09-28 Thread Cong Wang
On Fri, Sep 28, 2018 at 7:59 AM Ido Schimmel wrote: > > On Wed, Sep 19, 2018 at 04:37:29PM -0700, Cong Wang wrote: > > From: Vlad Buslov > > > > From: Vlad Buslov > > > > Action API was changed to work with actions and action_idr in concurrency > > safe manner, however tcf_del_walker() still

Re: [PATCH net] vxlan: use nla_put_flag for ttl inherit

2018-09-28 Thread David Ahern
On 9/28/18 6:38 AM, Hangbin Liu wrote: > On Fri, Sep 28, 2018 at 12:37:00PM +0200, Phil Sutter wrote: >> On Fri, Sep 28, 2018 at 09:08:26AM +0800, Hangbin Liu wrote: >>> Phil pointed out that there is a mismatch between vxlan and geneve ttl >>> inherit. >>> We should define it as a flag and use

[PATCH] Revert "openvswitch: Fix template leak in error cases."

2018-09-28 Thread Flavio Leitner
This reverts commit 90c7afc96cbbd77f44094b5b651261968e97de67. When the commit was merged, the code used nf_ct_put() to free the entry, but later on commit 76644232e612 ("openvswitch: Free tmpl with tmpl_free.") replaced that with nf_ct_tmpl_free which is a more appropriate. Now the original

Re: [PATCH iproute2 net-next] bridge: fdb: add support for sticky flag

2018-09-28 Thread David Ahern
On 9/27/18 7:35 AM, Nikolay Aleksandrov wrote: > Add support for the new sticky flag that can be set on fdbs and update the > man page. > > CC: David Ahern > Signed-off-by: Nikolay Aleksandrov > --- > bridge/fdb.c | 9 +++-- > man/man8/bridge.8 | 6 +- > 2 files changed, 12

Re: [PATCH 04/11] net: ip6_multipath_l3_keys() - use new style struct initializer instead of memset

2018-09-28 Thread David Ahern
On 9/27/18 5:00 PM, Maciej Żenczykowski wrote: > From: Maciej Żenczykowski > > Signed-off-by: Maciej Żenczykowski > --- > net/ipv6/route.c | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/net/ipv6/route.c b/net/ipv6/route.c > index d28f83e01593..9cb024451fc5

Re: [PATCH 03/11] net: fib_multipath_hash() - use new style struct initializer instead of memset

2018-09-28 Thread David Ahern
On 9/27/18 5:00 PM, Maciej Żenczykowski wrote: > From: Maciej Żenczykowski > > Signed-off-by: Maciej Żenczykowski > --- > net/ipv4/route.c | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/net/ipv4/route.c b/net/ipv4/route.c > index 048919713f4e..17953a52fbd0

Re: [PATCH net-next] selftests: forwarding: test for bridge sticky flag

2018-09-28 Thread David Miller
From: Nikolay Aleksandrov Date: Thu, 27 Sep 2018 16:35:13 +0300 > This test adds an fdb entry with the sticky flag and sends traffic from > a different port with the same mac as a source address expecting the entry > to not change ports if the flag is operating correctly. > > Signed-off-by:

Re: [PATCH net 1/1] qed: Fix shmem structure inconsistency between driver and the mfw.

2018-09-28 Thread David Miller
From: Sudarsana Reddy Kalluru Date: Thu, 27 Sep 2018 04:12:10 -0700 > The structure shared between driver and the management FW (mfw) differ in > sizes. This would lead to issues when driver try to access the structure > members which are not-aligned with the mfw copy e.g., data_ptr usage in the

Re: [PATCH RFC net-next] openvswitch: Queue upcalls to userspace in per-port round-robin order

2018-09-28 Thread Pravin Shelar
On Wed, Sep 26, 2018 at 2:58 AM Stefano Brivio wrote: > > Hi Pravin, > > On Wed, 15 Aug 2018 00:19:39 -0700 > Pravin Shelar wrote: > > > I understand fairness has cost, but we need to find right balance > > between performance and fairness. Current fairness scheme is a > > lockless algorithm

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

2018-09-28 Thread David Miller
From: Sudarsana Reddy Kalluru Date: Wed, 26 Sep 2018 21:57:03 -0700 > Signed-off-by: Sudarsana Reddy Kalluru > Signed-off-by: Ameen Rahman Applied, thank you.

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

2018-09-28 Thread Pravin Shelar
On Wed, Sep 26, 2018 at 11:40 AM Yifeng Sun wrote: > > 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 I am surprised this was not found earlier. Acked-by: Pravin B Shelar

Re: bond: take rcu lock in bond_poll_controller

2018-09-28 Thread Cong Wang
On Fri, Sep 28, 2018 at 10:25 AM Dave Jones wrote: > > On Fri, Sep 28, 2018 at 09:55:52AM -0700, Cong Wang wrote: > > On Fri, Sep 28, 2018 at 9:18 AM Dave Jones wrote: > > > > > > Callers of bond_for_each_slave_rcu are expected to hold the rcu lock, > > > otherwise a trace like below is

Re: [PATCH ethtool] ethtool: support combinations of FEC modes

2018-09-28 Thread Edward Cree
On 28/09/18 17:45, Andrew Lunn wrote: > Now is a good time to change the API, since we are moving to a netlink > socket. Which is why these questions were asked in the first place... OK, well, I've posted sfc's semantics and view-from-the-hardware*; now  patiently waiting for other NIC vendors to

Re: [PATCH] MAINTAINERS: change bridge maintainers

2018-09-28 Thread David Miller
From: Stephen Hemminger Date: Thu, 27 Sep 2018 10:47:01 +0200 > I haven't been doing reviews only but not active development on bridge > code for several years. Roopa and Nikolay have been doing most of > the new features and have agreed to take over as new co-maintainers. > > Signed-off-by:

[PATCH net-next] tcp/fq: move back to CLOCK_MONOTONIC

2018-09-28 Thread Eric Dumazet
In the recent TCP/EDT patch series, I switched TCP and sch_fq clocks from MONOTONIC to TAI, in order to meet the choice done earlier for sch_etf packet scheduler. But sure enough, this broke some setups were the TAI clock jumps forward (by almost 50 year...), as reported by Leonard Crestez. If

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

2018-09-28 Thread David Miller
From: Johannes Berg Date: Thu, 27 Sep 2018 10:22:42 +0200 > On Wed, 2018-09-26 at 10:21 -0700, David Miller wrote: >> 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

Re: bond: take rcu lock in bond_poll_controller

2018-09-28 Thread Dave Jones
On Fri, Sep 28, 2018 at 09:55:52AM -0700, Cong Wang wrote: > On Fri, Sep 28, 2018 at 9:18 AM Dave Jones wrote: > > > > Callers of bond_for_each_slave_rcu are expected to hold the rcu lock, > > otherwise a trace like below is shown > > So why not take rcu read lock in

rcu_read_lock() in tcf_block_find()

2018-09-28 Thread Cong Wang
(Changing $subject as the discussion is going to a completely different topic) On Thu, Sep 27, 2018 at 3:19 PM Eric Dumazet wrote: > > > > On 09/27/2018 02:36 PM, Cong Wang wrote: > > > I don't understand what you mean by changing ip command, you must > > mean tc command, but still, I have no

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

2018-09-28 Thread David Miller
From: YueHaibing Date: Thu, 27 Sep 2018 06:45:06 + > 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

[PATCH iproute2] lib/libnetlink: fix response seq check

2018-09-28 Thread vlad
From: Vlad Dumitrescu Taking a one-iovec example, with rtnl->seq at 42. iovlen == 1, seq becomes 43 on line 604, and a message is sent with nlmsg_seq == 43. If a response with nlmsg_seq of 42 is received, the condition being fixed in this patch would incorrectly accept it. Fixes: 72a2ff3916e5

Re: [Patch net-next] net_sched: fix an extack message in tcf_block_find()

2018-09-28 Thread Cong Wang
On Thu, Sep 27, 2018 at 1:42 PM Cong Wang wrote: > > It is clearly a copy-n-paste. > > Signed-off-by: Cong Wang I regret again for wasting my time, so: NAcked-by: Cong Wang I really don't care, do you?

Re: [Patch net-next] net_sched: fix an extack message in tcf_block_find()

2018-09-28 Thread Cong Wang
On Fri, Sep 28, 2018 at 4:36 AM Vlad Buslov wrote: > > On Thu 27 Sep 2018 at 20:42, Cong Wang wrote: > > It is clearly a copy-n-paste. > > > > Signed-off-by: Cong Wang > > --- > > net/sched/cls_api.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git

Re: [PATCH iproute2 net-next] ipneigh: support setting of NTF_ROUTER on neigh entries

2018-09-28 Thread David Ahern
On 9/25/18 3:15 PM, Roopa Prabhu wrote: > From: Roopa Prabhu > > Signed-off-by: Roopa Prabhu > --- > ip/ipneigh.c | 2 ++ > 1 file changed, 2 insertions(+) > applied to iproute2-next. And then I noticed you did not update the help or the man page. Please send a follow up.

Re: bond: take rcu lock in bond_poll_controller

2018-09-28 Thread Cong Wang
On Fri, Sep 28, 2018 at 9:18 AM Dave Jones wrote: > > Callers of bond_for_each_slave_rcu are expected to hold the rcu lock, > otherwise a trace like below is shown So why not take rcu read lock in netpoll_send_skb_on_dev() where RCU is also assumed? As I said, I can't explain why you didn't

Re: [PATCH ethtool] ethtool: support combinations of FEC modes

2018-09-28 Thread Andrew Lunn
> I see where you're coming from, but if people start needing to manually >  configure FEC on their consumer devices, possibly we have bigger >  problems. Yes, i agree with that. For the consumer market, SFPs needs to grow up and start doing full and reliable auto-neg, just like copper Ethernet.

Re: WARN_ON in TLP causing RT throttling

2018-09-28 Thread stranche
On 2018-09-27 18:25, Eric Dumazet wrote: On 09/27/2018 05:16 PM, stran...@codeaurora.org wrote: Hi Yuchung, Based on the dumps we were able to get, it appears that TFO was not used in this case. We also tried some local experiments where we dropped incoming SYN packets after already

bond: take rcu lock in bond_poll_controller

2018-09-28 Thread Dave Jones
Callers of bond_for_each_slave_rcu are expected to hold the rcu lock, otherwise a trace like below is shown WARNING: CPU: 2 PID: 179 at net/core/dev.c:6567 netdev_lower_get_next_private_rcu+0x34/0x40 CPU: 2 PID: 179 Comm: kworker/u16:15 Not tainted 4.19.0-rc5-backup+ #1 Workqueue: bond0

Re: [PATCH ethtool] ethtool: support combinations of FEC modes

2018-09-28 Thread Edward Cree
On 28/09/18 16:39, Andrew Lunn wrote: > I wonder how true that will be in 5 years time, about reading the > manual? SFP sockets are starting to appear in consumer devices. There > are some Marvell SoC reference boards with SFP and SFP+. Broadcom also > have some boards with SFP. With time, SFP

RE: [PATCH net] net/ncsi: Extend NC-SI Netlink interface to allow user space to send NC-SI command

2018-09-28 Thread Justin.Lee1
Hi Samuel, Please see my comment below. Thanks, Justin > On Thu, 2018-09-27 at 21:08 +, justin.l...@dell.com wrote: > > The new command (NCSI_CMD_SEND_CMD) is added to allow user space > > application > > to send NC-SI command to the network card. > > Also, add a new attribute

[PATCH RFC net-next 4/5] net/ipv4: Update inet_dump_ifaddr to support NLM_F_DUMP_PROPER_HDR

2018-09-28 Thread dsahern
From: David Ahern Update inet_dump_ifaddr to check for NLM_F_DUMP_PROPER_HDR in the netlink message header. If the flag is set, the dump request is expected to have an ifaddrmsg struct as the header potentially followed by one or more attributes. Any data passed in the header or as an attribute

[PATCH RFC net-next 2/5] net/ipv6: Refactor address dump to push inet6_fill_args to in6_dump_addrs

2018-09-28 Thread dsahern
From: David Ahern Pull the inet6_fill_args arg up to in6_dump_addrs and move netnsid into it. Since IFA_TARGET_NETNSID is a kernel side filter add the NLM_F_DUMP_FILTERED flag so userspace knows the request was honored. Signed-off-by: David Ahern --- net/ipv6/addrconf.c | 59

[PATCH RFC net-next 5/5] net/ipv6: Update inet6_dump_addr to support NLM_F_DUMP_PROPER_HDR

2018-09-28 Thread dsahern
From: David Ahern Update inet6_dump_addr to check for NLM_F_DUMP_PROPER_HDR in the netlink message header. If the flag is set, the dump request is expected to have an ifaddrmsg struct as the header potentially followed by one or more attributes. Any data passed in the header or as an attribute

[PATCH RFC net-next 3/5] netlink: introduce NLM_F_DUMP_PROPER_HDR flag

2018-09-28 Thread dsahern
From: David Ahern Add a new flag, NLM_F_DUMP_PROPER_HDR, for userspace to indicate to the kernel that it believes it is sending the right header struct for the dump message type (ifinfomsg, ifaddrmsg, rtmsg, fib_rule_hdr, ...). Setting the flag in the netlink message header indicates to the

[PATCH RFC net-next 1/5] net/netlink: Pass extack to dump callbacks

2018-09-28 Thread dsahern
From: David Ahern Pass extack to dump callbacks by adding extack to netlink_dump_control and transferring to netlink_callback. Update rtnetlink as the first user. Signed-off-by: David Ahern --- include/linux/netlink.h | 2 ++ net/core/rtnetlink.c | 1 + net/netlink/af_netlink.c | 1 + 3

[PATCH RFC net-next 0/5] rtnetlink: Add support for rigid checking of data in dump request

2018-09-28 Thread dsahern
From: David Ahern There are many use cases where a user wants to influence what is returned in a dump for some rtnetlink command: one is wanting data for a different namespace than the one the request is received and another is limiting the amount of data returned in the dump to a specific set

Re: [PATCH ethtool] ethtool: support combinations of FEC modes

2018-09-28 Thread Andrew Lunn
> For us, those semantics make sense (our HW has a notion of 'supported' >  and 'requested' bits for each FEC type for each of local-device, cable >  and link-partner, and uses the strongest FEC mode that's supported by >  everyone and requested by anyone); but if something else is a better fit >  

Re: [Patch net-next v3] net_sched: change tcf_del_walker() to take idrinfo->lock

2018-09-28 Thread Ido Schimmel
On Fri, Sep 28, 2018 at 05:59:00PM +0300, Ido Schimmel wrote: > I'm getting a use-after-free when running tc_chains.sh selftest and I > believe it's caused by this patch. BTW, I can't reproduce the issue after reverting the patch.

Re: [Patch net-next v3] net_sched: change tcf_del_walker() to take idrinfo->lock

2018-09-28 Thread Ido Schimmel
On Wed, Sep 19, 2018 at 04:37:29PM -0700, Cong Wang wrote: > From: Vlad Buslov > > From: Vlad Buslov > > Action API was changed to work with actions and action_idr in concurrency > safe manner, however tcf_del_walker() still uses actions without taking a > reference or idrinfo->lock first, and

[PATCH iproute2-next] tc: f_flower: add geneve option match support to flower

2018-09-28 Thread Simon Horman
From: Pieter Jansen van Vuuren Allow matching on options in Geneve tunnel headers. The options can be described in the form CLASS:TYPE:DATA/CLASS_MASK:TYPE_MASK:DATA_MASK, where CLASS is represented as a 16bit hexadecimal value, TYPE as an 8bit hexadecimal value and DATA as a variable length

Re: [PATCHv3 bpf-next 01/12] bpf: Add iterator for spilled registers

2018-09-28 Thread Daniel Borkmann
On 09/28/2018 01:26 AM, Joe Stringer wrote: > Add this iterator for spilled registers, it concentrates the details of > how to get the current frame's spilled registers into a single macro > while clarifying the intention of the code which is calling the macro. > > Signed-off-by: Joe Stringer >

Re: [PATCHv3 bpf-next 04/12] bpf: Add PTR_TO_SOCKET verifier type

2018-09-28 Thread Daniel Borkmann
On 09/28/2018 01:26 AM, Joe Stringer wrote: > Teach the verifier a little bit about a new type of pointer, a > PTR_TO_SOCKET. This pointer type is accessed from BPF through the > 'struct bpf_sock' structure. > > Signed-off-by: Joe Stringer [...] > +/* Return true if it's OK to have the same insn

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

2018-09-28 Thread Edward Cree
On 26/09/18 23:16, Jiong Wang wrote: > On 22/08/2018 20:00, Edward Cree wrote: >> In the future this idea may be extended to form use-def chains. > >   1. instruction level use->def chain > > - new use->def chains for each instruction. one eBPF insn could have two >    uses at maximum. I

Re: [PATCHv3 bpf-next 04/12] bpf: Add PTR_TO_SOCKET verifier type

2018-09-28 Thread Daniel Borkmann
On 09/28/2018 01:26 AM, Joe Stringer wrote: > Teach the verifier a little bit about a new type of pointer, a > PTR_TO_SOCKET. This pointer type is accessed from BPF through the > 'struct bpf_sock' structure. > > Signed-off-by: Joe Stringer [...] > diff --git a/net/core/filter.c

Re: [PATCHv3 bpf-next 04/12] bpf: Add PTR_TO_SOCKET verifier type

2018-09-28 Thread Daniel Borkmann
Hi Joe, On 09/28/2018 01:26 AM, Joe Stringer wrote: > Teach the verifier a little bit about a new type of pointer, a > PTR_TO_SOCKET. This pointer type is accessed from BPF through the > 'struct bpf_sock' structure. > > Signed-off-by: Joe Stringer [...] > } > @@ -1726,6 +1755,14 @@ static

  1   2   >