[PATCH v3 0/2] IB:mad Use ID allocator routines to allocate agent number

2018-06-07 Thread Hans Westgaard Ry
v3: - Removed Oracle internal bug number information v2: - Implement ida_get_simple_cyclic and use it when allocating ib_mad_client_ids. Hans Westgaard Ry (2): idr: Add ida_simple_get_cyclic IB/mad: Use ID allocator routines to allocate agent number drivers/infiniband/core/mad.c | 24

[PATCH v3 0/2] IB:mad Use ID allocator routines to allocate agent number

2018-06-07 Thread Hans Westgaard Ry
v3: - Removed Oracle internal bug number information v2: - Implement ida_get_simple_cyclic and use it when allocating ib_mad_client_ids. Hans Westgaard Ry (2): idr: Add ida_simple_get_cyclic IB/mad: Use ID allocator routines to allocate agent number drivers/infiniband/core/mad.c | 24

[PATCH v3 2/2] IB/mad: Use ID allocator routines to allocate agent number

2018-06-07 Thread Hans Westgaard Ry
. The signature of the bug is a MAD layer that stops working and the console is flooded with messages like: mlx4_ib: egress mad has non-null tid msb:1 class:4 slave:0 Signed-off-by: Hans Westgaard Ry --- drivers/infiniband/core/mad.c | 25 + 1 file changed, 21 insertions

[PATCH v3 2/2] IB/mad: Use ID allocator routines to allocate agent number

2018-06-07 Thread Hans Westgaard Ry
. The signature of the bug is a MAD layer that stops working and the console is flooded with messages like: mlx4_ib: egress mad has non-null tid msb:1 class:4 slave:0 Signed-off-by: Hans Westgaard Ry --- drivers/infiniband/core/mad.c | 25 + 1 file changed, 21 insertions

[PATCH v3 1/2] idr: Add ida_simple_get_cyclic

2018-06-07 Thread Hans Westgaard Ry
Signed-off-by: Hans Westgaard Ry --- include/linux/idr.h | 8 +-- lib/idr.c | 66 + 2 files changed, 72 insertions(+), 2 deletions(-) diff --git a/include/linux/idr.h b/include/linux/idr.h index e856f4e0ab35..f151ce89124a 100644

[PATCH v3 1/2] idr: Add ida_simple_get_cyclic

2018-06-07 Thread Hans Westgaard Ry
Signed-off-by: Hans Westgaard Ry --- include/linux/idr.h | 8 +-- lib/idr.c | 66 + 2 files changed, 72 insertions(+), 2 deletions(-) diff --git a/include/linux/idr.h b/include/linux/idr.h index e856f4e0ab35..f151ce89124a 100644

[PATCH v2 1/2] idr: Add ida_simple_get_cyclic

2018-06-07 Thread Hans Westgaard Ry
Orabug: 25571450 Signed-off-by: Hans Westgaard Ry --- include/linux/idr.h | 8 +-- lib/idr.c | 66 + 2 files changed, 72 insertions(+), 2 deletions(-) diff --git a/include/linux/idr.h b/include/linux/idr.h index e856f4e0ab35

[PATCH v2 2/2] IB/mad: Use ID allocator routines to allocate agent number

2018-06-07 Thread Hans Westgaard Ry
. The signature of the bug is a MAD layer that stops working and the console is flooded with messages like: mlx4_ib: egress mad has non-null tid msb:1 class:4 slave:0 Orabug: 25571450 Signed-off-by: Hans Westgaard Ry --- drivers/infiniband/core/mad.c | 25 + 1 file

[PATCH v2 1/2] idr: Add ida_simple_get_cyclic

2018-06-07 Thread Hans Westgaard Ry
Orabug: 25571450 Signed-off-by: Hans Westgaard Ry --- include/linux/idr.h | 8 +-- lib/idr.c | 66 + 2 files changed, 72 insertions(+), 2 deletions(-) diff --git a/include/linux/idr.h b/include/linux/idr.h index e856f4e0ab35

[PATCH v2 2/2] IB/mad: Use ID allocator routines to allocate agent number

2018-06-07 Thread Hans Westgaard Ry
. The signature of the bug is a MAD layer that stops working and the console is flooded with messages like: mlx4_ib: egress mad has non-null tid msb:1 class:4 slave:0 Orabug: 25571450 Signed-off-by: Hans Westgaard Ry --- drivers/infiniband/core/mad.c | 25 + 1 file

[PATCH v2 0/2] IB:mad Use ID allocator routines to allocate agent number

2018-06-07 Thread Hans Westgaard Ry
v2: Implement ida_get_simple_cyclic and use it when allocating ib_mad_client_ids. Hans Westgaard Ry (2): idr: Add ida_simple_get_cyclic IB/mad: Use ID allocator routines to allocate agent number drivers/infiniband/core/mad.c | 24 +--- include/linux/idr.h | 8

[PATCH v2 0/2] IB:mad Use ID allocator routines to allocate agent number

2018-06-07 Thread Hans Westgaard Ry
v2: Implement ida_get_simple_cyclic and use it when allocating ib_mad_client_ids. Hans Westgaard Ry (2): idr: Add ida_simple_get_cyclic IB/mad: Use ID allocator routines to allocate agent number drivers/infiniband/core/mad.c | 24 +--- include/linux/idr.h | 8

Re: [PATCH] IB/mad: Use ID allocator routines to allocate agent number

2018-05-30 Thread Hans Westgaard Ry
On 05/30/2018 10:02 AM, jackm wrote: On Tue, 29 May 2018 10:40:32 -0600 Jason Gunthorpe wrote: On Tue, May 29, 2018 at 06:16:14PM +0200, Håkon Bugge wrote: On 29 May 2018, at 17:49, Jason Gunthorpe wrote: On Tue, May 29, 2018 at 09:38:08AM +0200, Hans Westgaard Ry wrote: The agent

Re: [PATCH] IB/mad: Use ID allocator routines to allocate agent number

2018-05-30 Thread Hans Westgaard Ry
On 05/30/2018 10:02 AM, jackm wrote: On Tue, 29 May 2018 10:40:32 -0600 Jason Gunthorpe wrote: On Tue, May 29, 2018 at 06:16:14PM +0200, Håkon Bugge wrote: On 29 May 2018, at 17:49, Jason Gunthorpe wrote: On Tue, May 29, 2018 at 09:38:08AM +0200, Hans Westgaard Ry wrote: The agent

[PATCH] IB/mad: Use ID allocator routines to allocate agent number

2018-05-29 Thread Hans Westgaard Ry
. A sysctl variable is also introduced, to control the max agent number. The signature of the bug is a MAD layer that stops working and the console is flooded with messages like: mlx4_ib: egress mad has non-null tid msb:1 class:4 slave:0 Signed-off-by: Hans Westgaard Ry --- drivers/infiniband

[PATCH] IB/mad: Use ID allocator routines to allocate agent number

2018-05-29 Thread Hans Westgaard Ry
. A sysctl variable is also introduced, to control the max agent number. The signature of the bug is a MAD layer that stops working and the console is flooded with messages like: mlx4_ib: egress mad has non-null tid msb:1 class:4 slave:0 Signed-off-by: Hans Westgaard Ry --- drivers/infiniband

[PING][PATCH] IBcore/CM: Issue DREQ when receiving REQ/REP for stale QP

2017-02-01 Thread Hans Westgaard Ry
On 10/28/2016 01:14 PM, Hans Westgaard Ry wrote: from "InfiBand Architecture Specifications Volume 1": A QP is said to have a stale connection when only one side has connection information. A stale connection may result if the remote CM had dropped the connection and s

[PING][PATCH] IBcore/CM: Issue DREQ when receiving REQ/REP for stale QP

2017-02-01 Thread Hans Westgaard Ry
On 10/28/2016 01:14 PM, Hans Westgaard Ry wrote: from "InfiBand Architecture Specifications Volume 1": A QP is said to have a stale connection when only one side has connection information. A stale connection may result if the remote CM had dropped the connection and s

[PATCH] IBcore/CM: Issue DREQ when receiving REQ/REP for stale QP

2016-10-28 Thread Hans Westgaard Ry
tructures in CM. A problem with this is the timeconstants governing this mechanism; they are up to 768 seconds and the interface may look inresponsive in that period. Issuing a DREQ (and receiving a DREP) does the necessary cleanup and the interface comes up. Signed-off-by: Hans Westgaard Ry <hans.westg

[PATCH] IBcore/CM: Issue DREQ when receiving REQ/REP for stale QP

2016-10-28 Thread Hans Westgaard Ry
tructures in CM. A problem with this is the timeconstants governing this mechanism; they are up to 768 seconds and the interface may look inresponsive in that period. Issuing a DREQ (and receiving a DREP) does the necessary cleanup and the interface comes up. Signed-off-by: Hans Westgaard Ry Reviewed-

Re: [PATCH v3] IB/ipoib: Add readout of statistics using ethtool

2016-04-21 Thread Hans Westgaard Ry
er version ( I should of course have ran checkpatch before submitting v2) Hans On 04/21/2016 01:13 PM, Hans Westgaard Ry wrote: IPoIB collects statistics of traffic including number of packets sent/received, number of bytes transferred, and certain errors. This patch makes these statistics

Re: [PATCH v3] IB/ipoib: Add readout of statistics using ethtool

2016-04-21 Thread Hans Westgaard Ry
er version ( I should of course have ran checkpatch before submitting v2) Hans On 04/21/2016 01:13 PM, Hans Westgaard Ry wrote: IPoIB collects statistics of traffic including number of packets sent/received, number of bytes transferred, and certain errors. This patch makes these statistics

[PATCH v3] IB/ipoib: Add readout of statistics using ethtool

2016-04-21 Thread Hans Westgaard Ry
IPoIB collects statistics of traffic including number of packets sent/received, number of bytes transferred, and certain errors. This patch makes these statistics available to be queried by ethtool. Signed-off-by: Hans Westgaard Ry <hans.westgaard...@oracle.com> Reviewed-by: Yuval Shaia <

[PATCH v3] IB/ipoib: Add readout of statistics using ethtool

2016-04-21 Thread Hans Westgaard Ry
IPoIB collects statistics of traffic including number of packets sent/received, number of bytes transferred, and certain errors. This patch makes these statistics available to be queried by ethtool. Signed-off-by: Hans Westgaard Ry Reviewed-by: Yuval Shaia Reviewed-by: Santosh Shilimkar Tested

[PATCH v2] IB/ipoib: Add readout of statistics using ethtool

2016-04-20 Thread Hans Westgaard Ry
IPoIB collects statistics of traffic including number of packets sent/received, number of bytes transferred, and certain errors. This patch makes these statistics available to be queried by ethtool. Signed-off-by: Hans Westgaard Ry <hans.westgaard...@oracle.com> Reviewed-by: Yuval Shaia <

[PATCH v2] IB/ipoib: Add readout of statistics using ethtool

2016-04-20 Thread Hans Westgaard Ry
IPoIB collects statistics of traffic including number of packets sent/received, number of bytes transferred, and certain errors. This patch makes these statistics available to be queried by ethtool. Signed-off-by: Hans Westgaard Ry Reviewed-by: Yuval Shaia Reviewed-by: Santosh Shilimkar Tested

[PATCH v1] IB/ipoib: Add readout of statistics using ethtool

2016-04-20 Thread Hans Westgaard Ry
IPoIB collects statistics of traffic including number of packets sent/received, number of bytes transferred, and certain errors. This patch makes these statistics available to be queried by ethtool. Signed-off-by: Hans Westgaard Ry <hans.westgaard...@oracle.com> Reviewed-by: Yuval Shaia <

[PATCH v1] IB/ipoib: Add readout of statistics using ethtool

2016-04-20 Thread Hans Westgaard Ry
IPoIB collects statistics of traffic including number of packets sent/received, number of bytes transferred, and certain errors. This patch makes these statistics available to be queried by ethtool. Signed-off-by: Hans Westgaard Ry Reviewed-by: Yuval Shaia Reviewed-by: Santosh Shilimkar Tested

[PATCH] IB/ipoib: Add readout of statistics using ethtool

2016-04-15 Thread Hans Westgaard Ry
IPoIB collects statistics of traffic including number of packets sent/received, number of bytes transferred, and certain errors. This patch makes these statistics available to be queried by ethtool. Signed-off-by: Hans Westgaard Ry <hans.westgaard...@oracle.com> Reviewed-by: Yuval Shaia <

[PATCH] IB/ipoib: Add readout of statistics using ethtool

2016-04-15 Thread Hans Westgaard Ry
IPoIB collects statistics of traffic including number of packets sent/received, number of bytes transferred, and certain errors. This patch makes these statistics available to be queried by ethtool. Signed-off-by: Hans Westgaard Ry Reviewed-by: Yuval Shaia Reviewed-by: Santosh Shilimkar Tested

[PATCH v2] IB/ipoib: Add handling for sending of skb with many frags

2016-03-02 Thread Hans Westgaard Ry
. The assumptions also lead to requesting a fixed number of sge when IPoIB creates queue-pairs with SG enabled. A fallback/slowpath is implemented using skb_linearize to handle cases where the conversion would result in more sges than supported. Signed-off-by: Hans Westgaard Ry <hans.westgaard...@oracle.

[PATCH v2] IB/ipoib: Add handling for sending of skb with many frags

2016-03-02 Thread Hans Westgaard Ry
. The assumptions also lead to requesting a fixed number of sge when IPoIB creates queue-pairs with SG enabled. A fallback/slowpath is implemented using skb_linearize to handle cases where the conversion would result in more sges than supported. Signed-off-by: Hans Westgaard Ry Reviewed-by: Håkon Bugge

[PATCH] IB/ipoib: Add handling of skb with many frags

2016-02-18 Thread Hans Westgaard Ry
. The assumptions also lead to requesting a fixed number ot sge when IPoIB creates queue-pairs with scatter/gather enabled. A fallback/slowpath is implemented using skb_linearize to handle cases where the conversion would result in more sges than supported. Signed-off-by: Hans Westgaard Ry

[PATCH] IB/ipoib: Add handling of skb with many frags

2016-02-18 Thread Hans Westgaard Ry
. The assumptions also lead to requesting a fixed number ot sge when IPoIB creates queue-pairs with scatter/gather enabled. A fallback/slowpath is implemented using skb_linearize to handle cases where the conversion would result in more sges than supported. Signed-off-by: Hans Westgaard Ry Reviewed

[PATCH v3] net:Add sysctl_max_skb_frags

2016-02-03 Thread Hans Westgaard Ry
and may thereby violate the max for certain devices. The patch introduces a global variable as max number of fragments. Signed-off-by: Hans Westgaard Ry Reviewed-by: Håkon Bugge --- include/linux/skbuff.h | 1 + net/core/skbuff.c | 2 ++ net/core/sysctl_net_core.c | 10 ++ net

[PATCH v3] net:Add sysctl_max_skb_frags

2016-02-03 Thread Hans Westgaard Ry
and may thereby violate the max for certain devices. The patch introduces a global variable as max number of fragments. Signed-off-by: Hans Westgaard Ry <hans.westgaard...@oracle.com> Reviewed-by: Håkon Bugge <haakon.bu...@oracle.com> --- include/linux/skbuff.h | 1 + net/c

Re: [PATCH v2] net:Add sysctl_tcp_sg_max_skb_frags

2016-02-01 Thread Hans Westgaard Ry
On 01/27/2016 07:12 PM, Hannes Frederic Sowa wrote: On 27.01.2016 16:15, Eric Dumazet wrote: If it is a common one, it should be /proc/sys/net/core/... instead of /proc/sys/net/ipv4/tcp_ > Other providers include : 1) GRO stack 2) callers of sock_alloc_send_pskb(),

Re: [PATCH v2] net:Add sysctl_tcp_sg_max_skb_frags

2016-02-01 Thread Hans Westgaard Ry
On 01/27/2016 07:12 PM, Hannes Frederic Sowa wrote: On 27.01.2016 16:15, Eric Dumazet wrote: If it is a common one, it should be /proc/sys/net/core/... instead of /proc/sys/net/ipv4/tcp_ > Other providers include : 1) GRO stack 2) callers of sock_alloc_send_pskb(),

[PATCH v2] net:Add sysctl_tcp_sg_max_skb_frags

2016-01-27 Thread Hans Westgaard Ry
and may thereby violate the max for certain devices. The patch introduces a global variable as max number of fragments in scatter/gather. Signed-off-by: Hans Westgaard Ry Reviewed-by: Håkon Bugge --- include/net/tcp.h | 2 ++ net/ipv4/sysctl_net_ipv4.c | 10 ++ net/ipv4/tcp.c

[PATCH v2] net:Add sysctl_tcp_sg_max_skb_frags

2016-01-27 Thread Hans Westgaard Ry
and may thereby violate the max for certain devices. The patch introduces a global variable as max number of fragments in scatter/gather. Signed-off-by: Hans Westgaard Ry <hans.westgaard...@oracle.com> Reviewed-by: Håkon Bugge <haakon.bu...@oracle.com> --- include/net/tcp.h | 2

[PATCH] net: add per device sg_max_frags for skb

2016-01-06 Thread Hans Westgaard Ry
SGE resulting in kernel-panic. The patch allows the device to limit the maximum number fragments used in one skb. The functionality corresponds to gso_max_size/gso_max_segs for gso. Signed-off-by: Hans Westgaard Ry Reviewed-by: Håkon Bugge Reviewed-by: Knut Omang Reviewed-by: Wei Lin Guay

[PATCH] net: add per device sg_max_frags for skb

2016-01-06 Thread Hans Westgaard Ry
SGE resulting in kernel-panic. The patch allows the device to limit the maximum number fragments used in one skb. The functionality corresponds to gso_max_size/gso_max_segs for gso. Signed-off-by: Hans Westgaard Ry <hans.westgaard...@oracle.com> Reviewed-by: Håkon Bugge <haakon.bu...@o