[PATCH 06/18] netfilter: xtables: allow table definitions not backed by hook_ops

2018-05-23 Thread Pablo Neira Ayuso
From: Florian Westphal The ip(6)tables nat table is currently receiving skbs from the netfilter core, after a followup patch skbs will be coming from the netfilter nat core instead, so the table is no longer backed by normal hook_ops. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira A

[PATCH 16/18] netfilter: add struct nf_nat_hook and use it

2018-05-23 Thread Pablo Neira Ayuso
Move decode_session() and parse_nat_setup_hook() indirections to struct nf_nat_hook structure. Signed-off-by: Pablo Neira Ayuso --- include/linux/netfilter.h| 21 - include/net/netfilter/nf_nat_core.h | 7 --- net/netfilter/core.c | 8 +++---

[PATCH 03/18] netfilter: nft_numgen: add map lookups for numgen random operations

2018-05-23 Thread Pablo Neira Ayuso
From: Laura Garcia Liebana This patch uses the map lookup already included to be applied for random number generation. Signed-off-by: Laura Garcia Liebana Signed-off-by: Pablo Neira Ayuso --- net/netfilter/nft_numgen.c | 76 +++--- 1 file changed, 72 in

[PATCH 07/18] netfilter: nf_tables: allow chain type to override hook register

2018-05-23 Thread Pablo Neira Ayuso
From: Florian Westphal Will be used in followup patch when nat types no longer use nf_register_net_hook() but will instead register with the nat core. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- include/net/netfilter/nf_tables.h | 8 net/ipv4/netfilter

[PATCH 14/18] netfilter: ip6t_rpfilter: provide input interface for route lookup

2018-05-23 Thread Pablo Neira Ayuso
From: Vincent Bernat In commit 47b7e7f82802, this bit was removed at the same time the RT6_LOOKUP_F_IFACE flag was removed. However, it is needed when link-local addresses are used, which is a very common case: when packets are routed, neighbor solicitations are done using link-local addresses. F

[PATCH 17/18] netfilter: nfnetlink_queue: resolve clash for unconfirmed conntracks

2018-05-23 Thread Pablo Neira Ayuso
In nfqueue, two consecutive skbuffs may race to create the conntrack entry. Hence, the one that loses the race gets dropped due to clash in the insertion into the hashes from the nf_conntrack_confirm() path. This patch adds a new nf_conntrack_update() function which searches for possible clashes a

[PATCH 18/18] netfilter: nf_tables: remove nft_af_info.

2018-05-23 Thread Pablo Neira Ayuso
From: Taehee Yoo The struct nft_af_info was removed. Signed-off-by: Taehee Yoo Signed-off-by: Pablo Neira Ayuso --- include/net/netns/nftables.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/net/netns/nftables.h b/include/net/netns/nftables.h index 48134353411d..29c3851b486a 10

[PATCH 12/18] netfilter: make NF_OSF non-visible symbol

2018-05-23 Thread Pablo Neira Ayuso
From: Fernando Fernandez Mancera Signed-off-by: Fernando Fernandez Mancera Signed-off-by: Pablo Neira Ayuso --- net/netfilter/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig index e57c9d479503..a5b60e6a983e 100644 --- a/

[PATCH 10/18] netfilter: nf_nat: add nat type hooks to nat core

2018-05-23 Thread Pablo Neira Ayuso
From: Florian Westphal Currently the packet rewrite and instantiation of nat NULL bindings happens from the protocol specific nat backend. Invocation occurs either via ip(6)table_nat or the nf_tables nat chain type. Invocation looks like this (simplified): NF_HOOK() | `---iptable_nat

[PATCH 15/18] netfilter: add struct nf_ct_hook and use it

2018-05-23 Thread Pablo Neira Ayuso
Move the nf_ct_destroy indirection to the struct nf_ct_hook. Signed-off-by: Pablo Neira Ayuso --- include/linux/netfilter.h | 7 ++- net/netfilter/core.c | 14 +++--- net/netfilter/nf_conntrack_core.c | 9 ++--- 3 files changed, 19 insertions(+), 11 deletio

Re: [PATCH net-next v15 4/7] sch_cake: Add NAT awareness to packet classifier

2018-05-23 Thread David Miller
From: Toke Høiland-Jørgensen Date: Tue, 22 May 2018 15:57:38 +0200 > When CAKE is deployed on a gateway that also performs NAT (which is a > common deployment mode), the host fairness mechanism cannot distinguish > internal hosts from each other, and so fails to work correctly. > > To fix this,

[PATCH 08/18] netfilter: core: export raw versions of add/delete hook functions

2018-05-23 Thread Pablo Neira Ayuso
From: Florian Westphal This will allow the nat core to reuse the nf_hook infrastructure to maintain nat lookup functions. The raw versions don't assume a particular hook location, the functions get added/deleted from the hook blob that is passed to the functions. Signed-off-by: Florian Westphal

[PATCH 13/18] netfilter: nft_set_rbtree: add timeout support

2018-05-23 Thread Pablo Neira Ayuso
Add garbage collection logic to expire elements stored in the rb-tree representation. Signed-off-by: Pablo Neira Ayuso --- net/netfilter/nft_set_rbtree.c | 75 -- 1 file changed, 72 insertions(+), 3 deletions(-) diff --git a/net/netfilter/nft_set_rbtree.c

[PATCH 11/18] netfilter: lift one-nat-hook-only restriction

2018-05-23 Thread Pablo Neira Ayuso
From: Florian Westphal This reverts commit f92b40a8b2645 ("netfilter: core: only allow one nat hook per hook point"), this limitation is no longer needed. The nat core now invokes these functions and makes sure that hook evaluation stops after a mapping is created and a null binding is created o

[PATCH 04/18] netfilter: nft_hash: add map lookups for hashing operations

2018-05-23 Thread Pablo Neira Ayuso
From: Laura Garcia Liebana This patch creates new attributes to accept a map as argument and then perform the lookup with the generated hash accordingly. Both current hash functions are supported: Jenkins and Symmetric Hash. Signed-off-by: Laura Garcia Liebana Signed-off-by: Pablo Neira Ayuso

[PATCH 05/18] netfilter: nf_nat: move common nat code to nat core

2018-05-23 Thread Pablo Neira Ayuso
From: Florian Westphal Copy-pasted, both l3 helpers almost use same code here. Split out the common part into an 'inet' helper. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- include/net/netfilter/nf_nat_core.h | 7 net/ipv4/netfilter/nf_nat_l3proto_ipv4.c | 5

[PATCH 02/18] netfilter: nf_tables: remove old nf_log based tracing

2018-05-23 Thread Pablo Neira Ayuso
From: Florian Westphal nfnetlink tracing is available since nft 0.6 (June 2016). Remove old nf_log based tracing to avoid rule counter in main loop. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- net/netfilter/nf_tables_core.c | 29 +++-- 1 file c

Re: pull-request: wireless-drivers 2018-05-22

2018-05-23 Thread David Miller
From: Kalle Valo Date: Tue, 22 May 2018 17:28:11 +0300 > here's a pull request to net tree for 4.17. Please let me know if you > have any problems. Pulled, thanks Kalle.

Re: [PATCH net-next v2 0/2] udp gso fixes

2018-05-23 Thread David Miller
From: Willem de Bruijn Date: Tue, 22 May 2018 11:34:38 -0400 > From: Willem de Bruijn > > A few small fixes: > - disallow segmentation with XFRM > - do not leak gso packets into the ingress path > > Changes > v1 -> v2 > - fix build failure in team.c > - drop scatter-gather fix: > t

[PATCH net-next 0/8] ibmvnic: Failover hardening

2018-05-23 Thread Thomas Falcon
Introduce additional transport event hardening to handle events during device reset. In the driver's current state, if a transport event is received during device reset, it can cause the device to become unresponsive as invalid operations are processed as the backing device context changes. After a

[PATCH net-next 1/8] ibmvnic: Mark NAPI flag as disabled when released

2018-05-23 Thread Thomas Falcon
Set adapter NAPI state as disabled if they are removed. This will allow them to be enabled again if reallocated in case of a hard reset. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/d

[PATCH net-next 2/8] ibmvnic: Introduce active CRQ state

2018-05-23 Thread Thomas Falcon
Introduce an "active" state for a IBM vNIC Command-Response Queue. A CRQ is considered active once it has initialized or linked with its partner by sending an initialization request and getting a successful response back from the management partition. Until this has happened, do not allow CRQ comm

[PATCH net-next 3/8] ibmvnic: Check CRQ command return codes

2018-05-23 Thread Thomas Falcon
Check whether CRQ command is successful before awaiting a response from the management partition. If the command was not successful, the driver may hang waiting for a response that will never come. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.c | 51 +

[PATCH net-next 5/8] ibmvnic: Handle error case when setting link state

2018-05-23 Thread Thomas Falcon
If setting the link state is not successful, print a warning with the resulting return code and return it to be handled by the caller. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b

[PATCH net-next 8/8] ibmvnic: Introduce hard reset recovery

2018-05-23 Thread Thomas Falcon
Introduce a recovery hard reset to handle reset failure as a result of change of device context following a transport event, such as a backing device failover or partition migration. These operations reset the device context to its initial state. If this occurs during a reset, any initialization co

[PATCH net-next 6/8] ibmvnic: Create separate initialization routine for resets

2018-05-23 Thread Thomas Falcon
Instead of having one initialization routine for all cases, create a separate, simpler function for standard initialization, such as during device probe. Use the original initialization function to handle device reset scenarios. The goal of this patch is to avoid having a single, cluttered init fun

[PATCH iproute2] ip route: Print expires as signed int

2018-05-23 Thread dsahern
From: David Ahern rta_expires is a signed int; print it as one. Fixes: 663c3cb23103f ("iproute: implement JSON and color output") Signed-off-by: David Ahern --- ip/iproute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ip/iproute.c b/ip/iproute.c index 56dd9f25e38e..

[PATCH net-next 4/8] ibmvnic: Return error code if init interrupted by transport event

2018-05-23 Thread Thomas Falcon
If device init is interrupted by a failover, set the init return code so that it can be checked and handled appropriately by the init routine. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/e

[PATCH net-next 7/8] ibmvnic: Set resetting state at earliest possible point

2018-05-23 Thread Thomas Falcon
Set device resetting state at the earliest possible point: as soon as a reset is successfully scheduled. The reset state is toggled off when all resets have been processed to completion. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.c | 3 +-- 1 file changed, 1 insertion(+),

Re: [PATCH][V2] net: vxge: fix spelling mistake in macro VXGE_HW_ERR_PRIVILAGED_OPEARATION

2018-05-23 Thread David Miller
From: Colin King Date: Tue, 22 May 2018 17:18:09 +0100 > From: Colin Ian King > > Rename VXGE_HW_ERR_PRIVILAGED_OPEARATION to VXGE_HW_ERR_PRIVILEGED_OPERATION > to fix spelling mistake. > > Signed-off-by: Colin Ian King > --- > V2: PRIVILAGED -> PRIVILEGED, thanks to Edward Cree for spotting

[PATCH iproute2-next] ip route: print RTA_CACHEINFO if it exists

2018-05-23 Thread dsahern
From: David Ahern RTA_CACHEINFO can be sent for non-cloned routes. If the attribute is present print it. Allows route dumps to print expires times for example which can exist on FIB entries. Signed-off-by: David Ahern --- ip/iproute.c | 14 +- 1 file changed, 5 insertions(+), 9 del

Re: [PATCH net] ibmvnic: Only do H_EOI for mobility events

2018-05-23 Thread David Miller
From: Nathan Fontenot Date: Tue, 22 May 2018 11:21:10 -0500 > When enabling the sub-CRQ IRQ a previous update sent a H_EOI prior > to the enablement to clear any pending interrupts that may be present > across a partition migration. This fixed a firmware bug where a > migration could erroneously

Re: [PATCH net-next] hv_netvsc: Add handlers for ethtool get/set msg level

2018-05-23 Thread David Miller
From: Haiyang Zhang Date: Tue, 22 May 2018 11:29:34 -0700 > From: Haiyang Zhang > > The handlers for ethtool get/set msg level are missing from netvsc. > This patch adds them. > > Signed-off-by: Haiyang Zhang Applied.

Re: [net-next PATCH v2 1/4] net: Refactor XPS for CPUs and Rx queues

2018-05-23 Thread Nambiar, Amritha
On 5/17/2018 9:08 PM, Tom Herbert wrote: > On Tue, May 15, 2018 at 6:26 PM, Amritha Nambiar > wrote: >> Refactor XPS code to support Tx queue selection based on >> CPU map or Rx queue map. >> >> Signed-off-by: Amritha Nambiar >> --- >> include/linux/cpumask.h | 11 ++ >> include/linux/netdev

Re: [net-next] i40iw/i40e: Remove link dependency on i40e

2018-05-23 Thread David Miller
From: Jeff Kirsher Date: Tue, 22 May 2018 13:38:31 -0700 > From: Sindhu Devale > > Currently i40iw is dependent on i40e symbols > i40e_register_client and i40e_unregister_client due to > which i40iw cannot be loaded without i40e being loaded. > > This patch allows RDMA driver to build and load

Re: [PATCH V4 8/8] dt-bindings: stm32: add compatible for syscon

2018-05-23 Thread Rob Herring
On Wed, May 23, 2018 at 05:47:59PM +0200, Christophe Roullier wrote: > This patch describes syscon DT bindings. > > Signed-off-by: Christophe Roullier > --- > Documentation/devicetree/bindings/arm/stm32.txt| 10 -- > .../devicetree/bindings/arm/stm32/stm32-syscon.txt

Re: [PATCH net] net: ipv4: add missing RTA_TABLE to rtm_ipv4_policy

2018-05-23 Thread David Miller
From: Roopa Prabhu Date: Tue, 22 May 2018 13:44:51 -0700 > From: Roopa Prabhu > > Signed-off-by: Roopa Prabhu Applied and queued up for -stable. Please provide an appropriate Fixes: tag next time.

Re: [PATCH net-next v5 0/3] fib rule selftest

2018-05-23 Thread David Miller
From: Roopa Prabhu Date: Tue, 22 May 2018 14:03:26 -0700 > From: Roopa Prabhu > > This series adds a new test to test fib rules. > ip route get is used to test fib rule matches. > This series also extends ip route get to match on > sport and dport to test recent support of sport > and dport fib

Re: [PATCH net] net: phy: broadcom: Fix auxiliary control register reads

2018-05-23 Thread David Miller
From: Florian Fainelli Date: Tue, 22 May 2018 16:22:26 -0700 > We are currently doing auxiliary control register reads with the shadow > register value 0b111 (0x7) which incidentally is also the selector value > that should be present in bits [2:0]. Fix this by using the appropriate > selector ma

Re: [net-next PATCH v2 2/4] net: Enable Tx queue selection based on Rx queues

2018-05-23 Thread Nambiar, Amritha
On 5/19/2018 1:13 PM, Willem de Bruijn wrote: > On Fri, May 18, 2018 at 12:03 AM, Tom Herbert wrote: >> On Tue, May 15, 2018 at 6:26 PM, Amritha Nambiar >> wrote: >>> This patch adds support to pick Tx queue based on the Rx queue map >>> configuration set by the admin through the sysfs attribute

[PATCH 05/33] fs: update documentation to mention __poll_t and match the code

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Reviewed-by: Greg Kroah-Hartman --- Documentation/filesystems/Locking | 2 +- Documentation/filesystems/vfs.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/filesystems/Locking b/Documentation

[PATCH 10/33] aio: implement IOCB_CMD_POLL

2018-05-23 Thread Christoph Hellwig
Simple one-shot poll through the io_submit() interface. To poll for a file descriptor the application should submit an iocb of type IOCB_CMD_POLL. It will poll the fd for the events specified in the the first 32 bits of the aio_buf field of the iocb. Unlike poll or epoll without EPOLLONESHOT thi

[PATCH 32/33] timerfd: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/timerfd.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/fs/timerfd.c b/fs/timerfd.c index cdad49da3ff7..d84a2bee4f82 100644 --- a/fs/timerfd.c +++ b/fs/timerfd.c @@ -226,21 +226,20 @@ static int timerfd_release

Estimado usuario

2018-05-23 Thread 12116 PFG
Estimado usuario Su buzón de correo ha superado el límite de almacenamiento de 20 GB configurado por el administrador, actualmente se está ejecutando en 20,9, no se puede enviar ni recibir mensajes nuevos hasta que se varify el buzón. Vuelva a validar su cuenta por correo, por favor llene y env

Estimado usuario

2018-05-23 Thread 12116 PFG
Estimado usuario Su buzón de correo ha superado el límite de almacenamiento de 20 GB configurado por el administrador, actualmente se está ejecutando en 20,9, no se puede enviar ni recibir mensajes nuevos hasta que se varify el buzón. Vuelva a validar su cuenta por correo, por favor llene y env

[PATCH 33/33] random: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
The big change is that random_read_wait and random_write_wait are merged into a single waitqueue that uses keyed wakeups. Because wait_event_* doesn't know about that this will lead to occassional spurious wakeups in _random_read and add_hwgenerator_randomness, but wait_event_* is designed to hand

[PATCH 29/33] crypto: af_alg: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- crypto/af_alg.c | 13 +++-- crypto/algif_aead.c | 4 ++-- crypto/algif_skcipher.c | 4 ++-- include/crypto/if_alg.h | 3 +-- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/crypto/af_alg.c b/crypto/af_alg.c index 80838c1c

[PATCH 31/33] eventfd: switch to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/eventfd.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/fs/eventfd.c b/fs/eventfd.c index 08d3bd602f73..61c9514da5e9 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -101,14 +101,20 @@ static int eventfd_release(struct

[PATCH 30/33] pipe: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/pipe.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/fs/pipe.c b/fs/pipe.c index 39d6f431da83..bb0840e234f3 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -509,19 +509,22 @@ static long pipe_ioctl(struct file *filp,

[PATCH 27/33] net/iucv: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/iucv/af_iucv.h | 2 -- net/iucv/af_iucv.c | 7 ++- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/include/net/iucv/af_iucv.h b/include/net/iucv/af_iucv.h index f4c21b5a1242..b0eaeb02d46d 100644 --- a/include/net/iucv/af_

[PATCH 28/33] net/rxrpc: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/rxrpc/af_rxrpc.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index 2b463047dd7b..3b1ac93efee2 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c @@ -734,15 +734,11 @@

[PATCH 26/33] net/phonet: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/phonet/socket.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/net/phonet/socket.c b/net/phonet/socket.c index 59f5b5dc5308..c295c4e20f01 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c @@ -340,15 +340,12 @@ static in

Re: [PATCH] selftests: uevent filtering

2018-05-23 Thread David Miller
From: Christian Brauner Date: Tue, 22 May 2018 21:34:21 +0200 > Recent discussions around uevent filtering (cf. net-next commit [1], [2], > and [3] and discussions in [4], [5], and [6]) have shown that the semantics > around uevent filtering where not well understood. > Now that we have settled -

[PATCH 24/33] net/caif: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/caif/caif_socket.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c index a6fb1b3bcad9..c7991867d622 100644 --- a/net/caif/caif_socket.c +++ b/net/caif/caif_socket.c @@ -934,15

[PATCH 25/33] net/nfc: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/nfc/llcp_sock.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/net/nfc/llcp_sock.c b/net/nfc/llcp_sock.c index ea0c0c6f1874..ab5bb14b49af 100644 --- a/net/nfc/llcp_sock.c +++ b/net/nfc/llcp_sock.c @@ -548,16 +548,13 @@ static

[PATCH 21/33] net/tipc: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/tipc/socket.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 6be21575503a..3bb45042e833 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -692,10 +692,9 @@ static int t

[PATCH 23/33] net/bluetooth: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/bluetooth/bluetooth.h | 2 +- net/bluetooth/af_bluetooth.c | 7 ++- net/bluetooth/l2cap_sock.c| 2 +- net/bluetooth/rfcomm/sock.c | 2 +- net/bluetooth/sco.c | 2 +- 5 files changed, 6 insertions(+), 9 deletions

[PATCH 22/33] net/sctp: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/sctp/sctp.h | 3 +-- net/sctp/ipv6.c | 2 +- net/sctp/protocol.c | 2 +- net/sctp/socket.c | 4 +--- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 28b996d634

[PATCH 18/33] net/dccp: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/dccp/dccp.h | 3 +-- net/dccp/ipv4.c | 2 +- net/dccp/ipv6.c | 2 +- net/dccp/proto.c | 13 ++--- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index f91e3816806b..0ea2ee56ac1b 100644 --- a/

[PATCH 20/33] net/vmw_vsock: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/vmw_vsock/af_vsock.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c index c1076c19b858..bb5d5fa68c35 100644 --- a/net/vmw_vsock/af_vsock.c +++ b/net/vmw_vsock/af_

[PATCH 17/33] net: convert datagram_poll users tp ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig Reviewed-by: Greg Kroah-Hartman --- drivers/isdn/mISDN/socket.c | 2 +- drivers/net/ppp/pppoe.c | 2 +- drivers/staging/ipx/af_ipx.c | 2 +- include/linux/skbuff.h | 3 +-- include/net/udp.h| 2 +- net/appletalk/ddp.c | 2 +-

Re: [PATCH net] net: phy: broadcom: Fix bcm_write_exp()

2018-05-23 Thread David Miller
From: Florian Fainelli Date: Tue, 22 May 2018 17:04:49 -0700 > On newer PHYs, we need to select the expansion register to write with > setting bits [11:8] to 0xf. This was done correctly by bcm7xxx.c prior > to being migrated to generic code under bcm-phy-lib.c which > unfortunately used the olde

[PATCH 14/33] net: remove sock_no_poll

2018-05-23 Thread Christoph Hellwig
Now that sock_poll handles a NULL ->poll or ->poll_mask there is no need for a stub. Signed-off-by: Christoph Hellwig --- crypto/af_alg.c | 1 - crypto/algif_hash.c | 2 -- crypto/algif_rng.c | 1 - drivers/isdn/mISDN/socket.c | 1 - drivers/net/ppp/pptp.c | 1 -

Re: [PATCH net-next] cxgb4: Add new T6 device ids

2018-05-23 Thread David Miller
From: Ganesh Goudar Date: Wed, 23 May 2018 11:36:59 +0530 > Add 0x6088 and 0x6089 device ids for new T6 cards. > > Signed-off-by: Ganesh Goudar Applied.

[PATCH 19/33] net/atm: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/atm/common.c | 11 +++ net/atm/common.h | 2 +- net/atm/pvc.c| 2 +- net/atm/svc.c| 2 +- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/net/atm/common.c b/net/atm/common.c index fc78a0508ae1..1f2af59935db 100644 --- a/n

[PATCH 16/33] net/unix: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/unix/af_unix.c | 30 +++--- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index e5473c03d667..95b02a71fd47 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -638,9

[PATCH net-next 0/2] net: phy: improve PHY suspend/resume

2018-05-23 Thread Heiner Kallweit
I have the issue that suspending the MAC-integrated PHY gives an error during system suspend. The sequence is: 1. unconnected PHY/MAC are runtime-suspended already 2. system suspend commences 3. mdio_bus_phy_suspend is called 4. suspend callback of the network driver is called (implicitly MAC/P

[PATCH 15/33] net/tcp: convert to ->poll_mask

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/tcp.h | 3 +-- net/ipv4/af_inet.c | 2 +- net/ipv4/tcp.c | 23 ++- net/ipv6/af_inet6.c | 2 +- 4 files changed, 9 insertions(+), 21 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index 51dc7a26a2fa..

[PATCH 11/33] aio: try to complete poll iocbs without context switch

2018-05-23 Thread Christoph Hellwig
If we can acquire ctx_lock without spinning we can just remove our iocb from the active_reqs list, and thus complete the iocbs from the wakeup context. Signed-off-by: Christoph Hellwig --- fs/aio.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/fs/aio.c

[PATCH 12/33] net: refactor socket_poll

2018-05-23 Thread Christoph Hellwig
Factor out two busy poll related helpers for late reuse, and remove a command that isn't very helpful, especially with the __poll_t annotations in place. Signed-off-by: Christoph Hellwig --- include/net/busy_poll.h | 15 +++ net/socket.c| 21 - 2 files

[PATCH 13/33] net: add support for ->poll_mask in proto_ops

2018-05-23 Thread Christoph Hellwig
The socket file operations still implement ->poll until all protocols are switched over. Signed-off-by: Christoph Hellwig --- include/linux/net.h | 1 + net/socket.c| 48 - 2 files changed, 44 insertions(+), 5 deletions(-) diff --git a/includ

Re: [net-next PATCH v2 2/4] net: Enable Tx queue selection based on Rx queues

2018-05-23 Thread Nambiar, Amritha
On 5/22/2018 7:09 AM, Tom Herbert wrote: > On Mon, May 21, 2018 at 8:12 AM, Willem de Bruijn > wrote: >> On Mon, May 21, 2018 at 10:51 AM, Tom Herbert wrote: >>> On Sat, May 19, 2018 at 1:27 PM, Willem de Bruijn >>> wrote: On Sat, May 19, 2018 at 4:13 PM, Willem de Bruijn wrote: >

[PATCH 09/33] aio: simplify cancellation

2018-05-23 Thread Christoph Hellwig
With the current aio code there is no need for the magic KIOCB_CANCELLED value, as a cancelation just kicks the driver to queue the completion ASAP, with all actual completion handling done in another thread. Given that both the completion path and cancelation take the context lock there is no need

[PATCH 08/33] aio: simplify KIOCB_KEY handling

2018-05-23 Thread Christoph Hellwig
No need to pass the key field to lookup_iocb to compare it with KIOCB_KEY, as we can do that right after retrieving it from userspace. Also move the KIOCB_KEY definition to aio.c as it is an internal value not used by any other place in the kernel. Signed-off-by: Christoph Hellwig --- fs/aio.c

Re: [Cake] [PATCH net-next v15 4/7] sch_cake: Add NAT awareness to packet classifier

2018-05-23 Thread Jonathan Morton
> On 23 May, 2018, at 9:44 pm, David Miller wrote: > > I'd much rather you do something NAT method agnostic, like save > or compute the necessary information on ingress and then later > use it on egress. We were under the impression that conntrack was the cleanest and most correct way to convey

[PATCH net-next 2/2] net: phy: improve checks for when to suspend the PHY

2018-05-23 Thread Heiner Kallweit
If the parent of the MDIO bus is runtime-suspended, we may not be able to access the MDIO bus. Therefore add a check for this situation. So far phy_suspend() only checks for WoL being enabled, other checks are in mdio_bus_phy_may_suspend(). Improve this and move all checks to a new function phy_ma

[PATCH 07/33] fs: introduce new ->get_poll_head and ->poll_mask methods

2018-05-23 Thread Christoph Hellwig
->get_poll_head returns the waitqueue that the poll operation is going to sleep on. Note that this means we can only use a single waitqueue for the poll, unlike some current drivers that use two waitqueues for different events. But now that we have keyed wakeups and heavily use those for poll the

[PATCH net-next 1/2] net: phy: improve check for when to call phy_resume in mdio_bus_phy_resume

2018-05-23 Thread Heiner Kallweit
We don't have to do all the checks again which we did in mdio_bus_phy_suspend already. Instead we can simply check whether the PHY is actually suspended and needs to be resumed. Signed-off-by: Heiner Kallweit --- drivers/net/phy/phy_device.c | 12 +--- 1 file changed, 5 insertions(+), 7

[PATCH 06/33] fs: add new vfs_poll and file_can_poll helpers

2018-05-23 Thread Christoph Hellwig
These abstract out calls to the poll method in preparation for changes in how we poll. Signed-off-by: Christoph Hellwig Reviewed-by: Greg Kroah-Hartman Reviewed-by: Darrick J. Wong --- drivers/staging/comedi/drivers/serial2002.c | 4 ++-- drivers/vfio/virqfd.c | 2 +- d

[PATCH 02/33] uapi: turn __poll_t sparse checkin on by default

2018-05-23 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/uapi/linux/types.h | 4 1 file changed, 4 deletions(-) diff --git a/include/uapi/linux/types.h b/include/uapi/linux/types.h index cd4f0b897a48..2fce8b6876e9 100644 --- a/include/uapi/linux/types.h +++ b/include/uapi/linux/types.h @@ -49,11 +49,7

aio poll and a new in-kernel poll API V13

2018-05-23 Thread Christoph Hellwig
Hi all, this series adds support for the IOCB_CMD_POLL operation to poll for the readyness of file descriptors using the aio subsystem. The API is based on patches that existed in RHAS2.1 and RHEL3, which means it already is supported by libaio. To implement the poll support efficiently new meth

[PATCH 04/33] fs: cleanup do_pollfd

2018-05-23 Thread Christoph Hellwig
Use straightline code with failure handling gotos instead of a lot of nested conditionals. Signed-off-by: Christoph Hellwig Reviewed-by: Greg Kroah-Hartman Reviewed-by: Darrick J. Wong --- fs/select.c | 48 +++- 1 file changed, 23 insertions(+), 25 d

[PATCH 01/33] fix io_destroy()/aio_complete() race

2018-05-23 Thread Christoph Hellwig
From: Al Viro If io_destroy() gets to cancelling everything that can be cancelled and gets to kiocb_cancel() calling the function driver has left in ->ki_cancel, it becomes vulnerable to a race with IO completion. At that point req is already taken off the list and aio_complete() does *NOT* spin

[PATCH 03/33] fs: unexport poll_schedule_timeout

2018-05-23 Thread Christoph Hellwig
No users outside of select.c. Signed-off-by: Christoph Hellwig Reviewed-by: Greg Kroah-Hartman Reviewed-by: Darrick J. Wong --- fs/select.c | 3 +-- include/linux/poll.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/select.c b/fs/select.c index ba879c51288f.

Re: [PATCH net-next 2/2] net: phy: improve checks for when to suspend the PHY

2018-05-23 Thread Florian Fainelli
On 05/23/2018 12:31 PM, Heiner Kallweit wrote: > If the parent of the MDIO bus is runtime-suspended, we may not be able > to access the MDIO bus. Therefore add a check for this situation. > > So far phy_suspend() only checks for WoL being enabled, other checks > are in mdio_bus_phy_may_suspend().

Re: [PATCH][V2] net/mlx4: fix spelling mistake: "Inrerface" -> "Interface" and rephrase message

2018-05-23 Thread David Miller
From: Colin King Date: Tue, 22 May 2018 16:42:51 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in mlx4_dbg debug message and also > change the phrasing of the message so that is is more readable > > Signed-off-by: Colin Ian King > > --- > V2: rephrase message, as helpfully

Re: [PATCH net-next v3 0/7] Add support for QCA8334 switch

2018-05-23 Thread David Miller
From: "Michal Vokáč" Date: Wed, 23 May 2018 08:20:17 +0200 > This series basically adds support for a QCA8334 ethernet switch to the > qca8k driver. It is a four-port variant of the already supported seven > port QCA8337. Register map is the same for the whole familly and all chips > have the sam

Re: [PATCH v4 0/3] IR decoding using BPF

2018-05-23 Thread Sean Young
On Wed, May 23, 2018 at 02:21:27PM +0200, Daniel Borkmann wrote: > On 05/18/2018 04:07 PM, Sean Young wrote: > > The kernel IR decoders (drivers/media/rc/ir-*-decoder.c) support the most > > widely used IR protocols, but there are many protocols which are not > > supported[1]. For example, the lirc

Re: [PATCH net] net/mlx4: Fix irq-unsafe spinlock usage

2018-05-23 Thread David Miller
From: Tariq Toukan Date: Wed, 23 May 2018 10:41:59 +0300 > From: Jack Morgenstein > > spin_lock/unlock was used instead of spin_un/lock_irq > in a procedure used in process space, on a spinlock > which can be grabbed in an interrupt. > > This caused the stack trace below to be displayed (on ke

Re: pull-request: mac80211-next 2018-05-23

2018-05-23 Thread David Miller
From: Johannes Berg Date: Wed, 23 May 2018 14:14:31 +0200 > Here's a new version of the pull request for net-next, now > with the stack size fixes included, which were the reason I > withdrew my earlier one. Other things are also included all > over the map. > > Please pull and let me know if th

Re: [PATCH net-next 1/2] cxgb4: change the port capability bits definition

2018-05-23 Thread David Miller
From: Ganesh Goudar Date: Wed, 23 May 2018 20:02:58 +0530 > MDI Port Capabilities bit definitions were inconsistent with > regard to the MDI enum values. 2 bits used to define MDI in > the port capabilities are not really separable, it's a 2-bit > field with 4 different values. Change the port ca

Re: [PATCH net-next 2/2] cxgb4: do L1 config when module is inserted

2018-05-23 Thread David Miller
From: Ganesh Goudar Date: Wed, 23 May 2018 20:03:33 +0530 > trigger an L1 configure operation when a transceiver module > is inserted in order to cause current "sticky" options like > Requested Forward Error Correction to be reapplied. > > Signed-off-by: Casey Leedom > Signed-off-by: Ganesh Gou

Re: [PATCH net-next 0/4] patches 2018-05-23

2018-05-23 Thread David Miller
From: Ursula Braun Date: Wed, 23 May 2018 16:38:08 +0200 > here are more smc-patches for net-next: > > Patch 1 fixes an ioctl problem detected by syzbot. > > Patch 2 improves smc_lgr_list locking in case of abnormal link > group termination. If you want to receive a version for the net-tree, >

Re: [patch iproute2/net-next 1/2] devlink: introduce support for showing port flavours

2018-05-23 Thread David Ahern
On 5/20/18 2:15 AM, Jiri Pirko wrote: > From: Jiri Pirko > > Signed-off-by: Jiri Pirko > --- > devlink/devlink.c| 20 > include/uapi/linux/devlink.h | 12 > 2 files changed, 32 insertions(+) > > applied to iproute2-next

Re: [Cake] [PATCH net-next v15 4/7] sch_cake: Add NAT awareness to packet classifier

2018-05-23 Thread David Miller
From: Jonathan Morton Date: Wed, 23 May 2018 22:31:53 +0300 > Remember that it takes two different qdiscs to implement ingress and > egress on the same physical interface, and there's no obvious > logical link between them - especially since the ingress one has to > be attached to an ifb, not to

Re: [patch iproute2/net-next 2/2] devlink: introduce support for showing port number and split subport number

2018-05-23 Thread David Ahern
On 5/20/18 2:15 AM, Jiri Pirko wrote: > From: Jiri Pirko > > Signed-off-by: Jiri Pirko > --- > devlink/devlink.c| 6 ++ > include/uapi/linux/devlink.h | 2 ++ > 2 files changed, 8 insertions(+) > > diff --git a/devlink/devlink.c b/devlink/devlink.c > index df2c66dac1c7..b0ae177

Re: [PATCH net-next 2/2] net: phy: improve checks for when to suspend the PHY

2018-05-23 Thread Heiner Kallweit
Am 23.05.2018 um 21:43 schrieb Florian Fainelli: > On 05/23/2018 12:31 PM, Heiner Kallweit wrote: >> If the parent of the MDIO bus is runtime-suspended, we may not be able >> to access the MDIO bus. Therefore add a check for this situation. >> >> So far phy_suspend() only checks for WoL being enabl

Re: [PATCH V4 0/8] net: ethernet: stmmac: add support for stm32mp1

2018-05-23 Thread David Miller
From: Christophe Roullier Date: Wed, 23 May 2018 17:47:51 +0200 > Patches to have Ethernet support on stm32mp1 > Changelog: > Remark from Rob Herring > Move Documentation/devicetree/bindings/arm/stm32.txt in > Documentation/devicetree/bindings/arm/stm32/stm32.txt and create > Documentation/devic

Re: [net-next 1/6] net/dcb: Add dcbnl buffer attribute

2018-05-23 Thread Jakub Kicinski
On Wed, 23 May 2018 06:52:33 -0700, John Fastabend wrote: > On 05/23/2018 02:43 AM, Jiri Pirko wrote: > > Tue, May 22, 2018 at 07:20:26AM CEST, jakub.kicin...@netronome.com wrote: > >> On Mon, 21 May 2018 14:04:57 -0700, Saeed Mahameed wrote: > >>> From: Huy Nguyen > >>> > >>> In this patch, w

[PATCH net-next v2 0/2] net: phy: improve PHY suspend/resume

2018-05-23 Thread Heiner Kallweit
I have the issue that suspending the MAC-integrated PHY gives an error during system suspend. The sequence is: 1. unconnected PHY/MAC are runtime-suspended already 2. system suspend commences 3. mdio_bus_phy_suspend is called 4. suspend callback of the network driver is called (implicitly MAC/P

  1   2   3   4   >