Re: UBSAN reports issue in ip_idents_reserve

2016-09-20 Thread Jiri Pirko
Tue, Sep 20, 2016 at 03:28:35PM CEST, eric.duma...@gmail.com wrote: >On Tue, 2016-09-20 at 14:00 +0200, Jiri Pirko wrote: >> Hi. >> >> I'm consistently getting following UBSAN warning on every bootup: >> >> [ 47.545820] >>

Re: [PATCH v4 01/16] vmxnet3: Move PCI Id to pci_ids.h

2016-09-20 Thread Bjorn Helgaas
On Wed, Sep 14, 2016 at 07:36:34PM +, Adit Ranadive wrote: > On Wed, Sep 14, 2016 at 09:25:18 -0700, Yuval Shaia wrote: > > On Wed, Sep 14, 2016 at 04:00:25PM +, Adit Ranadive wrote: > > > On Wed, Sep 14, 2016 at 04:09:12 -0700, Yuval Shaia wrote: > > > > Please update vmxnet3_drv.c

Re: UBSAN reports issue in ip_idents_reserve

2016-09-20 Thread Eric Dumazet
On Tue, 2016-09-20 at 14:00 +0200, Jiri Pirko wrote: > Hi. > > I'm consistently getting following UBSAN warning on every bootup: > > [ 47.545820] > > [ 47.554340] UBSAN: Undefined behaviour in >

Re: [PATCH 1/1] ixgbe: replace defined with IS_ENABLED

2016-09-20 Thread zhuyj
how about this patch "ixgbe: remove the useless header file ixgbe_type.h"? On Tue, Sep 20, 2016 at 1:00 AM, Tantilov, Emil S wrote: >>-Original Message- >>From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On >>Behalf Of

[PATCH net-next 7/8] net: qualcomm: make qca_common a separate kernel module

2016-09-20 Thread Stefan Wahren
In order to share common functions between QCA7000 SPI and UART protocol driver the qca_common needs to be a separate kernel module. Signed-off-by: Stefan Wahren --- drivers/net/ethernet/qualcomm/Kconfig | 8 +++- drivers/net/ethernet/qualcomm/Makefile | 5

[PATCH net-next 3/8] net: qualcomm: move qcaspi_tx_cmd to qca_spi.c

2016-09-20 Thread Stefan Wahren
The function qcaspi_tx_cmd() is only called from qca_spi.c. So we better move it there. Signed-off-by: Stefan Wahren --- drivers/net/ethernet/qualcomm/qca_7k.c | 24 drivers/net/ethernet/qualcomm/qca_7k.h | 1 -

[PATCH net-next 2/8] net: qca_debug: use net_device_ops instead of direct call

2016-09-20 Thread Stefan Wahren
There is no need to export qcaspi_netdev_open and qcaspi_netdev_close because they are also accessible via the net_device_ops. Signed-off-by: Stefan Wahren --- drivers/net/ethernet/qualcomm/qca_debug.c | 5 +++-- drivers/net/ethernet/qualcomm/qca_spi.h | 3 --- 2 files

[PATCH net-next 6/8] net: qualcomm: prepare frame decoding for UART driver

2016-09-20 Thread Stefan Wahren
Unfortunately the frame format is not exactly identical between SPI and UART. In case of SPI there is an additional HW length at the beginning. So store the initial state to make the decoding state machine more flexible and easy to extend for UART support. Signed-off-by: Stefan Wahren

[PATCH net-next 4/8] net: qualcomm: rename qca_framing.c to qca_common.c

2016-09-20 Thread Stefan Wahren
As preparation for the upcoming UART driver we need a module which contains common functions for both interfaces. The module qca_framing is a good candidate but renaming to qca_common would make it clear. Signed-off-by: Stefan Wahren ---

Re: [PATCH net-next V2 3/4] net/mlx4_core: Use RCU to perform radix tree lookup for SRQ

2016-09-20 Thread Leon Romanovsky
On Tue, Sep 20, 2016 at 03:47:49PM +0300, Sergei Shtylyov wrote: > Hello. > > On 9/20/2016 2:39 PM, Tariq Toukan wrote: > > >From: Leon Romanovsky > > > >Radix tree lookup can be performed without locking. > > > >Fixes: 225c7b1feef1 ("IB/mlx4: Add a driver Mellanox ConnectX

[PATCH net-next 0/8] net: qualcomm: add QCA7000 UART driver

2016-09-20 Thread Stefan Wahren
The Qualcomm QCA7000 HomePlug GreenPHY supports two interfaces: UART and SPI. This patch series adds the missing support for UART. This driver based on the Qualcomm code [1], but contains some changes: * use random MAC address per default * use net_device_stats from device * share frame decoding

[PATCH net-next 1/8] net: qualcomm: remove unnecessary includes

2016-09-20 Thread Stefan Wahren
Most of the includes in qca_7k.c are unnecessary so we better remove them. Signed-off-by: Stefan Wahren --- drivers/net/ethernet/qualcomm/qca_7k.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/qualcomm/qca_7k.c

[PATCH net-next 8/8] net: qualcomm: add QCA7000 UART driver

2016-09-20 Thread Stefan Wahren
This patch adds the Ethernet over UART driver for the Qualcomm QCA7000 HomePlug GreenPHY. Signed-off-by: Stefan Wahren --- drivers/net/ethernet/qualcomm/Kconfig | 12 + drivers/net/ethernet/qualcomm/Makefile | 2 + drivers/net/ethernet/qualcomm/qca_common.h |

[PATCH net-next 5/8] net: qualcomm: move MTU handling to qca_common

2016-09-20 Thread Stefan Wahren
The MTU of the QCA7000 is independent from it's host interface (UART,SPI). So move the change_mtu function to qca_common. Signed-off-by: Stefan Wahren --- drivers/net/ethernet/qualcomm/qca_common.c | 11 +++ drivers/net/ethernet/qualcomm/qca_common.h | 3 +++

RE: [PATCH net] ipmr, ip6mr: return lastuse relative to now

2016-09-20 Thread David Laight
From: Nikolay Aleksandrov > Sent: 20 September 2016 10:06 > When I introduced the lastuse member I made a subtle error because it was > returned as an absolute value but that is meaningless to user-space as it > doesn't allow to see how old exactly an entry is. Let's make it similar to > how the

Re: [PATCH net-next 7/8] net/mlx5e: XDP TX forwarding support

2016-09-20 Thread Tariq Toukan
On 20/09/2016 2:33 PM, Jesper Dangaard Brouer wrote: Resending, email didn't reach the list (used wrong sender email) On Tue, 20 Sep 2016 10:29:43 +0200 Jesper Dangaard Brouer wrote: On Mon, 19 Sep 2016 16:58:58 +0300 Tariq Toukan wrote: +

Re: [PATCH v3] iproute2: build nsid-name cache only for commands that need it

2016-09-20 Thread Nicolas Dichtel
Le 20/09/2016 à 08:01, Anton Aksola a écrit : > The calling of netns_map_init() before command parsing introduced > a performance issue with large number of namespaces. > > As commands such as add, del and exec do not need to iterate through > /var/run/netns it would be good not no build the

Re: [PATCH net-next V2 3/4] net/mlx4_core: Use RCU to perform radix tree lookup for SRQ

2016-09-20 Thread Sergei Shtylyov
Hello. On 9/20/2016 2:39 PM, Tariq Toukan wrote: From: Leon Romanovsky Radix tree lookup can be performed without locking. Fixes: 225c7b1feef1 ("IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters") Signed-off-by: Leon Romanovsky

Re: [PATCH net-next 6/7] net/faraday: Fix phy link irq on Aspeed G5 SoCs

2016-09-20 Thread Sergei Shtylyov
Hello. On 9/20/2016 9:30 AM, Joel Stanley wrote: On Aspeed SoC with a direct PHY connection (non-NSCI), we receive continual PHYSTS interrupts: [ 20.28] ftgmac100 1e66.ethernet eth0: [ISR] = 0x200: PHYSTS_CHG [ 20.28] ftgmac100 1e66.ethernet eth0: [ISR] = 0x200:

Re: [PATCH net-next 6/7] net/faraday: Fix phy link irq on Aspeed G5 SoCs

2016-09-20 Thread Benjamin Herrenschmidt
On Tue, 2016-09-20 at 16:00 +0930, Joel Stanley wrote: > On Aspeed SoC with a direct PHY connection (non-NSCI), we receive > continual PHYSTS interrupts: > >  [   20.28] ftgmac100 1e66.ethernet eth0: [ISR] = 0x200: PHYSTS_CHG >  [   20.28] ftgmac100 1e66.ethernet eth0: [ISR] =

Re: [RFC v2 00/11] QLogic RDMA Driver (qedr) RFC

2016-09-20 Thread Leon Romanovsky
On Tue, Sep 20, 2016 at 01:35:52PM +0300, Ram Amrani wrote: > From: Ram amrani > > This series introduces RoCE RDMA driver for the 579xx RDMA products by Qlogic. > The RDMA support is added as an additional loadable module (qedr) over the > Ethernet qede driver. > The qedr

UBSAN reports issue in ip_idents_reserve

2016-09-20 Thread Jiri Pirko
Hi. I'm consistently getting following UBSAN warning on every bootup: [ 47.545820] [ 47.554340] UBSAN: Undefined behaviour in ./arch/x86/include/asm/atomic.h:156:11 [ 47.561808] signed integer overflow: [

[PATCH net] net/mlx4_core: Fix to clean devlink resources

2016-09-20 Thread Tariq Toukan
From: Kamal Heib This patch cleans devlink resources by calling devlink_port_unregister() to avoid the following issues: - Kernel panic when triggering reset flow. - Memory leak due to unfreed resources in mlx4_init_port_info(). Fixes: 09d4d087cd48 ("mlx4: Implement

Re: [PATCH iproute2] ipmonitor: fix ip monitor can't work when NET_NS is not enabled

2016-09-20 Thread Nicolas Dichtel
Le 20/09/2016 à 11:09, Liping Zhang a écrit : > From: Liping Zhang > > In ip monitor, netns_map_init will check getnsid is supported or not. > But when /proc/self/ns/net does not exist, we just print out error > messages and exit. So user cannot use ip monitor

[PATCH net-next v3 2/5] cxgb4: add common api support for configuring filters

2016-09-20 Thread Rahul Lakkireddy
Enable filters for non-offload configuration and add common api support for setting and deleting filters in LE-TCAM region of the hardware. IPv4 filters occupy one slot. IPv6 filters occupy 4 slots and must be on a 4-slot boundary. IPv4 filters can not occupy a slot belonging to IPv6 and the

[PATCH net-next v3 5/5] cxgb4: add support for drop and redirect actions

2016-09-20 Thread Rahul Lakkireddy
Add support for dropping matched packets in hardware. Also add support for re-directing matched packets to a specified port in hardware. Signed-off-by: Rahul Lakkireddy Signed-off-by: Hariprasad Shenai ---

[PATCH net-next v3 3/5] cxgb4: add parser to translate u32 filters to internal spec

2016-09-20 Thread Rahul Lakkireddy
Parse information sent by u32 into internal filter specification. Add support for parsing several fields in IPv4, IPv6, TCP, and UDP. Signed-off-by: Rahul Lakkireddy Signed-off-by: Hariprasad Shenai ---

[PATCH net-next v3 4/5] cxgb4: add support for offloading u32 filters

2016-09-20 Thread Rahul Lakkireddy
Add support for offloading u32 filter onto hardware. Links are stored in a jump table to perform necessary jumps to match TCP/UDP header. When inserting rules in the linked bucket, the TCP/UDP match fields in the corresponding entry of the jump table are appended to the filter rule before

[PATCH net-next v3 1/5] cxgb4: move common filter code to separate file

2016-09-20 Thread Rahul Lakkireddy
Move common filter code to separate files. Also fix the following checkpatch checks. CHECK: Comparison to NULL could be written "!f->l2t" + if (f->l2t == NULL) { CHECK: spaces preferred around that '/' (ctx:VxV) + fwr->len16_pkd = htonl(FW_WR_LEN16_V(sizeof(*fwr)/16));

[PATCH net-next v3 0/5] cxgb4: add support for offloading TC u32 filters

2016-09-20 Thread Rahul Lakkireddy
This series of patches add support to offload TC u32 filters onto Chelsio NICs. Patch 1 moves current common filter code to separate files in order to provide a common api for performing packet classification and filtering in Chelsio NICs. Patch 2 enables filters for normal NIC configuration and

[PATCH net-next V2 4/4] net/mlx4_core: Fix deadlock when switching between polling and event fw commands

2016-09-20 Thread Tariq Toukan
From: Jack Morgenstein When switching from polling-based fw commands to event-based fw commands, there is a race condition which could cause a fw command in another task to hang: that task will keep waiting for the polling sempahore, but may never be able to acquire it.

[PATCH net-next V2 1/4] net/mlx4_en: Add branch prediction hints in RX data-path

2016-09-20 Thread Tariq Toukan
Add likely/unlikely hints to improve branch predictions in the RX data-path. Signed-off-by: Tariq Toukan --- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git

[PATCH net-next V2 2/4] net/mlx4_en: Fix wrong indentation

2016-09-20 Thread Tariq Toukan
From: Kamal Heib Use tabs instead of spaces before if statement, no functional change. Fixes: e7c1c2c46201 ("mlx4_en: Added self diagnostics test implementation") Signed-off-by: Kamal Heib Signed-off-by: Tariq Toukan ---

[PATCH net-next V2 3/4] net/mlx4_core: Use RCU to perform radix tree lookup for SRQ

2016-09-20 Thread Tariq Toukan
From: Leon Romanovsky Radix tree lookup can be performed without locking. Fixes: 225c7b1feef1 ("IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters") Signed-off-by: Leon Romanovsky Suggested-by: Sagi Grimberg Signed-off-by:

[PATCH net-next V2 0/4] mlx4 misc cleanups and improvements

2016-09-20 Thread Tariq Toukan
Hi Dave, This patchset contains some cleanups and improvements from the team to the mlx4 Eth and core drivers. Series generated against net-next commit: 5a7aa362 'net sched: stylistic cleanups' Thanks, Tariq. V2: * dropped patch 5, will be submitted separately to 'net'. Jack Morgenstein

Re: [PATCH net-next 7/8] net/mlx5e: XDP TX forwarding support

2016-09-20 Thread Jesper Dangaard Brouer
Resending, email didn't reach the list (used wrong sender email) On Tue, 20 Sep 2016 10:29:43 +0200 Jesper Dangaard Brouer wrote: > On Mon, 19 Sep 2016 16:58:58 +0300 Tariq Toukan wrote: > > > + act = bpf_prog_run_xdp(prog, ); > > + switch (act) {

RE: [PATCH net-next 2/2] bnx2x: allocate mac filtering pending list in PAGE_SIZE increments

2016-09-20 Thread David Laight
From: Jason Baron > Sent: 19 September 2016 19:34 ... > > sizeof(struct bnx2x_mcast_list_elem) = 24. So there are 170 per > page on x86. So if we want to fit 2,048 elements, we need 12 pages. If you only need to save the mcast addresses you could use a 'heap' that requires no overhead per entry

[RFC v2 12/12] IB/core: add a protection to ib_get_dma_mr

2016-09-20 Thread Ram Amrani
From: Ram amrani Add a check that prevents ib_get_dma_mr from executing if IB_ACCESS_MW_BIND is set. Signed-off-by: Ram Amrani --- drivers/infiniband/core/verbs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[RFC v2 07/12] qedr: Add support for memory registeration verbs

2016-09-20 Thread Ram Amrani
From: Ram amrani Add support for user, dma and memory regions registration. Signed-off-by: Rajesh Borundia Signed-off-by: Ram Amrani --- drivers/infiniband/hw/qedr/main.c | 11 +-

[RFC v2 10/12] qedr: Add GSI support

2016-09-20 Thread Ram Amrani
From: Ram amrani Add support for GSI over light L2. Signed-off-by: Rajesh Borundia Signed-off-by: Ram Amrani --- drivers/infiniband/hw/qedr/Makefile| 2 +- drivers/infiniband/hw/qedr/main.c | 3 +

[RFC v2 03/12] qedr: Add support for RoCE HW init

2016-09-20 Thread Ram Amrani
From: Ram amrani Allocate and setup RoCE resources, interrupts and completion queues. Adds device attributes. Signed-off-by: Rajesh Borundia Signed-off-by: Ram Amrani --- drivers/infiniband/hw/qedr/main.c

[RFC v2 05/12] qedr: Add support for PD,PKEY and CQ verbs

2016-09-20 Thread Ram Amrani
From: Ram amrani Add support for protection domain and completion queue verbs. Signed-off-by: Rajesh Borundia Signed-off-by: Ram Amrani --- drivers/infiniband/hw/qedr/main.c | 18 +-

[RFC v2 09/12] qedr: Add LL2 RoCE interface

2016-09-20 Thread Ram Amrani
From: Ram amrani Add light L2 interface for RoCE. Signed-off-by: Rajesh Borundia Signed-off-by: Ram Amrani --- drivers/infiniband/hw/qedr/main.c | 34 +++- drivers/infiniband/hw/qedr/qedr.h | 2 +-

[RFC v2 11/12] qedr: Add events support and register IB device

2016-09-20 Thread Ram Amrani
From: Ram amrani Add error handling support. Register ib device with ib stack. Signed-off-by: Rajesh Borundia Signed-off-by: Ram Amrani --- drivers/infiniband/hw/qedr/main.c | 107 -

[RFC v2 02/12] qedr: Add RoCE driver framework

2016-09-20 Thread Ram Amrani
From: Ram amrani Adds a skeletal implementation of the qed* RoCE driver - basically the ability to communicate with the qede driver and receive notifications from it regarding various init/exit events. Signed-off-by: Rajesh Borundia

[RFC v2 08/12] qedr: Add support for data path

2016-09-20 Thread Ram Amrani
From: Ram amrani Implement fastpath verbs like ib_send_post, ib_post_recv and ib_poll_cq. Signed-off-by: Rajesh Borundia Signed-off-by: Ram Amrani --- drivers/infiniband/hw/qedr/main.c |9 +-

[RFC v2 06/12] qedr: Add support for QP verbs

2016-09-20 Thread Ram Amrani
From: Ram amrani Add support for Queue Pair verbs which adds, deletes, modifies and queries Queue Pairs. Signed-off-by: Rajesh Borundia Signed-off-by: Ram Amrani --- drivers/infiniband/hw/qedr/main.c | 15 +-

[RFC v2 04/12] qedr: Add support for user context verbs

2016-09-20 Thread Ram Amrani
From: Ram amrani Add support for ucontext, query port, add and del gid verbs. Signed-off-by: Rajesh Borundia Signed-off-by: Ram Amrani --- drivers/infiniband/hw/qedr/Makefile| 2 +-

[RFC v2 00/11] QLogic RDMA Driver (qedr) RFC

2016-09-20 Thread Ram Amrani
From: Ram amrani This series introduces RoCE RDMA driver for the 579xx RDMA products by Qlogic. The RDMA support is added as an additional loadable module (qedr) over the Ethernet qede driver. The qedr module will support both RoCE and iWarp, although this series only adds

[RFC v2 01/12] qed: Add LL2

2016-09-20 Thread Ram Amrani
From: Ram amrani Add support for qed light L2 feature. It is used by the RDMA driver and for other purposes as well. Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/Kconfig|8 + drivers/net/ethernet/qlogic/qed/Makefile

DSA: Suspicious RCU usage (via rtnl_bridge_getlink)

2016-09-20 Thread Russell King - ARM Linux
Issuing "bridge vlan show" on clearfog provokes a "suspicious RCU usage" warning from the kernel (see below). As it's illegal to schedule while holding the RCU read lock, there's the possibility for this happening much earlier in the call sequence - mv88e6xxx_port_vlan_dump() takes a mutex, and

Re: [PATCH net-next 0/5] mlx4 misc fixes and improvements

2016-09-20 Thread Tariq Toukan
On 19/09/2016 8:32 AM, Or Gerlitz wrote: On Mon, Sep 19, 2016 at 5:00 AM, David Miller wrote: From: Tariq Toukan Date: Sun, 18 Sep 2016 10:27:23 +0300 Hi Dave, On 16/09/2016 2:21 AM, David Miller wrote: From: Tariq Toukan

pull-request: wireless-drivers 2016-09-20

2016-09-20 Thread Kalle Valo
Hi Dave, last pull request for 4.8, unless something really drastic comes up. And a small one even, just a small fix to iwlwifi to avoid a firmware crash. Please let me know if there are any problems. Kalle The following changes since commit a0714125d11bcf21599b08b25fdaf384c0db6712: Merge

[PATCH iproute2] ip: Use specific slave id

2016-09-20 Thread Hangbin Liu
The original bond/bridge/vrf and slaves use same id, which make people confused. Use bond/bridge/vrf_slave as id name will make code more clear. Acked-by: Phil Sutter Signed-off-by: Hangbin Liu --- ip/ip_common.h | 2 -- ip/ipaddress.c

Re: skb_splice_bits() and large chunks in pipe (was Re: xfs_file_splice_read: possible circular locking dependency detected

2016-09-20 Thread Herbert Xu
Al Viro wrote: > >* shoved into scatterlist, which gets fed into crypto/*.c machinery. > No way for a pipe_buffer stuff to get there, fortunately, because I would > be very surprised if it works correctly with compound pages and large > ranges in those. FWIW the

[PATCH v3 net-next 2/2] net: skbuff: Coding: Use eth_type_vlan() instead of open coding it

2016-09-20 Thread Shmulik Ladkani
Fix 'skb_vlan_pop' to use eth_type_vlan instead of directly comparing skb->protocol to ETH_P_8021Q or ETH_P_8021AD. Signed-off-by: Shmulik Ladkani --- net/core/skbuff.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/core/skbuff.c

[PATCH v3 net-next 1/2] net: skbuff: Remove errornous length validation in skb_vlan_pop()

2016-09-20 Thread Shmulik Ladkani
In 93515d53b1 "net: move vlan pop/push functions into common code" skb_vlan_pop was moved from its private location in openvswitch to skbuff common code. In case skb has non hw-accel vlan tag, the original 'pop_vlan()' assured that skb->len is sufficient (if skb->len < VLAN_ETH_HLEN then pop

Re: [PATCH v2 net-next 0/7] net: ILA resolver and generic resolver backend

2016-09-20 Thread Herbert Xu
David Miller wrote: > > Can you please repost this series with Herbert Xu properly CC:'d > since he maintains rhashtable and is making changes to it recently > which might conflict with what you are proposing here? There is no need to respost this series as is since I've

Re: [PATCH net-next 6/7] net: Generic resolver backend

2016-09-20 Thread Herbert Xu
Tom Herbert wrote: > > + nrslv->params.head_offset = offsetof(struct net_rslv_ent, node); > + nrslv->params.key_offset = offsetof(struct net_rslv_ent, object); > + nrslv->params.key_len = key_len; > + nrslv->params.max_size = max_size; > +

Re: [PATCH net-next 5/7] rhashtable: abstract out function to get hash

2016-09-20 Thread Herbert Xu
Tom Herbert wrote: > Split out most of rht_key_hashfn which is calculating the hash into > its own function. This way the hash function can be called separately to > get the hash value. > > Acked-by: Thomas Graf > Signed-off-by: Tom Herbert

Re: [PATCH net-next 3/7] rhashtable: Call library function alloc_bucket_locks

2016-09-20 Thread Herbert Xu
Tom Herbert wrote: > To allocate the array of bucket locks for the hash table we now > call library function alloc_bucket_spinlocks. This function is > based on the old alloc_bucket_locks in rhashtable and should > produce the same effect. > > Acked-by: Thomas Graf

Re: [PATCH net-next 8/8] net/mlx5e: XDP TX xmit more

2016-09-20 Thread Jesper Dangaard Brouer
On Tue, 20 Sep 2016 11:19:46 +0300 Tariq Toukan wrote: > Hi Jesper, > > On 20/09/2016 10:46 AM, Jesper Dangaard Brouer wrote: > > On Mon, 19 Sep 2016 16:58:59 +0300 > > Tariq Toukan wrote: > > > >> From: Saeed Mahameed > >>

[patch net-next 8/9] mlxsw: pci: Add max router interface resource

2016-09-20 Thread Jiri Pirko
From: Nogah Frankel Add the max number of rif (router interfaces) to resource query. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko ---

[patch net-next 6/9] mlxsw: spectrum: Implement max virtual routers resource

2016-09-20 Thread Jiri Pirko
From: Nogah Frankel Replace max virtual routers const with the result from the resource query. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko ---

[patch net-next 9/9] mlxsw: spectrum: Implement max rif resource

2016-09-20 Thread Jiri Pirko
From: Nogah Frankel Replace max rif const with using the result from resource query. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko ---

[patch net-next 7/9] mlxsw: pci: Add some miscellaneous resources

2016-09-20 Thread Jiri Pirko
From: Nogah Frankel Add max system ports, max regions and max vlan groups to resource query. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko ---

[patch net-next 2/9] mlxsw: spectrum: lag resources- use resources data instead of consts

2016-09-20 Thread Jiri Pirko
From: Nogah Frankel Use max lag and max ports in lag resources as the result of resource query instead of using const to save them. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko

[patch net-next 4/9] mlxsw: profile: Add KVD resources to profile config

2016-09-20 Thread Jiri Pirko
From: Nogah Frankel Use resources from resource query to determine values for the profile configuration. Add KVD determined section sizes to the resources struct. Change the profile struct and value to match this changes. Signed-off-by: Nogah Frankel

[patch net-next 3/9] mlxsw: pci: Add KVD size relate resources

2016-09-20 Thread Jiri Pirko
From: Nogah Frankel Add KVD size, and minimum sizes for the single and double sections resources to resources query. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko ---

[patch net-next 5/9] mlxsw: pci: Add max virtual routers resource

2016-09-20 Thread Jiri Pirko
From: Nogah Frankel Add the max number of virtual routers to resource query. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/core.h | 4

[patch net-next 0/9] mlxsw: Replace Hw related const with resource query results

2016-09-20 Thread Jiri Pirko
From: Jiri Pirko Nogah says: Many of the ASIC's properties can be read from the HW with resources query. This patchset adds new resources to the resource query and implement using them, instead of the constants that we currently use. Those resources are lag, kvd and router

[patch net-next 1/9] mlxsw: pci: Add lag related resources to resources query

2016-09-20 Thread Jiri Pirko
From: Nogah Frankel Add max lag and max ports in lag resources to resources query. Signed-off-by: Nogah Frankel Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko ---

[PATCH iproute2] ipmonitor: fix ip monitor can't work when NET_NS is not enabled

2016-09-20 Thread Liping Zhang
From: Liping Zhang In ip monitor, netns_map_init will check getnsid is supported or not. But when /proc/self/ns/net does not exist, we just print out error messages and exit. So user cannot use ip monitor anymore when CONFIG_NET_NS is disabled: # ip monitor

XDP (eXpress Data Path) documentation

2016-09-20 Thread Jesper Dangaard Brouer
Hi all, As promised, I've started documenting the XDP eXpress Data Path): [1] https://prototype-kernel.readthedocs.io/en/latest/networking/XDP/index.html IMHO the documentation have reached a stage where it is useful for the XDP project, BUT I request collaboration on improving the

[PATCH net] ipmr, ip6mr: return lastuse relative to now

2016-09-20 Thread Nikolay Aleksandrov
When I introduced the lastuse member I made a subtle error because it was returned as an absolute value but that is meaningless to user-space as it doesn't allow to see how old exactly an entry is. Let's make it similar to how the bridge returns such values and make it relative to "now" (jiffies).

Re: [PATCH net-next 0/5] mlx4 misc fixes and improvements

2016-09-20 Thread David Miller
From: Tariq Toukan Date: Tue, 20 Sep 2016 11:50:17 +0300 >> So when we're pretty late in the 4.8-rc cycle, a fix for a problem >> which was not introduced in 4.8-rc1 was targeted to net-next (4.9) and >> not net. >> >> This indeed creates a small mess when the fix needs to

Re: [net-next PATCH V2] mlx4: add missed recycle opportunity for XDP_TX on TX failure

2016-09-20 Thread David Miller
From: Jesper Dangaard Brouer Date: Mon, 19 Sep 2016 17:46:38 +0200 > Correct drop handling for XDP_TX on TX failure, were recently added in > commit 95357907ae73 ("mlx4: fix XDP_TX is acting like XDP_PASS on TX > ring full"). > > The change missed an opportunity for recycling

Re: [PATCH net v2] qed: Fix stack corruption on probe

2016-09-20 Thread David Miller
From: Yuval Mintz Date: Mon, 19 Sep 2016 17:47:41 +0300 > Commit fe56b9e6a8d95 ("qed: Add module with basic common support") > has introduced a stack corruption during probe, where filling a > local struct with data to be sent to management firmware is incorrectly >

[net-next:master 249/416] emac.c:undefined reference to `bad_dma_ops'

2016-09-20 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: 878786d95e07ce2f5fb6e3cd8a6c2ed320339196 commit: b9b17debc69d27cd55e21ee51a5ba7fc50a426cf [249/416] net: emac: emac gigabit ethernet controller driver config: m32r-allyesconfig (attached as .config)

Re: [PATCH 0/4] net-next: dsa: set_addr should be optional

2016-09-20 Thread David Miller
From: John Crispin Date: Mon, 19 Sep 2016 15:27:59 +0200 > The Marvell driver is the only one that actually sets the switches HW > address. All other drivers have an empty stub. fix this by making the > callback optional. Series applied, thanks.

Re: [PATCH v3 net-next] net: phy: Add MAC-IF driver for Microsemi PHYs.

2016-09-20 Thread David Miller
From: Raju Lakkaraju Date: Mon, 19 Sep 2016 15:33:54 +0530 > From: Raju Lakkaraju > > All the review comments updated and resending for review. > > This is MAC interface feature. > Microsemi PHY can support RGMII, RMII or GMII/MII

Re: [v3 PATCH 0/2] rhashtable: rhashtable with duplicate objects

2016-09-20 Thread David Miller
From: Johannes Berg Date: Mon, 19 Sep 2016 13:32:12 +0200 > On Mon, 2016-09-19 at 13:03 +0200, Johannes Berg wrote: >> On Mon, 2016-09-19 at 18:58 +0800, Herbert Xu wrote: >> > >> > v3 fixes a bug in the remove path that causes the element count >> > to decrease when

Re: [PATCH net-next v3] xen-netfront: avoid packet loss when ethernet header crosses page boundary

2016-09-20 Thread David Miller
From: Vitaly Kuznetsov Date: Mon, 19 Sep 2016 12:53:40 +0200 > Small packet loss is reported on complex multi host network configurations > including tunnels, NAT, ... My investigation led me to the following check > in netback which drops packets: > > if

Re: [patch net-next] mlxsw: spectrum: Fix sparse warnings

2016-09-20 Thread David Miller
From: Jiri Pirko Date: Mon, 19 Sep 2016 08:29:26 +0200 > From: Ido Schimmel > ... > Signed-off-by: Ido Schimmel > Signed-off-by: Jiri Pirko Applied.

Re: [patch net-next] mlxsw: Change the RX LAG hash function from XOR to CRC

2016-09-20 Thread David Miller
From: Jiri Pirko Date: Mon, 19 Sep 2016 08:28:24 +0200 > From: Elad Raz > > Change the RX hash function from XOR to CRC in order to have better > distribution of the traffic. > > Signed-off-by: Elad Raz > Signed-off-by: Jiri Pirko

Re: [PATCH net-next 7/8] net/mlx5e: XDP TX forwarding support

2016-09-20 Thread Jesper Dangaard Brouer
On Mon, 19 Sep 2016 16:58:58 +0300 Tariq Toukan wrote: > + act = bpf_prog_run_xdp(prog, ); > + switch (act) { > + case XDP_PASS: > + return false; > + case XDP_TX: > + consumed = mlx5e_xmit_xdp_frame(>channel->xdp_sq, di, > +

[PATCH net 4/5] r8152: remove r8153_enable_eee

2016-09-20 Thread Hayes Wang
Remove r8153_enable_eee(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 9ce5bd5..e7a05dd 100644 --- a/drivers/net/usb/r8152.c

[PATCH net 1/5] r8152: move some functions

2016-09-20 Thread Hayes Wang
Move the following functions forward. r8152_mmd_indirect() r8152_mmd_read() r8152_mmd_write() r8152_eee_en() r8152b_enable_eee() r8153_eee_en() r8153_enable_eee() r8152b_enable_fc() r8153_aldps_en() Signed-off-by: Hayes Wang

[PATCH net 0/5] r8152: correct the flow of PHY

2016-09-20 Thread Hayes Wang
First, to enable the PHY as early as possible. Some settings may fail if the PHY is power down. Move the other PHY settings to hw_phy_cfg() to make sure the order is correct. Finally, disable ALDPS and EEE before updating the PHY for RTL8153. Hayes Wang (5): r8152: move some functions

[PATCH net 3/5] r8152: move PHY settings to hw_phy_cfg

2016-09-20 Thread Hayes Wang
Move the PHY relative settings together to hw_phy_cfg(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index dbf11ba..9ce5bd5

[PATCH net 2/5] r8152: move enabling PHY

2016-09-20 Thread Hayes Wang
Move enabling PHY to init(), otherwise some other settings may fail. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 43 +-- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/drivers/net/usb/r8152.c

[PATCH net 5/5] r8152: disable ALDPS and EEE before setting PHY

2016-09-20 Thread Hayes Wang
Disable ALDPS and EEE to avoid the possible failure when setting the PHY. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index

Re: [PATCH net-next 8/8] net/mlx5e: XDP TX xmit more

2016-09-20 Thread Tariq Toukan
Hi Jesper, On 20/09/2016 10:46 AM, Jesper Dangaard Brouer wrote: On Mon, 19 Sep 2016 16:58:59 +0300 Tariq Toukan wrote: From: Saeed Mahameed Previously we rang XDP SQ doorbell on every forwarded XDP packet. Here we introduce a xmit more like

[PATCH net-next 1/3] net: ethernet: mediatek: add extension of phy-mode for TRGMII

2016-09-20 Thread sean.wang
From: Sean Wang adds PHY-mode "trgmii" as an extension for the operation mode of the PHY interface, TRGMII can be compatible with RGMII, so the extended mode doesn't really have effects on the target MAC and PHY, is used as the indication if the current MAC is connected

[PATCH net-next 0/3] add support for RGMII on GMAC0 through TRGMII hardware module

2016-09-20 Thread sean.wang
From: Sean Wang By default, GMAC0 is connected to built-in switch called MT7530 through the proprietary interface called Turbo RGMII (TRGMII). TRGMII also supports well for RGMII as generic external PHY uses but requires some slight changes to the setup of TRGMII and

[PATCH net-next 3/3] net: ethernet: mediatek: add the dts property to set if TRGMII supported on GMAC0

2016-09-20 Thread sean.wang
From: Sean Wang Add the dts property for the capability if TRGMII supported on GAMC0 Signed-off-by: Sean Wang --- Documentation/devicetree/bindings/net/mediatek-net.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH net-next 2/3] net: ethernet: mediatek: add support for GMAC0 connecting with external PHY through TRGMII

2016-09-20 Thread sean.wang
From: Sean Wang Changing dynamically source clock, TX/RX delay and interface mode used by TRGMII hardware module inside PHY capability polling routine for adapting to the various speed of RGMII used by external PHY for GMAC0. Signed-off-by: Sean Wang

Re: [PATCH net-next] mlxsw: spectrum: Make offloads stats functions static

2016-09-20 Thread Jiri Pirko
Tue, Sep 20, 2016 at 07:14:08AM CEST, ogerl...@mellanox.com wrote: >The offloads stats functions are local to this file, make them static. > >Fixes: fc1bbb0f1831 ('mlxsw: spectrum: Implement offload stats ndo [..]') >Signed-off-by: Or Gerlitz Acked-by: Jiri Pirko

Re: [PATCH net-next] bnxt_en: Fix build error for kernesl without RTC-LIB

2016-09-20 Thread David Miller
From: Michael Chan Date: Tue, 20 Sep 2016 03:36:33 -0400 > From: Rob Swindell > > bnxt_hwrm_fw_set_time() now returns -EOPNOTSUPP when built for kernel > without RTC_LIB. Setting the firmware time is not critical to the > successful completion

Re: [PATCH net-next 8/8] net/mlx5e: XDP TX xmit more

2016-09-20 Thread Jesper Dangaard Brouer
On Mon, 19 Sep 2016 16:58:59 +0300 Tariq Toukan wrote: > From: Saeed Mahameed > > Previously we rang XDP SQ doorbell on every forwarded XDP packet. > > Here we introduce a xmit more like mechanism that will queue up more > than one packet into SQ (up

<    1   2   3   4   >