Re: [PATCH net 0/3] bnxt_en: Bug fixes.

2018-09-03 Thread Michael Chan
On Mon, Sep 3, 2018 at 10:01 PM, David Miller wrote: > > From: Michael Chan > Date: Mon, 3 Sep 2018 04:23:16 -0400 > > > This short series fixes resource related logic in the driver, mostly > > affecting the RDMA driver under corner cases. > > Series applied, thanks Michael. > > Do you want

Why not use all the syn queues? in the function "tcp_conn_request", I have some questions.

2018-09-03 Thread Ttttabcd
Hello everyone,recently I am looking at the source code for handling TCP three-way handshake(Linux Kernel version 4.18.5). I found some strange places in the source code for handling syn messages. in the function "tcp_conn_request" This code will be executed when we don't enable the syn

Re: [PATCH v3 0/6] Ethernet over hdlc

2018-09-03 Thread David Miller
From: David Gounaris Date: Mon, 3 Sep 2018 14:47:24 +0200 > Here is what has been changed in v3 after the review comments from v2. > > v3-0001: corrected style problems > v3-0002: corrected style problems > v3-0003: corrected style problems > v3-0004: corrected style problems > v3-0005:

Re: pull-request: mac80211 2018-09-03

2018-09-03 Thread David Miller
From: Johannes Berg Date: Mon, 3 Sep 2018 14:15:45 +0200 > This time around for mac80211 I have a larger than usual number of > fixes, in part because Luca dumped our (Intel's) patches out after > quite a while - we'll try to make sure this doesn't happen again. > > Shortlog below, as usual,

Re: [PATCH net-next v2] cxgb4: collect hardware queue descriptors

2018-09-03 Thread David Miller
From: Rahul Lakkireddy Date: Mon, 3 Sep 2018 17:41:29 +0530 > Collect descriptors of all ULD and LLD hardware queues managed > by LLD. > > Signed-off-by: Rahul Lakkireddy > Signed-off-by: Ganesh Goudar > --- > v2: > - Move inline functions to header file. > - Add missing undefine for

Re: [PATCH net-next] cxgb4: when max_tx_rate is 0 disable tx rate limiting

2018-09-03 Thread David Miller
From: Ganesh Goudar Date: Mon, 3 Sep 2018 16:21:46 +0530 > in ndo_set_vf_rate() when max_tx_rate is 0 disable tx > rate limiting for that vf. > > Signed-off-by: Casey Leedom > Signed-off-by: Ganesh Goudar Applied, thanks.

Re: [PATCH v2 00/11] mscc: ocelot: add support for SerDes muxing configuration

2018-09-03 Thread David Miller
From: Alexandre Belloni Date: Mon, 3 Sep 2018 15:45:22 +0200 > On 03/09/2018 15:34:15+0200, Andrew Lunn wrote: >> > I suggest patches 1 and 8 go through MIPS tree, 2 to 5 and 11 go through >> > net while the others (6, 7, 9 and 10) go through the generic PHY subsystem. >> >> Hi Quentin >> >>

Re: [PATCH net-next 00/11] Misc. bug fixes & small enhancements for HNS3 Driver

2018-09-03 Thread David Miller
From: Salil Mehta Date: Mon, 3 Sep 2018 11:21:45 +0100 > This patch-set presents some fixes and minor enhancements to HNS3 > Driver Series applied, thank you.

Re: [PATCH net-next 2/2] tipc: correct spelling errors for tipc_topsrv_queue_evt() comments

2018-09-03 Thread David Miller
From: Zhenbo Gao Date: Mon, 3 Sep 2018 16:36:46 +0800 > tipc_conn_queue_evt -> tipc_topsrv_queue_evt > tipc_send_work -> tipc_conn_send_work > tipc_send_to_sock -> tipc_conn_send_to_sock > > Signed-off-by: Zhenbo Gao > Reviewed-by: Ying Xue Applied.

Re: [PATCH net-next 1/2] tipc: correct spelling errors for struct tipc_bc_base's comment

2018-09-03 Thread David Miller
From: Zhenbo Gao Date: Mon, 3 Sep 2018 16:36:45 +0800 > Trivial fix for two spelling mistakes. > > Signed-off-by: Zhenbo Gao > Reviewed-by: Ying Xue Applied.

Re: [PATCH net 0/3] bnxt_en: Bug fixes.

2018-09-03 Thread David Miller
From: Michael Chan Date: Mon, 3 Sep 2018 04:23:16 -0400 > This short series fixes resource related logic in the driver, mostly > affecting the RDMA driver under corner cases. Series applied, thanks Michael. Do you want patch #3 queued up for -stable?

Re: [PATCH net 0/2] sctp: two fixes for spp_ipv6_flowlabel and spp_dscp sockopts

2018-09-03 Thread David Miller
From: Marcelo Ricardo Leitner Date: Mon, 3 Sep 2018 19:06:06 -0300 > On Mon, Sep 03, 2018 at 03:47:09PM +0800, Xin Long wrote: >> This patchset fixes two problems in sctp_apply_peer_addr_params() >> when setting spp_ipv6_flowlabel or spp_dscp. >> >> Xin Long (2): >> sctp: fix invalid

Re: [PATCH v2] net/ibm/emac: wrong emac_calc_base call was used by typo

2018-09-03 Thread David Miller
From: Ivan Mikhaylov Date: Mon, 3 Sep 2018 10:26:28 +0300 > __emac_calc_base_mr1 was used instead of __emac4_calc_base_mr1 > by copy-paste mistake for emac4syn. > > Fixes: 45d6e545505fd32edb812f085be7de45b6a5c0af ("net/ibm/emac: add 8192 > rx/tx fifo size") > Signed-off-by: Ivan Mikhaylov

Re: [PATCH 00/25] Change tty_port(standard)_install's return type

2018-09-03 Thread Sam Ravnborg
Hi Jaejoong. > Change return type for tty functions. Patch No.01 > tty: Change return type to void Adding this patch first will generate a lot of warnings until all users are updated. It is usual practice to prepare all users and then apply the infrastructure changes as the last patch. Then

Re: [PATCH net-next] net: sched: null actions array pointer before releasing action

2018-09-03 Thread David Miller
From: Cong Wang Date: Mon, 3 Sep 2018 11:18:43 -0700 > On Mon, Sep 3, 2018 at 12:05 AM Vlad Buslov wrote: >> >> Currently, tcf_action_delete() nulls actions array pointer after putting >> and deleting it. However, if tcf_idr_delete_index() returns an error, >> pointer to action is not set to

Re: [PATCH net-next v1 3/5] ipv4: enable IFA_IF_NETNSID for RTM_GETADDR

2018-09-03 Thread David Ahern
On 9/2/18 10:37 PM, Christian Brauner wrote: > - Backwards Compatibility: > If userspace wants to determine whether ipv4 RTM_GETADDR requests support > the new IFA_IF_NETNSID property they should verify that the reply after > sending a request includes the IFA_IF_NETNSID property. If it does

Re: [PATCH net-next 10/12] net: ethernet: Add helper for set_pauseparam for Asym Pause

2018-09-03 Thread Florian Fainelli
On 09/03/18 12:58, Andrew Lunn wrote: >> Don't you want to go one step further and incorporate the logic that xgenet, >> tg3, gianfar and others have? That is: look at the currently advertised >> parameters, determine what changed, and re-start auto-negotiation as a >> result of it being

Re: [PATCH net-next] veth: report NEWLINK event when moving the peer device in a new namespace

2018-09-03 Thread David Ahern
On 9/3/18 3:10 AM, Thomas Haller wrote: > Hi, > > On Sat, 2018-09-01 at 17:45 -0600, David Ahern wrote: >> On 9/1/18 3:05 AM, Lorenzo Bianconi wrote: >>> >>> I was thinking about the commit 38e01b30563a and then I realized I >>> misread the code >>> yesterday. The commit 38e01b30563a provides all

[PATCH v2 net-next] failover: Add missing check to validate 'slave_dev' in net_failover_slave_unregister

2018-09-03 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/net_failover.c: In function 'net_failover_slave_unregister': drivers/net/net_failover.c:598:35: warning: variable 'primary_dev' set but not used [-Wunused-but-set-variable] There should check the validity of 'slave_dev'. Fixes:

[PATCH 10/25] tty: synclink: Change return type to void

2018-09-03 Thread Jaejoong Kim
Since tty_port_install() always returns 0, the return type has changed to void. Now apply this and remove the obsolete error check. Signed-off-by: Jaejoong Kim --- drivers/tty/synclink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/synclink.c

[PATCH 16/25] isdn: capi: Change return type to void

2018-09-03 Thread Jaejoong Kim
Since tty_standard_install() always returns 0, the return type has changed to void. Now apply this and remove the obsolete error check. Signed-off-by: Jaejoong Kim --- drivers/isdn/capi/capi.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git

Re: [PATCH net-next 00/12] Preparing for phylib limkmodes

2018-09-03 Thread David Miller
From: Andrew Lunn Date: Sun, 2 Sep 2018 19:06:29 +0200 > phylib currently makes us of a u32 bitmap for advertising, supported, > and link partner capabilities. For a long time, this has been > sufficient, for devices up to 1Gbps. With more MAC/PHY combinations > now supporting speeds greater

[PATCH net] net: phy: sfp: Handle unimplemented hwmon limits and alarms

2018-09-03 Thread Andrew Lunn
Not all SFPs implement the registers containing sensor limits and alarms. Luckily, there is a bit indicating if they are implemented or not. Add checking for this bit, when deciding if the hwmon attributes should be visible. Fixes: 1323061a018a ("net: phy: sfp: Add HWMON support for module

Re: [PATCH net] ip6_tunnel: respect ttl inherit for ip6tnl

2018-09-03 Thread David Miller
From: Hangbin Liu Date: Fri, 31 Aug 2018 16:52:01 +0800 > man ip-tunnel ttl section says: > 0 is a special value meaning that packets inherit the TTL value. > > IPv4 tunnel respect this in ip_tunnel_xmit(), but IPv6 tunnel has not > implement it yet. To make IPv6 behave consistently with IP

Re: [PATCH net-next 01/12] net: phy: ste10Xp: Remove wrong SUPPORTED_Pause

2018-09-03 Thread Andrew Lunn
On Mon, Sep 03, 2018 at 10:53:58AM -0700, Florian Fainelli wrote: > > > On 9/2/2018 10:06 AM, Andrew Lunn wrote: > >The PHY driver should not indicate that Pause is supported. It is upto > >the MAC drive enable it, if it supports Pause frames. So remove it > >from the ste10Xp driver. > > This

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

2018-09-03 Thread Roopa Prabhu
On Sun, Sep 2, 2018 at 4:18 AM, Patrick Ruddy wrote: > Hi Roopa > > inline > > thx > > -pr > > On Fri, 2018-08-31 at 09:29 -0700, Roopa Prabhu wrote: >> On Fri, Aug 31, 2018 at 4:20 AM, Patrick Ruddy >> wrote: >> > Some userspace applications need to know about IGMP joins from the kernel >> >

Re: [PATCH net 0/2] sctp: two fixes for spp_ipv6_flowlabel and spp_dscp sockopts

2018-09-03 Thread Marcelo Ricardo Leitner
On Mon, Sep 03, 2018 at 03:47:09PM +0800, Xin Long wrote: > This patchset fixes two problems in sctp_apply_peer_addr_params() > when setting spp_ipv6_flowlabel or spp_dscp. > > Xin Long (2): > sctp: fix invalid reference to the index variable of the iterator > sctp: not traverse asoc trans

[PATCH net-next v2] net: sched: action_ife: take reference to meta module

2018-09-03 Thread Vlad Buslov
Recent refactoring of add_metainfo() caused use_all_metadata() to add metainfo to ife action metalist without taking reference to module. This causes warning in module_put called from ife action cleanup function. Implement add_metainfo_and_get_ops() function that returns with reference to module

Re: [bpf-next 1/3] flow_dissector: implements flow dissector BPF hook

2018-09-03 Thread Petar Penkov
On Sun, Sep 2, 2018 at 2:03 PM, Daniel Borkmann wrote: > On 08/30/2018 08:22 PM, Petar Penkov wrote: >> From: Petar Penkov >> >> Adds a hook for programs of type BPF_PROG_TYPE_FLOW_DISSECTOR and >> attach type BPF_FLOW_DISSECTOR that is executed in the flow dissector >> path. The BPF program is

Re: [PATCH net-next] net: sched: change tcf_del_walker() to use concurrent-safe delete

2018-09-03 Thread Vlad Buslov
On Mon 03 Sep 2018 at 18:50, Cong Wang wrote: > On Mon, Sep 3, 2018 at 12:06 AM Vlad Buslov wrote: >> >> Action API was changed to work with actions and action_idr in concurrency >> safe manner, however tcf_del_walker() still uses actions without taking >> reference to them first and deletes

Re: [PATCH net-next 10/12] net: ethernet: Add helper for set_pauseparam for Asym Pause

2018-09-03 Thread Andrew Lunn
> Don't you want to go one step further and incorporate the logic that xgenet, > tg3, gianfar and others have? That is: look at the currently advertised > parameters, determine what changed, and re-start auto-negotiation as a > result of it being enabled and something changed? Hi Florian Given

Re: [Patch net] tipc: call start and done ops directly in __tipc_nl_compat_dumpit()

2018-09-03 Thread Cong Wang
On Mon, Sep 3, 2018 at 12:49 PM Cong Wang wrote: > > __tipc_nl_compat_dumpit() uses a netlink_callback on stack, > so the only way to align it with other ->dumpit() call path > is calling tipc_dump_start() and tipc_dump_done() directly > inside it. Otherwise ->dumpit() would always get NULL from

Re: [PATCH v2 net-next 7/7] net: dsa: Add Lantiq / Intel DSA driver for vrx200

2018-09-03 Thread Florian Fainelli
On 9/1/2018 5:05 AM, Hauke Mehrtens wrote: This adds the DSA driver for the GSWIP Switch found in the VRX200 SoC. This switch is integrated in the DSL SoC, this SoC uses a GSWIP version 2.1, there are other SoCs using different versions of this IP block, but this driver was only tested with

Re: [PATCH net-next 09/12] net: ethernet: Add helper for MACs which support pause

2018-09-03 Thread Andrew Lunn
On Mon, Sep 03, 2018 at 10:39:04AM -0700, Florian Fainelli wrote: > > > On 9/2/2018 10:06 AM, Andrew Lunn wrote: > >Rather than have the MAC drivers manipulate phydev members, add a > >helper function for MACs supporting Pause, but not Asym Pause. > > > >Signed-off-by: Andrew Lunn > >

[Patch net] tipc: call start and done ops directly in __tipc_nl_compat_dumpit()

2018-09-03 Thread Cong Wang
__tipc_nl_compat_dumpit() uses a netlink_callback on stack, so the only way to align it with other ->dumpit() call path is calling tipc_dump_start() and tipc_dump_done() directly inside it. Otherwise ->dumpit() would always get NULL from cb->args[0]. Fixes: 9a07efa9aea2 ("tipc: switch to

Re: [PATCH v2 net-next 4/7] dt-bindings: net: Add lantiq,xrx200-net DT bindings

2018-09-03 Thread Florian Fainelli
On 9/1/2018 5:04 AM, Hauke Mehrtens wrote: This adds the binding for the PMAC core between the CPU and the GSWIP switch found on the xrx200 / VR9 Lantiq / Intel SoC. Signed-off-by: Hauke Mehrtens Cc: devicet...@vger.kernel.org --- .../devicetree/bindings/net/lantiq,xrx200-net.txt | 21

Re: [PATCH v2 net-next 5/7] net: lantiq: Add Lantiq / Intel VRX200 Ethernet driver

2018-09-03 Thread Florian Fainelli
On 9/1/2018 5:04 AM, Hauke Mehrtens wrote: This drives the PMAC between the GSWIP Switch and the CPU in the VRX200 SoC. This is currently only the very basic version of the Ethernet driver. When the DMA channel is activated we receive some packets which were send to the SoC while it was

Re: [PATCH v2 net-next 3/7] net: dsa: Add Lantiq / Intel GSWIP tag support

2018-09-03 Thread Florian Fainelli
On 9/1/2018 5:03 AM, Hauke Mehrtens wrote: This handles the tag added by the PMAC on the VRX200 SoC line. The GSWIP uses internally a GSWIP special tag which is located after the Ethernet header. The PMAC which connects the GSWIP to the CPU converts this special tag used by the GSWIP into

Re: [PATCH net-next] net: sched: change tcf_del_walker() to use concurrent-safe delete

2018-09-03 Thread Cong Wang
On Mon, Sep 3, 2018 at 12:06 AM Vlad Buslov wrote: > > Action API was changed to work with actions and action_idr in concurrency > safe manner, however tcf_del_walker() still uses actions without taking > reference to them first and deletes them directly, disregarding possible > concurrent

[RFC PATCH bpf-next 4/4] tools/bpf: bpftool: add net support

2018-09-03 Thread Yonghong Song
Add "bpftool net" support. Networking devices are enumerated to dump all xdp information. Also, for each networking device, tc classes and qdiscs are enumerated in order to check bpf filters with these classes and qdiscs. In addition, root handle and clsact ingress/egress are also checked for bpf

[RFC PATCH bpf-next 2/4] tools/bpf: move bpf/lib netlink related functions into a new file

2018-09-03 Thread Yonghong Song
There are no functionality change for this patch. In the subsequent patches, more netlink related library functions will be added and a separate file is better than cluttering bpf.c. Signed-off-by: Yonghong Song --- tools/lib/bpf/Build | 2 +- tools/lib/bpf/bpf.c | 129

[RFC PATCH bpf-next 3/4] tools/bpf: add more netlink functionalities in lib/bpf

2018-09-03 Thread Yonghong Song
This patch added a few netlink attribute parsing functions and the netlink API functions to query networking links, tc classes, tc qdiscs and tc filters. For example, the following API is to get networking links: int nl_get_link(int sock, unsigned int nl_pid, dump_nlmsg_t

[RFC PATCH bpf-next 0/4] tools/bpf: bpftool: add net support

2018-09-03 Thread Yonghong Song
The functionality to dump network driver and tc related bpf programs are added. Currently, users can already use "ip link show " and "tc filter show dev ..." to dump bpf program attachment information for xdp programs and tc bpf programs. The implementation here allows bpftool as a central place

[RFC PATCH bpf-next 1/4] tools/bpf: sync kernel uapi header if_link.h to tools

2018-09-03 Thread Yonghong Song
Among others, this header will be used later for bpftool net support. Signed-off-by: Yonghong Song --- tools/include/uapi/linux/if_link.h | 17 + 1 file changed, 17 insertions(+) diff --git a/tools/include/uapi/linux/if_link.h b/tools/include/uapi/linux/if_link.h index

Re: [PATCH net-next] net: sched: null actions array pointer before releasing action

2018-09-03 Thread Cong Wang
On Mon, Sep 3, 2018 at 12:05 AM Vlad Buslov wrote: > > Currently, tcf_action_delete() nulls actions array pointer after putting > and deleting it. However, if tcf_idr_delete_index() returns an error, > pointer to action is not set to null. That results it being released second > time in error

[Patch net] act_ife: fix a potential use-after-free

2018-09-03 Thread Cong Wang
Immediately after module_put(), user could delete this module, so e->ops could be already freed before we call e->ops->release(). Fix this by moving module_put() after ops->release(). Fixes: ef6980b6becb ("introduce IFE action") Cc: Jamal Hadi Salim Signed-off-by: Cong Wang ---

Re: [PATCH net-next 01/12] net: phy: ste10Xp: Remove wrong SUPPORTED_Pause

2018-09-03 Thread Florian Fainelli
On 9/2/2018 10:06 AM, Andrew Lunn wrote: The PHY driver should not indicate that Pause is supported. It is upto the MAC drive enable it, if it supports Pause frames. So remove it from the ste10Xp driver. This came up before when Timur was cleaning up the Pause|ASym_Pause advertisment bits,

Re: [PATCH net-next 12/12] net: ethernet: Add helper to determine if pause configuration is supported

2018-09-03 Thread Florian Fainelli
On 9/2/2018 10:06 AM, Andrew Lunn wrote: Rather than have MAC drivers open code the test, add a helper in phylib. This will help when we change the type of phydev->supported. Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 11/12] net: ethernet: Add helper for set_pauseparam for Pause

2018-09-03 Thread Florian Fainelli
On 9/2/2018 10:06 AM, Andrew Lunn wrote: ethtool can be used to enable/disable pause. Add a helper to configure the PHY when Pause is supported. One comment, see below: [snip] +/** + * phy_set_pause - Configure Pause + * @phydev: target phy_device struct + * @rx: Receiver Pause is

Re: [PATCH net-next 10/12] net: ethernet: Add helper for set_pauseparam for Asym Pause

2018-09-03 Thread Florian Fainelli
On 9/2/2018 10:06 AM, Andrew Lunn wrote: ethtool can be used to enable/disable pause. Add a helper to configure the PHY when asym pause is supported. Don't you want to go one step further and incorporate the logic that xgenet, tg3, gianfar and others have? That is: look at the currently

Re: [PATCH net-next 02/12] net: phy: et1011c: Remove incorrect missing 1000 Half

2018-09-03 Thread Florian Fainelli
On 9/2/2018 10:06 AM, Andrew Lunn wrote: The driver indicates it can do 10/100 full and half duplex, plus 1G Full. The datasheet indicates 1G half is also supported. So make use of the standard PHY_GBIT_FEATURES. It could be, this was added because there is a MAC which does not support 1G

[PATCH mlx5-next] net/mlx5: Add memic command opcode to command checker

2018-09-03 Thread Leon Romanovsky
From: Ariel Levkovich Adding the alloc/dealloc memic FW command opcodes to avoid "unknown command" prints in the command string converter and internal error status handler. Signed-off-by: Ariel Levkovich Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 4

Re: [PATCH net-next] net: sched: action_ife: take reference to meta module

2018-09-03 Thread Cong Wang
On Mon, Sep 3, 2018 at 12:10 AM Vlad Buslov wrote: > > Recent refactoring of add_metainfo() caused use_all_metadata() to add > metainfo to ife action metalist without taking reference to module. This > causes warning in module_put called from ife action cleanup function. > > Implement

Re: [PATCH net-next 09/12] net: ethernet: Add helper for MACs which support pause

2018-09-03 Thread Florian Fainelli
On 9/2/2018 10:06 AM, Andrew Lunn wrote: Rather than have the MAC drivers manipulate phydev members, add a helper function for MACs supporting Pause, but not Asym Pause. Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli I wonder if this would be better named

Re: [PATCH net-next 08/12] net: ethernet: Add helper for MACs which support asym pause

2018-09-03 Thread Florian Fainelli
On 9/2/2018 10:06 AM, Andrew Lunn wrote: Rather than have the MAC drivers manipulate phydev members to indicate they support Asym Pause, add a helper function. Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli Just one nit in tg3.c: diff --git

Re: [PATCH net-next] net: sched: action_ife: take reference to meta module

2018-09-03 Thread Cong Wang
On Mon, Sep 3, 2018 at 10:12 AM Vlad Buslov wrote: > > > On Mon 03 Sep 2018 at 17:03, Cong Wang wrote: > > On Mon, Sep 3, 2018 at 12:10 AM Vlad Buslov wrote: > >> > >> Recent refactoring of add_metainfo() caused use_all_metadata() to add > >> metainfo to ife action metalist without taking

Re: [PATCH net-next 07/12] net: ethernet: Add helper to remove a supported link mode

2018-09-03 Thread Florian Fainelli
On 9/2/2018 10:06 AM, Andrew Lunn wrote: Some MAC hardware cannot support a subset of link modes. e.g. often 1Gbps Full duplex is supported, but Half duplex is not. Add a helper to remove such a link mode. Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 06/12] net: ethernet: Fix up drivers masking pause support

2018-09-03 Thread Florian Fainelli
On 9/2/2018 10:06 AM, Andrew Lunn wrote: PHY drivers don't indicate they support pause. They expect MAC drivers to enable its support if the MAC has the needed hardware. Thus MAC drivers should not mask Pause support, but enable it. Change a few ANDs to ORs. Signed-off-by: Andrew Lunn

Re: [PATCH net-next 05/12] net: ethernet: genet: Fix speed selection

2018-09-03 Thread Florian Fainelli
On 9/2/2018 10:06 AM, Andrew Lunn wrote: The phy supported speed is being used to determine if the MAC should be configured to 100 or 1G. The masking logic is broken. Instead, look 1G supported speeds to enable 1G MAC support. Signed-off-by: Andrew Lunn ---

Re: [PATCH net-next 04/12] net: ethernet: Use phy_set_max_speed() to limit advertised speed

2018-09-03 Thread Florian Fainelli
On 9/2/2018 10:06 AM, Andrew Lunn wrote: Many Ethernet MAC drivers want to limit the PHY to only advertise a maximum speed of 100Mbs or 1Gbps. Rather than using a mask, make use of the helper function phy_set_max_speed(). Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli --

Re: [PATCH net-next 03/12] net: phy: bcm63xx: Allow to be built with COMPILE_TEST

2018-09-03 Thread Florian Fainelli
On 9/2/2018 10:06 AM, Andrew Lunn wrote: There is nothing in this driver which prevents it to be compiled for other architectures. Add COMPILE_TEST so we get better compile test coverage. Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

[PATCH mlx5-next] net/mlx5: Fix atomic_mode enum values

2018-09-03 Thread Leon Romanovsky
From: Moni Shoua The field atomic_mode is 4 bits wide and therefore can hold values from 0x0 to 0xf. Remove the unnecessary 20 bit shift that made the values be incorrect. While that, remove unused enum values. Fixes: 57cda166bbe0 ("net/mlx5: Add DCT command interface") Signed-off-by: Moni

Re: [PATCH net-next] net: sched: action_ife: take reference to meta module

2018-09-03 Thread Vlad Buslov
On Mon 03 Sep 2018 at 17:03, Cong Wang wrote: > On Mon, Sep 3, 2018 at 12:10 AM Vlad Buslov wrote: >> >> Recent refactoring of add_metainfo() caused use_all_metadata() to add >> metainfo to ife action metalist without taking reference to module. This >> causes warning in module_put called from

Re: [PATCH net-next] net: sched: action_ife: take reference to meta module

2018-09-03 Thread Cong Wang
On Mon, Sep 3, 2018 at 12:10 AM Vlad Buslov wrote: > > Recent refactoring of add_metainfo() caused use_all_metadata() to add > metainfo to ife action metalist without taking reference to module. This > causes warning in module_put called from ife action cleanup function. > > Implement

Re: [PATCH net-next 1/2] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-03 Thread Jerome Brunet
On Mon, 2018-09-03 at 16:19 +0100, Jose Abreu wrote: > On 03-09-2018 15:07, Jerome Brunet wrote: > > > > You had it on what you sent in the RFT, but this different. > > Yeah, I had to fix the logic where tx queues != rx queues... > > > > > Like with the RFT, the network breakdown we had is no

[PATCH v3 3/3] IB/ipoib: Log sysfs 'dev_id' accesses from userspace

2018-09-03 Thread Arseny Maslennikov
Signed-off-by: Arseny Maslennikov --- drivers/infiniband/ulp/ipoib/ipoib_main.c | 38 +++ 1 file changed, 38 insertions(+) diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 30f840f874b3..7386e5bde3d3 100644 ---

[PATCH v3 1/3] Documentation/ABI: document /sys/class/net/*/dev_port

2018-09-03 Thread Arseny Maslennikov
The sysfs field was introduced 4 years ago along with fixes to various drivers that erroneously used `dev_id' for that purpose, but it was not properly documented anywhere. See commit v3.14-rc3-739-g3f85944fe207. Signed-off-by: Arseny Maslennikov --- Documentation/ABI/testing/sysfs-class-net |

[PATCH v3 2/3] IB/ipoib: Use dev_port to expose network interface port numbers

2018-09-03 Thread Arseny Maslennikov
Some InfiniBand network devices have multiple ports on the same PCI function. This initializes the `dev_port' sysfs field of those network interfaces with their port number. Prior to this the kernel erroneously used the `dev_id' sysfs field of those network interfaces to convey the port number to

[PATCH v3 0/3] IB/ipoib: Use dev_port to disambiguate port numbers

2018-09-03 Thread Arseny Maslennikov
Pre-3.15 userspace had trouble distinguishing different ports of a NIC on a single PCI bus/device/function. To solve this, a sysfs field `dev_port' was introduced quite a while ago (commit v3.14-rc3-739-g3f85944fe207), and some relevant device drivers were fixed to use it, but not in case of

Re: [RFT net-next] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-03 Thread Jose Abreu
On 03-09-2018 16:38, Jerome Brunet wrote: > On Mon, 2018-09-03 at 16:22 +0100, Jose Abreu wrote: >> On 03-09-2018 15:10, Jerome Brunet wrote: >>> On Mon, 2018-09-03 at 12:47 +0100, Jose Abreu wrote: On 03-09-2018 11:16, Jerome Brunet wrote: > No notable change. Rx is fine but Tx: > [

Re: [RFT net-next] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-03 Thread Jerome Brunet
On Mon, 2018-09-03 at 16:22 +0100, Jose Abreu wrote: > On 03-09-2018 15:10, Jerome Brunet wrote: > > On Mon, 2018-09-03 at 12:47 +0100, Jose Abreu wrote: > > > On 03-09-2018 11:16, Jerome Brunet wrote: > > > > No notable change. Rx is fine but Tx: > > > > [ 5] 3.00-4.00 sec 3.55 MBytes 29.8

Re: [RFT net-next] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-03 Thread Jose Abreu
On 03-09-2018 15:10, Jerome Brunet wrote: > On Mon, 2018-09-03 at 12:47 +0100, Jose Abreu wrote: >> On 03-09-2018 11:16, Jerome Brunet wrote: >>> No notable change. Rx is fine but Tx: >>> [ 5] 3.00-4.00 sec 3.55 MBytes 29.8 Mbits/sec 51 12.7 KBytes >>> >>> I suppose the problem as

[PATCH net] net/mlx5: Fix SQ offset in QPs with small RQ

2018-09-03 Thread Tariq Toukan
Correct the formula for calculating the RQ page remainder, which should be in byte granularity. The result will be non-zero only for RQs smaller than PAGE_SIZE, as an RQ size is a power of 2. Divide this by the SQ stride (MLX5_SEND_WQE_BB) to get the SQ offset in strides granularity. Fixes:

Re: [PATCH net-next 1/2] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-03 Thread Jose Abreu
On 03-09-2018 15:07, Jerome Brunet wrote: > > You had it on what you sent in the RFT, but this different. Yeah, I had to fix the logic where tx queues != rx queues... > > Like with the RFT, the network breakdown we had is no longer reproduced. > However this patch wreck the Rx throughput

[PATCH v2 net-next] packet: add sockopt to ignore outgoing packets

2018-09-03 Thread Vincent Whitchurch
Currently, the only way to ignore outgoing packets on a packet socket is via the BPF filter. With MSG_ZEROCOPY, packets that are looped into AF_PACKET are copied in dev_queue_xmit_nit(), and this copy happens even if the filter run from packet_rcv() would reject them. So the presence of a packet

Re: [PATCH v7 1/4] gpiolib: Pass bitmaps, not integer arrays, to get/set array

2018-09-03 Thread Geert Uytterhoeven
On Mon, Sep 3, 2018 at 6:31 AM Matthew Wilcox wrote: > > +++ b/drivers/auxdisplay/hd44780.c > > @@ -62,17 +62,12 @@ static void hd44780_strobe_gpio(struct hd44780 *hd) > > /* write to an LCD panel register in 8 bit GPIO mode */ > > static void hd44780_write_gpio8(struct hd44780 *hd, u8 val,

Re: [RFT net-next] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-03 Thread Jerome Brunet
On Mon, 2018-09-03 at 12:47 +0100, Jose Abreu wrote: > On 03-09-2018 11:16, Jerome Brunet wrote: > > No notable change. Rx is fine but Tx: > > [ 5] 3.00-4.00 sec 3.55 MBytes 29.8 Mbits/sec 51 12.7 KBytes > > > > I suppose the problem as something to do with the retries. When doing Tx

Re: [PATCH net-next 1/2] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-03 Thread Jerome Brunet
On Mon, 2018-09-03 at 14:35 +0100, Jose Abreu wrote: > This follows David Miller advice and tries to fix coalesce timer in > multi-queue scenarios. > > We are now using per-queue coalesce values and per-queue TX timer. > > Coalesce timer default values was changed to 1ms and the coalesce frames

Re: phys_port_id in switchdev mode?

2018-09-03 Thread Marcelo Ricardo Leitner
On Sat, Sep 01, 2018 at 01:34:12PM +0200, Jakub Kicinski wrote: > On Fri, 31 Aug 2018 17:13:22 -0300, Marcelo Ricardo Leitner wrote: > > On Tue, Aug 28, 2018 at 08:43:51PM +0200, Jakub Kicinski wrote: > > > Ugh, CC: netdev.. > > > > > > On Tue, 28 Aug 2018 20:05:39 +0200, Jakub Kicinski wrote:

[PATCH net-next 0/2] net: stmmac: Coalesce and tail addr fixes

2018-09-03 Thread Jose Abreu
The fix for coalesce timer and a fix in tail address setting that impacts XGMAC2 operation. Cc: Jerome Brunet Cc: Martin Blumenstingl Cc: David S. Miller Cc: Joao Pinto Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Jose Abreu (2): net: stmmac: Rework coalesce timer and fix multi-queue

[PATCH net-next 2/2] net: stmmac: Fixup the tail addr setting in xmit path

2018-09-03 Thread Jose Abreu
Currently we are always setting the tail address of descriptor list to the end of the pre-allocated list. According to databook this is not correct. Tail address should point to the last available descriptor + 1, which means we have to update the tail address everytime we call the xmit function.

[PATCH net-next 1/2] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-03 Thread Jose Abreu
This follows David Miller advice and tries to fix coalesce timer in multi-queue scenarios. We are now using per-queue coalesce values and per-queue TX timer. Coalesce timer default values was changed to 1ms and the coalesce frames to 25. Tested in B2B setup between XGMAC2 and GMAC5.

Re: [PATCH net] sctp: hold transport before accessing its asoc in sctp_transport_get_next

2018-09-03 Thread Neil Horman
On Fri, Aug 31, 2018 at 08:03:23AM -0400, Neil Horman wrote: > On Fri, Aug 31, 2018 at 03:09:05PM +0800, Xin Long wrote: > > On Wed, Aug 29, 2018 at 7:36 PM Neil Horman wrote: > > > > > > On Wed, Aug 29, 2018 at 12:08:40AM +0800, Xin Long wrote: > > > > On Mon, Aug 27, 2018 at 9:08 PM Neil Horman

[PATCH net-next v2] cxgb4: collect hardware queue descriptors

2018-09-03 Thread Rahul Lakkireddy
Collect descriptors of all ULD and LLD hardware queues managed by LLD. Signed-off-by: Rahul Lakkireddy Signed-off-by: Ganesh Goudar --- v2: - Move inline functions to header file. - Add missing undefine for QDESC_GET_* macros. drivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h | 42

Re: [RFT net-next] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-03 Thread Jose Abreu
On 03-09-2018 11:16, Jerome Brunet wrote: > No notable change. Rx is fine but Tx: > [ 5] 3.00-4.00 sec 3.55 MBytes 29.8 Mbits/sec 51 12.7 KBytes > > I suppose the problem as something to do with the retries. When doing Tx test > alone, we don't have such a things a throughput where we

Re: [PATCH RFC net-next 00/11] udp gso

2018-09-03 Thread Sowmini Varadhan
On (09/03/18 10:02), Steffen Klassert wrote: > I'm working on patches that builds such skb lists. The list is chained > at the frag_list pointer of the first skb, all subsequent skbs are linked > to the next pointer of the skb. It looks like this: there are some risks to using the frag_list

[PATCH V2 ipsec-next 2/2] xfrm: reset crypto_done when iterating over multiple input xfrms

2018-09-03 Thread Sowmini Varadhan
We only support one offloaded xfrm (we do not have devices that can handle more than one offload), so reset crypto_done in xfrm_input() when iterating over multiple transforms in xfrm_input, so that we can invoke the appropriate x->type->input for the non-offloaded transforms Fixes: d77e38e612a0

[PATCH V2 ipsec-next 0/2] xfrm: bug fixes when processing multiple transforms

2018-09-03 Thread Sowmini Varadhan
This series contains bug fixes that were encountered when I set up a libreswan tunnel using the config below, which will set up an IPsec policy involving 2 tmpls. type=transport compress=yes esp=aes_gcm_c-128-null # offloaded to Niantic auto=start The non-offload test case uses

[PATCH V2 ipsec-next 1/2] xfrm: reset transport header back to network header after all input transforms ahave been applied

2018-09-03 Thread Sowmini Varadhan
A policy may have been set up with multiple transforms (e.g., ESP and ipcomp). In this situation, the ingress IPsec processing iterates in xfrm_input() and applies each transform in turn, processing the nexthdr to find any additional xfrm that may apply. This patch resets the transport header

[PATCH net-next] cxgb4: when max_tx_rate is 0 disable tx rate limiting

2018-09-03 Thread Ganesh Goudar
in ndo_set_vf_rate() when max_tx_rate is 0 disable tx rate limiting for that vf. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git

Re: [RFT net-next] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-03 Thread Jerome Brunet
On Mon, 2018-09-03 at 10:36 +0100, Jose Abreu wrote: > Hi Jerome, > > On 03-09-2018 09:56, Jerome Brunet wrote: > > On Thu, 2018-08-30 at 11:37 +0100, Jose Abreu wrote: > > > [ As for now this is only for testing! ] > > > > > > This follows David Miller advice and tries to fix coalesce timer in

Re: phys_port_id in switchdev mode?

2018-09-03 Thread Or Gerlitz
On Fri, Aug 31, 2018 at 11:13 PM, Marcelo Ricardo Leitner wrote: > On Tue, Aug 28, 2018 at 08:43:51PM +0200, Jakub Kicinski wrote: >> Ugh, CC: netdev.. >> >> On Tue, 28 Aug 2018 20:05:39 +0200, Jakub Kicinski wrote: >> > Hi! >> > >> > I wonder if we can use phys_port_id in switchdev to group

Re: phys_port_id in switchdev mode?

2018-09-03 Thread Or Gerlitz
On Tue, Aug 28, 2018 at 9:05 PM, Jakub Kicinski wrote: > Hi! Hi Jakub and sorry for the late reply, this crazigly hot summer refuses to die, Note I replied couple of minutes ago but it didn't get to the list, so lets take it from this one: > I wonder if we can use phys_port_id in switchdev to

Re: [RFT net-next] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-03 Thread Jose Abreu
Hi Jerome, On 03-09-2018 09:56, Jerome Brunet wrote: > On Thu, 2018-08-30 at 11:37 +0100, Jose Abreu wrote: >> [ As for now this is only for testing! ] >> >> This follows David Miller advice and tries to fix coalesce timer in >> multi-queue scenarios. >> >> We are now using per-queue coalesce

Re: [PATCH net-next] veth: report NEWLINK event when moving the peer device in a new namespace

2018-09-03 Thread Thomas Haller
Hi, On Sat, 2018-09-01 at 17:45 -0600, David Ahern wrote: > On 9/1/18 3:05 AM, Lorenzo Bianconi wrote: > > > > I was thinking about the commit 38e01b30563a and then I realized I > > misread the code > > yesterday. The commit 38e01b30563a provides all relevant info but > > it > > emits the event

Re: [RFT net-next] net: stmmac: Rework coalesce timer and fix multi-queue races

2018-09-03 Thread Jerome Brunet
On Thu, 2018-08-30 at 11:37 +0100, Jose Abreu wrote: > [ As for now this is only for testing! ] > > This follows David Miller advice and tries to fix coalesce timer in > multi-queue scenarios. > > We are now using per-queue coalesce values and per-queue TX timer. This > assumes that tx_queues ==

[PATCH net 1/3] bnxt_en: Fix firmware signaled resource change logic in open.

2018-09-03 Thread Michael Chan
When the driver detects that resources have changed during open, it should reset the rx and tx rings to 0. This will properly setup the init sequence to initialize the default rings again. We also need to signal the RDMA driver to stop and clear its interrupts. We then call the RoCE driver to

[PATCH net 3/3] bnxt_en: Do not adjust max_cp_rings by the ones used by RDMA.

2018-09-03 Thread Michael Chan
Currently, the driver adjusts the bp->hw_resc.max_cp_rings by the number of MSIX vectors used by RDMA. There is one code path in open that needs to check the true max_cp_rings including any used by RDMA. This code is now checking for the reduced max_cp_rings which will fail when the number of cp

[PATCH net 0/3] bnxt_en: Bug fixes.

2018-09-03 Thread Michael Chan
This short series fixes resource related logic in the driver, mostly affecting the RDMA driver under corner cases. Michael Chan (3): bnxt_en: Fix firmware signaled resource change logic in open. bnxt_en: Clean up unused functions. bnxt_en: Do not adjust max_cp_rings by the ones used by

[PATCH net 2/3] bnxt_en: Clean up unused functions.

2018-09-03 Thread Michael Chan
Remove unused bnxt_subtract_ulp_resources(). Change bnxt_get_max_func_irqs() to static since it is only locally used. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 -

  1   2   >