Cannot attach BPF to tracepoints

2017-03-10 Thread Dorau, Lukasz
Hi, I cannot attach BPF to tracepoints. I used bcc's (https://github.com/iovisor/bcc) trace.py tool: https://github.com/iovisor/bcc/blob/master/tools/trace.py to test this issue: # /usr/share/bcc/tools/trace t:syscalls:sys_enter_open ioctl(PERF_EVENT_IOC_SET_BPF): Invalid argument Failed to

[PATCH 3.16 316/370] VSOCK: do not disconnect socket when peer has shutdown SEND only

2017-03-10 Thread Ben Hutchings
3.16.42-rc1 review patch. If anyone has any objections, please let me know. -- From: Ian Campbell [ Upstream commit dedc58e067d8c379a15a8a183c5db318201295bb ] The peer may be expecting a reply having sent a request and then done a shutdown(SHUT_WR),

Re: [PATCH net-next v2] net: Add sysctl to toggle early demux for tcp and udp

2017-03-10 Thread kbuild test robot
-sysctl-to-toggle-early-demux-for-tcp-and-udp/20170310-184912 config: xtensa-common_defconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin

Re: [PATCH net-next v2] net: Add sysctl to toggle early demux for tcp and udp

2017-03-10 Thread kbuild test robot
-sysctl-to-toggle-early-demux-for-tcp-and-udp/20170310-184912 config: blackfin-BF561-EZKIT-SMP_defconfig (attached as .config) compiler: bfin-uclinux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x

[PATCH 3.16 330/370] net: sctp, forbid negative length

2017-03-10 Thread Ben Hutchings
3.16.42-rc1 review patch. If anyone has any objections, please let me know. -- From: Jiri Slaby [ Upstream commit a4b8e71b05c27bae6bad3bdecddbc6b68a3ad8cf ] Most of getsockopt handlers in net/sctp/socket.c check len against sizeof some structure like:

[PATCH v4 net-next 6/9] net: stmicro: flow_ctrl functions adapted to mtl

2017-03-10 Thread Joao Pinto
This patch adapts flow_ctrl function to prepare it for multiple queues. Signed-off-by: Joao Pinto --- Changes v3->v4: - variable init simplified in some functions Changes v1->v3: - Just to keep up with patch-set version drivers/net/ethernet/stmicro/stmmac/common.h

[PATCH v4 net-next 3/9] net: stmicro: configure tx queue weight

2017-03-10 Thread Joao Pinto
This patch adds TX queues weight programming. Signed-off-by: Joao Pinto --- Changes v3->v4: - variable init was simplified in some functions Changes v2->v3: - local variable declarations from longest to shortest line Changes v1->v2: - Just to keep up with patch-set version

[PATCH v4 net-next 1/9] net: stmicro: multiple queues dt configuration

2017-03-10 Thread Joao Pinto
This patch adds the multiple queues configuration in the Device Tree. It was also created a set of structures to keep the RX and TX queues configurations to be used in the driver. Signed-off-by: Joao Pinto --- Changes v2->v4: - Just to keep up with patch-set version Changes

[PATCH v4 net-next 4/9] net: stmicro: mtl rx queue enabled as dcb or avb

2017-03-10 Thread Joao Pinto
This patch introduces the enabling of RX queues as DCB or as AVB based on configuration. Signed-off-by: Joao Pinto --- Changes v3->v4: - variable init was simplified in some functions Changes v1->v3: - Just to keep up with patch-set version

[PATCH v4 net-next 2/9] net: stmicro: configure mtl rx and tx algorithms

2017-03-10 Thread Joao Pinto
This patch adds the RX and TX scheduling algorithms programming. It introduces the multiple queues configuration function (stmmac_mtl_configuration) in stmmac_main. Signed-off-by: Joao Pinto --- Changes v3->v4: - Just to keep up with patch-set version Changes v2->v3: -

[PATCH net 3/5] net/mlx5e: remove IEEE/CEE mode check when setting DCBX mode

2017-03-10 Thread Saeed Mahameed
From: Huy Nguyen Currently, the function setdcbx fails if the request dcbx mode is either IEEE or CEE. We remove the IEEE/CEE mode check because we support both IEEE and CEE interfaces. Fixes: 3a6a931dfb8e ("net/mlx5e: Support DCBX CEE API") Signed-off-by: Huy Nguyen

[PATCH net 5/5] net/mlx5e: Fix loopback selftest

2017-03-10 Thread Saeed Mahameed
From: Eugenia Emantayev Change packet type handler to ETH_P_IP instead of ETH_P_ALL since we are already expecting an IP packet. Also, using ETH_P_ALL will cause the loopback test packet type handler to be called on all outgoing packets, especially our own self loopback

[PATCH net 2/5] net/mlx5: Don't save PCI state when PCI error is detected

2017-03-10 Thread Saeed Mahameed
From: Daniel Jurgens When a PCI error is detected the PCI state could be corrupt, don't save it in that flow. Save the state after initialization. After restoring the PCI state during slot reset save it again, restoring the state destroys the previously saved state info.

[PATCH net 4/5] net/mlx5e: Avoid wrong identification of rules on deletion

2017-03-10 Thread Saeed Mahameed
From: Or Gerlitz When deleting offloaded TC flows, we must correctly identify E-switch rules. The current check could get us wrong w.r.t to rules set on the PF. Since it's possible to set NIC rules on the PF, switch to SRIOV offloads mode and then attempt to delete a NIC

[PATCH net 1/5] net/mlx5: Fix create autogroup prev initializer

2017-03-10 Thread Saeed Mahameed
From: Paul Blakey The autogroups list is a list of non overlapping group boundaries sorted by their start index. If the autogroups list wasn't empty and an empty group slot was found at the start of the list, the new group was added to the end of the list instead of the

[PATCH net 0/5] Mellanox mlx5 fixes 2017-03-09

2017-03-10 Thread Saeed Mahameed
Hi Dave, This series contains some mlx5 core and ethernet driver fixes. For -stable: net/mlx5e: remove IEEE/CEE mode check when setting DCBX mode (for kernel >= 4.10) net/mlx5e: Avoid wrong identification of rules on deletion (for kernel >= 4.9) net/mlx5: Don't save PCI state when PCI error is

[PATCH v4 net-next 7/9] net: stmicro: prepare irq_status for mtl

2017-03-10 Thread Joao Pinto
This patch prepares mac irq status treatment for multiple queues. Signed-off-by: Joao Pinto --- Changes v3->v4: - Build error in dwmac4_irq_mtl_status() - variable init simplified in some functions changes v2->v3: - local variable declarations from longest to shortest line

[PATCH v4 net-next 9/9] net: stmicro: configuration of CBS in case of a TX AVB queue

2017-03-10 Thread Joao Pinto
This patch adds the configuration of the AVB Credit-Based Shaper. Signed-off-by: Joao Pinto --- Changes v3->v4: - variable init was simplified in some functions Changes v1->v3: - Added in v3 Documentation/devicetree/bindings/net/stmmac.txt | 22 +--

Re: "TCP: eth0: Driver has suspect GRO implementation, TCP performance may be compromised." message with "ethtool -K eth0 gro off"

2017-03-10 Thread Markus Trippelsdorf
On 2017.02.06 at 19:12 -0200, Marcelo Ricardo Leitner wrote: > On Fri, Feb 03, 2017 at 06:47:33AM -0800, Eric Dumazet wrote: > > On Fri, 2017-02-03 at 12:28 -0200, Marcelo Ricardo Leitner wrote: > > > > > Aren't you mixing the endpoints here? MSS is the largest amount of data > > > that the peer

[PATCH] Make IP 'forwarding' doc more precise

2017-03-10 Thread Neil Jerram
It wasn't clear if the 'forwarding' setting needs to be enabled on the interface that packets are received from, or on the interface that packets are forwarded to, or both. In fact (according to my code reading) the setting is relevant on the interface that packets are received from, so this

[PATCH v4 net-next 8/9] net: stmicro: mac debug prepared for multiple queues

2017-03-10 Thread Joao Pinto
This patch prepares mac debug dump for multiple queues. Signed-off-by: Joao Pinto --- Changes v3->v4: - Debug function now gets all rx / tx queues data Changes v1->v3: - Just to keep up with patch-set version drivers/net/ethernet/stmicro/stmmac/common.h | 3 +-

[PATCH v4 net-next 5/9] net: stmicro: mapping mtl rx to dma channel

2017-03-10 Thread Joao Pinto
This patch adds the functionality of RX queue to dma channel mapping based on configuration. Signed-off-by: Joao Pinto --- changes v3->v4: - variable init was simplified in some functions changes v1->v3: - Just to keep up with patch-set version

[PATCH v4 net-next 0/9] prepare mac operations for multiple queues

2017-03-10 Thread Joao Pinto
As agreed with David Miller, this patch-set is the first of 3 to enable multiple queues in stmmac. This first one concentrates on mac operations adding functionalities as: a) Configuration through DT b) RX and TX scheduling algorithms programming b) TX queues weight programming (essential in

Re: [PATCH v2] selinux: check for address length in selinux_socket_bind()

2017-03-10 Thread Paul Moore
On Thu, Mar 9, 2017 at 2:12 AM, David Miller wrote: > From: Alexander Potapenko > Date: Mon, 6 Mar 2017 19:46:14 +0100 > >> KMSAN (KernelMemorySanitizer, a new error detection tool) reports use of >> uninitialized memory in selinux_socket_bind(): > ...

[PATCH 3.2 167/199] net: sctp, forbid negative length

2017-03-10 Thread Ben Hutchings
3.2.87-rc1 review patch. If anyone has any objections, please let me know. -- From: Jiri Slaby [ Upstream commit a4b8e71b05c27bae6bad3bdecddbc6b68a3ad8cf ] Most of getsockopt handlers in net/sctp/socket.c check len against sizeof some structure like:

Re: [PATCH net-next 1/8] net: stmicro: multiple queues dt configuration (fwd)

2017-03-10 Thread Joao Pinto
Hi Julia, Às 8:56 PM de 3/9/2017, Julia Lawall escreveu: > This is just pointing out that lines 200 and 202 are identical. Yes you are correct. I put like this because you can have an algorithm configured, but for some reason you may forget to declare it and so I am assuming Strict Priority as

Re: [PATCH 4/7] net: stmmac: Parse FIFO sizes from feature registers

2017-03-10 Thread Joao Pinto
Às 7:41 PM de 3/9/2017, Thierry Reding escreveu: > On Thu, Mar 02, 2017 at 03:09:11PM +, Joao Pinto wrote: >> Hi Thierry, >> >> Às 5:24 PM de 2/23/2017, Thierry Reding escreveu: >>> From: Thierry Reding >>> >>> New version of this core encode the FIFO sizes in one of the

Re: [PATCH net-next v2 2/2] mpls: allow TTL propagation from IP packets to be configured

2017-03-10 Thread Robert Shearman
On 10/03/17 02:54, David Ahern wrote: On 3/7/17 5:46 PM, Robert Shearman wrote: @@ -78,6 +70,29 @@ static int mpls_xmit(struct sk_buff *skb) tun_encap_info = mpls_lwtunnel_encap(dst->lwtstate); + /* Obtain the ttl */ + if (dst->ops->family == AF_INET) { + if

Re: [PATCH net-next v2 1/2] mpls: allow TTL propagation to IP packets to be configured

2017-03-10 Thread Robert Shearman
On 10/03/17 02:00, David Ahern wrote: On 3/7/17 5:46 PM, Robert Shearman wrote: @@ -244,24 +245,33 @@ static bool mpls_egress(struct mpls_route *rt, struct sk_buff *skb, payload_type = ip_hdr(skb)->version; switch (payload_type) { - case MPT_IPV4: { -

Re: [PATCH net-next v2 1/2] mpls: allow TTL propagation to IP packets to be configured

2017-03-10 Thread Robert Shearman
On 10/03/17 02:40, David Ahern wrote: On 3/7/17 5:46 PM, Robert Shearman wrote: diff --git a/include/net/netns/mpls.h b/include/net/netns/mpls.h index d29203651c01..58e0e46c4a5c 100644 --- a/include/net/netns/mpls.h +++ b/include/net/netns/mpls.h @@ -10,7 +10,9 @@ struct ctl_table_header;

Re: [PATCH net-next] qed*: Utilize Firmware 8.15.3.0

2017-03-10 Thread kbuild test robot
Hi Yuval, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Yuval-Mintz/qed-Utilize-Firmware-8-15-3-0/20170310-154337 config: xtensa-allmodconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https

<    1   2