* [PATCH] iw_cxgb4: clean up send_connect()
@ 2017-01-31 6:30 Ganesh Goudar
[not found] ` <CY4PR12MB1432FF43E0F4801D72230171C15B0@CY4PR12MB1432.namprd12.prod.outlook.com>
0 siblings, 1 reply; 4+ messages in thread
From: Ganesh Goudar @ 2017-01-31 6:30 UTC (permalink / raw)
To: dledford-H+wXaHxf7aLQT0dZR+AlfA
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA,
swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW, Ganesh Goudar,
Bharat Teja
Clean up send_connect() and make use of t6 specific
active open request struct.
Acked-by: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
Signed-off-by: Bharat Teja <bharat-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
Signed-off-by: Ganesh Goudar <ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
---
v2: Added full Steve's name in Acked-by
---
drivers/infiniband/hw/cxgb4/cm.c | 56 ++++++++++++++++++++++++++--------------
1 file changed, 36 insertions(+), 20 deletions(-)
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index f1510cc..b9c2163 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -692,6 +692,10 @@ static int send_connect(struct c4iw_ep *ep)
int ret;
enum chip_type adapter_type = ep->com.dev->rdev.lldi.adapter_type;
u32 isn = (prandom_u32() & ~7UL) - 1;
+ struct net_device *netdev;
+ u64 params;
+
+ netdev = ep->com.dev->rdev.lldi.ports[0];
switch (CHELSIO_CHIP_VERSION(adapter_type)) {
case CHELSIO_T4:
@@ -768,6 +772,8 @@ static int send_connect(struct c4iw_ep *ep)
opt2 |= T5_ISS_F;
}
+ params = cxgb4_select_ntuple(netdev, ep->l2t);
+
if (ep->com.remote_addr.ss_family == AF_INET6)
cxgb4_clip_get(ep->com.dev->rdev.lldi.ports[0],
(const u32 *)&la6->sin6_addr.s6_addr, 1);
@@ -809,18 +815,22 @@ static int send_connect(struct c4iw_ep *ep)
req->opt0 = cpu_to_be64(opt0);
if (is_t4(ep->com.dev->rdev.lldi.adapter_type)) {
- req->params = cpu_to_be32(cxgb4_select_ntuple(
- ep->com.dev->rdev.lldi.ports[0],
- ep->l2t));
+ req->params = cpu_to_be32(params);
req->opt2 = cpu_to_be32(opt2);
} else {
- t5req->params = cpu_to_be64(FILTER_TUPLE_V(
- cxgb4_select_ntuple(
- ep->com.dev->rdev.lldi.ports[0],
- ep->l2t)));
- t5req->rsvd = cpu_to_be32(isn);
- PDBG("%s snd_isn %u\n", __func__, t5req->rsvd);
- t5req->opt2 = cpu_to_be32(opt2);
+ if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) {
+ t5req->params =
+ cpu_to_be64(FILTER_TUPLE_V(params));
+ t5req->rsvd = cpu_to_be32(isn);
+ PDBG("%s snd_isn %u\n", __func__, t5req->rsvd);
+ t5req->opt2 = cpu_to_be32(opt2);
+ } else {
+ t6req->params =
+ cpu_to_be64(FILTER_TUPLE_V(params));
+ t6req->rsvd = cpu_to_be32(isn);
+ PDBG("%s snd_isn %u\n", __func__, t6req->rsvd);
+ t6req->opt2 = cpu_to_be32(opt2);
+ }
}
} else {
switch (CHELSIO_CHIP_VERSION(adapter_type)) {
@@ -859,18 +869,24 @@ static int send_connect(struct c4iw_ep *ep)
req6->opt0 = cpu_to_be64(opt0);
if (is_t4(ep->com.dev->rdev.lldi.adapter_type)) {
- req6->params = cpu_to_be32(cxgb4_select_ntuple(
- ep->com.dev->rdev.lldi.ports[0],
- ep->l2t));
+ req6->params = cpu_to_be32(cxgb4_select_ntuple(netdev,
+ ep->l2t));
req6->opt2 = cpu_to_be32(opt2);
} else {
- t5req6->params = cpu_to_be64(FILTER_TUPLE_V(
- cxgb4_select_ntuple(
- ep->com.dev->rdev.lldi.ports[0],
- ep->l2t)));
- t5req6->rsvd = cpu_to_be32(isn);
- PDBG("%s snd_isn %u\n", __func__, t5req6->rsvd);
- t5req6->opt2 = cpu_to_be32(opt2);
+ if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) {
+ t5req6->params =
+ cpu_to_be64(FILTER_TUPLE_V(params));
+ t5req6->rsvd = cpu_to_be32(isn);
+ PDBG("%s snd_isn %u\n", __func__, t5req6->rsvd);
+ t5req6->opt2 = cpu_to_be32(opt2);
+ } else {
+ t6req6->params =
+ cpu_to_be64(FILTER_TUPLE_V(params));
+ t6req6->rsvd = cpu_to_be32(isn);
+ PDBG("%s snd_isn %u\n", __func__, t6req6->rsvd);
+ t6req6->opt2 = cpu_to_be32(opt2);
+ }
+
}
}
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] iw_cxgb4: clean up send_connect()
[not found] ` <CY4PR12MB1432FF43E0F4801D72230171C15B0-rpdhrqHFk04JlWDAAl3wnwdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2017-02-19 13:12 ` Doug Ledford
0 siblings, 0 replies; 4+ messages in thread
From: Doug Ledford @ 2017-02-19 13:12 UTC (permalink / raw)
To: Ganesh GR
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, SWise OGC, Potnuri Bharat Teja
[-- Attachment #1: Type: text/plain, Size: 8037 bytes --]
On Wed, 2017-02-15 at 18:17 +0000, Ganesh GR wrote:
> Hey Doug,
>
> I think you missed this patch.
No, it was too big for the rc cycle last time, but I didn't forget it.
It's applied now, thanks.
> Thanks
> Ganesh
> From: Ganesh Goudar <ganeshgr@chelsio.com>
> Sent: Tuesday, January 31, 2017 12:00:09 PM
> To: dledford@redhat.com
> Cc: linux-rdma@vger.kernel.org; SWise OGC; Ganesh GR; Potnuri Bharat
> Teja
> Subject: [PATCH] iw_cxgb4: clean up send_connect()
>
> Clean up send_connect() and make use of t6 specific
> active open request struct.
>
> Acked-by: Steve Wise <swise@opengridcomputing.com>
> Signed-off-by: Bharat Teja <bharat@chelsio.com>
> Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
> ---
> v2: Added full Steve's name in Acked-by
> ---
> drivers/infiniband/hw/cxgb4/cm.c | 56 ++++++++++++++++++++++++++--
> ------------
> 1 file changed, 36 insertions(+), 20 deletions(-)
>
> diff --git a/drivers/infiniband/hw/cxgb4/cm.c
> b/drivers/infiniband/hw/cxgb4/cm.c
> index f1510cc..b9c2163 100644
> --- a/drivers/infiniband/hw/cxgb4/cm.c
> +++ b/drivers/infiniband/hw/cxgb4/cm.c
> @@ -692,6 +692,10 @@ static int send_connect(struct c4iw_ep *ep)
> int ret;
> enum chip_type adapter_type = ep->com.dev-
> >rdev.lldi.adapter_type;
> u32 isn = (prandom_u32() & ~7UL) - 1;
> + struct net_device *netdev;
> + u64 params;
> +
> + netdev = ep->com.dev->rdev.lldi.ports[0];
>
> switch (CHELSIO_CHIP_VERSION(adapter_type)) {
> case CHELSIO_T4:
> @@ -768,6 +772,8 @@ static int send_connect(struct c4iw_ep *ep)
> opt2 |= T5_ISS_F;
> }
>
> + params = cxgb4_select_ntuple(netdev, ep->l2t);
> +
> if (ep->com.remote_addr.ss_family == AF_INET6)
> cxgb4_clip_get(ep->com.dev->rdev.lldi.ports[0],
> (const u32 *)&la6->sin6_addr.s6_addr,
> 1);
> @@ -809,18 +815,22 @@ static int send_connect(struct c4iw_ep *ep)
> req->opt0 = cpu_to_be64(opt0);
>
> if (is_t4(ep->com.dev->rdev.lldi.adapter_type)) {
> - req->params =
> cpu_to_be32(cxgb4_select_ntuple(
> - ep->com.dev-
> >rdev.lldi.ports[0],
> - ep->l2t));
> + req->params = cpu_to_be32(params);
> req->opt2 = cpu_to_be32(opt2);
> } else {
> - t5req->params = cpu_to_be64(FILTER_TUPLE_V(
> - cxgb4_select_ntuple(
> - ep->com.dev-
> >rdev.lldi.ports[0],
> - ep->l2t)));
> - t5req->rsvd = cpu_to_be32(isn);
> - PDBG("%s snd_isn %u\n", __func__, t5req-
> >rsvd);
> - t5req->opt2 = cpu_to_be32(opt2);
> + if (is_t5(ep->com.dev-
> >rdev.lldi.adapter_type)) {
> + t5req->params =
> +
> cpu_to_be64(FILTER_TUPLE_V(params));
> + t5req->rsvd = cpu_to_be32(isn);
> + PDBG("%s snd_isn %u\n", __func__,
> t5req->rsvd);
> + t5req->opt2 = cpu_to_be32(opt2);
> + } else {
> + t6req->params =
> +
> cpu_to_be64(FILTER_TUPLE_V(params));
> + t6req->rsvd = cpu_to_be32(isn);
> + PDBG("%s snd_isn %u\n", __func__,
> t6req->rsvd);
> + t6req->opt2 = cpu_to_be32(opt2);
> + }
> }
> } else {
> switch (CHELSIO_CHIP_VERSION(adapter_type)) {
> @@ -859,18 +869,24 @@ static int send_connect(struct c4iw_ep *ep)
> req6->opt0 = cpu_to_be64(opt0);
>
> if (is_t4(ep->com.dev->rdev.lldi.adapter_type)) {
> - req6->params =
> cpu_to_be32(cxgb4_select_ntuple(
> - ep->com.dev-
> >rdev.lldi.ports[0],
> - ep->l2t));
> + req6->params =
> cpu_to_be32(cxgb4_select_ntuple(netdev,
> +
> ep->l2t));
> req6->opt2 = cpu_to_be32(opt2);
> } else {
> - t5req6->params = cpu_to_be64(FILTER_TUPLE_V(
> - cxgb4_select_ntuple(
> - ep->com.dev-
> >rdev.lldi.ports[0],
> - ep->l2t)));
> - t5req6->rsvd = cpu_to_be32(isn);
> - PDBG("%s snd_isn %u\n", __func__, t5req6-
> >rsvd);
> - t5req6->opt2 = cpu_to_be32(opt2);
> + if (is_t5(ep->com.dev-
> >rdev.lldi.adapter_type)) {
> + t5req6->params =
> +
> cpu_to_be64(FILTER_TUPLE_V(params));
> + t5req6->rsvd = cpu_to_be32(isn);
> + PDBG("%s snd_isn %u\n", __func__,
> t5req6->rsvd);
> + t5req6->opt2 = cpu_to_be32(opt2);
> + } else {
> + t6req6->params =
> +
> cpu_to_be64(FILTER_TUPLE_V(params));
> + t6req6->rsvd = cpu_to_be32(isn);
> + PDBG("%s snd_isn %u\n", __func__,
> t6req6->rsvd);
> + t6req6->opt2 = cpu_to_be32(opt2);
> + }
> +
> }
> }
>
--
Doug Ledford <dledford@redhat.com>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] iw_cxgb4: clean up send_connect()
[not found] ` <1485790962-15147-1-git-send-email-ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
@ 2017-01-30 20:32 ` Leon Romanovsky
0 siblings, 0 replies; 4+ messages in thread
From: Leon Romanovsky @ 2017-01-30 20:32 UTC (permalink / raw)
To: Ganesh Goudar
Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA,
linux-rdma-u79uwXL29TY76Z2rM5mHXA,
swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW, Bharat Teja
[-- Attachment #1: Type: text/plain, Size: 4086 bytes --]
On Mon, Jan 30, 2017 at 09:12:42PM +0530, Ganesh Goudar wrote:
> Clean up send_connect() and make use of t6 specific
> active open request struct.
>
> Acked-by: swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org
Please add full Steve's name.
Thanks
> Signed-off-by: Bharat Teja <bharat-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
> Signed-off-by: Ganesh Goudar <ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
> ---
> drivers/infiniband/hw/cxgb4/cm.c | 56 ++++++++++++++++++++++++++--------------
> 1 file changed, 36 insertions(+), 20 deletions(-)
>
> diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
> index f1510cc..b9c2163 100644
> --- a/drivers/infiniband/hw/cxgb4/cm.c
> +++ b/drivers/infiniband/hw/cxgb4/cm.c
> @@ -692,6 +692,10 @@ static int send_connect(struct c4iw_ep *ep)
> int ret;
> enum chip_type adapter_type = ep->com.dev->rdev.lldi.adapter_type;
> u32 isn = (prandom_u32() & ~7UL) - 1;
> + struct net_device *netdev;
> + u64 params;
> +
> + netdev = ep->com.dev->rdev.lldi.ports[0];
>
> switch (CHELSIO_CHIP_VERSION(adapter_type)) {
> case CHELSIO_T4:
> @@ -768,6 +772,8 @@ static int send_connect(struct c4iw_ep *ep)
> opt2 |= T5_ISS_F;
> }
>
> + params = cxgb4_select_ntuple(netdev, ep->l2t);
> +
> if (ep->com.remote_addr.ss_family == AF_INET6)
> cxgb4_clip_get(ep->com.dev->rdev.lldi.ports[0],
> (const u32 *)&la6->sin6_addr.s6_addr, 1);
> @@ -809,18 +815,22 @@ static int send_connect(struct c4iw_ep *ep)
> req->opt0 = cpu_to_be64(opt0);
>
> if (is_t4(ep->com.dev->rdev.lldi.adapter_type)) {
> - req->params = cpu_to_be32(cxgb4_select_ntuple(
> - ep->com.dev->rdev.lldi.ports[0],
> - ep->l2t));
> + req->params = cpu_to_be32(params);
> req->opt2 = cpu_to_be32(opt2);
> } else {
> - t5req->params = cpu_to_be64(FILTER_TUPLE_V(
> - cxgb4_select_ntuple(
> - ep->com.dev->rdev.lldi.ports[0],
> - ep->l2t)));
> - t5req->rsvd = cpu_to_be32(isn);
> - PDBG("%s snd_isn %u\n", __func__, t5req->rsvd);
> - t5req->opt2 = cpu_to_be32(opt2);
> + if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) {
> + t5req->params =
> + cpu_to_be64(FILTER_TUPLE_V(params));
> + t5req->rsvd = cpu_to_be32(isn);
> + PDBG("%s snd_isn %u\n", __func__, t5req->rsvd);
> + t5req->opt2 = cpu_to_be32(opt2);
> + } else {
> + t6req->params =
> + cpu_to_be64(FILTER_TUPLE_V(params));
> + t6req->rsvd = cpu_to_be32(isn);
> + PDBG("%s snd_isn %u\n", __func__, t6req->rsvd);
> + t6req->opt2 = cpu_to_be32(opt2);
> + }
> }
> } else {
> switch (CHELSIO_CHIP_VERSION(adapter_type)) {
> @@ -859,18 +869,24 @@ static int send_connect(struct c4iw_ep *ep)
> req6->opt0 = cpu_to_be64(opt0);
>
> if (is_t4(ep->com.dev->rdev.lldi.adapter_type)) {
> - req6->params = cpu_to_be32(cxgb4_select_ntuple(
> - ep->com.dev->rdev.lldi.ports[0],
> - ep->l2t));
> + req6->params = cpu_to_be32(cxgb4_select_ntuple(netdev,
> + ep->l2t));
> req6->opt2 = cpu_to_be32(opt2);
> } else {
> - t5req6->params = cpu_to_be64(FILTER_TUPLE_V(
> - cxgb4_select_ntuple(
> - ep->com.dev->rdev.lldi.ports[0],
> - ep->l2t)));
> - t5req6->rsvd = cpu_to_be32(isn);
> - PDBG("%s snd_isn %u\n", __func__, t5req6->rsvd);
> - t5req6->opt2 = cpu_to_be32(opt2);
> + if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) {
> + t5req6->params =
> + cpu_to_be64(FILTER_TUPLE_V(params));
> + t5req6->rsvd = cpu_to_be32(isn);
> + PDBG("%s snd_isn %u\n", __func__, t5req6->rsvd);
> + t5req6->opt2 = cpu_to_be32(opt2);
> + } else {
> + t6req6->params =
> + cpu_to_be64(FILTER_TUPLE_V(params));
> + t6req6->rsvd = cpu_to_be32(isn);
> + PDBG("%s snd_isn %u\n", __func__, t6req6->rsvd);
> + t6req6->opt2 = cpu_to_be32(opt2);
> + }
> +
> }
> }
>
> --
> 2.1.0
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] iw_cxgb4: clean up send_connect()
@ 2017-01-30 15:42 Ganesh Goudar
[not found] ` <1485790962-15147-1-git-send-email-ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Ganesh Goudar @ 2017-01-30 15:42 UTC (permalink / raw)
To: dledford-H+wXaHxf7aLQT0dZR+AlfA
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA,
swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW, Ganesh Goudar,
Bharat Teja
Clean up send_connect() and make use of t6 specific
active open request struct.
Acked-by: swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org
Signed-off-by: Bharat Teja <bharat-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
Signed-off-by: Ganesh Goudar <ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
---
drivers/infiniband/hw/cxgb4/cm.c | 56 ++++++++++++++++++++++++++--------------
1 file changed, 36 insertions(+), 20 deletions(-)
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index f1510cc..b9c2163 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -692,6 +692,10 @@ static int send_connect(struct c4iw_ep *ep)
int ret;
enum chip_type adapter_type = ep->com.dev->rdev.lldi.adapter_type;
u32 isn = (prandom_u32() & ~7UL) - 1;
+ struct net_device *netdev;
+ u64 params;
+
+ netdev = ep->com.dev->rdev.lldi.ports[0];
switch (CHELSIO_CHIP_VERSION(adapter_type)) {
case CHELSIO_T4:
@@ -768,6 +772,8 @@ static int send_connect(struct c4iw_ep *ep)
opt2 |= T5_ISS_F;
}
+ params = cxgb4_select_ntuple(netdev, ep->l2t);
+
if (ep->com.remote_addr.ss_family == AF_INET6)
cxgb4_clip_get(ep->com.dev->rdev.lldi.ports[0],
(const u32 *)&la6->sin6_addr.s6_addr, 1);
@@ -809,18 +815,22 @@ static int send_connect(struct c4iw_ep *ep)
req->opt0 = cpu_to_be64(opt0);
if (is_t4(ep->com.dev->rdev.lldi.adapter_type)) {
- req->params = cpu_to_be32(cxgb4_select_ntuple(
- ep->com.dev->rdev.lldi.ports[0],
- ep->l2t));
+ req->params = cpu_to_be32(params);
req->opt2 = cpu_to_be32(opt2);
} else {
- t5req->params = cpu_to_be64(FILTER_TUPLE_V(
- cxgb4_select_ntuple(
- ep->com.dev->rdev.lldi.ports[0],
- ep->l2t)));
- t5req->rsvd = cpu_to_be32(isn);
- PDBG("%s snd_isn %u\n", __func__, t5req->rsvd);
- t5req->opt2 = cpu_to_be32(opt2);
+ if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) {
+ t5req->params =
+ cpu_to_be64(FILTER_TUPLE_V(params));
+ t5req->rsvd = cpu_to_be32(isn);
+ PDBG("%s snd_isn %u\n", __func__, t5req->rsvd);
+ t5req->opt2 = cpu_to_be32(opt2);
+ } else {
+ t6req->params =
+ cpu_to_be64(FILTER_TUPLE_V(params));
+ t6req->rsvd = cpu_to_be32(isn);
+ PDBG("%s snd_isn %u\n", __func__, t6req->rsvd);
+ t6req->opt2 = cpu_to_be32(opt2);
+ }
}
} else {
switch (CHELSIO_CHIP_VERSION(adapter_type)) {
@@ -859,18 +869,24 @@ static int send_connect(struct c4iw_ep *ep)
req6->opt0 = cpu_to_be64(opt0);
if (is_t4(ep->com.dev->rdev.lldi.adapter_type)) {
- req6->params = cpu_to_be32(cxgb4_select_ntuple(
- ep->com.dev->rdev.lldi.ports[0],
- ep->l2t));
+ req6->params = cpu_to_be32(cxgb4_select_ntuple(netdev,
+ ep->l2t));
req6->opt2 = cpu_to_be32(opt2);
} else {
- t5req6->params = cpu_to_be64(FILTER_TUPLE_V(
- cxgb4_select_ntuple(
- ep->com.dev->rdev.lldi.ports[0],
- ep->l2t)));
- t5req6->rsvd = cpu_to_be32(isn);
- PDBG("%s snd_isn %u\n", __func__, t5req6->rsvd);
- t5req6->opt2 = cpu_to_be32(opt2);
+ if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) {
+ t5req6->params =
+ cpu_to_be64(FILTER_TUPLE_V(params));
+ t5req6->rsvd = cpu_to_be32(isn);
+ PDBG("%s snd_isn %u\n", __func__, t5req6->rsvd);
+ t5req6->opt2 = cpu_to_be32(opt2);
+ } else {
+ t6req6->params =
+ cpu_to_be64(FILTER_TUPLE_V(params));
+ t6req6->rsvd = cpu_to_be32(isn);
+ PDBG("%s snd_isn %u\n", __func__, t6req6->rsvd);
+ t6req6->opt2 = cpu_to_be32(opt2);
+ }
+
}
}
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-02-19 13:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-31 6:30 [PATCH] iw_cxgb4: clean up send_connect() Ganesh Goudar
[not found] ` <CY4PR12MB1432FF43E0F4801D72230171C15B0@CY4PR12MB1432.namprd12.prod.outlook.com>
[not found] ` <CY4PR12MB1432FF43E0F4801D72230171C15B0-rpdhrqHFk04JlWDAAl3wnwdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-02-19 13:12 ` Doug Ledford
-- strict thread matches above, loose matches on Subject: below --
2017-01-30 15:42 Ganesh Goudar
[not found] ` <1485790962-15147-1-git-send-email-ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
2017-01-30 20:32 ` Leon Romanovsky
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.