[PATCH net-next 07/10] net/farady: Read MAC address from chip

2016-07-02 Thread Gavin Shan
The device is assigned with random MAC address. It isn't reasonable. An valid MAC address might have been provided by (uboot) firmware by device-tree or in chip. It's reasonable to use it to maintain consistency. This uses the MAC address from device-tree or that in the chip if it's valid. Otherwi

[PATCH net-next 08/10] net/farady: Support NCSI mode

2016-07-02 Thread Gavin Shan
This makes ftgmac100 driver support NCSI mode. The NCSI is enabled on the interface if property "use-nc-si" or "use-ncsi" is found from the device node in device tree. * No PHY device is used when NCSI mode is enabled. * The NCSI device (struct ncsi_dev) is created when probing the devi

[PATCH net-next 01/10] net/ncsi: Resource management

2016-07-02 Thread Gavin Shan
NCSI spec (DSP0222) defines several objects: package, channel, mode, filter, version and statistics etc. This introduces the data structs to represent those objects and implement functions to manage them. Also, this introduces CONFIG_NET_NCSI for the newly implemented NCSI stack. * The user (e.

[PATCH net-next 03/10] net/ncsi: NCSI response packet handler

2016-07-02 Thread Gavin Shan
The NCSI response packets are sent to MC (Management Controller) from the remote end. They are responses of NCSI command packets for multiple purposes: completion status of NCSI command packets, return NCSI channel's capability or configuration etc. This defines struct to represent NCSI response p

[PATCH net-next 06/10] net/farady: Helper functions to create or destroy MDIO interface

2016-07-02 Thread Gavin Shan
This introduces two helper functions to create or destroy MDIO interface. No logical changes introduced except the proper MDIO names are given when having more than one MDIO bus. Signed-off-by: Gavin Shan Acked-by: Joel Stanley --- drivers/net/ethernet/faraday/ftgmac100.c | 95 +

[PATCH net-next 10/10] net/farady: Mask PHY interrupt with NCSI mode

2016-07-02 Thread Gavin Shan
Bogus PHY interrupts are observed. This masks the PHY interrupt when the interface works in NCSI mode as there is no attached PHY under the circumstance. Signed-off-by: Gavin Shan Acked-by: Joel Stanley --- drivers/net/ethernet/faraday/ftgmac100.c | 27 +++ 1 file change

[PATCH net-next 00/10] NCSI Support

2016-07-02 Thread Gavin Shan
This series rebases on David's linux-net git repo ("master" branch). It's to support NCSI stack on net/farady/ftgmac100.c The following figure gives an example about how NCSI is deployed: The NCSI is specified by DSP0222, which can be downloaded from the following link here (http://www.dmtf.org/si

[PATCH net-next 05/10] net/ncsi: NCSI AEN packet handler

2016-07-02 Thread Gavin Shan
This introduces NCSI AEN packet handlers that result in (A) the currently active channel is reconfigured; (B) Currently active channel is deconfigured and disabled, another channel is chosen as active one and configured. Signed-off-by: Gavin Shan Acked-by: Joel Stanley --- net/ncsi/Makefile |

[PATCH net-next 04/10] net/ncsi: Package and channel management

2016-07-02 Thread Gavin Shan
The available NCSI packages and channels are probed with help of NCSI command/response packets. One package and channel should be selected as active one by which the MC (Management Controller) can communicate with the far end and external network. The currently active channel should be disabled and

[PATCH net-next 09/10] net/farady: Match driver according to compatible property

2016-07-02 Thread Gavin Shan
This matches the driver with devices compatible with "faraday,ftgmac100" declared in the device tree. Originally, device's name from device tree for it. Signed-off-by: Gavin Shan Acked-by: Joel Stanley --- drivers/net/ethernet/faraday/ftgmac100.c | 16 +++- 1 file changed, 11 insert

[PATCH net-next 02/10] net/ncsi: NCSI command packet handler

2016-07-02 Thread Gavin Shan
The NCSI command packets are sent from MC (Management Controller) to remote end. They are used for multiple purposes: probe existing NCSI package/channel, retrieve NCSI channel's capability, configure NCSI channel etc. This defines struct to represent NCSI command packets and introduces function n

[PATCH net-next] bpf: add bpf_get_hash_recalc helper

2016-07-02 Thread Daniel Borkmann
If skb_clear_hash() was invoked due to mangling of relevant headers and BPF program needs skb->hash later on, we can add a helper to trigger hash recalculation via bpf_get_hash_recalc(). The helper will return the newly retrieved hash directly, but later access can also be done via skb context aga

[PATCH 2/2] net: ethernet: smsc: smsc911x: use phy_ethtool_{get|set}_link_ksettings

2016-07-02 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/smsc/smsc911x.c | 18 ++ 1 files changed, 2 insertions(+), 16 deletions(-) diff --

[PATCH 1/2] net: ethernet: smsc: smsc911x: use phydev from struct net_device

2016-07-02 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phy in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/sm

[PATCH 2/2] net: ethernet: lantiq_etop: use phy_ethtool_{get|set}_link_ksettings

2016-07-02 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/lantiq_etop.c | 16 ++-- 1 files changed, 2 insertions(+), 14 deletions(-) diff --git

[PATCH 1/2] net: ethernet: lantiq_etop: use phydev from struct net_device

2016-07-02 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phy in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/la

Re: [PATCH v2 net-next 1/1] net sched actions: mirred add support for setting Dst MAC address

2016-07-02 Thread Jamal Hadi Salim
On 16-07-02 12:58 PM, Cong Wang wrote: On Sat, Jul 2, 2016 at 7:34 AM, Jamal Hadi Salim wrote: From: Jamal Hadi Salim Often redirecting or mirroring requires that we set the dstMAC address of the target device. While it is possible to pipe to a pedit action, this patch obsoletes the need for

[PATCH 1/2] net: ethernet: cavium: octeon: use phydev from struct net_device

2016-07-02 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phy in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/ca

[PATCH 2/2] net: ethernet: cavium: octeon: use phy_ethtool_{get|set}_link_ksettings

2016-07-02 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/cavium/octeon/octeon_mgmt.c | 25 + 1 files changed, 2 insertions(+), 23 deleti

[net-next PATCH v2 1/2] net: pktgen: support injecting packets for qdisc testing

2016-07-02 Thread John Fastabend
Add another xmit_mode to pktgen to allow testing xmit functionality of qdiscs. The new mode "queue_xmit" injects packets at __dev_queue_xmit() so that qdisc is called. Signed-off-by: John Fastabend --- net/core/pktgen.c | 42 -- 1 file changed, 40 insert

[net-next PATCH v2 2/2] net: samples: pktgen mode samples/tests for qdisc layer

2016-07-02 Thread John Fastabend
This adds samples for pktgen to use with new mode to inject pkts into the qdisc layer. This also doubles as nice test cases to test any patches against qdisc layer. Signed-off-by: John Fastabend --- .../pktgen/pktgen_bench_xmit_mode_queue_xmit.sh| 66 1 file changed, 6

Re: [net-next PATCH 1/2] net: pktgen: support injecting packets for qdisc testing

2016-07-02 Thread John Fastabend
On 16-07-01 05:56 AM, Jamal Hadi Salim wrote: > On 16-06-30 12:53 PM, John Fastabend wrote: >> On 16-06-30 03:21 AM, Jamal Hadi Salim wrote: >>> On 16-06-29 03:47 PM, John Fastabend wrote: > >> >> Taking a look at the link couple differences exist. First the patch >> linked does a 'netif_xmit_froz

Re: [PATCH] net-next: mediatek: fix compile error inside mtk_poll_controller()

2016-07-02 Thread David Miller
From: John Crispin Date: Sat, 2 Jul 2016 08:00:50 +0200 > commit 8067302973a1 ("net-next: mediatek: add support for IRQ grouping") > failed to properly update the irq handling inside mtk_poll_controller() > causing compile errors if netconsole was enabled. Fix this by updating > the code to use

Re: [PATCH] packet: Use symmetric hash for PACKET_FANOUT_HASH.

2016-07-02 Thread David Miller
From: Tom Herbert Date: Fri, 1 Jul 2016 14:16:54 -0700 > On Fri, Jul 1, 2016 at 2:07 PM, David Miller wrote: >> From: Tom Herbert >> Date: Fri, 1 Jul 2016 13:52:58 -0700 >> >>> Why are symmetric hashes required? >> >> Because they want load balancing, such that one flow only can overrun >> one

Re: [PATCH] net/mlx4: Fix some indent inconsistancy

2016-07-02 Thread Leon Romanovsky
On Sat, Jul 02, 2016 at 02:31:05PM +0200, Christophe JAILLET wrote: > Silent a few smatch warnings about indentation. > This include the removal of a 'return' statement in 'resource_tracker.c'. > This 'return' will still be performed when breaking out of the > corresponding 'switch' block. > > Sig

Re: [patch net-next 00/12] mlxsw: Lay the groundwork for the introduction of router interfaces

2016-07-02 Thread David Miller
From: Jiri Pirko Date: Sat, 2 Jul 2016 11:00:08 +0200 > This is first patchset on a way to introduce ipv4 routing offload support > in mlxsw driver. Does preparations before router interfaces will > be introduced in mlxsw. Series applied, thanks.

Re: [PATCH net-next 00/11] bnxt_en updates for net-next.

2016-07-02 Thread David Miller
From: Michael Chan Date: Fri, 1 Jul 2016 18:46:18 -0400 > Mostly small miscellaneous changes. > > Please review for net-next. Thanks. Series applied, thanks.

Re: [PATCH 2/2] net: ethernet: davinci_emac: use phy_ethtool_{get|set}_link_ksettings

2016-07-02 Thread David Miller
From: Philippe Reynes Date: Sat, 2 Jul 2016 00:02:35 +0200 > There are two generics functions phy_ethtool_{get|set}_link_ksettings, > so we can use them instead of defining the same code in the driver. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH 1/2] net: ethernet: davinci_emac: use phydev from struct net_device

2016-07-02 Thread David Miller
From: Philippe Reynes Date: Sat, 2 Jul 2016 00:02:34 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phy in the private structure, and update the driver to use the > one contained in struct net

Re: [PATCH] net: phy: dp83867: Fix initialization of PHYCR register

2016-07-02 Thread David Miller
From: Stefan Hauser Date: Fri, 1 Jul 2016 22:35:03 +0200 > When initializing the PHY control register, the FIFO depth bits are > written without reading the previous register value, i.e. all other > bits are overwritten with zero. This disables automatic MDI-X > configuration, which is enabled b

Re: [PATCH] Fix race condition in enc28j60 driver

2016-07-02 Thread David Miller
From: Sergio Valverde < sergio.valve...@hpe.com > Date: Fri, 1 Jul 2016 11:44:30 -0600 > From: Sergio Valverde > > The interrupt worker code for the enc28j60 relies only on the TXIF flag to > determinate if the packet transmission was completed. However the datasheet > specifies in section 12.1

Re: [PATCH] net: stmmac: Fix null-function call in ISR on stmmac1000

2016-07-02 Thread David Miller
From: Matt Corallo Date: Thu, 30 Jun 2016 19:46:16 + > (resent due to overhelpful mail client corrupting patch) > > At least on Meson GXBB, the CORE_IRQ_MTL_RX_OVERFLOW interrupt is thrown > with the stmmac1000 driver, which does not support set_rx_tail_ptr. With > this patch and the clock f

Re: [PATCH net-next V3 00/16] Mellanox 100G SRIOV E-Switch offload and VF representors

2016-07-02 Thread David Miller
Series applied.

[PATCH 2/2] net: ethernet: arc: emac: use phy_ethtool_{get|set}_link_ksettings

2016-07-02 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/arc/emac_main.c | 40 + 1 files changed, 2 insertions(+), 38 deleti

[PATCH 1/2] net: ethernet: arc: emac: use phydev from struct net_device

2016-07-02 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phy in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/ar

Re: [PATCH v2 net-next 2/3] net sched actions: skbedit add support for mod-ing skb pkt_type

2016-07-02 Thread Daniel Borkmann
On 07/02/2016 12:43 PM, Jamal Hadi Salim wrote: From: Jamal Hadi Salim Extremely useful for setting packet type to host so i dont have to modify the dst mac address using pedit (which requires that i know the mac address) Example usage: tc filter add dev eth0 parent : protocol ip pref 9 u3

Re: [PATCH v2 net-next 1/3] net: simplify and make pkt_type_ok() available for other users

2016-07-02 Thread Daniel Borkmann
On 07/02/2016 12:43 PM, Jamal Hadi Salim wrote: From: Jamal Hadi Salim Suggested-by: Daniel Borkmann Signed-off-by: Jamal Hadi Salim Acked-by: Daniel Borkmann Thanks!

Re: [PATCH] net: phy: dp83867: Fix initialization of PHYCR register

2016-07-02 Thread Florian Fainelli
Le 01/07/2016 13:35, Stefan Hauser a écrit : > When initializing the PHY control register, the FIFO depth bits are > written without reading the previous register value, i.e. all other > bits are overwritten with zero. This disables automatic MDI-X > configuration, which is enabled by default. Fix

Re: [PATCH v2 net-next 1/1] net sched actions: mirred add support for setting Dst MAC address

2016-07-02 Thread Cong Wang
On Sat, Jul 2, 2016 at 7:34 AM, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > Often redirecting or mirroring requires that we set the dstMAC address > of the target device. While it is possible to pipe to a pedit action, > this patch obsoletes the need for that. This is a justified feature

Re: [PATCH v2 net-next 1/1] net sched actions: mirred add support for setting Dst MAC address

2016-07-02 Thread Nikolay Aleksandrov
On 02/07/16 16:34, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > Often redirecting or mirroring requires that we set the dstMAC address > of the target device. While it is possible to pipe to a pedit action, > this patch obsoletes the need for that. This is a justified feature because > th

[PATCH v2 net-next 1/1] net sched actions: mirred add support for setting Dst MAC address

2016-07-02 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Often redirecting or mirroring requires that we set the dstMAC address of the target device. While it is possible to pipe to a pedit action, this patch obsoletes the need for that. This is a justified feature because the dst MAC addresses rewrite is such a common use case.

Re: [PATCH net-next 1/1] net sched actions: mirred add support for setting Dst MAC address

2016-07-02 Thread Jamal Hadi Salim
On 16-07-02 10:16 AM, Jamal Hadi Salim wrote: On 16-07-02 10:07 AM, Nikolay Aleksandrov wrote: On 02/07/16 16:02, Jamal Hadi Salim wrote: On 16-07-02 09:49 AM, Nikolay Aleksandrov wrote: Also a minor suggestion - maybe err out on a zero mac address, otherwise the user might think the operati

Re: [PATCH net-next 1/1] net sched actions: mirred add support for setting Dst MAC address

2016-07-02 Thread Jamal Hadi Salim
On 16-07-02 10:07 AM, Nikolay Aleksandrov wrote: On 02/07/16 16:02, Jamal Hadi Salim wrote: On 16-07-02 09:49 AM, Nikolay Aleksandrov wrote: Also a minor suggestion - maybe err out on a zero mac address, otherwise the user might think the operation was successful. Is a zero mac address wro

Re: [PATCH net-next 1/1] net sched actions: mirred add support for setting Dst MAC address

2016-07-02 Thread Nikolay Aleksandrov
On 02/07/16 16:02, Jamal Hadi Salim wrote: > On 16-07-02 09:49 AM, Nikolay Aleksandrov wrote: >> On 02/07/16 15:26, Jamal Hadi Salim wrote: >>> From: Jamal Hadi Salim >>> >>> Often redirecting or mirroring requires that we set the MAC address >>> of the target device. While it is possible to pipe

Re: [PATCH net-next 1/1] net sched actions: mirred add support for setting Dst MAC address

2016-07-02 Thread Jamal Hadi Salim
On 16-07-02 09:49 AM, Nikolay Aleksandrov wrote: On 02/07/16 15:26, Jamal Hadi Salim wrote: From: Jamal Hadi Salim Often redirecting or mirroring requires that we set the MAC address of the target device. While it is possible to pipe to a pedit action this obsoletes the need for that. This is

Re: [PATCH net-next 1/1] net sched actions: mirred add support for setting Dst MAC address

2016-07-02 Thread Nikolay Aleksandrov
On 02/07/16 15:26, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > Often redirecting or mirroring requires that we set the MAC address > of the target device. While it is possible to pipe to a pedit action > this obsoletes the need for that. This is justified feature because > the dst MAC ad

[PATCH net-next 1/1] net sched actions: mirred add support for setting Dst MAC address

2016-07-02 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Often redirecting or mirroring requires that we set the MAC address of the target device. While it is possible to pipe to a pedit action this obsoletes the need for that. This is justified feature because the dst MAC addresses rewrite is such a common use case. Sample usag

Re: [PATCH v11 00/22] Add HiSilicon RoCE driver

2016-07-02 Thread Leon Romanovsky
On Sat, Jul 02, 2016 at 05:39:02PM +0800, Lijun Ou wrote: This v11 > 28 files changed, 10626 insertions(+), 1 deletion(-) First version > 27 files changed, 11670 insertions(+), 11 deletions(-) 1K LOC less, we are moving in right direction. signature.asc Description: Digital signature

[PATCH] net/mlx4: Fix some indent inconsistancy

2016-07-02 Thread Christophe JAILLET
Silent a few smatch warnings about indentation. This include the removal of a 'return' statement in 'resource_tracker.c'. This 'return' will still be performed when breaking out of the corresponding 'switch' block. Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/mellanox/mlx4/intf.c

[PATCH 1/2] net: ethernet: ixp4xx_eth: use phydev from struct net_device

2016-07-02 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phy in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/xs

[PATCH 2/2] net: ethernet: ixp4xx_eth: use phy_ethtool_{get|set}_link_ksettings

2016-07-02 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/xscale/ixp4xx_eth.c | 14 ++ 1 files changed, 2 insertions(+), 12 deletions(-) diff --

Re:

2016-07-02 Thread Mr. Bun Sam
Hi, I work with one of the major banks in Cambodia as the director of audit. I have a proposal for you, a very urgent and quick business that will be completed in 12 working days. I have just discovered documents relating to funds belonging to a deceased client of our bank, I went through all

[iproute2 1/1] actions: skbedit add support for mod-ing skb pkt_type

2016-07-02 Thread Jamal Hadi Salim
From: Jamal Hadi Salim I'll make a formal submission sans the header when the kernel patches makes it in. This version is for someone who wants to play around with the net-next kernel patches i sent Signed-off-by: Jamal Hadi Salim --- include/linux/tc_act/tc_skbedit.h | 2 ++ man/man8/tc-skbe

[PATCH 1/1] iproute2: unmangle netdev/my emails in man pages (hfsc, stab)

2016-07-02 Thread Michal Soltys
No other man pages do so, hiding netdev is kind of silly and I don't mind having my own address normally visible. --- man/man7/tc-hfsc.7 | 4 ++-- man/man8/tc-hfsc.8 | 4 ++-- man/man8/tc-stab.8 | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/man/man7/tc-hfsc.7 b/man/man7/

[PATCH v2 net-next 2/3] net sched actions: skbedit add support for mod-ing skb pkt_type

2016-07-02 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Extremely useful for setting packet type to host so i dont have to modify the dst mac address using pedit (which requires that i know the mac address) Example usage: tc filter add dev eth0 parent : protocol ip pref 9 u32 \ match ip src 5.5.5.5/32 \ flowid 1:5 action sk

[PATCH v2 net-next 3/3] net sched actions: skbedit convert to use more modern nla_put_xxx

2016-07-02 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- net/sched/act_skbedit.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/net/sched/act_skbedit.c b/net/sched/act_skbedit.c index 1c4c924..8e573c0 100644 --- a/net/sched/act_skbedit.c +++ b/net/sched/act_s

[PATCH v2 net-next 1/3] net: simplify and make pkt_type_ok() available for other users

2016-07-02 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Suggested-by: Daniel Borkmann Signed-off-by: Jamal Hadi Salim --- include/linux/skbuff.h | 10 ++ net/netfilter/nft_meta.c | 9 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index dc0f

[PATCH v11 15/22] IB/hns: Add PD operations support

2016-07-02 Thread Lijun Ou
This patch added the verbs to operate PD. It mainly includes the functions of allocating PD and deallocating PD. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11/v10/v9/v8/v7/v6: - No change over the PATCH v5 PATCH v5: - The initial patch which was redes

[PATCH v11 16/22] IB/hns: Add ah operations support

2016-07-02 Thread Lijun Ou
This patch was for implementing of address handle operations. It includes three verbs that create ah, query ah and destroy ah. They is completed independently by RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: Remove the non-essential heade

[PATCH v11 14/22] IB/hns: Add operations support for IB device and port

2016-07-02 Thread Lijun Ou
This patch mainly registered some relative verbs for the kernel. These operation functions will be called by user. For example: 1. modify device 2. query device 3. query_port 4. modify_port and so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou ---

[PATCH v11 11/22] IB/hns: Add IB device registration

2016-07-02 Thread Lijun Ou
This patch registered IB device when loaded, and unregistered IB device when removed. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: Remove hns_roce_profile_init function for one line of code which will be called once only according to Leon Romanovsky'

[PATCH v11 01/22] net: hns: Add reset function support for RoCE driver

2016-07-02 Thread Lijun Ou
It added reset function for RoCE driver. RoCE is a feature of hns. In hip06 SoC, in RoCE reset process, it's needed to configure dsaf channel reset, port and sl map info. Reset function of RoCE is located in dsaf module, we only call it in RoCE driver when needed. Signed-off-by: Wei Hu Signed-off

[PATCH v11 19/22] IB/hns: Add memory region operations support

2016-07-02 Thread Lijun Ou
This patch was mainly for implementing of memory region. Memory Registration provides mechanisms that allow consumers to describe a set of virtually contiguous memory locations or a set of physically contiguous memory locations. MR operations includes as follows: 1. get dma MR in kernel mode

[PATCH v11 06/22] IB/hns: Add initial cmd operation

2016-07-02 Thread Lijun Ou
This patch added the operation for cmd, and added some functions for initializing eq table and selecting cmd mode. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: This fixes the comments given by Leon Romanovsky over the PATCH v10: Link: https://lkml.

[PATCH v11 18/22] IB/hns: Add CQ operations support

2016-07-02 Thread Lijun Ou
This patch was implementing for Completion Queue(CQ) operations. A CQ can be used to multiplex work completions from multiple work queues across queue pairs on the same HCA. CQ as the notification mechanism for Work Request completions. CQ operations as follows: 1. create CQ. CQ are created thr

[PATCH v11 02/22] devicetree: bindings: IB: Add binding document for HiSilicon RoCE

2016-07-02 Thread Lijun Ou
This patch added DTS binding document for HiSilicon RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou --- PATCH v11/v10/v9/v8/v7/v6/v5/v4/v3: - No change over the PATCH v2 PATCH v2: This fixes the comments given by Sergei Shtylyov over PATCH v1: Link: https://lkml.org/lkml/2016/3/11/

[PATCH v11 12/22] IB/hns: Set mtu and gid support

2016-07-02 Thread Lijun Ou
This patch mainly set mtu and gid resource. These resource will be used to set up network transmission in nodes. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: - No change over the PATCH v10 PATCH v10: This fixes the same questions with the comments g

[PATCH v11 03/22] IB/hns: Add initial main frame driver and get cfg info

2016-07-02 Thread Lijun Ou
This patch mainly added the initial bare main driver. It could get the relative configure information of net node. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: This fixes comments given by Leon Romanovsky over the PATCH v10: Link: https://lkml.org/

[PATCH v11 00/22] Add HiSilicon RoCE driver

2016-07-02 Thread Lijun Ou
The HiSilicon Network Substem is a long term evolution IP which is supposed to be used in HiSilicon ICT SoCs. HNS (HiSilicon Network Sybsystem) also has a hardware support of performing RDMA with RoCEE. The driver for HiSilicon RoCEE(RoCE Engine) is a platform driver and will support mulitple versi

[PATCH v11 07/22] IB/hns: Add event queue support

2016-07-02 Thread Lijun Ou
This patch added event queue support for RoCE driver. It is used for RoCE interrupt. RoCE includes 32 synchronous event irqs, 1 asynchronous event irq and 1 common overflow irq. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: This fixes the comments giv

[PATCH v11 04/22] IB/hns: Add RoCE engine reset function

2016-07-02 Thread Lijun Ou
This patch mainly added reset flow of RoCE engine in RoCE driver. It is necessary when RoCE is loaded and removed. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: This fixes the comments given by Leon Romanovsky over the PATCH v11: Link: https://lkml.

[PATCH v11 13/22] IB/hns: Add interface of the protocol stack registration

2016-07-02 Thread Lijun Ou
This patch mainly added the function module which netif notify registered the protocol stack. It includes interface functions as follows: 1. The executive called interface of RoCE when the netlink event that registered protocol stack was generated 2. The executive called interface of

[PATCH v11 09/22] IB/hns: Add hca support

2016-07-02 Thread Lijun Ou
This patch mainly setup hca for RoCE. It will do a series of initial works, as follows: 1. init uar table, allocate uar resource 2. init pd table 3. init cq table 4. init mr table 5. init qp table Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou ---

[PATCH v11 10/22] IB/hns: Add process flow to init RoCE engine

2016-07-02 Thread Lijun Ou
This patch mainly initialized the RoCE engine. It is absolutely necessary to run RoCE. It mainly includes that configure DMAE user, initialize doorbell and raq operations, enable port. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: This fixes hns_roce_

[PATCH v11 08/22] IB/hns: Add hem support

2016-07-02 Thread Lijun Ou
This patch mainly added hem(Hardware Entry Memory) support for RoCE. It initializes icm which managers the relative memory blocks for RoCE. The data structures of RoCE will be located in it. For example, CQ table, QP table and MTPT table so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao

[PATCH v11 05/22] IB/hns: Add initial profile resource

2016-07-02 Thread Lijun Ou
This patch added the operation for cmd, and added some functions for initializing eq table and selecting cmd mode. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: This fixes the comments given by Leon Romanovsky over the PATCH v10: Link: https://lkml.

[PATCH v11 17/22] IB/hns: Add QP operations support

2016-07-02 Thread Lijun Ou
This patch was implementing for queue pair operations. QP Consists of a Send Work Queue and a Receive Work Queue. Send and receive queues are always created as a pair and remain that way throughout their lifetime. A Queue Pair is identified by its Queue Pair Number. QP operations as follows: 1.

[PATCH v11 20/22] IB/hns: Add operation for getting immutable port

2016-07-02 Thread Lijun Ou
This patch added a new verbs that is getting port immutable. It is added in the 4.5 kernel and latest. It is necessary to solve the fail questions for registering ib device. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou --- PATCH v11/v10/v9: - No change over the PATCH v8 PATCH v8: - The initial

[PATCH v11 21/22] IB/hns: Kconfig and Makefile for RoCE module

2016-07-02 Thread Lijun Ou
This patch added Kconfig and Makefile for building RoCE module. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- PATCH v11: hns_roce_icm.o -> hns_roce_hem.o PATCH v10/v9/v8/v7/v6/v5: - No change over the PATCH v4 PATCH v4: This fixes the comments given by Christo

[PATCH v11 22/22] MAINTAINERS: Add maintainers for HiSilicon RoCE driver

2016-07-02 Thread Lijun Ou
This patch added maintainers for RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou --- PATCH v11/v10/v9: - No change over the PATCH v8 PATCH v8: This fixes the comments given by Joe Perches over the PATCH v7: Link: https://lkml.org/lkml/2016/5/25/396 PATCH v7/v6/v5/v4: - No change o

[ANNOUNCE] libmnl 1.0.4 release

2016-07-02 Thread Pablo Neira Ayuso
Hi! The Netfilter project presents: libmnl 1.0.4 libmnl is a minimalistic user-space library oriented to Netlink developers. There are a lot of common tasks in parsing, validating, constructing of both the Netlink header and TLVs that are repetitive and easy to get wrong. This library ai

[patch net-next 05/12] mlxsw: reg: Add Router General Configuration Register

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel Add the Router General Configuration Register (RGCR), which allows us to enable the router in the device and configure its various parameters. Signed-off-by: Ido Schimmel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 78 ++

[patch net-next 04/12] mlxsw: spectrum: Remove RIF from PVID vPort when joining / leaving LAG

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel We are going to assign router interfaces (RIFs) to netdevs if an IPv4 address was assigned to them. If one was assigned to a port netdev, this will translate to the PVID vPort being member in a RIF. While it's possible for a LAG slave to have an IP address, we can't have a vPo

[patch net-next 11/12] mlxsw: spectrum: Use action 'discard' when removing traps

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel When removing packet traps we should use action 'discard' instead of 'forward', as some trap IDs we'll add cannot be configured with the later. However, result is the same, as packets are not trapped to the CPU. In the future we will be able to reverse the operation properly b

[patch net-next 02/12] mlxsw: spectrum: Remove VLANs configuration via SELF flag

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel When port isn't bridged it is still possible to invoke switchdev ops and configure the device's VLAN filters. However, this will require us to use different Router InterFaces (RIFs) for the same netdev, instead of one per-netdev as with any other configuration. Taking the abo

[patch net-next 09/12] mlxsw: reg: Add FDB action to forward to router

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel Incoming packets are directed to the router when they match an FDB entry with action forward to IP router. Add this action, which was mistakenly named "TRAP". Signed-off-by: Ido Schimmel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 4 +++- 1 fi

[patch net-next 07/12] mlxsw: spectrum_router: Add basic ipv4 router initialization

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel Create a skeleton router file and do basic HW initialization of router. Signed-off-by: Ido Schimmel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/Makefile | 2 +- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 9 +++ drivers/net/ethernet/me

[patch net-next 12/12] mlxsw: spectrum: Add traps needed for router implementation

2016-07-02 Thread Jiri Pirko
From: Jiri Pirko ip2me: To instruct HW to send trapped ip2me traffic to kernel, we have to add this trap. Selection ip2me traffic is introduced later on in this set. ARPs: We are going to stop flooding to CPU port when netdev isn't bridged and only get packets destined to the netdev's IP address

[patch net-next 00/12] mlxsw: Lay the groundwork for the introduction of router interfaces

2016-07-02 Thread Jiri Pirko
From: Jiri Pirko This is first patchset on a way to introduce ipv4 routing offload support in mlxsw driver. Does preparations before router interfaces will be introduced in mlxsw. Ido Schimmel (11): mlxsw: spectrum: Send untagged packets through a port netdev mlxsw: spectrum: Remove VLANs co

[patch net-next 01/12] mlxsw: spectrum: Send untagged packets through a port netdev

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel Port netdevs (e.g. swXpY) that are not bridged are represented in the device using a vPort with VID=PVID=1 (the PVID vPort), as untagged packets entering the switch are internally tagged with the PVID VLAN. When these packets are routed through a different port netdev they shou

[patch net-next 06/12] mlxsw: spectrum: Initialize ports at the end of init sequence

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel During ports initialization a net device is registered for each available port, which implies the port is usable. However, a port is only usable after the different parts of the device (e.g. flooding, buffers) are initialized. This is especially important now, when we must init

[patch net-next 08/12] mlxsw: spectrum: Add router interface struct

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel When enabling the router in the device we will represent L3 netdevs using router interfaces (RIFs). These will be specified whenever programming routes or neighbours on the netdev. Introduce the basic RIF infrastructure which allows one to lookup a RIF by its netdev. Later pat

[patch net-next 03/12] mlxsw: spectrum: Sync PVID vPort LAG status

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel When VLAN devices are created on top of LAG, their underlying vPorts are configured correctly with LAG membership. However, the PVID vPort is implicit and already present when the port netdev is put under LAG, so its LAG membership is never set. Set it correctly when joining /

[patch net-next 10/12] mlxsw: reg: Add Router Interface Table Register

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel Add the Router Interface Table Register (RITR), which allows us to create and configure router interfaces (RIFs). Signed-off-by: Ido Schimmel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 194 ++ 1 file changed, 194 in

Re: [patch net-next 00/18] mlxsw: Do preparations before ipv4 router offload introduction

2016-07-02 Thread Jiri Pirko
Sat, Jul 02, 2016 at 09:26:22AM CEST, j...@resnulli.us wrote: >From: Jiri Pirko > >This patchset introduces router interfaces. At this point the router >still operates in slowpath, but that's needed in order not to introduce a >regression. Scratch this. I have to split it differently :( > >Ido

[patch net-next 12/18] mlxsw: spectrum: Add traps needed for router implementation

2016-07-02 Thread Jiri Pirko
From: Jiri Pirko ip2me: To instruct HW to send trapped ip2me traffic to kernel, we have to add this trap. Selection ip2me traffic is introduced later on in this set. ARPs: We are going to stop flooding to CPU port when netdev isn't bridged and only get packets destined to the netdev's IP address

[patch net-next 09/18] mlxsw: reg: Add FDB action to forward to router

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel Incoming packets are directed to the router when they match an FDB entry with action forward to IP router. Add this action, which was mistakenly named "TRAP". Signed-off-by: Ido Schimmel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 4 +++- 1 fi

[patch net-next 02/18] mlxsw: spectrum: Remove VLANs configuration via SELF flag

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel When port isn't bridged it is still possible to invoke switchdev ops and configure the device's VLAN filters. However, this will require us to use different Router InterFaces (RIFs) for the same netdev, instead of one per-netdev as with any other configuration. Taking the abo

Re: [patch net-next 02/42] net: introduce default neigh_construct/destroy ndo calls for L2 upper devices

2016-07-02 Thread Jiri Pirko
Fri, Jul 01, 2016 at 04:24:54PM CEST, d...@cumulusnetworks.com wrote: >On 7/1/16 8:04 AM, Jiri Pirko wrote: >>From: Jiri Pirko >> >>L2 upper device needs to propagate neigh_construct/destroy calls down to >>lower devices. Do this by defining default ndo functions and use them in >>team, bond, brid

[patch net-next 04/18] mlxsw: spectrum: Remove RIF from PVID vPort when joining / leaving LAG

2016-07-02 Thread Jiri Pirko
From: Ido Schimmel We are going to assign router interfaces (RIFs) to netdevs if an IPv4 address was assigned to them. If one was assigned to a port netdev, this will translate to the PVID vPort being member in a RIF. While it's possible for a LAG slave to have an IP address, we can't have a vPo

  1   2   >