Alerta **acj-ymca.org

2017-11-04 Thread acj-ymca.orgr
Estimado usuario de correo electrónico Su buzón ha superado el límite de almacenamiento, que establece el administrador, puede que no sea capaz de enviar o recibir correo nuevo hasta que vuelva a validar su buzón. Para volver a validar su buzón de correo por favor enviar los siguientes datos a

Re: [PATCH] net/mlx5e/core/en_fs: fix pointer dereference after free in mlx5e_execute_l2_action

2017-11-04 Thread Saeed Mahameed
On Sat, Nov 4, 2017 at 8:54 PM, Gustavo A. R. Silva wrote: > hn is being kfree'd in mlx5e_del_l2_from_hash and then dereferenced > by accessing hn->ai.addr > > Fix this by copying the MAC address into a local variable for its safe use > in all possible execution paths

[net-next V2 01/12] net/dcb: Add dscp to priority selector type

2017-11-04 Thread Saeed Mahameed
From: Huy Nguyen IEEE specification P802.1Qcd/D2.1 defines priority selector 5. This APP TLV selector defines DSCP to priority map. This patch defines such DSCP selector. Signed-off-by: Huy Nguyen Reviewed-by: Parav Pandit Reviewed-by:

[net-next V2 05/12] net/mlx5e: Add dcbnl dscp to priority support

2017-11-04 Thread Saeed Mahameed
From: Huy Nguyen This patch implements dcbnl hooks to set and delete DSCP to priority map as defined by the DCB subsystem. Device maintains internal trust state which needs to be set to DSCP state for performing DSCP to priority mapping. When the first dscp to priority APP

[net-next V2 07/12] net/mlx5e: Add support for ethtool msglvl support

2017-11-04 Thread Saeed Mahameed
From: Gal Pressman Use ethtool -s msglvl on/off to toggle debug messages. Signed-off-by: Gal Pressman Signed-off-by: Inbar Karmy Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en.h

[net-next V2 03/12] net/mlx5: Add MLX5_SET16 and MLX5_GET16

2017-11-04 Thread Saeed Mahameed
From: Huy Nguyen Add MLX5_SET16 and MLX5_GET16 for 16bit structure field in firmware command. Signed-off-by: Huy Nguyen Reviewed-by: Parav Pandit Reviewed-by: Eli Cohen Signed-off-by: Saeed Mahameed

[net-next V2 08/12] net/mlx5e: DCBNL, Add debug messages log

2017-11-04 Thread Saeed Mahameed
From: Inbar Karmy Add debug print when changing the configuration of QoS through dcbnl. Use ethtool -s msglvl hw on/off to toggle debug messages. Signed-off-by: Inbar Karmy Reviewed-by: Gal Pressman Signed-off-by: Saeed Mahameed

[net-next V2 10/12] net/mlx5: Initialize destination_flow struct to 0

2017-11-04 Thread Saeed Mahameed
From: Rabie Loulou This is needed in order to enlarge it with more members that will get value of 0 when not set. Signed-off-by: Rabie Loulou Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed ---

[pull request][net-next V2 00/12] Mellanox, mlx5 updates 2017-11-04

2017-11-04 Thread Saeed Mahameed
Hi Dave, The following series provides updates for mlx5 driver which includes dscp to priority mapping support and some other misc small changes. For extra information please see tag log below. Please Pull and let me know if ther's any problem. V1->V2: - Add missing Reviewed-by tags.

[net-next V2 09/12] net/mlx5: Enlarge the NIC TC offload table size

2017-11-04 Thread Saeed Mahameed
From: Or Gerlitz The NIC TC offload table size was hard coded to 1k. Change it to be min(max NIC RX table size, min(max flow counters, 64k) * num flow groups) where the max values are read from the firmware and the number of flow groups is hard-coded as

[net-next V2 06/12] net/mlx5e: Support DSCP trust state to Ethernet's IP packet on SQ

2017-11-04 Thread Saeed Mahameed
From: Huy Nguyen If the port is in DSCP trust state, packets are placed in the right priority queue based on the dscp value. This is done by selecting the transmit queue based on the dscp of the skb. Until now select_queue honors priority only from the vlan header. However

[net-next V2 11/12] net/mlx5e: IPoIB, Add inner TTC table to IPoIB flow steering

2017-11-04 Thread Saeed Mahameed
From: Feras Daoud For supported platforms, add inner TTC flow table to enhanced IPoIB flow steering. Signed-off-by: Feras Daoud Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 3 +++

[net-next V2 04/12] net/mlx5: QPTS and QPDPM register firmware command support

2017-11-04 Thread Saeed Mahameed
From: Huy Nguyen The QPTS register allows changing the priority trust state between pcp and dscp. Add support to get/set trust state from device. When the port is in pcp/dscp trust state, packet is routed by hardware to matching priority based on its pcp/dscp value

[net-next V2 12/12] net/mlx5e: Enable CQE based moderation on TX CQ

2017-11-04 Thread Saeed Mahameed
From: Tal Gilboa By using CQE based moderation on TX CQ we can reduce the number of TX interrupt rate. Besides the benefit of less interrupts, this also allows the kernel to better utilize TSO. Since TSO has some CPU overhead, it might not aggregate when CPU is under high

[net-next V2 02/12] net/mlx5: QCAM register firmware command support

2017-11-04 Thread Saeed Mahameed
From: Huy Nguyen The QCAM register provides capability bit for all the QoS registers using ACCESS_REG command. Signed-off-by: Huy Nguyen Reviewed-by: Parav Pandit Reviewed-by: Or Gerlitz Signed-off-by: Saeed

Re: [net-next 03/12] net/mlx5: Add MLX5_SET16 and MLX5_GET16

2017-11-04 Thread Saeed Mahameed
On Sat, Nov 4, 2017 at 5:55 AM, Or Gerlitz wrote: > On Sat, Nov 4, 2017 at 6:35 PM, David Miller wrote: >> From: Or Gerlitz >> Date: Sat, 4 Nov 2017 18:05:29 +0900 >> >>> On Sat, Nov 4, 2017 at 5:50 PM, Saeed Mahameed

[PATCH] net/mlx5e/core/en_fs: fix pointer dereference after free in mlx5e_execute_l2_action

2017-11-04 Thread Gustavo A. R. Silva
hn is being kfree'd in mlx5e_del_l2_from_hash and then dereferenced by accessing hn->ai.addr Fix this by copying the MAC address into a local variable for its safe use in all possible execution paths within function mlx5e_execute_l2_action. Addresses-Coverity-ID: 1417789 Fixes: eeb66cdb6826

[PATCH v4 1/1] xdp: Sample xdp program implementing ip forward

2017-11-04 Thread Christina Jacob
From: Christina Jacob Implements port to port forwarding with route table and arp table lookup for ipv4 packets using bpf_redirect helper function and lpm_trie map. Signed-off-by: Christina Jacob --- samples/bpf/Makefile |

[PATCH v4 0/1] XDP program for ip forward

2017-11-04 Thread Christina Jacob
From: Christina Jacob The patch below implements port to port forwarding through route table and arp table lookup for ipv4 packets using bpf_redirect helper function and lpm_trie map. This has an improved performance over the normal kernel stack ip forward.

Re: linux-next: manual merge of the tip tree with the net-next tree

2017-11-04 Thread Stephen Rothwell
Hi Alexei, On Wed, 1 Nov 2017 09:27:14 -0700 Alexei Starovoitov wrote: > > Also what do you mean by "same patch != same commit" ? > Like if we had pushed to some 3rd tree first and then pulled > into tip and net-next it would have been better? Well, it would not

Re: [PATCH net-next] ipv6: remove IN6_ADDR_HSIZE from addrconf.h

2017-11-04 Thread David Miller
From: Eric Dumazet Date: Sat, 04 Nov 2017 08:53:27 -0700 > From: Eric Dumazet > > IN6_ADDR_HSIZE is private to addrconf.c, move it here to avoid > confusion. > > Signed-off-by: Eric Dumazet > --- > Should be applied after

Re: [PATCH net-next] pktgen: do not abuse IN6_ADDR_HSIZE

2017-11-04 Thread David Miller
From: Eric Dumazet Date: Sat, 04 Nov 2017 08:27:14 -0700 > From: Eric Dumazet > > pktgen accidentally used IN6_ADDR_HSIZE, instead of using the size of an > IPv6 address. > > Since IN6_ADDR_HSIZE recently was increased from 16 to 256, this old >

Re: [PATCH net-next] ipv6: remove IN6_ADDR_HSIZE from addrconf.h

2017-11-04 Thread David Ahern
On 11/5/17 12:53 AM, Eric Dumazet wrote: > From: Eric Dumazet > > IN6_ADDR_HSIZE is private to addrconf.c, move it here to avoid > confusion. > > Signed-off-by: Eric Dumazet > --- > Should be applied after pktgen fix, thanks ! > >

Re: [PATCH resend 2/2] userns: control capabilities of some user namespaces

2017-11-04 Thread Serge E. Hallyn
Quoting Mahesh Bandewar (mah...@bandewar.net): > Init-user-ns is always uncontrolled and a process that has SYS_ADMIN > that belongs to uncontrolled user-ns can create another (child) user- > namespace that is uncontrolled. Any other process (that either does > not have SYS_ADMIN or belongs to a

Re: Regression in throughput between kvm guests over virtual bridge

2017-11-04 Thread Wei Xu
On Fri, Nov 03, 2017 at 12:30:12AM -0400, Matthew Rosato wrote: > On 10/31/2017 03:07 AM, Wei Xu wrote: > > On Thu, Oct 26, 2017 at 01:53:12PM -0400, Matthew Rosato wrote: > >> > >>> > >>> Are you using the same binding as mentioned in previous mail sent by you? > >>> it > >>> might be caused by

Re: [patch net-next 3/5] net: sched: introduce block mechanism to handle netif_keep_dst calls

2017-11-04 Thread Daniel Borkmann
On 11/04/2017 02:01 PM, Jiri Pirko wrote: [...] Ah, indeed, I missed this. I will rename TCQ_F_INGRESS to TCQ_F_CLSACT as a part of this patchset too. Sounds reasonable, thanks!

Re: [RFC PATCH] bpf: Add helpers to read useful task_struct members

2017-11-04 Thread Alexei Starovoitov
On 11/5/17 2:31 AM, Naveen N. Rao wrote: Hi Alexei, Alexei Starovoitov wrote: On 11/3/17 3:58 PM, Sandipan Das wrote: For added security, the layout of some structures can be randomized by enabling CONFIG_GCC_PLUGIN_RANDSTRUCT. One such structure is task_struct. To build BPF programs, we use

Re: [net-next 0/7] nfp: ethtool and related improvements

2017-11-04 Thread Jakub Kicinski
On Sat, 4 Nov 2017 16:48:53 +0100, Simon Horman wrote: > Dirk van der Merwe says: > > This patch series throws a couple of loosely related items into a single > series. > > Patch 1: Clang compilation fix reported by > Matthias Kaehlcke > > Patch 2: Driver can now do MAC

Re: [PATCH] rtlwifi: remove redundant initialization to cfg_cmd

2017-11-04 Thread Larry Finger
On 11/04/2017 02:37 PM, Colin King wrote: From: Colin Ian King cfg_cmd is initialized to zero and this value is never read, instead it is over-written in the start of a do-while loop. Remove the redundant initialization. Cleans up clang warning:

[PATCH] rtlwifi: remove redundant initialization to cfg_cmd

2017-11-04 Thread Colin King
From: Colin Ian King cfg_cmd is initialized to zero and this value is never read, instead it is over-written in the start of a do-while loop. Remove the redundant initialization. Cleans up clang warning: drivers/net/wireless/realtek/rtlwifi/core.c:1750:22: warning:

Re: [RFC PATCH] bpf: Add helpers to read useful task_struct members

2017-11-04 Thread Naveen N. Rao
Hi Alexei, Alexei Starovoitov wrote: On 11/3/17 3:58 PM, Sandipan Das wrote: For added security, the layout of some structures can be randomized by enabling CONFIG_GCC_PLUGIN_RANDSTRUCT. One such structure is task_struct. To build BPF programs, we use Clang which does not support this feature.

[PATCH net-next] ipv6: remove IN6_ADDR_HSIZE from addrconf.h

2017-11-04 Thread Eric Dumazet
From: Eric Dumazet IN6_ADDR_HSIZE is private to addrconf.c, move it here to avoid confusion. Signed-off-by: Eric Dumazet --- Should be applied after pktgen fix, thanks ! include/net/addrconf.h |3 --- net/ipv6/addrconf.c|2 ++ 2 files

[net-next 3/7] nfp: refactor nfp_app_reprs_set

2017-11-04 Thread Simon Horman
From: Dirk van der Merwe The criteria that reprs cannot be replaced with another new set of reprs has been removed. This check is not needed since the only use case that could exercise this at the moment, would be to modify the number of SRIOV VFs without first

[net-next 6/7] nfp: add helpers for FEC support

2017-11-04 Thread Simon Horman
From: Dirk van der Merwe Implement helpers to determine and modify FEC modes via the NSP. The NSP advertises FEC capabilities on a per port basis and provides support for: * Auto mode selection * Reed Solomon * BaseR * None/Off Signed-off-by: Dirk van der Merwe

[net-next 2/7] nfp: make use of MAC reinit

2017-11-04 Thread Simon Horman
From: Jakub Kicinski Recent management FW images can perform full reinit of MAC cores without requiring a reboot. When loading the driver check if there are changes pending and if so call NSP MAC reinit. Full application FW reload is still required, and all MACs

[net-next 7/7] nfp: implement ethtool FEC mode settings

2017-11-04 Thread Simon Horman
From: Dirk van der Merwe Add support in the driver ethtool ops to modify the NFP FEC modes. The FEC modes can be set for vNIC associated with physical ports or for MAC representor netdevs. Signed-off-by: Dirk van der Merwe

[net-next 4/7] nfp: resync repr state when port table sync

2017-11-04 Thread Simon Horman
From: Dirk van der Merwe If the NSP port table has been refreshed, resync the representor state with the new port information. At the moment, this only entails looking for invalid ports and killing off representors associated with them. The repr instance becomes

[net-next 5/7] nfp: add get/set link settings ndos to representors

2017-11-04 Thread Simon Horman
From: Dirk van der Merwe Since it is now safe to modify link settings for representors, we can attach the get/set link settings ndos to it. The get/set link settings are nfp_port based operations. If a port becomes invalid, the representor will be removed in the

[net-next 0/7] nfp: ethtool and related improvements

2017-11-04 Thread Simon Horman
Dirk van der Merwe says: This patch series throws a couple of loosely related items into a single series. Patch 1: Clang compilation fix reported by Matthias Kaehlcke Patch 2: Driver can now do MAC reinit on load when there has been a media override set in the NSP.

[net-next 1/7] nfp: don't depend on compiler constant propagation

2017-11-04 Thread Simon Horman
From: Jakub Kicinski Matthias reports: nfp_eth_set_bit_config() is marked as __always_inline to allow gcc to identify the 'mask' parameter as known to be constant at compile time, which is required to use the FIELD_GET() macro. The forced inlining does the

[PATCH net-next] pktgen: do not abuse IN6_ADDR_HSIZE

2017-11-04 Thread Eric Dumazet
From: Eric Dumazet pktgen accidentally used IN6_ADDR_HSIZE, instead of using the size of an IPv6 address. Since IN6_ADDR_HSIZE recently was increased from 16 to 256, this old bug is hitting us. Fixes: 3f27fb23219e ("ipv6: addrconf: add per netns perturbation in

Re: [bug report] ipv6: addrconf: add per netns perturbation in inet6_addr_hash()

2017-11-04 Thread Eric Dumazet
On Sat, Nov 4, 2017 at 7:24 AM, Eric Dumazet wrote: > On Sat, Nov 4, 2017 at 7:13 AM, Eric Dumazet wrote: >> On Sat, Nov 4, 2017 at 1:31 AM, Dan Carpenter >> wrote: >>> Hello Eric Dumazet, >>> >>> The patch 3f27fb23219e:

Re: sr9800: Use common error handling code in sr9800_phy_powerup()

2017-11-04 Thread SF Markus Elfring
> If you play the "smaller executable object code" card, people expect that > you provide the actual numbers, too. I can offer another bit of information for this software development discussion. The affected source file can be compiled for the processor architecture “x86_64” by a tool like “GCC

Re: [PATCH net-next v15] openvswitch: enable NSH support

2017-11-04 Thread Pravin Shelar
On Tue, Oct 31, 2017 at 9:03 PM, Yi Yang wrote: > v14->v15 > - Check size in nsh_hdr_from_nlattr > - Fixed four small issues pointed out By Jiri and Eric > > v13->v14 > - Rename skb_push_nsh to nsh_push per Dave's comment > - Rename skb_pop_nsh to nsh_pop per Dave's

Re: [bug report] ipv6: addrconf: add per netns perturbation in inet6_addr_hash()

2017-11-04 Thread Eric Dumazet
On Sat, Nov 4, 2017 at 7:13 AM, Eric Dumazet wrote: > On Sat, Nov 4, 2017 at 1:31 AM, Dan Carpenter > wrote: >> Hello Eric Dumazet, >> >> The patch 3f27fb23219e: "ipv6: addrconf: add per netns perturbation >> in inet6_addr_hash()" from Oct 23,

Re: [PATCH] net: sched: cls_u32: use bitwise & rather than logical && on n->flags

2017-11-04 Thread David Miller
From: Colin King Date: Fri, 3 Nov 2017 08:09:45 + > From: Colin Ian King > > Currently n->flags is being operated on by a logical && operator rather > than a bitwise & operator. This looks incorrect as these should be bit > flag

Re: [PATCH] net: usb: asix: fill null-ptr-deref in asix_suspend

2017-11-04 Thread David Miller
From: Andrey Konovalov Date: Thu, 2 Nov 2017 21:26:59 +0100 > When asix_suspend() is called dev->driver_priv might not have been > assigned a value, so we need to check that it's not NULL. > > Found by syzkaller. ... > Signed-off-by: Andrey Konovalov

Re: [PATCH v3 net-next 0/5] eBPF-based device cgroup controller

2017-11-04 Thread David Miller
From: Roman Gushchin Date: Thu, 2 Nov 2017 13:15:25 -0400 > This patchset introduces an eBPF-based device controller for cgroup > v2. This doesn't apply cleanly to net-next, please respin. Thank you.

ipset related DEBUG_VIRTUAL crash.

2017-11-04 Thread Dave Jones
I have a script that hourly replaces an ipset list. This has been in place for a year or so, but last night it triggered this on 4.14-rc7 [455951.731181] kernel BUG at arch/x86/mm/physaddr.c:26! [455951.737016] invalid opcode: [#1] PREEMPT SMP DEBUG_PAGEALLOC KASAN [455951.742525] CPU: 0

Re: [PATCH] netfilter/ipvs: clear ipvs_property flag when SKB net namespace changed

2017-11-04 Thread David Miller
From: Simon Horman Date: Thu, 2 Nov 2017 15:46:50 +0100 > On Sat, Oct 28, 2017 at 01:33:09PM +0300, Julian Anastasov wrote: >> >> Hello, >> >> On Thu, 26 Oct 2017, Ye Yin wrote: >> >> > When run ipvs in two different network namespace at the same host, and one >> >

Re: [PATCH] tcp_nv: use do_div() instead of expensive div64_u64()

2017-11-04 Thread David Miller
From: Konstantin Khlebnikov Date: Thu, 02 Nov 2017 17:07:05 +0300 > Average RTT is 32-bit thus full 64-bit division is redundant. > > Signed-off-by: Konstantin Khlebnikov > Suggested-by: Stephen Hemminger >

Re: [PATCH net] cxgb4: update latest firmware version supported

2017-11-04 Thread David Miller
From: Ganesh Goudar Date: Thu, 2 Nov 2017 19:26:22 +0530 > Change t4fw_version.h to update latest firmware version > number to 1.16.63.0. > > Signed-off-by: Ganesh Goudar Applied.

Re: [PATCH net] add support of IFF_XMIT_DST_RELEASE bit in vlan

2017-11-04 Thread David Miller
From: Vadim Fedorenko Date: Thu, 2 Nov 2017 15:49:08 +0300 > Some time ago Eric Dumazet suggested a "hack the IFF_XMIT_DST_RELEASE > flag on the vlan netdev". But the last comment was "does not support > properly bonding/team.(If the real_dev->privflags

Re: [PATCH net-next] phylink: make local function phylink_phy_change() static

2017-11-04 Thread David Miller
From: Wei Yongjun Date: Thu, 2 Nov 2017 11:14:48 + > Fixes the following sparse warnings: > > drivers/net/phy/phylink.c:570:6: warning: > symbol 'phylink_phy_change' was not declared. Should it be static? > > Signed-off-by: Wei Yongjun

Re: [PATCH] [net-next,v2] ibmvnic: Feature implementation of Vital Product Data (VPD) for the ibmvnic driver

2017-11-04 Thread David Miller
From: Desnes Augusto Nunes do Rosario Date: Wed, 1 Nov 2017 19:03:32 -0200 > + substr = strnstr(adapter->vpd->buff, "RM", adapter->vpd->len); > + if (!substr) { > + dev_info(dev, "No FW level provided by VPD\n"); > +

Re: [patch net-next 3/5] net: sched: introduce block mechanism to handle netif_keep_dst calls

2017-11-04 Thread Jiri Pirko
Sat, Nov 04, 2017 at 11:33:58AM CET, dan...@iogearbox.net wrote: >On 11/04/2017 10:55 AM, Jiri Pirko wrote: >> Fri, Nov 03, 2017 at 09:15:54PM CET, dan...@iogearbox.net wrote: >> > On 11/03/2017 06:19 PM, Jiri Pirko wrote: >> > > From: Jiri Pirko >> > > >> > > Couple of

Re: [net-next 03/12] net/mlx5: Add MLX5_SET16 and MLX5_GET16

2017-11-04 Thread Or Gerlitz
On Sat, Nov 4, 2017 at 6:35 PM, David Miller wrote: > From: Or Gerlitz > Date: Sat, 4 Nov 2017 18:05:29 +0900 > >> On Sat, Nov 4, 2017 at 5:50 PM, Saeed Mahameed wrote: >>> From: Huy Nguyen >>> >>> Add

[PATCH] net: mvpp2: Prevent userspace from changing TX affinities

2017-11-04 Thread Marc Zyngier
The mvpp2 driver can't cope at all with the TX affinities being changed from userspace, and spit an endless stream of [ 91.779920] mvpp2 f400.ethernet eth2: wrong cpu on the end of Tx processing [ 91.779930] mvpp2 f400.ethernet eth2: wrong cpu on the end of Tx processing [

Re: [PATCH net-next v15] openvswitch: enable NSH support

2017-11-04 Thread Pravin Shelar
On Thu, Nov 2, 2017 at 6:40 PM, Yang, Yi wrote: > On Thu, Nov 02, 2017 at 05:06:47AM -0700, Pravin Shelar wrote: >> On Wed, Nov 1, 2017 at 7:50 PM, Yang, Yi wrote: >> > On Thu, Nov 02, 2017 at 08:52:40AM +0800, Pravin Shelar wrote: >> >> On Tue, Oct 31,

Re: [patch net-next 3/5] net: sched: introduce block mechanism to handle netif_keep_dst calls

2017-11-04 Thread Daniel Borkmann
On 11/04/2017 10:55 AM, Jiri Pirko wrote: Fri, Nov 03, 2017 at 09:15:54PM CET, dan...@iogearbox.net wrote: On 11/03/2017 06:19 PM, Jiri Pirko wrote: From: Jiri Pirko Couple of classifiers call netif_keep_dst directly on q->dev. That is not possible to do directly for

Re: [PATCH net-next v2 03/15] bpf: report offload info to user space

2017-11-04 Thread Jakub Kicinski
On Sat, 4 Nov 2017 18:45:31 +0900, Alexei Starovoitov wrote: > On Fri, Nov 03, 2017 at 01:56:18PM -0700, Jakub Kicinski wrote: > > Extend struct bpf_prog_info to contain information about program > > being bound to a device. Since the netdev may get destroyed while > > program still exists we

Re: [patch net-next 3/5] net: sched: introduce block mechanism to handle netif_keep_dst calls

2017-11-04 Thread Jiri Pirko
Fri, Nov 03, 2017 at 09:15:54PM CET, dan...@iogearbox.net wrote: >On 11/03/2017 06:19 PM, Jiri Pirko wrote: >> From: Jiri Pirko >> >> Couple of classifiers call netif_keep_dst directly on q->dev. That is >> not possible to do directly for shared blocke where multiple qdiscs

Re: [PATCH net-next] tools: bpftool: move p_err() and p_info() from main.h to common.c

2017-11-04 Thread Alexei Starovoitov
On Fri, Nov 03, 2017 at 01:59:07PM -0700, Jakub Kicinski wrote: > From: Quentin Monnet > > The two functions were declared as static inline in a header file. There > is no particular reason why they should be inlined, they just happened to > remain in the same

Re: [PATCH net-next v2 03/15] bpf: report offload info to user space

2017-11-04 Thread Alexei Starovoitov
On Fri, Nov 03, 2017 at 01:56:18PM -0700, Jakub Kicinski wrote: > Extend struct bpf_prog_info to contain information about program > being bound to a device. Since the netdev may get destroyed while > program still exists we need a flag to indicate the program is > loaded for a device, even if

Re: [net-next 03/12] net/mlx5: Add MLX5_SET16 and MLX5_GET16

2017-11-04 Thread David Miller
From: Or Gerlitz Date: Sat, 4 Nov 2017 18:05:29 +0900 > On Sat, Nov 4, 2017 at 5:50 PM, Saeed Mahameed wrote: >> From: Huy Nguyen >> >> Add MLX5_SET16 and MLX5_GET16 for 16bit structure field in firmware >> command. >> >>

Re: [RFC PATCH] bpf: Add helpers to read useful task_struct members

2017-11-04 Thread Alexei Starovoitov
On 11/3/17 3:58 PM, Sandipan Das wrote: For added security, the layout of some structures can be randomized by enabling CONFIG_GCC_PLUGIN_RANDSTRUCT. One such structure is task_struct. To build BPF programs, we use Clang which does not support this feature. So, if we attempt to read a field of a

Re: [net-next 06/12] net/mlx5e: Support DSCP trust state to Ethernet's IP packet on SQ

2017-11-04 Thread Or Gerlitz
On Sat, Nov 4, 2017 at 5:50 PM, Saeed Mahameed wrote: > From: Huy Nguyen > > If the port is in DSCP trust state, packets are placed in the right > priority queue based on the dscp value. This is done by selecting > the transmit queue based on the dscp of

Re: [net-next 04/12] net/mlx5: QPTS and QPDPM register firmware command support

2017-11-04 Thread Or Gerlitz
On Sat, Nov 4, 2017 at 5:50 PM, Saeed Mahameed wrote: > From: Huy Nguyen > > The QPTS register allows changing the priority trust state between pcp and > dscp. Add support to get/set trust state from device. When the port is > in pcp/dscp trust state,

Re: [net-next 03/12] net/mlx5: Add MLX5_SET16 and MLX5_GET16

2017-11-04 Thread Or Gerlitz
On Sat, Nov 4, 2017 at 5:50 PM, Saeed Mahameed wrote: > From: Huy Nguyen > > Add MLX5_SET16 and MLX5_GET16 for 16bit structure field in firmware > command. > > Signed-off-by: Huy Nguyen > Reviewed-by: Parav Pandit >

Re: [net-next 02/12] net/mlx5: QCAM register firmware command support

2017-11-04 Thread Or Gerlitz
On Sat, Nov 4, 2017 at 5:50 PM, Saeed Mahameed wrote: > > From: Huy Nguyen > > The QCAM register provides capability bit for all the QoS registers > using ACCESS_REG command. > > Signed-off-by: Huy Nguyen > Reviewed-by: Parav Pandit

[net-next 04/12] net/mlx5: QPTS and QPDPM register firmware command support

2017-11-04 Thread Saeed Mahameed
From: Huy Nguyen The QPTS register allows changing the priority trust state between pcp and dscp. Add support to get/set trust state from device. When the port is in pcp/dscp trust state, packet is routed by hardware to matching priority based on its pcp/dscp value

[net-next 07/12] net/mlx5e: Add support for ethtool msglvl support

2017-11-04 Thread Saeed Mahameed
From: Gal Pressman Use ethtool -s msglvl on/off to toggle debug messages. Signed-off-by: Gal Pressman Signed-off-by: Inbar Karmy Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en.h

[net-next 12/12] net/mlx5e: Enable CQE based moderation on TX CQ

2017-11-04 Thread Saeed Mahameed
From: Tal Gilboa By using CQE based moderation on TX CQ we can reduce the number of TX interrupt rate. Besides the benefit of less interrupts, this also allows the kernel to better utilize TSO. Since TSO has some CPU overhead, it might not aggregate when CPU is under high

[net-next 09/12] net/mlx5: Enlarge the NIC TC offload table size

2017-11-04 Thread Saeed Mahameed
From: Or Gerlitz The NIC TC offload table size was hard coded to 1k. Change it to be min(max NIC RX table size, min(max flow counters, 64k) * num flow groups) where the max values are read from the firmware and the number of flow groups is hard-coded as

[net-next 05/12] net/mlx5e: Add dcbnl dscp to priority support

2017-11-04 Thread Saeed Mahameed
From: Huy Nguyen This patch implements dcbnl hooks to set and delete DSCP to priority map as defined by the DCB subsystem. Device maintains internal trust state which needs to be set to DSCP state for performing DSCP to priority mapping. When the first dscp to priority APP

[net-next 03/12] net/mlx5: Add MLX5_SET16 and MLX5_GET16

2017-11-04 Thread Saeed Mahameed
From: Huy Nguyen Add MLX5_SET16 and MLX5_GET16 for 16bit structure field in firmware command. Signed-off-by: Huy Nguyen Reviewed-by: Parav Pandit Signed-off-by: Saeed Mahameed --- include/linux/mlx5/device.h | 17

[net-next 08/12] net/mlx5e: DCBNL, Add debug messages log

2017-11-04 Thread Saeed Mahameed
From: Inbar Karmy Add debug print when changing the configuration of QoS through dcbnl. Use ethtool -s msglvl hw on/off to toggle debug messages. Signed-off-by: Inbar Karmy Reviewed-by: Gal Pressman Signed-off-by: Saeed Mahameed

[pull request][net-next 00/12] Mellanox, mlx5 updates 2017-11-04

2017-11-04 Thread Saeed Mahameed
Hi Dave, The following series provides updates for mlx5 driver which includes dscp to priority mapping support and some other misc small changes. For extra information please see tag log below. Please Pull and let me know if ther's any problem. Thanks, Saeed. --- The following changes since

[net-next 01/12] net/dcb: Add dscp to priority selector type

2017-11-04 Thread Saeed Mahameed
From: Huy Nguyen IEEE specification P802.1Qcd/D2.1 defines priority selector 5. This APP TLV selector defines DSCP to priority map. This patch defines such DSCP selector. Signed-off-by: Huy Nguyen Reviewed-by: Parav Pandit

[net-next 10/12] net/mlx5: Initialize destination_flow struct to 0

2017-11-04 Thread Saeed Mahameed
From: Rabie Loulou This is needed in order to enlarge it with more members that will get value of 0 when not set. Signed-off-by: Rabie Loulou Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed ---

[net-next 02/12] net/mlx5: QCAM register firmware command support

2017-11-04 Thread Saeed Mahameed
From: Huy Nguyen The QCAM register provides capability bit for all the QoS registers using ACCESS_REG command. Signed-off-by: Huy Nguyen Reviewed-by: Parav Pandit Signed-off-by: Saeed Mahameed ---

[net-next 11/12] net/mlx5e: IPoIB, Add inner TTC table to IPoIB flow steering

2017-11-04 Thread Saeed Mahameed
From: Feras Daoud For supported platforms, add inner TTC flow table to enhanced IPoIB flow steering. Signed-off-by: Feras Daoud Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 3 +++

[net-next 06/12] net/mlx5e: Support DSCP trust state to Ethernet's IP packet on SQ

2017-11-04 Thread Saeed Mahameed
From: Huy Nguyen If the port is in DSCP trust state, packets are placed in the right priority queue based on the dscp value. This is done by selecting the transmit queue based on the dscp of the skb. Until now select_queue honors priority only from the vlan header. However