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 =
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
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
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 (
. 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
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
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
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
. 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
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
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
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
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
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
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
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
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:
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 &
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
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
. 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
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,
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
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
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
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:
+
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
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
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
. 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
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
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
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
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
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
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):
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
' 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
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
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
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>
> -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
> -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
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
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
> -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
> -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
> -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
> -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
> -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
> -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
> -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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> -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
> -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 (
> -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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
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.
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
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
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
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
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/
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
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 - 100 of 1230 matches
Mail list logo