[PATCHv3 iproute2-next] ip/geneve: fix ttl inherit behavior

2018-10-22 Thread Hangbin Liu
Currently when we add geneve with "ttl inherit", we only set ttl to 0, which is actually use whatever default value instead of inherit the inner protocol's ttl value. To make a difference with ttl inherit and ttl == 0, we add an attribute IFLA_GENEVE_TTL_INHERIT in kernel commit 52d0d404d39dd

Re: [PATCH] net/mlx5: allocate enough space in

2018-10-22 Thread Or Gerlitz
On Mon, Oct 22, 2018 at 8:23 AM Dan Carpenter wrote: > > On Sun, Oct 21, 2018 at 01:56:26PM +0300, Or Gerlitz wrote: > > I will re-post your patch, this time to netdev since the original > > commit is there > > and so should be the fix, thanks for reporting/fixing! > > I didn't realize it had

Re: [PATCH] net/mlx5: Allocate enough space for the FDB sub-namespaces

2018-10-22 Thread Or Gerlitz
On Sun, Oct 21, 2018 at 2:47 PM Or Gerlitz wrote: > > From: Dan Carpenter > > FDB_MAX_CHAIN is three. We wanted to allocate enough memory to hold four > structs but there are missing parentheses so we only allocate enough > memory for three structs and the first byte of the fourth one. > >

Re: [PATCH] net/mlx5: allocate enough space in

2018-10-22 Thread Dan Carpenter
On Mon, Oct 22, 2018 at 09:18:43AM +0300, Or Gerlitz wrote: > On Mon, Oct 22, 2018 at 8:23 AM Dan Carpenter > wrote: > > > > On Sun, Oct 21, 2018 at 01:56:26PM +0300, Or Gerlitz wrote: > > > I will re-post your patch, this time to netdev since the original > > > commit is there > > > and so

Re: [PATCH net-next 0/3] sctp: add support for sk_reuseport

2018-10-22 Thread Marcelo Ricardo Leitner
On Sun, Oct 21, 2018 at 12:43:35PM +0800, Xin Long wrote: > sctp sk_reuseport allows multiple socks to listen on the same port and > addresses, as long as these socks have the same uid. This works pretty > much as TCP/UDP does, the only difference is that sctp is multi-homing > and all the

Re: [PATCH net-next 1/6] qed: Add doorbell overflow recovery mechanism

2018-10-22 Thread kbuild test robot
Hi Ariel, I love your patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Ariel-Elior/qed-Doorbell-overflow-recovery/20181022-212749 config: i386-randconfig-x005-201842 (attached as .config) compiler: gcc-7 (Debian 7.3.0

Re: [RFC PATCH v2 02/10] udp: implement GRO for plain UDP sockets.

2018-10-22 Thread Willem de Bruijn
On Mon, Oct 22, 2018 at 6:13 AM Paolo Abeni wrote: > > On Sun, 2018-10-21 at 16:06 -0400, Willem de Bruijn wrote: > > On Fri, Oct 19, 2018 at 10:30 AM Paolo Abeni wrote: > > > > > > This is the RX counterpart of commit bec1f6f69736 ("udp: generate gso > > > with UDP_SEGMENT"). When UDP_GRO is

[PATCH RFC net-next 3/3] bpf: Added a sample for tcp_info_notify callback

2018-10-22 Thread Sowmini Varadhan
Simple Proof-Of-Concept test program for BPF_TCP_INFO_NOTIFY (will move this to testing/selftests/net later) Signed-off-by: Sowmini Varadhan --- samples/bpf/Makefile |1 + samples/bpf/tcp_notify_kern.c | 73 + 2 files changed, 74

[PATCH RFC net-next 1/3] sock_diag: Refactor inet_sock_diag_destroy code

2018-10-22 Thread Sowmini Varadhan
We want to use the inet_sock_diag_destroy code to send notifications for more types of TCP events than just socket_close(), so refactor the code to allow this. Signed-off-by: Sowmini Varadhan --- include/linux/sock_diag.h | 18 +- include/uapi/linux/sock_diag.h |2 ++

[PATCH RFC net-next 0/3] Extensions to allow asynchronous TCP_INFO notifications based on congestion parameters

2018-10-22 Thread Sowmini Varadhan
Problem statement: We would like to monitor some subset of TCP sockets in user-space, (the monitoring application would define 4-tuples it wants to monitor) using TCP_INFO stats to analyze reported problems. The idea is to use those stats to see where the bottlenecks are likely to be ("is

[PATCH RFC net-next 2/3] tcp: BPF_TCP_INFO_NOTIFY support

2018-10-22 Thread Sowmini Varadhan
We want to be able to set up the monitoring application so that it can be aysnchronously notified when "interesting" events happen, e.g., when application-determined thresholds on parameters like RTT estimate, number of retransmissions, RTO are reached. The bpf_sock_ops infrastructure provided as

Re: [PATCH 13/17] octeontx2-af: Install ucast and bcast pkt forwarding rules

2018-10-22 Thread kbuild test robot
Hi Sunil, I love your patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on next-20181019] [cannot apply to v4.19] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH net-next] llc: do not use sk_eat_skb()

2018-10-22 Thread Eric Dumazet
syzkaller triggered a use-after-free [1], caused by a combination of skb_get() in llc_conn_state_process() and usage of sk_eat_skb() sk_eat_skb() is assuming the skb about to be freed is only used by the current thread. TCP/DCCP stacks enforce this because current thread holds the socket lock.

Re: [PATCH iproute2-next] Tree wide: Drop sockaddr_nl arg

2018-10-22 Thread Stephen Hemminger
On Fri, 19 Oct 2018 13:44:18 -0700 David Ahern wrote: > From: David Ahern > > No command, filter, or print function uses the sockaddr_nl arg, > so just drop it. > > Signed-off-by: David Ahern Acked-by: Stephen Hemminger

Re: [PATCH net-next 2/3] sctp: add sock_reuseport for the sock in __sctp_hash_endpoint

2018-10-22 Thread Marcelo Ricardo Leitner
On Sun, Oct 21, 2018 at 12:43:37PM +0800, Xin Long wrote: > This is a part of sk_reuseport support for sctp. It defines a helper > sctp_bind_addrs_check() to check if the bind_addrs in two socks are > matched. It will add sock_reuseport if they are completely matched, > and return err if they are

Re: [RFC PATCH v2 02/10] udp: implement GRO for plain UDP sockets.

2018-10-22 Thread Willem de Bruijn
> > > > > +static struct sk_buff *udp_gro_receive_segment(struct list_head *head, > > > + struct sk_buff *skb) > > > +{ > > > + struct udphdr *uh = udp_hdr(skb); > > > + struct sk_buff *pp = NULL; > > > + struct udphdr *uh2; > > > + struct sk_buff

Re: [RFC PATCH v2 06/10] udp: cope with UDP GRO packet misdirection

2018-10-22 Thread Willem de Bruijn
On Mon, Oct 22, 2018 at 6:29 AM Paolo Abeni wrote: > > On Sun, 2018-10-21 at 16:08 -0400, Willem de Bruijn wrote: > > On Fri, Oct 19, 2018 at 10:31 AM Paolo Abeni wrote: > > > > > > In some scenarios, the GRO engine can assemble an UDP GRO packet > > > that ultimately lands on a non GRO-enabled

Re: [RFC PATCH v2 08/10] selftests: conditionally enable XDP support in udpgso_bench_rx

2018-10-22 Thread Paolo Abeni
On Sun, 2018-10-21 at 16:09 -0400, Willem de Bruijn wrote: > On Fri, Oct 19, 2018 at 10:31 AM Paolo Abeni wrote: > > > > XDP support will be used by a later patch to test the GRO path > > in a net namespace, leveraging the veth XDP implementation. > > To avoid breaking existing setup, XDP

[PATCH net-next v2 6/6] qede: Register l2 queues with doorbell overflow recovery mechanism

2018-10-22 Thread Ariel Elior
All L2 queues funnel through this flow, so this would cover the regular RSS queues, as well queues created for VFs, mqos queues, xdp queues, etc. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon Signed-off-by: Tomer Tayar --- drivers/net/ethernet/qlogic/qede/qede_main.c | 9 +

[PATCH net-next v2 1/6] qed: Add doorbell overflow recovery mechanism

2018-10-22 Thread Ariel Elior
Add the database used to register doorbelling entities, and APIs for adding and deleting entries, and logic for traversing the database and doorbelling once on behalf of all entities. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon Signed-off-by: Tomer Tayar ---

[PATCH net-next 0/6 v2] qed*: Doorbell overflow recovery

2018-10-22 Thread Ariel Elior
Doorbell Overflow If sufficient CPU cores will send doorbells at a sufficiently high rate, they can cause an overflow in the doorbell queue block message fifo. When fill level reaches maximum, the device stops accepting all doorbells from that PF until a recovery procedure has taken place.

[PATCH net-next v2 5/6] qed: Expose the doorbell overflow recovery mechanism to the protocol drivers

2018-10-22 Thread Ariel Elior
Most of the doorbelling entities are outside of the core module. L2 queues, Roce queues, iscsi and fcoe all need to register. Make the APIs available for these drivers. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon Signed-off-by: Tomer Tayar ---

[PATCH net-next v2 3/6] qed: Register slowpath queue doorbell with doorbell overflow recovery mechanism

2018-10-22 Thread Ariel Elior
Slow path queue is a doorbelling entity. Register it with the overflow mechanism. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon Signed-off-by: Tomer Tayar --- drivers/net/ethernet/qlogic/qed/qed_sp.h | 4 ++- drivers/net/ethernet/qlogic/qed/qed_spq.c | 47

[PATCH net-next v2 4/6] qed: Register light L2 queues with doorbell overflow recovery mechanism

2018-10-22 Thread Ariel Elior
Light L2 queues are doorbelling entities. Modify the implementation to keep the doorbell data necessary for doorbelling in well known location instead of recomputing every time. Register the LL2 queue with doorbell recovery mechanism. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon

[PATCH net-next v2 2/6] qed: Use the doorbell overflow recovery mechanism in case of doorbell overflow

2018-10-22 Thread Ariel Elior
In case of an attention from the doorbell queue block, analyze the HW indications. In case of a doorbell overflow, execute a doorbell recovery. Since there can be spurious indications (race conditions between multiple PFs), schedule a periodic task for checking whether a doorbell overflow may have

Re: [RFC PATCH v2 03/10] udp: add support for UDP_GRO cmsg

2018-10-22 Thread Paolo Abeni
On Sun, 2018-10-21 at 16:07 -0400, Willem de Bruijn wrote: > On Fri, Oct 19, 2018 at 10:30 AM Paolo Abeni wrote: > > > > When UDP GRO is enabled, the UDP_GRO cmsg will carry the ingress > > datagram size. User-space can use such info to compute the original > > packets layout. > > > >

Re: [PATCH net-next 3/4] net: phy-c45: Implement reset/suspend/resume callbacks

2018-10-22 Thread Russell King - ARM Linux
On Mon, Oct 22, 2018 at 01:47:48PM +0100, Jose Abreu wrote: > Hello, > > On 22-10-2018 13:28, Andrew Lunn wrote: > >> EXPORT_SYMBOL_GPL(gen10g_resume); > >> @@ -327,7 +381,7 @@ struct phy_driver genphy_10g_driver = { > >>.phy_id = 0x, > >>.phy_id_mask= 0x, >

Re: [RFC PATCH v2 01/10] udp: implement complete book-keeping for encap_needed

2018-10-22 Thread Willem de Bruijn
On Fri, Oct 19, 2018 at 10:30 AM Paolo Abeni wrote: > > The *encap_needed static keys are enabled by UDP tunnels > and several UDP encapsulations type, but they are never > turned off. This can cause unneeded overall performance > degradation for systems where such features are used >

[PATCH bpf] bpf: devmap: fix wrong interface selection in notifier_call

2018-10-22 Thread Taehee Yoo
The dev_map_notification() removes interface in devmap if unregistering interface's ifindex is same. But only checking ifindex is not enough because other netns can have same ifindex. so that wrong interface selection could occurred. Hence the net_eq() is needed. Fixes: 2ddf71e23cc2 ("net: add

Re: [PATCH net-next 1/3] sctp: do reuseport_select_sock in __sctp_rcv_lookup_endpoint

2018-10-22 Thread Marcelo Ricardo Leitner
On Sun, Oct 21, 2018 at 12:43:36PM +0800, Xin Long wrote: > This is a part of sk_reuseport support for sctp, and it selects a > sock by the hashkey of lport, paddr and dport by default. It will > work until sk_reuseport support is added in sctp_get_port_local() > in the next patch. > >

Re: [PATCH net 2/4] net/sched: act_police: disallow 'goto chain' on fallback control action

2018-10-22 Thread Cong Wang
On Sat, Oct 20, 2018 at 2:33 PM Davide Caratti wrote: > > in the following command: > > # tc action add action police rate burst conform-exceed / > > 'goto chain x' is allowed only for c1: setting it for c2 makes the kernel > crash with NULL pointer dereference, since TC core doesn't

Re: [PATCH net 1/4] net/sched: act_gact: disallow 'goto chain' on fallback control action

2018-10-22 Thread Cong Wang
On Sat, Oct 20, 2018 at 2:33 PM Davide Caratti wrote: > > in the following command: > > # tc action add action random > > 'goto chain x' is allowed only for c1: setting it for c2 makes the kernel > crash with NULL pointer dereference, since TC core doesn't initialize the > chain handle. > >

Re: [iproute2 PATCH] bridge: fix vlan show stats formatting

2018-10-22 Thread Stephen Hemminger
On Sat, 20 Oct 2018 15:42:33 +0200 Tobias Jungel wrote: > The output of -statistics vlan show was broken previous change for json > output. This aligns the format to vlan show. > > Signed-off-by: Tobias Jungel Applied, thanks

Re: [PATCH iproute2 1/1] DEBUG: Fix make check when need build generate_nlmsg

2018-10-22 Thread Stephen Hemminger
On Tue, 25 Sep 2018 14:49:56 +0200 Petr Vorel wrote: > make check from top level Makefile defines several flags which break > building generate_nlmsg: > > $ make check > make -C tools > gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations > -Wold-style-definition

[PATCH v3 net-next 08/11] net: dsa: microchip: Rename ksz_9477_reg.h to ksz9477_reg.h

2018-10-22 Thread Tristram.Ha
From: Tristram Ha Rename ksz_9477_reg.h to ksz9477_reg.h for consistency as the product name is always KSZ. Signed-off-by: Tristram Ha Reviewed-by: Woojung Huh Reviewed-by: Andrew Lunn --- drivers/net/dsa/microchip/ksz9477.c | 2 +-

[PATCH v3 net-next 06/11] net: dsa: microchip: Break KSZ9477 DSA driver into two files

2018-10-22 Thread Tristram.Ha
From: Tristram Ha Break KSZ9477 DSA driver into two files in preparation to add more KSZ switch drivers. Add common functions in ksz_common.h so that other KSZ switch drivers can access code in ksz_common.c. Add ksz_spi.h for common functions used by KSZ switch SPI drivers. Signed-off-by:

[PATCH v3 net-next 11/11] net: dsa: microchip: Add switch offload forwarding support

2018-10-22 Thread Tristram.Ha
From: Tristram Ha Add switch offload forwarding support. Signed-off-by: Tristram Ha --- drivers/net/dsa/microchip/ksz9477.c | 3 +++ net/dsa/tag_ksz.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/net/dsa/microchip/ksz9477.c

[PATCH v3 net-next 04/11] net: dsa: microchip: Rename some functions with ksz9477 prefix

2018-10-22 Thread Tristram.Ha
From: Tristram Ha Rename some functions with ksz9477 prefix to separate chip specific code from common code. Signed-off-by: Tristram Ha Reviewed-by: Woojung Huh Reviewed-by: Pavel Machek Reviewed-by: Florian Fainelli Reviewed-by: Andrew Lunn --- drivers/net/dsa/microchip/ksz_common.c |

[PATCH v3 net-next 00/11] net: dsa: microchip: Modify KSZ9477 DSA driver in preparation to add other KSZ switch drivers

2018-10-22 Thread Tristram.Ha
From: Tristram Ha This series of patches is to modify the original KSZ9477 DSA driver so that other KSZ switch drivers can be added and use the common code. There are several steps to accomplish this achievement. First is to rename some function names with a prefix to indicate chip specific

[PATCH v3 net-next 05/11] net: dsa: microchip: Rename ksz_spi.c to ksz9477_spi.c

2018-10-22 Thread Tristram.Ha
From: Tristram Ha Rename ksz_spi.c to ksz9477_spi.c and update Kconfig in preparation to add more KSZ switch drivers. Signed-off-by: Tristram Ha Reviewed-by: Woojung Huh Reviewed-by: Pavel Machek Reviewed-by: Florian Fainelli Reviewed-by: Andrew Lunn --- drivers/net/dsa/microchip/Kconfig

[PATCH v3 net-next 03/11] net: dsa: microchip: Initialize mutex before use

2018-10-22 Thread Tristram.Ha
From: Tristram Ha Initialize mutex before use. Signed-off-by: Tristram Ha --- drivers/net/dsa/microchip/ksz_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 8c5853e..88e8d2a

[PATCH v3 net-next 01/11] net: dsa: microchip: Replace license with GPL

2018-10-22 Thread Tristram.Ha
From: Tristram Ha Replace license with GPL. Signed-off-by: Tristram Ha Reviewed-by: Woojung Huh Reviewed-by: Andrew Lunn --- drivers/net/dsa/microchip/ksz_9477_reg.h | 23 --- drivers/net/dsa/microchip/ksz_common.c | 23 ---

Re: [PATCH net] qlcnic: fix a return in qlcnic_dcb_get_capability()

2018-10-22 Thread David Miller
From: Dan Carpenter Date: Fri, 19 Oct 2018 23:11:11 +0300 > These functions are supposed to return one on failure and zero on > success. Returning a zero here could cause uninitialized variable > bugs in several of the callers. For example: > > drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:1660

Re: [PATCH net-next 0/4] net: Add support for dumping addresses for a specific device

2018-10-22 Thread David Miller
From: David Ahern Date: Fri, 19 Oct 2018 12:45:26 -0700 > From: David Ahern > > Use the recently added kernel side filter infrastructure to add support > for dumping addresses only for a specific device. > > Patch 1 creates an IPv4 version similar to IPv6's in6_dump_addrs function. > > Patch

Re: [PATCH net-next] net: phy: phy_support_sym_pause: Clear Asym Pause

2018-10-22 Thread David Miller
From: Andrew Lunn Date: Sat, 20 Oct 2018 22:41:28 +0200 > When indicating the MAC supports Symmetric Pause, clear the Asymmetric > Pause bit, which could of been already set is the PHY supports it. > > Reported-by: Labbe Corentin > Fixes: c306ad36184f ("net: ethernet: Add helper for MACs which

Re: [PATCH net 0/4] net/sched: forbid 'goto_chain' on fallback actions

2018-10-22 Thread David Miller
From: Davide Caratti Date: Sat, 20 Oct 2018 23:33:06 +0200 > the following command: > > # tc actions add action police rate 1mbit burst 1k conform-exceed \ > > pass / goto chain 42 > > generates a NULL pointer dereference when packets exceed the configured > rate. Similarly, the following

Re: [PATCH] net/mlx5: Allocate enough space for the FDB sub-namespaces

2018-10-22 Thread David Miller
From: Or Gerlitz Date: Sun, 21 Oct 2018 14:05:49 +0300 > From: Dan Carpenter > > FDB_MAX_CHAIN is three. We wanted to allocate enough memory to hold four > structs but there are missing parentheses so we only allocate enough > memory for three structs and the first byte of the fourth one. >

Re: [PATCH net-next] llc: do not use sk_eat_skb()

2018-10-22 Thread David Miller
From: Eric Dumazet Date: Mon, 22 Oct 2018 09:24:27 -0700 > syzkaller triggered a use-after-free [1], caused by a combination of > skb_get() in llc_conn_state_process() and usage of sk_eat_skb() > > sk_eat_skb() is assuming the skb about to be freed is only used by > the current thread. TCP/DCCP

net-next is CLOSED

2018-10-22 Thread David Miller
Please do not submit net-next changes until that tree opens back up again after the merge window. Thank you.

[PATCH net] net/ipv6: Add anycast addresses to a global hashtable

2018-10-22 Thread Jeff Barnhill
icmp6_send() function is expensive on systems with a large number of interfaces. Every time it’s called, it has to verify that the source address does not correspond to an existing anycast address by looping through every device and every anycast address on the device. This can result in

Re: [PATCH net] net/ipv6: Add anycast addresses to a global hashtable

2018-10-22 Thread Eric Dumazet
On 10/22/2018 07:12 PM, Jeff Barnhill wrote: > icmp6_send() function is expensive on systems with a large number of > interfaces. Every time it’s called, it has to verify that the source > address does not correspond to an existing anycast address by looping > through every device and every

[PATCH v3 net-next 09/11] net: dsa: microchip: Add MIB counter reading support

2018-10-22 Thread Tristram.Ha
From: Tristram Ha Add MIB counter reading support. Signed-off-by: Tristram Ha Reviewed-by: Woojung Huh --- drivers/net/dsa/microchip/ksz9477.c| 121 ++--- drivers/net/dsa/microchip/ksz_common.c | 101 +++

[PATCH v3 net-next 07/11] net: dsa: microchip: Prepare PHY for proper advertisement

2018-10-22 Thread Tristram.Ha
From: Tristram Ha Prepare PHY for proper advertisement and get link status for the port. Signed-off-by: Tristram Ha Reviewed-by: Woojung Huh --- drivers/net/dsa/microchip/ksz9477.c| 13 + drivers/net/dsa/microchip/ksz_common.c | 17 +

[PATCH v3 net-next 10/11] net: dsa: microchip: Modify tag_ksz.c so that tail tag code can be used by other KSZ switch drivers

2018-10-22 Thread Tristram.Ha
From: Tristram Ha Modify tag_ksz.c so that tail tag code can be used by other KSZ switch drivers. Signed-off-by: Tristram Ha Reviewed-by: Woojung Huh --- drivers/net/dsa/microchip/Kconfig | 2 +- drivers/net/dsa/microchip/ksz9477.c | 2 +- include/net/dsa.h | 2 +-

Re: [PATCH net-next] octeontx2-af: Remove set but not used variable 'block'

2018-10-22 Thread David Miller
From: YueHaibing Date: Fri, 19 Oct 2018 12:51:28 + > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c: In function > 'rvu_npa_init': > drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c:446:20: warning: > variable 'block' set but not

Re: [net 1/1] tipc: eliminate message disordering during binding table update

2018-10-22 Thread David Miller
From: Jon Maloy Date: Fri, 19 Oct 2018 19:55:40 +0200 > We have seen the following race scenario: > 1) named_distribute() builds a "bulk" message, containing a PUBLISH >item for a certain publication. This is based on the contents of >the binding tables's 'cluster_scope' list. > 2)

Re: [PATCH net-next] octeontx2-af: Remove set but not used variables 'devnum, is_pf'

2018-10-22 Thread David Miller
From: YueHaibing Date: Fri, 19 Oct 2018 13:03:06 + > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/ethernet/marvell/octeontx2/af/rvu.c: In function > 'rvu_detach_rsrcs': > drivers/net/ethernet/marvell/octeontx2/af/rvu.c:855:6: warning: > variable 'devnum' set but not used

Re: [PATCH V1 net-next] net: ena: fix compilation error in xtensa architecture

2018-10-22 Thread David Miller
From: Date: Sun, 21 Oct 2018 18:07:14 +0300 > From: Arthur Kiyanovski > > linux/prefetch.h is never explicitly included in ena_com, although > functions from it, such as prefetchw(), are used throughout ena_com. > This is an inclusion bug, and we fix it here by explicitly including >

Re: [PATCH v2 2/4] net: emac: implement TCP segmentation offload (TSO)

2018-10-22 Thread David Miller
From: Christian Lamparter Date: Mon, 22 Oct 2018 13:04:12 +0200 > @@ -1452,8 +1509,49 @@ static inline u16 emac_tx_vlan(struct emac_instance > *dev, struct sk_buff *skb) > return 0; > } > > +static netdev_tx_t > +emac_start_xmit_sg(struct sk_buff *skb, struct net_device *ndev); > + >

Re: [PATCH net-next v2 1/6] qed: Add doorbell overflow recovery mechanism

2018-10-22 Thread David Miller
From: Ariel Elior Date: Mon, 22 Oct 2018 19:40:40 +0300 > > +#ifndef writeq > +#define writeq writeq > +static inline void writeq(u64 val, void __iomem *reg) > +{ > + writel(val & 0x, reg); > + writel(val >> 32, reg + 0x4UL); > +} > +#endif Please use the appropriate generic

Re: [PATCH v2 00/17] octeontx2-af: NPC parser and NIX blocks initialization

2018-10-22 Thread David Miller
From: sunil.kovv...@gmail.com Date: Mon, 22 Oct 2018 23:25:47 +0530 > From: Sunil Goutham > > This patchset is a continuation to earlier submitted two patch > series to add a new driver for Marvell's OcteonTX2 SOC's > Resource virtualization unit (RVU) admin function driver. > > 1.

Re: [PATCH net-next] tls: Add maintainers

2018-10-22 Thread David Miller
From: Dave Watson Date: Mon, 22 Oct 2018 19:36:37 + > Add John and Daniel as additional tls co-maintainers to help review > patches and fix syzbot reports. > > Acked-by: John Fastabend > Acked-by: Daniel Borkmann > Signed-off-by: Dave Watson Applied.

Re: [PATCH v3 net-next 00/11] net: dsa: microchip: Modify KSZ9477 DSA driver in preparation to add other KSZ switch drivers

2018-10-22 Thread David Miller
From: Date: Mon, 22 Oct 2018 19:26:04 -0700 > This series of patches is to modify the original KSZ9477 DSA driver so > that other KSZ switch drivers can be added and use the common code. This doesn't apply cleanly to net-next. And the net-next tree is now closed due to the merge window, please

Re: [PATCH net-next 1/3] net/sock: factor out dequeue/peek with offset code

2018-10-22 Thread Alexei Starovoitov
On Mon, May 15, 2017 at 11:01:42AM +0200, Paolo Abeni wrote: > And update __sk_queue_drop_skb() to work on the specified queue. > This will help the udp protocol to use an additional private > rx queue in a later patch. > > Signed-off-by: Paolo Abeni > --- > include/linux/skbuff.h | 7 >

RE: [PATCH net-next v2 1/6] qed: Add doorbell overflow recovery mechanism

2018-10-22 Thread Elior, Ariel
> > > +#ifndef writeq > > +#define writeq writeq > > +static inline void writeq(u64 val, void __iomem *reg) > > +{ > > + writel(val & 0x, reg); > > + writel(val >> 32, reg + 0x4UL); > > +} > > +#endif > > Please use the appropriate generic header file to achieve this, do not >

Re: [PATCH net-next 1/6] qed: Add doorbell overflow recovery mechanism

2018-10-22 Thread kbuild test robot
Hi Ariel, I love your patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Ariel-Elior/qed-Doorbell-overflow-recovery/20181022-212749 config: i386-allyesconfig (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0

[PATCH net-next v3 2/6] qed: Use the doorbell overflow recovery mechanism in case of doorbell overflow

2018-10-22 Thread Ariel Elior
In case of an attention from the doorbell queue block, analyze the HW indications. In case of a doorbell overflow, execute a doorbell recovery. Since there can be spurious indications (race conditions between multiple PFs), schedule a periodic task for checking whether a doorbell overflow may have

[PATCH net-next v3 1/6] qed: Add doorbell overflow recovery mechanism

2018-10-22 Thread Ariel Elior
Add the database used to register doorbelling entities, and APIs for adding and deleting entries, and logic for traversing the database and doorbelling once on behalf of all entities. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon Signed-off-by: Tomer Tayar ---

[PATCH net-next v3 6/6] qede: Register l2 queues with doorbell overflow recovery mechanism

2018-10-22 Thread Ariel Elior
All L2 queues funnel through this flow, so this would cover the regular RSS queues, as well queues created for VFs, mqos queues, xdp queues, etc. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon Signed-off-by: Tomer Tayar --- drivers/net/ethernet/qlogic/qede/qede_main.c | 9 +

[PATCH net-next v3 3/6] qed: Register slowpath queue doorbell with doorbell overflow recovery mechanism

2018-10-22 Thread Ariel Elior
Slow path queue is a doorbelling entity. Register it with the overflow mechanism. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon Signed-off-by: Tomer Tayar --- drivers/net/ethernet/qlogic/qed/qed_sp.h | 4 ++- drivers/net/ethernet/qlogic/qed/qed_spq.c | 47

[PATCH net-next v3 4/6] qed: Register light L2 queues with doorbell overflow recovery mechanism

2018-10-22 Thread Ariel Elior
Light L2 queues are doorbelling entities. Modify the implementation to keep the doorbell data necessary for doorbelling in well known location instead of recomputing every time. Register the LL2 queue with doorbell recovery mechanism. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon

[PATCH net-next 0/6 v2] qed*: Doorbell overflow recovery

2018-10-22 Thread Ariel Elior
Doorbell Overflow If sufficient CPU cores will send doorbells at a sufficiently high rate, they can cause an overflow in the doorbell queue block message fifo. When fill level reaches maximum, the device stops accepting all doorbells from that PF until a recovery procedure has taken place.

[PATCH net-next v3 5/6] qed: Expose the doorbell overflow recovery mechanism to the protocol drivers

2018-10-22 Thread Ariel Elior
Most of the doorbelling entities are outside of the core module. L2 queues, Roce queues, iscsi and fcoe all need to register. Make the APIs available for these drivers. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon Signed-off-by: Tomer Tayar ---

Re: [RFC PATCH v2 07/10] selftests: add GRO support to udp bench rx program

2018-10-22 Thread Paolo Abeni
On Sun, 2018-10-21 at 16:08 -0400, Willem de Bruijn wrote: > On Fri, Oct 19, 2018 at 10:31 AM Paolo Abeni wrote: > > > > And fix a couple of buglets (port option processing, > > clean termination on SIGINT). This is preparatory work > > for GRO tests. > > > > Signed-off-by: Paolo Abeni > > ---

Re: [RFC PATCH v2 02/10] udp: implement GRO for plain UDP sockets.

2018-10-22 Thread Paolo Abeni
On Mon, 2018-10-22 at 13:24 +0200, Steffen Klassert wrote: > On Fri, Oct 19, 2018 at 04:25:12PM +0200, Paolo Abeni wrote: > > > > +#define UDO_GRO_CNT_MAX 64 > > Maybe better UDP_GRO_CNT_MAX? Oops, typo. Yes, sure, will address in the next iteration. > Btw. do we really need this explicit

Re: [PATCH bpf-next] selftests/bpf: enable (uncomment) all tests in test_libbpf.sh

2018-10-22 Thread Quentin Monnet
2018-10-21 23:04 UTC+0200 ~ Jesper Dangaard Brouer > On Sun, 21 Oct 2018 16:37:08 +0100 > Quentin Monnet wrote: > >> 2018-10-21 11:57 UTC+0200 ~ Jesper Dangaard Brouer >>> On Sat, 20 Oct 2018 23:00:24 +0100 >>> Quentin Monnet wrote: >>> >> >> [...] >> ---

[PATCH net-next 2/4] net: phy-c45: Populate autoneg_done callback

2018-10-22 Thread Jose Abreu
We already have this callback implemented. Use it in driver structure. Signed-off-by: Jose Abreu Cc: Andrew Lunn Cc: Florian Fainelli Cc: "David S. Miller" Cc: Joao Pinto --- drivers/net/phy/phy-c45.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/phy-c45.c

[PATCH net-next 3/4] net: phy-c45: Implement reset/suspend/resume callbacks

2018-10-22 Thread Jose Abreu
Implement the missing callbacks for Generic 10G PHY. Tested using XGMAC with a C45 PHY working at 10G Link. Signed-off-by: Jose Abreu Cc: Andrew Lunn Cc: Florian Fainelli Cc: "David S. Miller" Cc: Joao Pinto --- drivers/net/phy/phy-c45.c | 56 ++-

[PATCH net-next 4/4] net: phy-c45: Populate missing features

2018-10-22 Thread Jose Abreu
Populate the missing features field of Generic 10G PHY Driver. This will be overwritten in .config_init callback so we can just set basic 10G funcionalities in the field. Signed-off-by: Jose Abreu Cc: Andrew Lunn Cc: Florian Fainelli Cc: "David S. Miller" Cc: Joao Pinto ---

[PATCH net-next 0/4] net: phy: Misc improvements for Generic 10G PHY

2018-10-22 Thread Jose Abreu
Set of improvements for Generic 10G PHY. All of them tested using stmmac with XGMAC2 IP working at 10G Link with a C45 PHY. Cc: Andrew Lunn Cc: Florian Fainelli Cc: "David S. Miller" Cc: Joao Pinto Jose Abreu (4): net: phy: Use C45 Helpers when forcing PHY net: phy-c45: Populate

Re: [RFC PATCH v2 10/10] selftests: add functionals test for UDP GRO

2018-10-22 Thread Paolo Abeni
On Sun, 2018-10-21 at 16:09 -0400, Willem de Bruijn wrote: > On Fri, Oct 19, 2018 at 10:31 AM Paolo Abeni wrote: > > > > Extends the existing udp programs to allow checking for proper > > GRO aggregation/GSO size, and run the tests via a shell script, using > > a veth pair with XDP program

Re: [RFC PATCH v2 06/10] udp: cope with UDP GRO packet misdirection

2018-10-22 Thread Paolo Abeni
On Sun, 2018-10-21 at 16:08 -0400, Willem de Bruijn wrote: > On Fri, Oct 19, 2018 at 10:31 AM Paolo Abeni wrote: > > > > In some scenarios, the GRO engine can assemble an UDP GRO packet > > that ultimately lands on a non GRO-enabled socket. > > This patch tries to address the issue explicitly

Re: [RFC PATCH v2 06/10] udp: cope with UDP GRO packet misdirection

2018-10-22 Thread Steffen Klassert
On Fri, Oct 19, 2018 at 04:25:16PM +0200, Paolo Abeni wrote: > + > +static inline struct sk_buff *udp_rcv_segment(struct sock *sk, > + struct sk_buff *skb) > +{ > + struct sk_buff *segs; > + > + /* the GSO CB lays after the UDP one, no need to save

Re: [RFC PATCH v2 02/10] udp: implement GRO for plain UDP sockets.

2018-10-22 Thread Paolo Abeni
On Sun, 2018-10-21 at 16:06 -0400, Willem de Bruijn wrote: > On Fri, Oct 19, 2018 at 10:30 AM Paolo Abeni wrote: > > > > This is the RX counterpart of commit bec1f6f69736 ("udp: generate gso > > with UDP_SEGMENT"). When UDP_GRO is enabled, such socket is also > > eligible for GRO in the rx path:

[PATCH net-next 0/6] qed*: Doorbell overflow recovery

2018-10-22 Thread Ariel Elior
Doorbell Overflow If sufficient CPU cores will send doorbells at a sufficiently high rate, they can cause an overflow in the doorbell queue block message fifo. When fill level reaches maximum, the device stops accepting all doorbells from that PF until a recovery procedure has taken place.

[PATCH net-next 6/6] qede: Register l2 queues with doorbell overflow recovery mechanism

2018-10-22 Thread Ariel Elior
All L2 queues funnel through this flow, so this would cover the regular RSS queues, as well queues created for VFs, mqos queues, xdp queues, etc. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon Signed-off-by: Tomer Tayar --- drivers/net/ethernet/qlogic/qede/qede_main.c | 9 +

[PATCH net-next 4/6] qed: Register light L2 queues with doorbell overflow recovery mechanism

2018-10-22 Thread Ariel Elior
Light L2 queues are doorbelling entities. Modify the implementation to keep the doorbell data necessary for doorbelling in well known location instead of recomputing every time. Register the LL2 queue with doorbell recovery mechanism. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon

[PATCH net-next 3/6] qed: Register slowpath queue doorbell with doorbell overflow recovery mechanism

2018-10-22 Thread Ariel Elior
Slow path queue is a doorbelling entity. Register it with the overflow mechanism. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon Signed-off-by: Tomer Tayar --- drivers/net/ethernet/qlogic/qed/qed_sp.h | 4 ++- drivers/net/ethernet/qlogic/qed/qed_spq.c | 47

[PATCH net-next 2/6] qed: Use the doorbell overflow recovery mechanism in case of doorbell overflow

2018-10-22 Thread Ariel Elior
In case of an attention from the doorbell queue block, analyze the HW indications. In case of a doorbell overflow, execute a doorbell recovery. Since there can be spurious indications (race conditions between multiple PFs), schedule a periodic task for checking whether a doorbell overflow may have

[PATCH net-next 1/6] qed: Add doorbell overflow recovery mechanism

2018-10-22 Thread Ariel Elior
Add the database used to register doorbelling entities, and APIs for adding and deleting entries, and logic for traversing the database and doorbelling once on behalf of all entities. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon Signed-off-by: Tomer Tayar ---

[PATCH net-next 5/6] qed: Expose the doorbell overflow recovery mechanism to the protocol drivers

2018-10-22 Thread Ariel Elior
Most of the doorbelling entities are outside of the core module. L2 queues, Roce queues, iscsi and fcoe all need to register. Make the APIs available for these drivers. Signed-off-by: Ariel Elior Signed-off-by: Michal Kalderon Signed-off-by: Tomer Tayar ---

Re: [RFC PATCH v2 00/10] udp: implement GRO support

2018-10-22 Thread Paolo Abeni
Hi all, On Sun, 2018-10-21 at 16:05 -0400, Willem de Bruijn wrote: > On Fri, Oct 19, 2018 at 10:30 AM Paolo Abeni wrote: > > > > This series implements GRO support for UDP sockets, as the RX counterpart > > of commit bec1f6f69736 ("udp: generate gso with UDP_SEGMENT"). > > The core

[PATCH net-next 1/4] net: phy: Use C45 Helpers when forcing PHY

2018-10-22 Thread Jose Abreu
If PHY is in force state and we have a C45 phy we need to use the standard C45 helpers and not the C22 ones. Signed-off-by: Jose Abreu Cc: Andrew Lunn Cc: Florian Fainelli Cc: "David S. Miller" Cc: Joao Pinto --- drivers/net/phy/phy.c | 2 +- include/linux/phy.h | 8 2 files

[PATCH v2 2/4] net: emac: implement TCP segmentation offload (TSO)

2018-10-22 Thread Christian Lamparter
This patch enables TSO(v4) hw feature for emac driver. As atleast the APM82181's TCP/IP acceleration hardware controller (TAH) provides TCP segmentation support in the transmit path. Signed-off-by: Christian Lamparter --- drivers/net/ethernet/ibm/emac/core.c | 113 ++-

[PATCH v2 3/4] net: emac: remove IBM_EMAC_RX_SKB_HEADROOM

2018-10-22 Thread Christian Lamparter
The EMAC driver had a custom IBM_EMAC_RX_SKB_HEADROOM Kconfig option that reserved additional skb headroom for RX. This patch removes the option and migrates the code to use napi_alloc_skb() and netdev_alloc_skb_ip_align() in its place. Signed-off-by: Christian Lamparter ---

Re: [RFC PATCH v2 02/10] udp: implement GRO for plain UDP sockets.

2018-10-22 Thread Steffen Klassert
On Fri, Oct 19, 2018 at 04:25:12PM +0200, Paolo Abeni wrote: > > +#define UDO_GRO_CNT_MAX 64 Maybe better UDP_GRO_CNT_MAX? Btw. do we really need this explicit limit? We should not get more than 64 packets during one napi poll cycle. > +static struct sk_buff *udp_gro_receive_segment(struct

Re: [PATCH net-next 3/4] net: phy-c45: Implement reset/suspend/resume callbacks

2018-10-22 Thread Andrew Lunn
> EXPORT_SYMBOL_GPL(gen10g_resume); > @@ -327,7 +381,7 @@ struct phy_driver genphy_10g_driver = { > .phy_id = 0x, > .phy_id_mask= 0x, > .name = "Generic 10G PHY", > - .soft_reset = gen10g_no_soft_reset, > + .soft_reset =

Re: [RFC PATCH v2 06/10] udp: cope with UDP GRO packet misdirection

2018-10-22 Thread Paolo Abeni
Hi, On Mon, 2018-10-22 at 13:43 +0200, Steffen Klassert wrote: > On Fri, Oct 19, 2018 at 04:25:16PM +0200, Paolo Abeni wrote: > > + > > +static inline struct sk_buff *udp_rcv_segment(struct sock *sk, > > + struct sk_buff *skb) > > +{ > > + struct sk_buff

[PATCH v2 1/4] net: emac: implement 802.1Q VLAN TX tagging support

2018-10-22 Thread Christian Lamparter
As per' APM82181 Embedded Processor User Manual 26.1 EMAC Features: VLAN: - Support for VLAN tag ID in compliance with IEEE 802.3ac. - VLAN tag insertion or replacement for transmit packets This patch completes the missing code for the VLAN tx tagging support, as the the EMAC_MR1_VLE was

[PATCH v2 4/4] net: emac: add deprecation notice to emac custom phy users

2018-10-22 Thread Christian Lamparter
From: Christian Lamparter This patch starts the deprecation process of emac's small library of supported phys by adding a message to inform all remaining users to start looking into converting their platform's device-tree to PHYLIB. EMAC's phy.c support is limited to mostly single ethernet

  1   2   >