Re: [PATCH rdma-next v1 11/13] IB/mlx5: Add flow counters binding support

2018-05-29 Thread Leon Romanovsky
On Mon, May 28, 2018 at 11:27:52AM -0600, Jason Gunthorpe wrote: > On Sun, May 27, 2018 at 01:23:44PM +0300, Leon Romanovsky wrote: > > > + if (!mcounters->hw_cntrs_hndl) { > > + mcounters->hw_cntrs_hndl = > > + (void > > *)mlx5_fc_create(to_mdev(ibcounters->device)->

[no subject]

2018-05-29 Thread администратор
пользователь веб-почты Обратите внимание, что 95% ваших писем, полученных после последнего раза, когда вам нужно обновить сервер своей веб-почты в нашей базе данных, были отложены. Регулярно получать и отправлять свои сообщения. Техническая команда нашей электронной почты обновит вашу учетную з

Re: [PATCH net-next 05/14] nfp: abm: add simple RED offload

2018-05-29 Thread Nogah Frankel
On 29-May-18 2:05 AM, Jakub Kicinski wrote: Hi Jakub, Hi Nogah! On Mon, 28 May 2018 18:49:51 +0300, Nogah Frankel wrote: +static int +nfp_abm_red_replace(struct net_device *netdev, struct nfp_abm_link *alink, + struct tc_red_qopt_offload *opt) +{ + struct nfp_port *por

[PATCH net-next 0/3] net: Add support to configure SR-IOV VF queues.

2018-05-29 Thread Michael Chan
VF Queue resources are always limited and there is currently no infrastructure to allow the admin. on the host to add or reduce queue resources for any particular VF. This series adds the infrastructure to do that and adds the functionality to the bnxt_en driver. The "ip link set" command will su

[PATCH net-next 2/3] bnxt_en: Store min/max tx/rx rings for individual VFs.

2018-05-29 Thread Michael Chan
With new infrastructure to configure queues differently for each VF, we need to store the current min/max rx/tx rings and other resources for each VF. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 9 + drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c |

[PATCH net-next 3/3] bnxt_en: Implement .ndo_set_vf_queues().

2018-05-29 Thread Michael Chan
Implement .ndo_set_vf_queues() on the PF driver to configure the queues parameters for individual VFs. This allows the admin. on the host to increase or decrease queues for individual VFs. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 1 + drivers/net/ether

[PATCH net-next 1/3] net: Add support to configure SR-IOV VF minimum and maximum queues.

2018-05-29 Thread Michael Chan
VF Queue resources are always limited and there is currently no infrastructure to allow the admin. on the host to add or reduce queue resources for any particular VF. With ever increasing number of VFs being supported, it is desirable to allow the admin. to configure queue resources differently fo

Re: [PATCH net-next] net: remove bypassed check in sch_direct_xmit()

2018-05-29 Thread Sergei Shtylyov
Hello! On 5/29/2018 12:36 AM, Song Liu wrote: Check sch_direct_xmit() at the end of sch_direct_xmit() will be bypassed. "Checking netif_xmit_frozen_or_stopped()", perhaps? Else it doesn't make much sense... This is because "ret" from sch_direct_xmit() will be either NETDEV_TX_OK or NET

[PATCH net-next 1/1] qed*: Add link change count value to ethtool statistics display.

2018-05-29 Thread Sudarsana Reddy Kalluru
This patch adds driver changes for capturing the link change count in ethtool statistics display. Please consider applying this to "net-next". Signed-off-by: Sudarsana Reddy Kalluru Signed-off-by: Ariel Elior --- drivers/net/ethernet/qlogic/qed/qed_l2.c| 12 ++-- drivers/net/et

Re: Unable to create ip alias on bridge interface

2018-05-29 Thread Michal Kubecek
On Mon, May 28, 2018 at 11:50:05PM +0530, Akshat Kakkar wrote: > 1. How can this survive across reboots without having a custom script > on boot up? Like some ifcfg file,etc. Every reasonable distribution should provide a way to use more than one address on an interface. But as there is no univers

Re: Unable to create ip alias on bridge interface

2018-05-29 Thread Akshat Kakkar
For following commands, ip addr add 10.10.10.1/24 brd + dev br0 ip addr add 10.10.10.2/24 brd + dev br0 ip addr add 20.20.20.1/24 brd + dev br0 ip addr add 20.20.20.2/24 brd + dev br0 Both 10.10.10.1 and 20.20.20.1 becomes primary. Which one will be used as source IP? Is it nextHop of

Re: [PATCH v3 00/11] Modify action API for implementing lockless actions

2018-05-29 Thread Vlad Buslov
On Tue 29 May 2018 at 04:26, Cong Wang wrote: >> Currently, all netlink protocol handlers for updating rules, actions and >> qdiscs are protected with single global rtnl lock which removes any >> possibility for parallelism. This patch set is a first step to remove >> rtnl lock dependency from TC

Re: [PATCH v3 11/11] net: sched: change action API to use array of pointers to actions

2018-05-29 Thread Vlad Buslov
On Mon 28 May 2018 at 21:31, Marcelo Ricardo Leitner wrote: > On Mon, May 28, 2018 at 12:17:29AM +0300, Vlad Buslov wrote: > ... >> -int tcf_action_destroy(struct list_head *actions, int bind) >> +int tcf_action_destroy(struct tc_action *actions[], int bind) >> { >> const struct tc_action

Re: Unable to create ip alias on bridge interface

2018-05-29 Thread Michal Kubecek
On Tue, May 29, 2018 at 03:39:05PM +0530, Akshat Kakkar wrote: > For following commands, > ip addr add 10.10.10.1/24 brd + dev br0 > ip addr add 10.10.10.2/24 brd + dev br0 > ip addr add 20.20.20.1/24 brd + dev br0 > ip addr add 20.20.20.2/24 brd + dev br0 > > Both 10.10.10.1 and 20.20

Re: Unable to create ip alias on bridge interface

2018-05-29 Thread Akshat Kakkar
Thanks. Thanks a lot for clarifying all this. On Tue, May 29, 2018 at 3:59 PM, Michal Kubecek wrote: > On Tue, May 29, 2018 at 03:39:05PM +0530, Akshat Kakkar wrote: >> For following commands, >> ip addr add 10.10.10.1/24 brd + dev br0 >> ip addr add 10.10.10.2/24 brd + dev br0 >> ip addr

[PATCH bpf-next] bpf: clean up eBPF helpers documentation

2018-05-29 Thread Quentin Monnet
These are minor edits for the eBPF helpers documentation in include/uapi/linux/bpf.h. The main fix consists in removing "BPF_FIB_LOOKUP_", because it ends with a non-escaped underscore that gets interpreted by rst2man and produces the following message in the resulting manual page: DOCUTILS S

Re: [PATCH net] sctp: not allow to set rto_min with a value below 200 msecs

2018-05-29 Thread Neil Horman
On Mon, May 28, 2018 at 04:43:15PM -0300, Marcelo Ricardo Leitner wrote: > On Sat, May 26, 2018 at 09:01:00PM -0400, Neil Horman wrote: > > On Sat, May 26, 2018 at 05:50:39PM +0200, Dmitry Vyukov wrote: > > > On Sat, May 26, 2018 at 5:42 PM, Michael Tuexen > > > wrote: > > > >> On 25. May 2018, at

Re: [PATCH bpf-next 06/11] bpf: add bpf_skb_cgroup_id helper

2018-05-29 Thread Quentin Monnet
Hi Daniel, 2018-05-28 02:43 UTC+0200 ~ Daniel Borkmann > Add a new bpf_skb_cgroup_id() helper that allows to retrieve the > cgroup id from the skb's socket. This is useful in particular to > enable bpf_get_cgroup_classid()-like behavior for cgroup v1 in > cgroup v2 by allowing ID based matching o

[PATCH net-next 2/5] net: aquantia: Improve adapter init/deinit logic

2018-05-29 Thread Igor Russkikh
We now pass link drop status to FW on init/deinit. This is required to inform FW that driver took/released a control on link. FW then will manage its own state and device power profile based on this information. To improve management we remove mpi_set function which ambiguously took both state and

[PATCH net-next 0/5] net: aquantia: various ethtool ops implementation

2018-05-29 Thread Igor Russkikh
In this patchset Anton Mikaev and I added some useful ethtool operations: - ring size changes - link renegotioation - flow control management The patch also improves init/deinit sequence. Igor Russkikh (5): net: aquantia: Ethtool based ring size configuration net: aquantia: Improve adapter in

[PATCH net-next 1/5] net: aquantia: Ethtool based ring size configuration

2018-05-29 Thread Igor Russkikh
From: Anton Mikaev Implemented ring size setup, min/max validation and reconfiguration in runtime. NIC level lock is used to prevent collisions on parallel reconfiguration and interference with periodic service timer job. Signed-off-by: Anton Mikaev Signed-off-by: Igor Russkikh --- .../net/et

[PATCH net-next 3/5] net: aquantia: Implement rx/tx flow control ethtools callback

2018-05-29 Thread Igor Russkikh
Runtime change of pause frame configuration (rx/tx flow control) via ethtool. Signed-off-by: Igor Russkikh --- .../net/ethernet/aquantia/atlantic/aq_ethtool.c| 42 ++ drivers/net/ethernet/aquantia/atlantic/aq_nic.c| 6 +++- .../aquantia/atlantic/hw_atl/hw_atl_utils.c

[PATCH net-next 4/5] net: aquantia: Add renegotiate ethtool operation support

2018-05-29 Thread Igor Russkikh
From: Anton Mikaev Adds ethtool -r|--negotiate operation support. It triggers special control bit on FW interface causing FW to restart link negotiation. Signed-off-by: Igor Russkikh Signed-off-by: Anton Mikaev --- .../net/ethernet/aquantia/atlantic/aq_ethtool.c| 14 + drivers/net

[PATCH net-next 5/5] net: aquantia: bump driver version

2018-05-29 Thread Igor Russkikh
Signed-off-by: Igor Russkikh --- drivers/net/ethernet/aquantia/atlantic/ver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/aquantia/atlantic/ver.h b/drivers/net/ethernet/aquantia/atlantic/ver.h index a445de6..94efc64 100644 --- a/drivers/net/ethern

Re: [PATCH net] sctp: not allow to set rto_min with a value below 200 msecs

2018-05-29 Thread Michael Tuexen
> On 29. May 2018, at 13:41, Neil Horman wrote: > > On Mon, May 28, 2018 at 04:43:15PM -0300, Marcelo Ricardo Leitner wrote: >> On Sat, May 26, 2018 at 09:01:00PM -0400, Neil Horman wrote: >>> On Sat, May 26, 2018 at 05:50:39PM +0200, Dmitry Vyukov wrote: On Sat, May 26, 2018 at 5:42 PM, Mic

[PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter to ioctl() infrastructure

2018-05-29 Thread Leon Romanovsky
From: Matan Barak Previously, the user had to dig inside the attribute to get the uobject. Add a helper function that correctly extract it (and do the required checks) for him/her. Tested-by: Michael Guralnik Signed-off-by: Matan Barak Signed-off-by: Leon Romanovsky --- drivers/infiniband/co

[PATCH rdma-next v2 00/13] Verbs flow counters support

2018-05-29 Thread Leon Romanovsky
From: Leon Romanovsky Changelog v1->v2: * Removed conversion from struct mlx5_fc* to void* * Fixed one place with double space in it * Balanced release of hardware handler in case of counters allocation failure * Added Tested-by * Minimize time spent holding mutex lock * Fixed deadlock caus

[PATCH rdma-next v2 09/13] IB/uverbs: Add support for flow counters

2018-05-29 Thread Leon Romanovsky
From: Raed Salem The struct ib_uverbs_flow_spec_action_count associates a counters object with the flow. Post this association the flow counters can be read via the counters object. Tested-by: Michael Guralnik Reviewed-by: Yishai Hadas Signed-off-by: Raed Salem Signed-off-by: Leon Romanovsky

[PATCH rdma-next v2 12/13] IB/mlx5: Add flow counters read support

2018-05-29 Thread Leon Romanovsky
From: Raed Salem Implements the flow counters read wrapper. Tested-by: Michael Guralnik Reviewed-by: Yishai Hadas Signed-off-by: Raed Salem Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/main.c| 15 +++ drivers/infiniband/hw/mlx5/mlx5_ib.h | 13 -

[PATCH rdma-next v2 06/13] IB/uverbs: Add read counters support

2018-05-29 Thread Leon Romanovsky
From: Raed Salem This patch exposes the read counters verb to user space applications. By that verb the user can read the hardware counters which are associated with the counters object. The application needs to provide a sufficient memory to hold the statistics. Tested-by: Michael Guralnik Re

[PATCH rdma-next v2 03/13] IB/core: Introduce counters object and its create/destroy

2018-05-29 Thread Leon Romanovsky
From: Raed Salem A verbs application may need to get statistics and info on various aspects of a verb object (e.g. Flow, QP, ...), in general case the application will state which object's counters its interested in (we refer to this action as attach), bind this new counters object to the appropr

[PATCH mlx5-next v2 11/13] IB/mlx5: Add flow counters binding support

2018-05-29 Thread Leon Romanovsky
From: Raed Salem Associates a counters with a flow when IB_FLOW_SPEC_ACTION_COUNT is part of the flow specifications. The counters user space placements of location and description (index, description) pairs are passed as private data of the counters flow specification. Tested-by: Michael Gural

[PATCH rdma-next v2 10/13] IB/mlx5: Add counters create and destroy support

2018-05-29 Thread Leon Romanovsky
From: Raed Salem This patch implements the device counters create and destroy APIs and introducing some internal management structures. Downstream patches in this series will add the functionality to support flow counters binding and reading. Tested-by: Michael Guralnik Reviewed-by: Yishai Had

[PATCH rdma-next v2 04/13] IB/uverbs: Add create/destroy counters support

2018-05-29 Thread Leon Romanovsky
From: Raed Salem User space application which uses counters functionality, is expected to allocate/release the counters resources by calling create/destroy verbs and in turn get a unique handle that can be used to attach the counters to its counted type. Tested-by: Michael Guralnik Reviewed-by:

[PATCH rdma-next v2 07/13] IB/core: Support passing uhw for create_flow

2018-05-29 Thread Leon Romanovsky
From: Matan Barak This is required when user-space drivers need to pass extra information regarding how to handle this flow steering specification. Tested-by: Michael Guralnik Reviewed-by: Yishai Hadas Signed-off-by: Matan Barak Signed-off-by: Boris Pismenny Signed-off-by: Leon Romanovsky -

[PATCH rdma-next v2 13/13] IB/mlx5: Add counters read support

2018-05-29 Thread Leon Romanovsky
From: Raed Salem This patch implements the uverbs counters read API, it will use the specific read counters function to the given type to accomplish its task. Tested-by: Michael Guralnik Reviewed-by: Yishai Hadas Signed-off-by: Raed Salem Signed-off-by: Leon Romanovsky --- drivers/infiniban

[PATCH mlx5-next v2 02/13] net/mlx5: Export flow counter related API

2018-05-29 Thread Leon Romanovsky
From: Raed Salem Exports counters API to be used in both IB and EN. Tested-by: Michael Guralnik Reviewed-by: Yishai Hadas Signed-off-by: Raed Salem Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/fs_core.h | 23 -- .../net/ethernet/mellanox/ml

[PATCH rdma-next v2 08/13] IB/core: Add support for flow counters

2018-05-29 Thread Leon Romanovsky
From: Raed Salem A counters object could be attached to flow on creation by providing the counter specification action. General counters description which count packets and bytes are introduced, downstream patches from this series will use them as part of flow counters binding. In addition, inc

[PATCH rdma-next v2 05/13] IB/core: Introduce counters read verb

2018-05-29 Thread Leon Romanovsky
From: Raed Salem The user supplies counters instance and a reference to an output array of uint64_t. The driver reads the hardware counters values and writes them to the output index location in the user supplied array. All counters values are represented as uint64_t types. To be able to success

Re: [pull request][for-next 00/12] Mellanox, mlx5e updates 2018-05-25

2018-05-29 Thread David Miller
From: Saeed Mahameed Date: Fri, 25 May 2018 17:01:55 -0700 > This is a mlx5e only pull request, for more information please see tag > log below. > > Please pull and let me know if there's any problem. Pulled, thanks Saeed. There was a minor conflict to resolve (simple overlapping changes).

Re: [PATCH net-next 00/14] nfp: abm: RED/MQ qdisc offload

2018-05-29 Thread David Miller
From: Jakub Kicinski Date: Fri, 25 May 2018 21:53:24 -0700 > This is second batch of advanced buffer management nfp driver > changes. This series adds the qdisc offload. Support for > a very simple subset of RED qdisc offload is added as needed > for DCTCP ECN marking (min and max thresholds se

Re: [PATCH net] net: sched: check netif_xmit_frozen_or_stopped() in sch_direct_xmit()

2018-05-29 Thread David Miller
From: Song Liu Date: Fri, 25 May 2018 11:11:44 -0700 > Summary: > > At the end of sch_direct_xmit(), we are in the else path of > !dev_xmit_complete(ret), which means ret == NETDEV_TX_OK. The following > condition will always fail and netif_xmit_frozen_or_stopped() is not > checked at all. > >

Re: [PATCH] net: qcom/emac: fix device tree initialization

2018-05-29 Thread David Miller
From: Timur Tabi Date: Sat, 26 May 2018 20:29:14 -0500 > Commit "net: qcom/emac: Encapsulate sgmii ops under one structure" > introduced the sgmii_ops structure, but did not correctly initialize > it on device tree platforms. This resulted in compiler warnings when > ACPI is not enabled. > > Re

Re: [PATCH net] mlxsw: spectrum: Forbid creation of VLAN 1 over port/LAG

2018-05-29 Thread David Miller
From: Ido Schimmel Date: Sun, 27 May 2018 09:48:41 +0300 > From: Petr Machata > > VLAN 1 is internally used for untagged traffic. Prevent creation of > explicit netdevice for that VLAN, because that currently isn't supported > and leads to the NULL pointer dereference cited below. > > Fix by p

Re: [PATCH net-next 0/8] nfp: offload LAG for tc flower egress

2018-05-29 Thread John Hurley
On Sat, May 26, 2018 at 3:47 AM, Jakub Kicinski wrote: > On Fri, 25 May 2018 08:48:09 +0200, Jiri Pirko wrote: >> Thu, May 24, 2018 at 04:22:47AM CEST, jakub.kicin...@netronome.com wrote: >> >Hi! >> > >> >This series from John adds bond offload to the nfp driver. Patch 5 >> >exposes the hash type

Re: [PATCH net-next 0/3] mlxsw: use MRSR register for FW reset

2018-05-29 Thread David Miller
From: Ido Schimmel Date: Sun, 27 May 2018 09:56:12 +0300 > Jiri says: > > Introduce a MRSR register definition and use it to do FW reset instead > of existing mechanism using PCI BAR0 register. Series applied to net-next.

Re: [PATCH net-next 0/7] net: Add address attribute to control metric of prefix route

2018-05-29 Thread David Miller
From: dsah...@kernel.org Date: Sun, 27 May 2018 08:09:52 -0700 > For use cases such as VRR (Virtual Router Redundancy) interface managers > want efficient control over the order of prefix routes when multiple > interfaces have addresses with overlapping/duplicate subnets. > > Currently, if two in

Re: [PATCH] PCI: allow drivers to limit the number of VFs to 0

2018-05-29 Thread Don Dutile
On 05/25/2018 04:46 PM, Bjorn Helgaas wrote: On Fri, May 25, 2018 at 03:27:52PM -0400, Don Dutile wrote: On 05/25/2018 10:02 AM, Bjorn Helgaas wrote: On Thu, May 24, 2018 at 06:20:15PM -0700, Jakub Kicinski wrote: Hi Bjorn! On Thu, 24 May 2018 18:57:48 -0500, Bjorn Helgaas wrote: On Mon, Apr

Re: [PATCH] PCI: allow drivers to limit the number of VFs to 0

2018-05-29 Thread Don Dutile
On 05/25/2018 05:05 PM, Jakub Kicinski wrote: On Fri, 25 May 2018 09:02:23 -0500, Bjorn Helgaas wrote: On Thu, May 24, 2018 at 06:20:15PM -0700, Jakub Kicinski wrote: On Thu, 24 May 2018 18:57:48 -0500, Bjorn Helgaas wrote: On Mon, Apr 02, 2018 at 03:46:52PM -0700, Jakub Kicinski wrote: Some

[PATCH iproute2 v2] ipaddress: strengthen check on 'label' input

2018-05-29 Thread Patrick Talbert
As mentioned in the ip-address man page, an address label must be equal to the device name or prefixed by the device name followed by a colon. Currently the only check on this input is to see if the device name appears at the beginning of the label string. This commit adds an additional check to e

Re: [PATCH net] be2net: Fix error detection logic for BE3

2018-05-29 Thread David Miller
From: Suresh Reddy Date: Mon, 28 May 2018 01:26:06 -0400 > Check for 0xE00 (RECOVERABLE_ERR) along with ARMFW UE (0x0) > in be_detect_error() to know whether the error is valid error or not > > Fixes: 673c96e5a ("be2net: Fix UE detection logic for BE3") > Signed-off-by: Suresh Reddy Applied an

Re: [PATCH v2 net] tun: Fix NULL pointer dereference in XDP redirect

2018-05-29 Thread David Miller
From: Toshiaki Makita Date: Mon, 28 May 2018 19:37:49 +0900 > Calling XDP redirection requires bh disabled. Softirq can call another > XDP function and redirection functions, then the percpu static variable > ri->map can be overwritten to NULL. ... > v2: > - Removed preempt_disable/enable since

Re: [PATCH bpf v2 1/5] selftests/bpf: test_sockmap, check test failure

2018-05-29 Thread John Fastabend
On 05/27/2018 09:37 PM, Prashant Bhole wrote: > Test failures are not identified because exit code of RX/TX threads > is not checked. Also threads are not returning correct exit code. > > - Return exit code from threads depending on test execution status > - In main thread, check the exit code of

Re: [PATCH bpf-next 06/11] bpf: add bpf_skb_cgroup_id helper

2018-05-29 Thread Daniel Borkmann
On 05/29/2018 02:15 PM, Quentin Monnet wrote: > Hi Daniel, > > 2018-05-28 02:43 UTC+0200 ~ Daniel Borkmann >> Add a new bpf_skb_cgroup_id() helper that allows to retrieve the >> cgroup id from the skb's socket. This is useful in particular to >> enable bpf_get_cgroup_classid()-like behavior for c

Re: STMMAC driver with TSO enabled issue

2018-05-29 Thread Bhadram Varka
Hi Jose, On 5/28/2018 4:26 PM, Jose Abreu wrote: Hi Bhadram, On 28-05-2018 10:15, Bhadram Varka wrote: Hi Jose, On 5/25/2018 8:02 PM, Jose Abreu wrote: On 25-05-2018 15:25, Bhadram Varka wrote: Hi Jose, On 5/25/2018 7:35 PM, Jose Abreu wrote: Hi Bhadram, On 25-05-2018 05:41, Bhadram Vark

Re: [PATCH net] sctp: not allow to set rto_min with a value below 200 msecs

2018-05-29 Thread Marcelo Ricardo Leitner
On Tue, May 29, 2018 at 03:06:06PM +0200, Michael Tuexen wrote: > > On 29. May 2018, at 13:41, Neil Horman wrote: > > > > On Mon, May 28, 2018 at 04:43:15PM -0300, Marcelo Ricardo Leitner wrote: > >> On Sat, May 26, 2018 at 09:01:00PM -0400, Neil Horman wrote: > >>> On Sat, May 26, 2018 at 05:50:

Re: [PATCH bpf v2 0/5] fix test_sockmap

2018-05-29 Thread John Fastabend
On 05/27/2018 09:37 PM, Prashant Bhole wrote: > This series fixes error handling, timeout and data verification in > test_sockmap. Previously it was not able to detect failure/timeout in > RX/TX thread because error was not notified to the main thread. > > Also slightly improved test output by pri

Re: [PATCH net] sctp: not allow to set rto_min with a value below 200 msecs

2018-05-29 Thread Neal Cardwell
On Tue, May 29, 2018 at 11:45 AM Marcelo Ricardo Leitner < marcelo.leit...@gmail.com> wrote: > - patch2 - fix rtx attack vector >- Add the floor value to rto_min to HZ/20 (which fits the values > that Michael shared on the other email) I would encourage allowing minimum RTO values down to

Re: [PATCH net] net: sched: check netif_xmit_frozen_or_stopped() in sch_direct_xmit()

2018-05-29 Thread Song Liu
> On May 29, 2018, at 7:02 AM, David Miller wrote: > > From: Song Liu > Date: Fri, 25 May 2018 11:11:44 -0700 > >> Summary: >> >> At the end of sch_direct_xmit(), we are in the else path of >> !dev_xmit_complete(ret), which means ret == NETDEV_TX_OK. The following >> condition will always f

Re: [PATCH net-next] net: remove bypassed check in sch_direct_xmit()

2018-05-29 Thread Song Liu
> On May 29, 2018, at 1:58 AM, Sergei Shtylyov > wrote: > > Hello! > > On 5/29/2018 12:36 AM, Song Liu wrote: > >> Check sch_direct_xmit() at the end of sch_direct_xmit() will be bypassed. > > "Checking netif_xmit_frozen_or_stopped()", perhaps? Else it doesn't make > much sense... Than

[PATCH v2 net-next] net: remove bypassed check in sch_direct_xmit()

2018-05-29 Thread Song Liu
Checking netif_xmit_frozen_or_stopped() at the end of sch_direct_xmit() is being bypassed. This is because "ret" from sch_direct_xmit() will be either NETDEV_TX_OK or NETDEV_TX_BUSY, and only ret == NETDEV_TX_OK == 0 will reach the condition: if (ret && netif_xmit_frozen_or_stopped(txq))

Re: [PATCH net] sctp: not allow to set rto_min with a value below 200 msecs

2018-05-29 Thread Marcelo Ricardo Leitner
On Tue, May 29, 2018 at 12:03:46PM -0400, Neal Cardwell wrote: > On Tue, May 29, 2018 at 11:45 AM Marcelo Ricardo Leitner < > marcelo.leit...@gmail.com> wrote: > > - patch2 - fix rtx attack vector > >- Add the floor value to rto_min to HZ/20 (which fits the values > > that Michael shared o

Re: [PATCH bpf-next 03/11] bpf: fixup error message from gpl helpers on license mismatch

2018-05-29 Thread Jesper Dangaard Brouer
On Mon, 28 May 2018 02:43:36 +0200 Daniel Borkmann wrote: > Stating 'proprietary program' in the error is just silly since it > can also be a different open source license than that which is just > not compatible. > > Reference: https://twitter.com/majek04/status/998531268039102465 > Signed-off-

Re: [PATCH bpf-next 05/11] bpf: avoid retpoline for lookup/update/delete calls on maps

2018-05-29 Thread Jesper Dangaard Brouer
On Mon, 28 May 2018 02:43:38 +0200 Daniel Borkmann wrote: > While some of the BPF map lookup helpers provide a ->map_gen_lookup() > callback for inlining the map lookup altogether it is not available > for every map, so the remaining ones have to call bpf_map_lookup_elem() > helper which does a d

Re: [PATCH bpf-next 04/11] bpf: show prog and map id in fdinfo

2018-05-29 Thread Jesper Dangaard Brouer
On Mon, 28 May 2018 02:43:37 +0200 Daniel Borkmann wrote: > Its trivial and straight forward to expose it for scripts that can > then use it along with bpftool in order to inspect an individual > application's used maps and progs. Right now we dump some basic > information in the fdinfo file but

Re: [PATCH net] sctp: not allow to set rto_min with a value below 200 msecs

2018-05-29 Thread Xin Long
On Wed, May 30, 2018 at 1:06 AM, Marcelo Ricardo Leitner wrote: > On Tue, May 29, 2018 at 12:03:46PM -0400, Neal Cardwell wrote: >> On Tue, May 29, 2018 at 11:45 AM Marcelo Ricardo Leitner < >> marcelo.leit...@gmail.com> wrote: >> > - patch2 - fix rtx attack vector >> >- Add the floor value to

[PATCH bpf-next] bpf: Drop mpls from bpf_fib_lookup

2018-05-29 Thread dsahern
From: David Ahern MPLS support will not be submitted this dev cycle, but in working on it I do see a few changes are needed to the API. For now, drop mpls from the API. Since the fields in question are unions, the mpls fields can be added back later without affecting the uapi. Signed-off-by: Dav

Re: [PATCH bpf-next 01/11] bpf: test case for map pointer poison with calls/branches

2018-05-29 Thread Song Liu
On Sun, May 27, 2018 at 5:43 PM, Daniel Borkmann wrote: > Add several test cases where the same or different map pointers > originate from different paths in the program and execute a map > lookup or tail call at a common location. > > Signed-off-by: Daniel Borkmann > Acked-by: Alexei Starovoitov

Re: [PATCH net] sctp: not allow to set rto_min with a value below 200 msecs

2018-05-29 Thread Marcelo Ricardo Leitner
On Wed, May 30, 2018 at 01:45:08AM +0800, Xin Long wrote: > If we're counting on max_t to fix this CPU stuck. It should not that > matter if min rto < the value causing that stuck. Yes but putting a floor to rto_{min,max} now is to protect the rtx timer now, not the heartbeat one. > > > > > Anyw

Re: [PATCH bpf-next 02/11] bpf: add also cbpf long jump test cases with heavy expansion

2018-05-29 Thread Song Liu
On Sun, May 27, 2018 at 5:43 PM, Daniel Borkmann wrote: > We have one triggering on eBPF but lets also add a cBPF example to > make sure we keep tracking them. Also add anther cBPF test running > max number of MSH ops. > > Signed-off-by: Daniel Borkmann > Acked-by: Alexei Starovoitov Acked-by:

Re: [PATCH bpf-next 03/11] bpf: fixup error message from gpl helpers on license mismatch

2018-05-29 Thread Song Liu
On Tue, May 29, 2018 at 10:16 AM, Jesper Dangaard Brouer wrote: > On Mon, 28 May 2018 02:43:36 +0200 > Daniel Borkmann wrote: > >> Stating 'proprietary program' in the error is just silly since it >> can also be a different open source license than that which is just >> not compatible. >> >> Refe

Re: [PATCH bpf-next] bpf: clean up eBPF helpers documentation

2018-05-29 Thread Song Liu
On Tue, May 29, 2018 at 4:27 AM, Quentin Monnet wrote: > These are minor edits for the eBPF helpers documentation in > include/uapi/linux/bpf.h. > > The main fix consists in removing "BPF_FIB_LOOKUP_", because it ends > with a non-escaped underscore that gets interpreted by rst2man and > produces

Re: [pull request][for-next 00/12] Mellanox, mlx5e updates 2018-05-25

2018-05-29 Thread Saeed Mahameed
On Tue, 2018-05-29 at 09:47 -0400, David Miller wrote: > From: Saeed Mahameed > Date: Fri, 25 May 2018 17:01:55 -0700 > > > This is a mlx5e only pull request, for more information please see > > tag > > log below. > > > > Please pull and let me know if there's any problem. > > Pulled, thanks Sa

[PATCH bpf-next] bpf: Verify flags in bpf_fib_lookup

2018-05-29 Thread dsahern
From: David Ahern Verify flags argument contains only known flags. Allows programs to probe for support as more are added. Signed-off-by: David Ahern --- net/core/filter.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/net/core/filter.c b/net/core/filter.c index 24e6ce8be567..4cff6d

Re: [PATCH net-next 1/5] net: aquantia: Ethtool based ring size configuration

2018-05-29 Thread Jakub Kicinski
On Tue, 29 May 2018 15:56:58 +0300, Igor Russkikh wrote: > +static int aq_set_ringparam(struct net_device *ndev, > + struct ethtool_ringparam *ring) > +{ > + int err = 0; > + struct aq_nic_s *aq_nic = netdev_priv(ndev); > + struct aq_nic_cfg_s *aq_nic_cfg = aq_ni

RE: [PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter to ioctl() infrastructure

2018-05-29 Thread Ruhl, Michael J
>-Original Message- >From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- >ow...@vger.kernel.org] On Behalf Of Leon Romanovsky >Sent: Tuesday, May 29, 2018 9:09 AM >To: Doug Ledford ; Jason Gunthorpe > >Cc: Leon Romanovsky ; RDMA mailing list r...@vger.kernel.org>; Boris Pismenny ; Ma

Re: [PATCH bpf-next] bpf: clean up eBPF helpers documentation

2018-05-29 Thread Daniel Borkmann
On 05/29/2018 08:27 PM, Song Liu wrote: > On Tue, May 29, 2018 at 4:27 AM, Quentin Monnet > wrote: >> These are minor edits for the eBPF helpers documentation in >> include/uapi/linux/bpf.h. >> >> The main fix consists in removing "BPF_FIB_LOOKUP_", because it ends >> with a non-escaped underscore

Re: [PATCH bpf-next] bpf: Verify flags in bpf_fib_lookup

2018-05-29 Thread Daniel Borkmann
On 05/29/2018 08:59 PM, dsah...@kernel.org wrote: > From: David Ahern > > Verify flags argument contains only known flags. Allows programs to probe > for support as more are added. > > Signed-off-by: David Ahern Applied to bpf-next, thanks David!

Re: [PATCH bpf-next] bpf: Drop mpls from bpf_fib_lookup

2018-05-29 Thread Daniel Borkmann
On 05/29/2018 07:58 PM, dsah...@kernel.org wrote: > From: David Ahern > > MPLS support will not be submitted this dev cycle, but in working on it > I do see a few changes are needed to the API. For now, drop mpls from the > API. Since the fields in question are unions, the mpls fields can be adde

Re: [PATCH bpf-next 04/11] bpf: show prog and map id in fdinfo

2018-05-29 Thread Daniel Borkmann
On 05/29/2018 07:27 PM, Jesper Dangaard Brouer wrote: > On Mon, 28 May 2018 02:43:37 +0200 > Daniel Borkmann wrote: > >> Its trivial and straight forward to expose it for scripts that can >> then use it along with bpftool in order to inspect an individual >> application's used maps and progs. Rig

Re: [PATCH mlx5-next v2 11/13] IB/mlx5: Add flow counters binding support

2018-05-29 Thread Jason Gunthorpe
On Tue, May 29, 2018 at 04:09:15PM +0300, Leon Romanovsky wrote: > diff --git a/include/uapi/rdma/mlx5-abi.h b/include/uapi/rdma/mlx5-abi.h > index 508ea8c82da7..ef3f430a7050 100644 > +++ b/include/uapi/rdma/mlx5-abi.h > @@ -443,4 +443,18 @@ enum { > enum { > MLX5_IB_CLOCK_INFO_V1

Re: [PATCH] net: sched: split tc_ctl_tfilter into three handlers

2018-05-29 Thread David Miller
From: Vlad Buslov Date: Sun, 27 May 2018 22:55:03 +0300 > tc_ctl_tfilter handles three netlink message types: RTM_NEWTFILTER, > RTM_DELTFILTER, RTM_GETTFILTER. However, implementation of this function > involves a lot of branching on specific message type because most of the > code is message-spe

Re: [PATCH rdma-next 0/3] Introduce new mlx5 CQE format

2018-05-29 Thread Jason Gunthorpe
On Sun, May 27, 2018 at 01:42:31PM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > Introduce new internal to mlx5 CQE format - mini-CQE. It is a CQE in > compressed form that holds data needed to extra a single full CQE. > > It stride index, byte count and packet checksum. > > Thanks

Re: [PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter to ioctl() infrastructure

2018-05-29 Thread Jason Gunthorpe
On Tue, May 29, 2018 at 07:31:22PM +, Ruhl, Michael J wrote: > >-struct ib_uverbs_destroy_cq_resp resp; > > struct ib_uobject *uobj = > >-uverbs_attr_get(attrs, > >UVERBS_ATTR_DESTROY_CQ_HANDLE)->obj_attr.uobject; > >-struct ib_ucq_object *obj = container_of(uobj, struct

[PATCH bpf-next] bpftool: Support sendmsg{4,6} attach types

2018-05-29 Thread Andrey Ignatov
Add support for recently added BPF_CGROUP_UDP4_SENDMSG and BPF_CGROUP_UDP6_SENDMSG attach types to bpftool, update documentation and bash completion. Signed-off-by: Andrey Ignatov --- I'm not sure about "since 4.18" in Documentation part. I can follow-up when the next kernel version is known. ---

Re: [PATCH net-next 1/3] net: Add support to configure SR-IOV VF minimum and maximum queues.

2018-05-29 Thread Samudrala, Sridhar
On 5/29/2018 1:18 AM, Michael Chan wrote: VF Queue resources are always limited and there is currently no infrastructure to allow the admin. on the host to add or reduce queue resources for any particular VF. With ever increasing number of VFs being supported, it is desirable to allow the admin.

RE: [PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter to ioctl() infrastructure

2018-05-29 Thread Ruhl, Michael J
>-Original Message- >From: Jason Gunthorpe [mailto:j...@mellanox.com] >Sent: Tuesday, May 29, 2018 4:21 PM >To: Ruhl, Michael J >Cc: Leon Romanovsky ; Doug Ledford >; Leon Romanovsky ; RDMA >mailing list ; Boris Pismenny >; Matan Barak ; Raed >Salem ; Yishai Hadas ; Saeed >Mahameed ; linux

Re: [PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter to ioctl() infrastructure

2018-05-29 Thread Jason Gunthorpe
On Tue, May 29, 2018 at 08:49:58PM +, Ruhl, Michael J wrote: > >From: Jason Gunthorpe [mailto:j...@mellanox.com] > >Sent: Tuesday, May 29, 2018 4:21 PM > >To: Ruhl, Michael J > >Cc: Leon Romanovsky ; Doug Ledford > >; Leon Romanovsky ; RDMA > >mailing list ; Boris Pismenny > >; Matan Barak ; R

Re: [PATCH mlx5-next 1/3] net/mlx5: Exposing a new mini-CQE format

2018-05-29 Thread Saeed Mahameed
On Sun, 2018-05-27 at 13:42 +0300, Leon Romanovsky wrote: > From: Yonatan Cohen > > The new mini-CQE format includes byte-count, checksum > and stride index. > > Reviewed-by: Yishai Hadas > Reviewed-by: Guy Levi > Signed-off-by: Yonatan Cohen > Signed-off-by: Leon Romanovsky Applied to mlx

Re: [PATCH net-next 0/7] net/ipv6: Fix route append and replace use cases

2018-05-29 Thread Thomas Winter
The only thing this breaks is adding IPv6 routes via ioctl. Previously they would be automatically appended to form multipath routes but this no longer occurs. Changing to netlink or use iproute2 and using NLM_F_APPEND gets around this. This basically what David Ahern said earlier but I wanted t

Re: [PATCH bpf-next] bpftool: Support sendmsg{4,6} attach types

2018-05-29 Thread Jakub Kicinski
On Tue, 29 May 2018 13:29:31 -0700, Andrey Ignatov wrote: > Add support for recently added BPF_CGROUP_UDP4_SENDMSG and > BPF_CGROUP_UDP6_SENDMSG attach types to bpftool, update documentation > and bash completion. > > Signed-off-by: Andrey Ignatov Reviewed-by: Jakub Kicinski > I'm not sure abo

Re: [PATCH mlx5-next 1/3] net/mlx5: Exposing a new mini-CQE format

2018-05-29 Thread Jason Gunthorpe
On Tue, May 29, 2018 at 03:01:27PM -0600, Saeed Mahameed wrote: > On Sun, 2018-05-27 at 13:42 +0300, Leon Romanovsky wrote: > > From: Yonatan Cohen > > > > The new mini-CQE format includes byte-count, checksum > > and stride index. > > > > Reviewed-by: Yishai Hadas > > Reviewed-by: Guy Levi >

Re: [PATCH net-next 0/8] nfp: offload LAG for tc flower egress

2018-05-29 Thread Jiri Pirko
Tue, May 29, 2018 at 04:08:48PM CEST, john.hur...@netronome.com wrote: >On Sat, May 26, 2018 at 3:47 AM, Jakub Kicinski > wrote: >> On Fri, 25 May 2018 08:48:09 +0200, Jiri Pirko wrote: >>> Thu, May 24, 2018 at 04:22:47AM CEST, jakub.kicin...@netronome.com wrote: >>> >Hi! >>> > >>> >This series fro

Re: [PATCH bpf-next] bpftool: Support sendmsg{4,6} attach types

2018-05-29 Thread Song Liu
On Tue, May 29, 2018 at 2:20 PM, Jakub Kicinski wrote: > On Tue, 29 May 2018 13:29:31 -0700, Andrey Ignatov wrote: >> Add support for recently added BPF_CGROUP_UDP4_SENDMSG and >> BPF_CGROUP_UDP6_SENDMSG attach types to bpftool, update documentation >> and bash completion. >> >> Signed-off-by: And

Re: [PATCH bpf-next 11/11] bpf, doc: add missing patchwork url and libbpf to maintainers

2018-05-29 Thread Song Liu
On Sun, May 27, 2018 at 5:43 PM, Daniel Borkmann wrote: > Add missing bits under tools/lib/bpf/ and also Q: entry in order to > make it easier for people to retrieve current patch queue. > > Signed-off-by: Daniel Borkmann > Acked-by: Alexei Starovoitov Acked-by: Song Liu > --- > MAINTAINERS

[PATCH mlx5-next 2/2] net/mlx5: Add FPGA QP error event

2018-05-29 Thread Saeed Mahameed
From: Ilan Tayari The FPGA QP event fires whenever a QP on the FPGA trasitions to the error state. At this stage, this event is unrecoverable, it may become recoverable in the future. Signed-off-by: Ilan Tayari Signed-off-by: Adi Nissim Signed-off-by: Saeed Mahameed --- drivers/net/ethernet

[PATCH mlx5-next 1/2] net/mlx5: Add temperature warning event to log

2018-05-29 Thread Saeed Mahameed
From: Ilan Tayari Temperature warning event is sent by FW to indicate high temperature as detected by one of the sensors on the board. Add handling of this event by writing the numbers of the alert sensors to the kernel log. Signed-off-by: Ilan Tayari Signed-off-by: Adi Nissim Signed-off-by: S

[PATCH mlx5-next 0/2] Mellanox, mlx5 new device events

2018-05-29 Thread Saeed Mahameed
Hi, The following series is for mlx5-next tree [1], it adds the support of two new device events, from Ilan Tayari: 1. High temperature warnings. 2. FPGA QP error event. In case of no objection this series will be applied to mlx5-next tree and will be sent later as a pull request to both rdma a

[PATCH] ixgbe: check ipsec ip addr against mgmt filter

2018-05-29 Thread Shannon Nelson
Make sure we don't try to offload the decryption of an incoming packet that should get delivered to the management engine. This is a corner case that will likely be very seldom seen, but could really confuse someone if they were to hit it. Suggested-by: Jesse Brandeburg Signed-off-by: Shannon Ne

[pull request][net-next 0/7] Mellanox, mlx5e & FPGA updates 2018-05-29

2018-05-29 Thread Saeed Mahameed
Hi Dave, The following series includes some minor FPGA and mlx5e netdev updates, for more information please see tag log below. Please pull and let me know if there's any problem. Note: This series doesn't include nor require any mlx5-next shared code and can be applied as is to net-next tree.

  1   2   >