tcp_bbr: Forcing set of BBR congestion control as default

2017-01-01 Thread Sedat Dilek
Hi, I am trying to force the set of BBR congestion control as default. My old linux-config uses CUBIC as default. I want both BBR and CUBIC to be built but BBR shall be my default. I tried the below snippet. I refresh my new linux-config like this... $ MAKE="make V=1" ; COMPILER="mycompiler" ;

Re: [PATCH] Update pptp handling to avoid null pointer deref.

2017-01-01 Thread David Miller
From: Ian Kumlien Date: Mon, 2 Jan 2017 00:19:36 +0100 > __skb_flow_dissect can be called with a skb or a data packet, either > can be NULL. All calls seems to have been moved to __skb_header_pointer > except the pptp handling which is still calling skb_header_pointer. > > skb_header_pointer wi

Re: [PATCH] Ipvlan should return an error when an address is already in use.

2017-01-01 Thread David Miller
From: Krister Johansen Date: Fri, 30 Dec 2016 20:10:58 -0800 > The ipvlan code already knows how to detect when a duplicate address is > about to be assigned to an ipvlan device. However, that failure is not > propogated outward and leads to a silent failure. This teaches the ip > address addit

Re: [PATCH net 0/2] l2tp: socket lookup fixes for l2tp_ip and l2tp_ip6

2017-01-01 Thread David Miller
From: Guillaume Nault Date: Fri, 30 Dec 2016 19:48:17 +0100 > There are still some cases that aren't correctly handled in the socket > lookup functions of l2tp_ip and l2tp_ip6. This series fixes lookups for > connected sockets and for sockets bound to the IPv6 unspecified > address. > > bind() a

Re: [PATCH] drop_monitor: add missing call to genlmsg_end

2017-01-01 Thread David Miller
From: Reiter Wolfgang Date: Sat, 31 Dec 2016 21:11:57 +0100 > Update nlmsg_len field with genlmsg_end to enable userspace processing > using nlmsg_next helper. Also adds error handling. > > Signed-off-by: Reiter Wolfgang Applied and queued up for -stable, thanks.

Re: [PATCH for-next 05/11] IB/mlx5: Refactor UMR post send format

2017-01-01 Thread David Miller
From: Saeed Mahameed Date: Sun, 1 Jan 2017 23:10:21 +0200 > diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c > index a1b3125..6d5f5d4 100644 > --- a/drivers/infiniband/hw/mlx5/qp.c > +++ b/drivers/infiniband/hw/mlx5/qp.c > @@ -3080,9 +3080,10 @@ static void set_data

Re: [PATCH for-next 03/11] IB/mlx5: Add helper mlx5_ib_post_send_wait

2017-01-01 Thread David Miller
From: Saeed Mahameed Date: Sun, 1 Jan 2017 23:10:19 +0200 > diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c > index 8f608deb..afb6dc1 100644 > --- a/drivers/infiniband/hw/mlx5/mr.c > +++ b/drivers/infiniband/hw/mlx5/mr.c > @@ -891,16 +891,40 @@ static inline void m

[PATCH] Update pptp handling to avoid null pointer deref.

2017-01-01 Thread Ian Kumlien
__skb_flow_dissect can be called with a skb or a data packet, either can be NULL. All calls seems to have been moved to __skb_header_pointer except the pptp handling which is still calling skb_header_pointer. skb_header_pointer will use skb->data and thus: [ 109.556866] BUG: unable to handle kern

Re: [BUG] 4.9 - kernel oops when pptp connection is established and the kernel doesn't have pptp modules compiled

2017-01-01 Thread Ian Kumlien
Sorry, after further inspection, it seems like the choice of skb_header_pointer is wrong and skb isn't always populated. It seems like the code has suffered from bitrot since all the surrounding code is actually fixed. This fixes it as well: diff --git a/net/core/flow_dissector.c b/net/core/flow_d

[PATCH v2 net-next 1/2] af_packet: TX_RING support for TPACKET_V3

2017-01-01 Thread Sowmini Varadhan
Although TPACKET_V3 Rx has some benefits over TPACKET_V2 Rx, *_v3 does not currently have TX_RING support. As a result an application that wants the best perf for Tx and Rx (e.g. to handle request/response transacations) ends up needing 2 sockets, one with *_v2 for Tx and another with *_v3 for Rx.

[PATCH v2 net-next 0/2] TPACKET_V3 TX_RING support

2017-01-01 Thread Sowmini Varadhan
This patch series allows an application to use a single PF_PACKET descriptor and leverage the best implementations of TX_RING and RX_RING that exist today. Updates in v2 are listed below: - patch 1 (which builds on the earlier patch discussed at http://patchwork.ozlabs.org/patch/709840/) verifi

[PATCH v2 net-next 2/2] tools: test case for TPACKET_V3/TX_RING support

2017-01-01 Thread Sowmini Varadhan
Add a test case and sample code for (TPACKET_V3, PACKET_TX_RING) Signed-off-by: Sowmini Varadhan --- v2: Added test case. tools/testing/selftests/net/psock_tpacket.c | 110 ++- 1 files changed, 109 insertions(+), 1 deletions(-) diff --git a/tools/testing/selftests/net/

[PATCH for-next 04/11] net/mlx5: Support new MR features

2017-01-01 Thread Saeed Mahameed
From: Artemy Kovalyov This patch adds the following items to IFC file. 1. MLX5_MKC_ACCESS_MODE_KSM enum value for creating KSM memory keys. KSM access mode used when indirect MKey associated with fixed memory size entries. 2. null_mkey field that is used to indicate non-present KLM/KSM entries,

[PATCH for-next 00/11] Mellanox mlx5 core and ODP updates 2017-01-01

2017-01-01 Thread Saeed Mahameed
Hi Dave and Doug, The following eleven patches mainly come from Artemy Kovalyov who expanded mlx5 on-demand-paging (ODP) support. In addition there are three cleanup patches which don't change any functionality, but are needed to align codebase prior accepting other patches. Memory region (MR) in

[PATCH for-next 08/11] net/mlx5: Update PAGE_FAULT_RESUME layout

2017-01-01 Thread Saeed Mahameed
From: Artemy Kovalyov Update PAGE_FAULT_RESUME command layout. Three bit fields describing page fault: rdma, rdma_write, req_res gave 8 possible combinations, while only a few were legal. Now they are interpreted as three-bit type field, where former legal combinations turns into corresponding t

[PATCH for-next 07/11] IB/mlx5: Add MR cache for large UMR regions

2017-01-01 Thread Saeed Mahameed
From: Artemy Kovalyov In this change we turn mlx5_ib_update_mtt() into generic mlx5_ib_update_xlt() to perfrom HCA translation table modifiactions supporting both atomic and process contexts and not limited by number of modified entries. Using this function we increase preallocated MRs up to 16GB

[PATCH for-next 06/11] IB/mlx5: Add support for big MRs

2017-01-01 Thread Saeed Mahameed
From: Artemy Kovalyov Make use of extended UMR translation offset. Signed-off-by: Artemy Kovalyov Signed-off-by: Leon Romanovsky Signed-off-by: Saeed Mahameed --- drivers/infiniband/hw/mlx5/mlx5_ib.h | 1 + drivers/infiniband/hw/mlx5/mr.c | 8 +--- drivers/infiniband/hw/mlx5/odp.c

[PATCH for-next 10/11] IB/mlx5: Add ODP atomics support

2017-01-01 Thread Saeed Mahameed
From: Artemy Kovalyov Handle ODP atomic operations. When initiator of RDMA atomic operation use ODP MR to provide source data handle pagefault properly. Signed-off-by: Artemy Kovalyov Signed-off-by: Leon Romanovsky Signed-off-by: Saeed Mahameed --- drivers/infiniband/hw/mlx5/odp.c | 88 +

[PATCH for-next 11/11] IB/mlx5: Improve MR check

2017-01-01 Thread Saeed Mahameed
From: Artemy Kovalyov Add "type" field to mlx5_core MKEY struct. Check whether page fault happens on MKEY corresponding to MR. Signed-off-by: Artemy Kovalyov Signed-off-by: Leon Romanovsky Signed-off-by: Saeed Mahameed --- drivers/infiniband/hw/mlx5/mr.c | 5 + drivers/infiniband/hw/mlx

[PATCH for-next 05/11] IB/mlx5: Refactor UMR post send format

2017-01-01 Thread Saeed Mahameed
From: Artemy Kovalyov * Update struct mlx5_wqe_umr_ctrl_seg. * Currenlty UMR send_flags aim only certain use cases: enabled/disable cached MR, modifying XLT for ODP. By making flags independent make UMR more flexible allowing arbitrary manipulations. * Since different UMR formats have differe

[PATCH for-next 03/11] IB/mlx5: Add helper mlx5_ib_post_send_wait

2017-01-01 Thread Saeed Mahameed
From: Binoy Jayan Clean up the following common code (to post a list of work requests to the send queue of the specified QP) at various places and add a helper function 'mlx5_ib_post_send_wait' to implement the same. - Initialize 'mlx5_ib_umr_context' on stack - Assign "mlx5_umr_wr:wr:wr_cqe t

[PATCH for-next 02/11] IB/mlx5: Reorder code in query device command

2017-01-01 Thread Saeed Mahameed
From: Leon Romanovsky The order of features exposed by private mlx5-abi.h file is CQE zipping, packet pacing and multi-packet WQE. The internal order implemented in mlx5_ib_query_device() is multi-packet WQE, CQE zipping and packet pacing. Such difference hurts code readability, so let's sync,

[PATCH for-next 09/11] {net,IB}/mlx5: Refactor page fault handling

2017-01-01 Thread Saeed Mahameed
From: Artemy Kovalyov * Update page fault event according to last specification. * Separate code path for page fault EQ, completion EQ and async EQ. * Move page fault handling work queue from mlx5_ib static variable into mlx5_core page fault EQ. * Allocate memory to store ODP event dynamically

[PATCH for-next 01/11] net/mlx5: Fix offset naming for reserved fields in hca_cap_bits

2017-01-01 Thread Saeed Mahameed
From: Max Gurtovoy Fix offset for reserved fields. Fixes: 7486216b3a0b ("{net,IB}/mlx5: mlx5_ifc updates") Fixes: b4ff3a36d3e4 ("net/mlx5: Use offset based reserved field names in the IFC header file") Fixes: 7d5e14237a55 ("net/mlx5: Update mlx5_ifc hardware features") Signed-off-by: Max Gurtov

Re: Bug w/ (policy) routing

2017-01-01 Thread Olivier Brunel
On Sat, 31 Dec 2016 13:15:44 -0700 David Ahern wrote: > On 12/30/16 4:00 PM, Olivier Brunel wrote: > > Hi, > > > > (Please cc me as I'm not subscribed to the list, thanks.) > > > > I'm trying to set things up using some policy routing, and having > > some weird issues I can't really explain. It

[PATCH] net: dlink: sundance: use new api ethtool_{get|set}_link_ksettings

2017-01-01 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/dlink/sundance.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/dlink/sun

[PATCH] net: dlink: dl2k: use new api ethtool_{get|set}_link_ksettings

2017-01-01 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. The previous implementation of set_settings was modifying the value of speed and duplex, but with the new API, it's not possible. The structure ethtool_link_ksettings is defined as const. Si

[PATCH] net: dec: winbond-840: use new api ethtool_{get|set}_link_ksettings

2017-01-01 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/dec/tulip/winbond-840.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/de

Re: [V3] rtlwifi: fix spelling mistake: "encrypiton" -> "encryption"

2017-01-01 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > trivial fix to spelling mistake in RT_TRACE message > > Signed-off-by: Colin Ian King Patch applied to wireless-drivers-next.git, thanks. e16e558e83ed rtlwifi: fix spelling mistake: "encrypiton" -> "encryption" -- https://patchwork.kernel.or

Re: wlcore: fix spelling mistake in wl1271_warning

2017-01-01 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > trivial fix to spelling mistake of function name in wl1271_warning, > should be dynamic_ps_timeout instead of dyanmic_ps_timeout. > > Signed-off-by: Colin Ian King Patch applied to wireless-drivers-next.git, thanks. a60db8e70313 wlcore: fix sp

[PATCH] net: dec: uli526x: use new api ethtool_{get|set}_link_ksettings

2017-01-01 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/dec/tulip/uli526x.c | 41 + 1 files changed, 24 insertions(+), 17 deletions(-) diff --git a/drivers/ne

[PATCH] net: dec: de2104x: use new api ethtool_{get|set}_link_ksettings

2017-01-01 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/dec/tulip/de2104x.c | 91 +- 1 files changed, 51 insertions(+), 40 deletions(-) diff --git a/drivers/n

[PATCH v2 2/2] net: sfc: falcon: use new api ethtool_{get|set}_link_ksettings

2017-01-01 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- Changelog: v2: - simplify the code of ef4_ethtool_get_link_ksettings (feedback from Bert Kenward) drivers/net/ethernet/sfc/falcon/efx.c |2

[PATCH v2 1/2] net: mdio: add mdio45_ethtool_ksettings_get

2017-01-01 Thread Philippe Reynes
There is a function in mdio for the old ethtool api gset. We add a new function mdio45_ethtool_ksettings_get for the new ethtool api glinksettings. Signed-off-by: Philippe Reynes --- Changelog: v2: - simplify the code of ef4_ethtool_get_link_ksettings (feedback from Bert Kenward) drivers/net/

Re: [BUG] 4.9 - kernel oops when pptp connection is established and the kernel doesn't have pptp modules compiled

2017-01-01 Thread Ian Kumlien
On Fri, Dec 30, 2016 at 11:48 PM, Ian Kumlien wrote: > Hi, > > Been fighting with "crash" to get it to help me to analyze my crash > dumps... This is the output from vmcore-dmesg. > > This is 100% reproducible... > > Config that lets the connection trough but crashes the kernel: > # CONFIG_NF_CONN

Re: [PATCH] net: stmmac: remove unused duplicate property snps,axi_all

2017-01-01 Thread David Miller
From: Niklas Cassel Date: Fri, 30 Dec 2016 13:56:46 +0100 > From: Niklas Cassel > > For core revision 3.x Address-Aligned Beats is available in two registers. > The DT property snps,aal was created for AAL in the DMA bus register, > which is a read/write bit. > The DT property snps,axi_all was

Re: [PATCH] net: socket: don't set sk_uid to garbage value in ->setattr()

2017-01-01 Thread David Miller
From: Lorenzo Colitti Date: Sun, 1 Jan 2017 16:57:23 +0900 > On Sat, Dec 31, 2016 at 8:42 AM, Eric Biggers wrote: >> ->setattr() was recently implemented for socket files to sync the socket >> inode's uid to the new 'sk_uid' member of struct sock. It does this by >> copying over the ia_uid memb

Re: [PATCH net-next 22/27] sctp: add rfc6525 section 5.2.4

2017-01-01 Thread David Miller
From: Xin Long Date: Sun, 1 Jan 2017 21:26:47 +0800 > As only when the result is not performed, initial_tsn variables is > uninitialized, peer side would ignore this value, so here is also > safe. It doesn't matter if it is "safe" or not, you must fix all of the warnings reported by kbuild befor

Re: [PATCH net-next 00/27] sctp: implement rfc6525 sctp stream reconf

2017-01-01 Thread David Miller
I'm sorry but this is way too many patches to submit at one time. Split your series into smaller, more reasonably sized, groups of changes.

Re: [PATCH net-next 22/27] sctp: add rfc6525 section 5.2.4

2017-01-01 Thread Xin Long
On Sun, Jan 1, 2017 at 8:14 PM, kbuild test robot wrote: > Hi Xin, > > [auto build test WARNING on net-next/master] > > url: > https://github.com/0day-ci/linux/commits/Xin-Long/sctp-implement-rfc6525-sctp-stream-reconf/20170101-192844 > config: x86_64-randconfig-x01

Re: [PATCH net-next 20/27] sctp: add rfc6525 section 5.2.2

2017-01-01 Thread Xin Long
On Sun, Jan 1, 2017 at 8:02 PM, kbuild test robot wrote: > Hi Xin, > > [auto build test WARNING on net-next/master] > > url: > https://github.com/0day-ci/linux/commits/Xin-Long/sctp-implement-rfc6525-sctp-stream-reconf/20170101-192844 > config: x86_64-randconfig-x01

Re: [PATCH v2 3/6] qedi: Add QLogic FastLinQ offload iSCSI driver framework.

2017-01-01 Thread Or Gerlitz
Seems you forgot to add roper dep on UIO ERROR: "uio_unregister_device" [drivers/scsi/qedi/qedi.ko] undefined! ERROR: "uio_event_notify" [drivers/scsi/qedi/qedi.ko] undefined! ERROR: "__uio_register_device" [drivers/scsi/qedi/qedi.ko] undefined! BTW, what is the usage you do with that?? Or. Wh

Re: [PATCH net-next 22/27] sctp: add rfc6525 section 5.2.4

2017-01-01 Thread kbuild test robot
Hi Xin, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Xin-Long/sctp-implement-rfc6525-sctp-stream-reconf/20170101-192844 config: x86_64-randconfig-x015-201701 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce

Re: [PATCH net-next 20/27] sctp: add rfc6525 section 5.2.2

2017-01-01 Thread kbuild test robot
Hi Xin, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Xin-Long/sctp-implement-rfc6525-sctp-stream-reconf/20170101-192844 config: x86_64-randconfig-x015-201701 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce

[PATCH net-next 12/12] qed*: Advance driver versions to 8.10.10.20.

2017-01-01 Thread Yuval Mintz
Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed.h | 2 +- drivers/net/ethernet/qlogic/qede/qede.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed.h b/drivers/net/ethernet/qlogic/qed/qed.h index f6e0ff4..1f61cf3 10064

[PATCH net-next 06/12] qede - mark SKB as encapsulated

2017-01-01 Thread Yuval Mintz
From: Manish Chopra When driver receives a recognized encapsulated packet it needs to set the skb->encapsulation field as well. Signed-off-by: Manish Chopra Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qede/qede_fp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[PATCH net-next 07/12] qede: Remove unnecessary datapath dereference

2017-01-01 Thread Yuval Mintz
Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qede/qede_fp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qede/qede_fp.c b/drivers/net/ethernet/qlogic/qede/qede_fp.c index dddae1e..1a6ca48 100644 --- a/drivers/net/ethernet/qlogic/qe

[PATCH net-next 09/12] qed*: Add support for ndo_set_vf_trust

2017-01-01 Thread Yuval Mintz
Trusted VFs would be allowed to receive promiscuous and multicast promiscuous data. Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_sriov.c| 128 + drivers/net/ethernet/qlogic/qed/qed_sriov.h| 9 ++ drivers/net/ethernet/qlogic/qede/qede_filter

[PATCH net-next 08/12] qed*: RSS indirection based on queue-handles

2017-01-01 Thread Yuval Mintz
A step toward having qede agnostic to the queue configurations in firmware/hardware - let the RSS indirections use queue handles instead of actual queue indices. Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_l2.c| 232 +++- drivers/net/ethernet/ql

[PATCH net-next 10/12] qed: Support Multicast on Tx-switching

2017-01-01 Thread Yuval Mintz
Currently multicast traffic wouldn't be routed internally to listener; Instead it would only be sent to network via the physical carrier. Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_l2.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net

[PATCH net-next 11/12] qed: Conserve RDMA resources when !QEDR

2017-01-01 Thread Yuval Mintz
From: Ram Amrani If qedr isn't part of the kernel then don't allocate RDMA resources for it in qed. Signed-off-by: Ram Amrani Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_mcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ql

[PATCH net-next 05/12] qede: Postpone reallocation until NAPI end

2017-01-01 Thread Yuval Mintz
During Rx flow driver allocates a replacement buffer each time it consumes an Rx buffer. Failing to do so, it would consume the currently processed buffer and re-post it on the ring. As a result, the Rx ring is always completely full [from driver POV]. We now allow the Rx ring to shorten by doing

[PATCH net-next 04/12] qed*: Change maximal number of queues

2017-01-01 Thread Yuval Mintz
Today qede requests contexts that would suffice for 64 'whole' combined queues [192 meant for 64 rx, tx and xdp tx queues], but registers netdev and limits the number of queues based on information received by qed. In turn, qed doesn't take context into account when informing qede how many queues i

[PATCH net-next 03/12] qede: Split filtering logic to its own file

2017-01-01 Thread Yuval Mintz
This takes the various filtering logic of the driver and moves them into their own dedicated file - qede_filter.c. Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qede/Makefile | 2 +- drivers/net/ethernet/qlogic/qede/qede.h| 22 + drivers/net/ethernet/qlogic/qede/qede

[PATCH net-next 02/12] qede: Break datapath logic into its own file

2017-01-01 Thread Yuval Mintz
This adds a new file qede_fp.c and relocates the datapath-related logic into it [from qede_main.c]. Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qede/Makefile|2 +- drivers/net/ethernet/qlogic/qede/qede.h | 11 + drivers/net/ethernet/qlogic/qede/qede_fp.c | 1674 ++

[PATCH net-next 00/12] qed*: Driver updates

2017-01-01 Thread Yuval Mintz
The more interesting changes in this series include: - Restructuring of the qede files - qede_main.c has grown big and this series splits it into 3 parts [patches #2 and #3]. - Some significant changes in the API through which RSS indirection table gets configured [#8]. - Support for

[PATCH net-next 01/12] qed*: Update to dual-license

2017-01-01 Thread Yuval Mintz
Since the submission of the qedr driver, there's inconsistency in the licensing of the various qed/qede files - some are GPLv2 and some are dual-license. Since qedr requires dual-license and it's dependent on both, we're updating the licensing of all qed/qede source files. Signed-off-by: Yuval Min

Re: [PATCH net-next 00/27] sctp: implement rfc6525 sctp stream reconf

2017-01-01 Thread Xin Long
On Sun, Jan 1, 2017 at 7:20 PM, Xin Long wrote: > This patchset is to implement sctp stream reconf described in rfc6525. > > Patch 1-3 add per stream information in sctp asoc. > Patch 4-8 make the chunk with different reconf params. (Section 3-4) > Patch 9-12 add reconf timer, primitive and e

[PATCH net-next 26/27] sctp: add sctp reconf chunk process

2017-01-01 Thread Xin Long
This patch is to add a function to process the incoming reconf chunk, in which it verifies the chunk, and traverses the param and process it with the right function one by one. sctp_sf_do_reconf would be the process function of reconf chunk event. Note that to support multi-params in response chu

[PATCH net-next 23/27] sctp: add rfc6525 section 5.2.5

2017-01-01 Thread Xin Long
This patch is to add Receiver-Side Procedures for the Add Outgoing Streams Request Parameter described in section 5.2.5. Signed-off-by: Xin Long --- include/net/sctp/sm.h | 4 net/sctp/stream.c | 56 +++ 2 files changed, 60 insertions(+)

[PATCH net-next 24/27] sctp: add rfc6525 section 5.2.6

2017-01-01 Thread Xin Long
This patch is to implement Receiver-Side Procedures for the Add Incoming Streams Request Parameter described in section 5.2.6. Signed-off-by: Xin Long --- include/net/sctp/sm.h | 4 net/sctp/stream.c | 59 +++ 2 files changed, 63 insertio

[PATCH net-next 20/27] sctp: add rfc6525 section 5.2.2

2017-01-01 Thread Xin Long
This patch is to implement Receiver-Side Procedures for the Outgoing SSN Reset Request Parameter described in section 5.2.2. Note that some checks must be after request_seq check, as even those checks fail, strreset_inseq still has to be increase by 1. Signed-off-by: Xin Long --- include/net/sc

[PATCH net-next 21/27] sctp: add rfc6525 section 5.2.3

2017-01-01 Thread Xin Long
This patch is to implement Receiver-Side Procedures for the Incoming SSN Reset Request Parameter described in section 5.2.3. Signed-off-by: Xin Long --- include/net/sctp/sm.h | 4 net/sctp/stream.c | 63 +++ 2 files changed, 67 insertions

[PATCH net-next 19/27] sctp: add rfc6525 section 6.1.3

2017-01-01 Thread Xin Long
This patch is to add Stream Change Event described in section 6.1.3. Signed-off-by: Xin Long --- include/net/sctp/ulpevent.h | 4 include/uapi/linux/sctp.h | 15 +++ net/sctp/ulpevent.c | 28 3 files changed, 47 insertions(+) diff --git a

[PATCH net-next 25/27] sctp: add rfc6525 section 5.2.7

2017-01-01 Thread Xin Long
This patch is to implement Receiver-Side Procedures for the Re-configuration Response Parameter in section 5.2.7. sctp_process_strreset_resp would process the response for any kind of reconf request, and the stream reconf is applied only when the response result is success. Signed-off-by: Xin Lon

[PATCH net-next 27/27] sctp: add reconf chunk event

2017-01-01 Thread Xin Long
This patch is to add reconf chunk event based on the sctp event frame, after which, the reconf chunk process would be activated. Signed-off-by: Xin Long --- include/net/sctp/constants.h | 3 +++ net/sctp/sm_statetable.c | 30 ++ 2 files changed, 33 insertions(+)

[PATCH net-next 22/27] sctp: add rfc6525 section 5.2.4

2017-01-01 Thread Xin Long
This patch is to implement Receiver-Side Procedures for the SSN/TSN Reset Request Parameter described in section 6.2.4. The process is kinda complicate, it's wonth having comments from section 6.2.4 in the codes. Signed-off-by: Xin Long --- include/net/sctp/sm.h | 4 +++ net/sctp/stream.c

[PATCH net-next 13/27] sctp: add rfc6525 section 6.3.1

2017-01-01 Thread Xin Long
This patch is to add sockopt SCTP_ENABLE_STREAM_RESET to set strreset_enable to indicate which reconf request type it supports, which is described in section 6.3.1. Signed-off-by: Xin Long --- include/net/sctp/structs.h | 4 +++ include/uapi/linux/sctp.h | 7 net/sctp/associola.c |

[PATCH net-next 18/27] sctp: add rfc6525 section 6.1.2

2017-01-01 Thread Xin Long
This patch is to add Association Reset Event described in section 6.1.2. Signed-off-by: Xin Long --- include/net/sctp/ulpevent.h | 4 include/uapi/linux/sctp.h | 15 +++ net/sctp/ulpevent.c | 28 3 files changed, 47 insertions(+) diff --g

[PATCH net-next 16/27] sctp: add rfc6525 section 5.1.5-5.1.6 and 6.3.4

2017-01-01 Thread Xin Long
This patch is to implement Sender-Side Procedures for the Add Outgoing and Incoming Streams Request Parameter described in 5.1.5-5.1.6. It is also to add sockopt SCTP_ADD_STREAMS in section 6.3.4 for users. Signed-off-by: Xin Long --- include/uapi/linux/sctp.h | 7 +++ net/sctp/socket.c

[PATCH net-next 10/27] sctp: add stream reconf primitive

2017-01-01 Thread Xin Long
This patch is to add a primitive based on sctp primitive frame for sending stream reconf request. It works as the other primitives, and create a SCTP_CMD_REPLY command to send the request chunk out. sctp_primitive_RECONF would be the api to send a reconf request chunk. Signed-off-by: Xin Long --

[PATCH net-next 09/27] sctp: add stream reconf timer

2017-01-01 Thread Xin Long
This patch is to add a per transport timer based on sctp timer frame for stream reconf chunk retransmission. It would start after sending a reconf request chunk, and stop after receiving the response chunk. If the timer expires, besides retransmitting the reconf request chunk, it would also do the

[PATCH net-next 07/27] sctp: add rfc6525 section 4.4

2017-01-01 Thread Xin Long
This patch is to define Re-configuration Response Parameter described in section 4.4. As optional fields are only for SSN/TSN Reset Request Parameter, it uses another function to make that. Signed-off-by: Xin Long --- include/linux/sctp.h | 24 include/net/sctp/sm.h| 7

[PATCH net-next 08/27] sctp: add rfc6525 section 4.5-4.6

2017-01-01 Thread Xin Long
This patch is to define Add Incoming/Outgoing Streams Request Parameter described in section 4.5 and 4.6. They can be in one same chunk trunk as section 3.1-7 describes, so make them in one function. Signed-off-by: Xin Long --- include/linux/sctp.h | 7 +++ include/net/sctp/sm.h| 3

[PATCH net-next 11/27] sctp: add reconf_enable in asoc ep and netns

2017-01-01 Thread Xin Long
This patch is to add reconf_enable field in all of asoc ep and netns to indicate if they support stream reset. When initializing, asoc reconf_enable get the default value from ep reconf_enable which is from netns netns reconf_enable by default. It is also to add reconf_capable in asoc peer part t

[PATCH net-next 15/27] sctp: add rfc6525 section 5.1.4 and 6.3.3

2017-01-01 Thread Xin Long
This patch is to implement Sender-Side Procedures for the SSN/TSN Reset Request Parameter descibed in section 5.1.4. It is also to add sockopt SCTP_RESET_ASSOC in section 6.3.3 for users. Signed-off-by: Xin Long --- include/uapi/linux/sctp.h | 1 + net/sctp/socket.c | 57 ++

[PATCH net-next 14/27] sctp: add rfc6525 section 5.1.2-5.1.3 and 6.3.2

2017-01-01 Thread Xin Long
This patch is to implement sender-side procedures for the Outgoing and Incoming SSN Reset Request Parameter described in section 5.1.2 and 5.1.3. It is also add sockopt SCTP_RESET_STREAMS in section 6.3.2 for users. Note that the new asoc member strreset_outstanding is to make sure only one recon

[PATCH net-next 17/27] sctp: add rfc6525 section 6.1.1

2017-01-01 Thread Xin Long
This patch is to add Stream Reset Event described in section 6.1.1. It's added earlier here so that the codes for other sections could invoked them. Signed-off-by: Xin Long --- include/net/sctp/ulpevent.h | 4 include/uapi/linux/sctp.h | 36 ++-- net/sctp

[PATCH net-next 12/27] sctp: add get and set sockopt for reconf_enable

2017-01-01 Thread Xin Long
This patchset is to add SCTP_RECONFIG_SUPPORTED sockopt, it would set and get asoc reconf_enable value when asoc_id is set, or it would set and get ep reconf_enalbe value if asoc_id is 0. Signed-off-by: Xin Long --- include/uapi/linux/sctp.h | 1 + net/sctp/socket.c | 81 +++

[PATCH net-next 05/27] sctp: add rfc6525 section 4.1-4.2

2017-01-01 Thread Xin Long
This patch is to add asoc strreset_outseq and strreset_inseq for saving the reconf request sequence, initialize them when create assoc and process init, and also to define Incoming and Outgoing SSN Reset Request Parameter described in section 4.1 and 4.2, As they can be in one same chunk as section

[PATCH net-next 06/27] sctp: add rfc6525 section 4.3

2017-01-01 Thread Xin Long
This patch is to define SSN/TSN Reset Request Parameter described in section 4.3. Signed-off-by: Xin Long --- include/linux/sctp.h | 5 + include/net/sctp/sm.h| 2 ++ net/sctp/sm_make_chunk.c | 29 + 3 files changed, 36 insertions(+) diff --git a/includ

[PATCH net-next 02/27] sctp: replace ssnmap with asoc stream arrays

2017-01-01 Thread Xin Long
Stream arrays are used to save per stream information, which includes ssn for each stream already. This patch is to replace ssnmap with asoc stream arrays. Signed-off-by: Xin Long --- include/net/sctp/structs.h | 19 ++- net/sctp/associola.c | 10 -- net/sctp/sm_ma

[PATCH net-next 03/27] sctp: remove asoc ssnmap and ssnmap.c

2017-01-01 Thread Xin Long
Since asoc stream arrays has replaced ssnmap, ssnmap is not used any more, this patch is to remove asoc ssnmap and ssnmap.c. Signed-off-by: Xin Long --- include/net/sctp/sctp.h| 1 - include/net/sctp/structs.h | 33 net/sctp/Makefile | 3 +- net/sctp/objcnt.c

[PATCH net-next 04/27] sctp: add rfc6525 section 3.1

2017-01-01 Thread Xin Long
This patch is to define the reconf chunk as the section 3.1 descibes. Signed-off-by: Xin Long --- include/linux/sctp.h | 6 ++ net/sctp/sm_make_chunk.c | 33 + 2 files changed, 39 insertions(+) diff --git a/include/linux/sctp.h b/include/linux/sctp.h ind

[PATCH net-next 01/27] sctp: add stream arrays in asoc

2017-01-01 Thread Xin Long
This patch is to add streamout and streamin arrays in asoc, initialize them in sctp_process_init and free them in sctp_association_free. Stream arrays are used to replace ssnmap to save more stream things in the next patch. Signed-off-by: Xin Long --- include/net/sctp/structs.h | 18 +++

[PATCH net-next 00/27] sctp: implement rfc6525 sctp stream reconf

2017-01-01 Thread Xin Long
This patchset is to implement sctp stream reconf described in rfc6525. Patch 1-3 add per stream information in sctp asoc. Patch 4-8 make the chunk with different reconf params. (Section 3-4) Patch 9-12 add reconf timer, primitive and enable option. Patch 13-25 implement the procedures on both