Re: [PATCH RESEND v2 net-next] net: hisilicon: updates HNS config and documents

2015-10-30 Thread Salil Mehta
On 10/31/2015 1:40 AM, huangdaode wrote: On 2015/10/30 22:20, Arnd Bergmann wrote: On Tuesday 27 October 2015 19:16:34 huangdaode wrote: mdio@803c { #address-cells = <1>; #size-cells = <0>; - compatible =

[PATCH V6 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-12-02 Thread Salil Mehta
From: Salil <salil.me...@huawei.com> This patch adds the support of ethtool TSO option to support Hip06 SoC to HNS Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lisheng <lisheng...@huawei.com> --- PATCH V6/V5: - No change over the previous patch PA

Re: [PATCH V5 net-next 1/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-12-02 Thread Salil Mehta
On 11/30/2015 7:50 PM, David Miller wrote: From: Salil Mehta <salil.me...@huawei.com> Date: Thu, 26 Nov 2015 07:14:06 + -#define ENABLE (0x1) -#define DISABLE(0x0) +#define ENABLE 0x1 +#define DISABLE0x0 Defining such common macros

[PATCH V6 net-next 0/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-12-02 Thread Salil Mehta
VLAN support (currently we are initializing hardware to not assist in stripping the vlan tag at hardware level. Proper support of this feature and ethtool would come after these patches have been accepted) Kindly note that, this patchset has been based on latest net-next. Salil Mehta (

[PATCH V6 net-next 1/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-12-02 Thread Salil Mehta
. Changes affecting the driver related to the newly added ethernet hardware features in Hip06 would be added as separate patch over this and subsequent patches. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: yankejian <yankej...@huawei.com> Signed-off-by: huangda

[PATCH V6 net-next 2/5] net:hns: Add Hip06 "RSS(Receive Side Scaling)" support to HNS Driver

2015-12-02 Thread Salil Mehta
ssor cores. The mapping of flow-hash values to the different queues is stored in indirection table (which is per Packet- parse-Engine/PPE). This patch also provides the changes to re-program the (flow-hash<->Qid) mapping using the ethtool. Signed-off-by: Salil Mehta <salil.me...@h

[PATCH V6 net-next 3/5] net:hns: Add Hip06 "TSO(TCP Segment Offload)" support HNS Driver

2015-12-02 Thread Salil Mehta
cpu cycles. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lisheng <lisheng...@huawei.com> --- PATCH V6: - No change over previous patch. PATCH V5: - Minor styling change PATCH V4/V3/V2: - No change over the initial patch floated patch for TSO PATCH V1: - Initial

[PATCH V6 net-next 5/5] net:hns: Add the init code to disable Hip06 "Hardware VLAN assist"

2015-12-02 Thread Salil Mehta
This patch adds the initializzation code to disable the hardware vlan support for VLAN Tag stripping by default for now. Proper support of "hardware VLAN assitance" feature would soon come in the next coming patches. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- PATCH

[PATCH V7 net-next 1/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-12-03 Thread Salil Mehta
. Changes affecting the driver related to the newly added ethernet hardware features in Hip06 would be added as separate patch over this and subsequent patches. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: yankejian <yankej...@huawei.com> Signed-off-by: huangda

[PATCH V7 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-12-03 Thread Salil Mehta
From: Salil <salil.me...@huawei.com> This patch adds the support of ethtool TSO option to support Hip06 SoC to HNS Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lisheng <lisheng...@huawei.com> --- PATCH V7/V6/V5: - No change over the previous patch PA

[PATCH V7 net-next 5/5] net:hns: Add the init code to disable Hip06 "Hardware VLAN assist"

2015-12-03 Thread Salil Mehta
This patch adds the initializzation code to disable the hardware vlan support for VLAN Tag stripping by default for now. Proper support of "hardware VLAN assitance" feature would soon come in the next coming patches. Signed-off-by: Salil Mehta <salil.me...@huawei.com&g

[PATCH V7 net-next 3/5] net:hns: Add Hip06 "TSO(TCP Segment Offload)" support HNS Driver

2015-12-03 Thread Salil Mehta
cpu cycles. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lisheng <lisheng...@huawei.com> --- PATCH V7/V6: - No change over previous patch. PATCH V5: - Minor styling change PATCH V4/V3/V2: - No change over the initial patch floated patch for TSO PATCH V1: - Initial

[PATCH V7 net-next 2/5] net:hns: Add Hip06 "RSS(Receive Side Scaling)" support to HNS Driver

2015-12-03 Thread Salil Mehta
ssor cores. The mapping of flow-hash values to the different queues is stored in indirection table (which is per Packet- parse-Engine/PPE). This patch also provides the changes to re-program the (flow-hash<->Qid) mapping using the ethtool. Signed-off-by: Salil Mehta <salil.me...@h

[PATCH V7 net-next 0/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-12-03 Thread Salil Mehta
after these patches have been accepted) Kindly note that, this patchset has been based on latest net-next. Salil Mehta (5): net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem net:hns: Add Hip06 "RSS(Receive Side Scaling)" support to HNS Driver net:hns

Re: [PATCH V7 net-next 0/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-12-04 Thread Salil Mehta
Thanks a ton! David :) On 12/4/2015 7:37 PM, David Miller wrote: From: Salil Mehta <salil.me...@huawei.com> Date: Thu, 3 Dec 2015 12:17:52 + This PATCH V7 addresses the TAB formatting comments by Sergei Shtylyov. Missing TABs at some other palces have also been corrected. Series a

Re: [PATCH V6 net-next 5/5] net:hns: Add the init code to disable Hip06 "Hardware VLAN assist"

2015-12-04 Thread Salil Mehta
On 12/2/2015 7:46 PM, Sergei Shtylyov wrote: Hello. On 12/02/2015 07:52 PM, Salil Mehta wrote: This patch adds the initializzation code to disable the hardware vlan support for VLAN Tag stripping by default for now. Proper support of "hardware VLAN assitance" feature would

Re: [PATCH] net: hns: avoid uninitialized variable warning:

2016-01-06 Thread Salil Mehta
On 1/5/2016 9:43 PM, David Miller wrote: From: Arnd Bergmann Date: Fri, 01 Jan 2016 23:27:57 +0100 gcc fails to see that the use of the 'last_offset' variable in hns_nic_reuse_page() is used correctly and issues a bogus warning: drivers/net/ethernet/hisilicon/hns/hns_enet.c:

Re: [PATCH V3 net-next 1/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-11-25 Thread Salil Mehta
On 11/22/2015 9:19 AM, Yuval Mintz wrote: +void hns_rcbv2_int_ctrl_hw(struct hnae_queue *q, u32 flag, u32 mask) +{ + u32 int_mask_en = !!mask; + + if (flag & RCB_INT_FLAG_TX) + dsaf_write_dev(q, RCB_RING_INTMSK_TXWL_REG, int_mask_en); + + if (flag &

[PATCH V5 net-next 0/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-11-25 Thread Salil Mehta
c. Hardware VLAN support (currently we are initializing hardware to not assist in stripping the vlan tag at hardware level. Proper support of this feature and ethtool would come after these patches have been accepted) Kindly note that, this patchset has been based on latest

[PATCH V5 net-next 3/5] net:hns: Add Hip06 "TSO(TCP Segment Offload)" support HNS Driver

2015-11-25 Thread Salil Mehta
cpu cycles. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lisheng <lisheng...@huawei.com> --- PATCH V5: Minor styling change PATCH V4: No change over the previous patches PATCH V3/V2: - No change over the initial floated patch for TSO PATCH V1: - Initial support o

[PATCH V5 net-next 1/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-11-25 Thread Salil Mehta
. Changes affecting the driver related to the newly added ethernet hardware features in Hip06 would be added as separate patch over this and subsequent patches. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: yankejian <yankej...@huawei.com> Signed-off-by: huangda

Re: [PATCH V3 net-next 2/5] net:hns: Add Hip06 "RSS(Receive Side Scaling)" support to HNS Driver

2015-11-25 Thread Salil Mehta
On 11/22/2015 9:30 AM, Yuval Mintz wrote: static void hns_ppe_init_hw(struct hns_ppe_cb *ppe_cb) { ... + /* Set default RSS key and indrection table*/ + const u32 rss_key[HNS_PPEV2_RSS_KEY_NUM] = { + 0x6d5a56da, 0x255b0ec2, + 0x4167253d, 0x43a38fb0,

[PATCH V5 net-next 2/5] net:hns: Add Hip06 "RSS(Receive Side Scaling)" support to HNS Driver

2015-11-25 Thread Salil Mehta
ssor cores. The mapping of flow-hash values to the different queues is stored in indirection table (which is per Packet- parse-Engine/PPE). This patch also provides the changes to re-program the (flow-hash<->Qid) mapping using the ethtool. Signed-off-by: Salil Mehta <salil.me...@h

[PATCH V5 net-next 5/5] net:hns: Add the init code to disable Hip06 "Hardware VLAN assist"

2015-11-25 Thread Salil Mehta
This patch adds the initializzation code to disable the hardware vlan support for VLAN Tag stripping by default for now. Proper support of "hardware VLAN assitance" feature would soon come in the next coming patches. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- PATCH V

[PATCH V5 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-11-25 Thread Salil Mehta
From: Salil <salil.me...@huawei.com> This patch adds the support of ethtool TSO option to support Hip06 SoC to HNS Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lisheng <lisheng...@huawei.com> --- PATCH V5: - No change over the previous patch PA

Re: [PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-12-01 Thread Salil Mehta
On 22/11/15 11:17, Yuval Mintz wrote: +static netdev_features_t hns_nic_fix_features( + struct net_device *netdev, netdev_features_t features) { + struct hns_nic_priv *priv = netdev_priv(netdev); + + switch (priv->enet_ver) { + case AE_VERSION_1: +

Re: [PATCH V3 net-next 3/5] net:hns: Add Hip06 "TSO(TCP Segment Offload)" support HNS Driver

2015-11-26 Thread Salil Mehta
On 11/22/2015 8:49 AM, Yuval Mintz wrote: +static void hns_ae_set_tso_stats(struct hnae_handle *handle, int +enable) { + struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); + + hns_ppe_set_tso_enable(ppe_cb, enable); } Style issues? I could not see the code style issue menioned

Re: [PATCH V2 net-next 1/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-11-20 Thread Salil Mehta
On 11/18/2015 6:52 PM, David Miller wrote: From: Salil Date: Wed, 18 Nov 2015 02:52:23 +0800 @@ -387,19 +409,23 @@ static void hns_rcb_ring_get_cfg(struct hnae_queue *q, int ring_type) struct rcb_common_cb *rcb_common; struct ring_pair_cb

[PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-11-20 Thread Salil Mehta
From: Salil <salil.me...@huawei.com> This patch adds the support of ethtool TSO option to support Hip06 SoC to HNS Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lisheng <lisheng...@huawei.com> --- PATCH V4: This fixes the comments given by Sergei Shtylyov

[PATCH V4 net-next 1/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-11-20 Thread Salil Mehta
. Changes affecting the driver related to the newly added ethernet hardware features in Hip06 would be added as separate patch over this and subsequent patches. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: yankejian <yankej...@huawei.com> Signed-off-by: huangda

[PATCH V4 net-next 0/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-11-20 Thread Salil Mehta
cepted) Kindly note that, this patchset has been based on latest net-next. Salil Mehta (5): net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem net:hns: Add Hip06 "RSS(Receive Side Scaling)" support to HNS Driver net:hns: Add Hip06 "TSO(TCP Segment Offload)" s

[PATCH V4 net-next 5/5] net:hns: Add the init code to disable Hip06 "Hardware VLAN assist"

2015-11-20 Thread Salil Mehta
This patch adds the initializzation code to disable the hardware vlan support for VLAN Tag stripping by default for now. Proper support of "hardware VLAN assitance" feature would soon come in the next coming patches. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- PATCH

[PATCH V4 net-next 2/5] net:hns: Add Hip06 "RSS(Receive Side Scaling)" support to HNS Driver

2015-11-20 Thread Salil Mehta
ssor cores. The mapping of flow-hash values to the different queues is stored in indirection table (which is per Packet- parse-Engine/PPE). This patch also provides the changes to re-program the (flow-hash<->Qid) mapping using the ethtool. Signed-off-by: Salil Mehta <salil.me...@h

[PATCH V4 net-next 3/5] net:hns: Add Hip06 "TSO(TCP Segment Offload)" support HNS Driver

2015-11-20 Thread Salil Mehta
cpu cycles. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lisheng <lisheng...@huawei.com> --- PATCH V4: No change over the previous patches PATCH V3/V2: - No change over the initial floated patch for TSO PATCH V1: - Initial support of TSO feature in Hip06 SoC in H

[PATCH V3 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-11-19 Thread Salil Mehta
From: Salil <salil.me...@huawei.com> This patch adds the support of ethtool TSO option to V1 patch, meant to add support of Hip06 SoC to HNS Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lisheng <lisheng...@huawei.com> --- drivers/net/ethernet/hisili

[PATCH V3 net-next 0/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-11-19 Thread Salil Mehta
upport (currently we are initializing hardware to not assist in stripping the vlan tag at hardware level. Proper support of this feature and ethtool would come after these patches have been accepted) Kindly note that, this patchset has been based on latest net-next. Salil Mehta (5):

[PATCH V3 net-next 5/5] net:hns: Add the init code to disable Hip06 "Hardware VLAN assist"

2015-11-19 Thread Salil Mehta
This patch adds the initializzation code to disable the hardware vlan support for VLAN Tag stripping by default for now. Proper support of "hardware VLAN assitance" feature would soon come in the next coming patches. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- driv

[PATCH V3 net-next 1/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-11-19 Thread Salil Mehta
' to 'bool' at different places of the code: Link: https://lkml.org/lkml/2015/11/18/656 Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: yankejian <yankej...@huawei.com> Signed-off-by: huangdaode <huangda...@hisilicon.com> Signed-off-by: lipeng <lipeng...@h

[PATCH V3 net-next 3/5] net:hns: Add Hip06 "TSO(TCP Segment Offload)" support HNS Driver

2015-11-19 Thread Salil Mehta
cpu cycles. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lisheng <lisheng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hnae.h |1 + drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c |8 ++ drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c

[PATCH V3 net-next 2/5] net:hns: Add Hip06 "RSS(Receive Side Scaling)" support to HNS Driver

2015-11-19 Thread Salil Mehta
by Yisen.Zhuang(Zhuangyuzeng) Link: https://lkml.org/lkml/2015/10/21/1032 - Rework for Internal review comments by Kenneth Lee PATCH V1: - Initial version to support RSS and its Ethtool interface on Hip06 SoC Signed-off-by: Salil Mehta <salil.me...@huawei.com> Reviewed-by: Kenneth Le

Re: [PATCH V3 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-11-23 Thread Salil Mehta
On 20/11/15 14:07, Sergei Shtylyov wrote: On 11/19/2015 11:58 PM, Salil Mehta wrote: From: Salil <salil.me...@huawei.com> This patch adds the support of ethtool TSO option to V1 patch, meant to add support of Hip06 SoC to HNS Signed-off-by: Salil Mehta <salil.me...@huawei.com>

RE: [PATCH net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
> -Original Message- > From: YUAN Linyu [mailto:linyu.y...@alcatel-sbell.com.cn] > Sent: Thursday, February 09, 2017 9:36 AM > To: Salil Mehta; da...@davemloft.net > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.ke

RE: [PATCH net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
> -Original Message- > From: Salil Mehta > Sent: Thursday, February 09, 2017 9:48 AM > To: 'YUAN Linyu'; da...@davemloft.net > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm; > Yankejian (Hack

[PATCH net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
he device related to DSAF. Signed-off-by: Kejian Yan <yankej...@huawei.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_enet.c |2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH V2 net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
he device related to DSAF. Signed-off-by: Kejian Yan <yankej...@huawei.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- Change log: PATCH V2: Addressed comment given by, Yuan Linyu <linyu.y...@alcatel-sb

RE: [PATCH net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
> -Original Message- > From: Lino Sanfilippo [mailto:linosanfili...@gmx.de] > Sent: Thursday, February 09, 2017 10:25 AM > To: Salil Mehta > Cc: da...@davemloft.net; Salil Mehta; Zhuangyuzeng (Yisen); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > k

RE: [PATCH for-next 0/2] {IB,net}/hns: Add support of ACPI to the Hisilicon RoCE Driver

2016-08-25 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Thursday, August 25, 2016 5:54 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > mehta.salil@gmail.com; linux-r...@vger.kernel.org; > n

RE: [PATCH for-next 0/2] {IB,net}/hns: Add support of ACPI to the Hisilicon RoCE Driver

2016-08-25 Thread Salil Mehta
> -Original Message- > From: Doug Ledford [mailto:dledf...@redhat.com] > Sent: Thursday, August 25, 2016 12:57 PM > To: David Miller; Salil Mehta > Cc: Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > mehta.salil@gmail.com; linux-r...@vger.kernel.org; > net...@v

RE: [PATCH for-next 0/2] {IB,net}/hns: Add support of ACPI to the Hisilicon RoCE Driver

2016-08-25 Thread Salil Mehta
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Doug Ledford > Sent: Thursday, August 25, 2016 3:09 PM > To: Salil Mehta; David Miller > Cc: Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > meht

RE: [PATCH for-next 0/2] {IB,net}/hns: Add support of ACPI to the Hisilicon RoCE Driver

2016-08-25 Thread Salil Mehta
> -Original Message- > From: Doug Ledford [mailto:dledf...@redhat.com] > Sent: Thursday, August 25, 2016 2:53 PM > To: Salil Mehta; David Miller > Cc: Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > mehta.salil@gmail.com; linux-r...@vger.kernel.org; > net...@v

RE: [PATCH for-next 0/2] {IB,net}/hns: Add support of ACPI to the Hisilicon RoCE Driver

2016-09-05 Thread Salil Mehta
> -Original Message- > From: Doug Ledford [mailto:dledf...@redhat.com] > Sent: Thursday, August 25, 2016 4:00 PM > To: Salil Mehta; David Miller > Cc: Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > mehta.salil@gmail.com; linux-r...@vger.kernel.org; > net...@v

RE: [PATCH for-next 0/2] {IB,net}/hns: Add support of ACPI to the Hisilicon RoCE Driver

2016-09-05 Thread Salil Mehta
> -Original Message- > From: Doug Ledford [mailto:dledf...@redhat.com] > Sent: Thursday, August 25, 2016 12:57 PM > To: David Miller; Salil Mehta > Cc: Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > mehta.salil@gmail.com; linux-r...@vger.kernel.org; > net...@v

[PATCH for-next 00/10] Add CM(Connection Manager) Support to HNS RoCe Driver

2016-09-01 Thread Salil Mehta
This patch-set adds the CM(Connection Manager) support to the HNS RoCE driver. Changes done are primarily to add support of APIs in IB device and some fixes over the base driver to support RDMA Connection Manager. This patch-set also updates the Device binding document as new parameter node-guid

[PATCH for-next 04/10] IB/hns: Fix the value of device_cap_flags

2016-09-01 Thread Salil Mehta
Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_main.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c

[PATCH for-next 03/10] IB/hns: Add & initialize "node_guid" parameter for RDMA CM

2016-09-01 Thread Salil Mehta
ialize the node_guid parameter of IB device. This value shall be used by RDMA CM. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_device.h |1 + d

[PATCH for-next 05/10] IB/hns: Fix two possible bugs for rdma cm

2016-09-01 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> Fix the length of wqe that maybe lead to an error and write the end bytes of QP1C into the register. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH for-next 09/10] IB/hns: Fix two bugs for rdma cm connecting

2016-09-01 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> This patch mainly modify the value of HNS_ROCE_SL_SHIFT and delete the lines for assigning for the field of local_enable_e2e_credit in QP1C. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-o

[PATCH for-next 06/10] IB/hns: Add phy_port for computing GSI/QPN

2016-09-01 Thread Salil Mehta
r-port. This also fixes a bug in base driver where iboe port was being used instead of phy_port at some places. This values might not be same always. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH for-next 07/10] IB/hns: Change the logic for allocating uar registers

2016-09-01 Thread Salil Mehta
cation Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_pd.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/infinib

[PATCH for-next 02/10] IB/hns: Register add_gid and del_gid for GID Table management

2016-09-01 Thread Salil Mehta
gt; Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_main.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/h

[PATCH for-next 01/10] IB/hns: Register HNS RoCE Driver get_netdev() with IB Core

2016-09-01 Thread Salil Mehta
ed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_main.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/infiniband/h

[PATCH for-next 10/10] IB/hns: Add node_guid definition to the bindings document

2016-09-01 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> This patch adds node_guid definition in bindings document. The value of node_guid will be used during RDMA connection. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <s

[PATCH for-next 08/10] IB/hns: Fix the bug of rdma cm connecting on user mode

2016-09-01 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> Fix bug of modify qp from init to init on user mode. Otherwise, it will oops when rmda cm established. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH V2 for-next 0/9] IB/hns: Add CM(Connection Manager) Support to HNS RoCe Driver

2016-09-13 Thread Salil Mehta
This patch-set adds the CM(Connection Manager) support to the HNS RoCE driver. Changes done are primarily to add support of APIs in IB device and some fixes over the base driver to support RDMA Connection Manager. This patch-set also updates the Device binding document as new parameter node-guid

[PATCH V2 for-next 1/9] IB/hns: Register HNS RoCE Driver get_netdev() with IB Core

2016-09-13 Thread Salil Mehta
ed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_main.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/infiniband/hw/hns/hn

[PATCH V2 for-next 9/9] IB/hns: Add node_guid definition to the bindings document

2016-09-13 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> This patch adds node_guid definition in bindings document. The value of node_guid will be used during RDMA connection. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <s

[PATCH V2 for-next 3/9] IB/hns: Fix the value of device_cap_flags

2016-09-13 Thread Salil Mehta
Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c

[PATCH V2 for-next 8/9] IB/hns: Fix two bugs for rdma cm connecting

2016-09-13 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> This patch mainly modify the value of HNS_ROCE_SL_SHIFT and delete the lines for assigning for the field of local_enable_e2e_credit in QP1C. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-o

[PATCH V2 for-next 5/9] IB/hns: Add phy_port for computing GSI/QPN

2016-09-13 Thread Salil Mehta
r-port. This also fixes a bug in base driver where iboe port was being used instead of phy_port at some places. This values might not be same always. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH V2 for-next 4/9] IB/hns: Fix two possible bugs for rdma cm

2016-09-13 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> Fix the length of wqe that maybe lead to an error and write the end bytes of QP1C into the register. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH V2 for-next 6/9] IB/hns: Change the logic for allocating uar registers

2016-09-13 Thread Salil Mehta
cation Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_pd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband

[PATCH V2 for-next 2/9] IB/hns: Add & initialize "node_guid" parameter for RDMA CM

2016-09-13 Thread Salil Mehta
ialize the node_guid parameter of IB device. This value shall be used by RDMA CM. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- PATCH V2: Addressed the comment by Leon Romanovsky

[PATCH V2 for-next 7/9] IB/hns: Fix the bug of rdma cm connecting on user mode

2016-09-13 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> Fix bug of modify qp from init to init on user mode. Otherwise, it will oops when rmda cm established. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

RE: [PATCH for-next 16/20] IB/hns: Validate mtu when modified qp

2016-09-13 Thread Salil Mehta
> -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Tuesday, September 13, 2016 7:33 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > xuwei (O); mehta.salil@gmail.com; linux-r...@vger.kernel.o

RE: [PATCH for-next 10/20] IB/hns: Modify the init of iboe lock

2016-09-13 Thread Salil Mehta
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Leon Romanovsky > Sent: Tuesday, September 13, 2016 7:50 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (

RE: [PATCH for-next 02/10] IB/hns: Register add_gid and del_gid for GID Table management

2016-09-12 Thread Salil Mehta
> -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Monday, September 12, 2016 1:40 PM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > mehta.salil@gmail.com; linux-r...@vger.kernel

[PATCH V3 for-next 2/9] IB/hns: Add & initialize "node_guid" parameter for RDMA CM

2016-09-15 Thread Salil Mehta
ialize the node_guid parameter of IB device. This value shall be used by RDMA CM. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- PATCH V2: Addressed the comment by Leon Romanovsky

[PATCH V3 for-next 1/9] IB/hns: Register HNS RoCE Driver get_netdev() with IB Core

2016-09-15 Thread Salil Mehta
ed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_main.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/infiniband/hw/hns/hn

[PATCH V3 for-next 8/9] IB/hns: Fix two bugs for rdma cm connecting

2016-09-15 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> This patch mainly modify the value of HNS_ROCE_SL_SHIFT and delete the lines for assigning for the field of local_enable_e2e_credit in QP1C. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-o

[PATCH V3 for-next 0/9] IB/hns: Add CM(Connection Manager) Support to HNS RoCe Driver

2016-09-15 Thread Salil Mehta
This patch-set adds the CM(Connection Manager) support to the HNS RoCE driver. Changes done are primarily to add support of APIs in IB device and some fixes over the base driver to support RDMA Connection Manager. This patch-set also updates the Device binding document as new parameter node-guid

[PATCH V3 for-next 6/9] IB/hns: Change the logic for allocating uar registers

2016-09-15 Thread Salil Mehta
cation Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_pd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband

[PATCH V3 for-next 4/9] IB/hns: Fix two possible bugs for rdma cm

2016-09-15 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> Fix the length of wqe that maybe lead to an error and write the end bytes of QP1C into the register. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH V3 for-next 5/9] IB/hns: Add phy_port for computing GSI/QPN

2016-09-15 Thread Salil Mehta
r-port. This also fixes a bug in base driver where iboe port was being used instead of phy_port at some places. This values might not be same always. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH V3 for-next 7/9] IB/hns: Fix the bug of rdma cm connecting on user mode

2016-09-15 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> Fix bug of modify qp from init to init on user mode. Otherwise, it will oops when rmda cm established. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH V3 for-next 3/9] IB/hns: Fix the value of device_cap_flags

2016-09-15 Thread Salil Mehta
Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c

[PATCH V3 for-next 9/9] IB/hns: Add node_guid definition to the bindings document

2016-09-15 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> This patch adds node_guid definition in bindings document. The value of node_guid will be used during RDMA connection. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <s

[PATCH for-next 01/20] IB/hns: Remove unused parameters in some functions

2016-09-09 Thread Salil Mehta
u...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_cq.c |7 +++ drivers/infiniband/hw/hns/hns_roce_device.h |1 - drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 13 - drivers/infiniband/hw/hns/hns_roce_ma

[PATCH for-next 18/20] IB/hns: Update the rq head when modify qp state

2016-09-09 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> The rq head in qpc was zero will miss the rq wqes which have be sent, so here we should take the real value. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <s

[PATCH for-next 04/20] IB/hns: Fix bug of using uninit refcount and free

2016-09-09 Thread Salil Mehta
by: Dongdong Huang(Donald) <hdd.hu...@huawei.com> Reviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_cq.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/infiniband/h

[PATCH for-next 19/20] IB/hns: Fix the bug when platform_get_resource() exec fail

2016-09-09 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> This patch mainly fixes the bug with platform_get_resource(). It should return NULL when platform_get_resource() exec fail. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-o

[PATCH for-next 10/20] IB/hns: Modify the init of iboe lock

2016-09-09 Thread Salil Mehta
ngdong Huang(Donald) <hdd.hu...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_main.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/inf

[PATCH for-next 13/20] IB/hns: Add check for some NULL pointer scenes

2016-09-09 Thread Salil Mehta
uawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c index f0d6315..e3e154c 100644 -

[PATCH for-next 00/20] IB/hns: Fixes for various misc. bugs

2016-09-09 Thread Salil Mehta
This patch-set introduces fixes for various bugs and potential problems found during internal review and testing phases of the HNS RoCE driver. NOTE: These fixes have been done over already floated CM patch: https://lkml.org/lkml/2016/9/1/609 Fixes have been done & tested by Oulijun and Huwei.

[PATCH for-next 05/20] IB/hns: Simplify function of pd alloc and qp alloc

2016-09-09 Thread Salil Mehta
eviewed-by: Wei Hu <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_pd.c | 14 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 10 +- 2 files changed, 2 insertions(+), 22 deletions(-) diff --g

[PATCH for-next 11/20] IB/hns: Fix bug of memory leakage for registering user mr

2016-09-09 Thread Salil Mehta
Huang(Donald) <hdd.hu...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_mr.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/infiniband/hw/hns/hns_roce

[PATCH for-next 02/20] IB/hns: Remove parameters of resize cq

2016-09-09 Thread Salil Mehta
vier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_cq.c |3 --- drivers/infiniband/hw/hns/hns_roce_device.h |9 - 2 files changed, 12 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_cq.c b/drivers/i

[PATCH for-next 20/20] IB/hns: Delete the redundant lines in hns_roce_v1_m_qp()

2016-09-09 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> It doesn't need to assign for the filed of qp state in qpc separately when qp happen to migrate state which supported in RoCE engine v1. Signed-off-by: Lijun Ou <ouli...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Si

[PATCH for-next 14/20] IB/hns: The Ack timeout need a lower limit value

2016-09-09 Thread Salil Mehta
vier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/

[PATCH for-next 15/20] IB/hns: Some items of qpc need to take user param

2016-09-09 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> Some items of qpc need to take user param when modified qp state. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Dongdong Huang(Donald) <hdd.hu...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Si

[PATCH for-next 17/20] IB/hns: Cq has not been freed

2016-09-09 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> Cq has not been freed when fail to ib_copy_to_udata, so need to free it. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Peter Chen <luck.c...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-b

  1   2   3   4   5   6   7   8   9   10   >