aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2011-03-11 17:30:21 -0500
committerRoland Dreier <roland@purestorage.com>2011-03-14 15:09:12 -0400
commitb48f3b9c10d731160f0af5c3028ad57d9c66673b (patch)
tree505fbe19fa360d0a18f08af3ccdb727e801fa115 /drivers
parenta9c7719800ac513b2df14e267d062ec84dc9313e (diff)
RDMA/cxgb4: Use ULP_MODE_TCPDDP
Set the ULP mode for initial RDMA connection setup to the proper DDP mode. This avoids wasting some HW resources while in streaming mode. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/cxgb4/cm.c2
-rw-r--r--drivers/net/cxgb4/t4_msg.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index 65d3fe6cfd5c..b4d9e4caf3c9 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -482,6 +482,7 @@ static int send_connect(struct c4iw_ep *ep)
482 TX_CHAN(ep->tx_chan) | 482 TX_CHAN(ep->tx_chan) |
483 SMAC_SEL(ep->smac_idx) | 483 SMAC_SEL(ep->smac_idx) |
484 DSCP(ep->tos) | 484 DSCP(ep->tos) |
485 ULP_MODE(ULP_MODE_TCPDDP) |
485 RCV_BUFSIZ(rcv_win>>10); 486 RCV_BUFSIZ(rcv_win>>10);
486 opt2 = RX_CHANNEL(0) | 487 opt2 = RX_CHANNEL(0) |
487 RSS_QUEUE_VALID | RSS_QUEUE(ep->rss_qid); 488 RSS_QUEUE_VALID | RSS_QUEUE(ep->rss_qid);
@@ -1274,6 +1275,7 @@ static void accept_cr(struct c4iw_ep *ep, __be32 peer_ip, struct sk_buff *skb,
1274 TX_CHAN(ep->tx_chan) | 1275 TX_CHAN(ep->tx_chan) |
1275 SMAC_SEL(ep->smac_idx) | 1276 SMAC_SEL(ep->smac_idx) |
1276 DSCP(ep->tos) | 1277 DSCP(ep->tos) |
1278 ULP_MODE(ULP_MODE_TCPDDP) |
1277 RCV_BUFSIZ(rcv_win>>10); 1279 RCV_BUFSIZ(rcv_win>>10);
1278 opt2 = RX_CHANNEL(0) | 1280 opt2 = RX_CHANNEL(0) |
1279 RSS_QUEUE_VALID | RSS_QUEUE(ep->rss_qid); 1281 RSS_QUEUE_VALID | RSS_QUEUE(ep->rss_qid);
diff --git a/drivers/net/cxgb4/t4_msg.h b/drivers/net/cxgb4/t4_msg.h
index a550d0c706f3..eb71b8250b91 100644
--- a/drivers/net/cxgb4/t4_msg.h
+++ b/drivers/net/cxgb4/t4_msg.h
@@ -123,6 +123,7 @@ enum {
123 ULP_MODE_NONE = 0, 123 ULP_MODE_NONE = 0,
124 ULP_MODE_ISCSI = 2, 124 ULP_MODE_ISCSI = 2,
125 ULP_MODE_RDMA = 4, 125 ULP_MODE_RDMA = 4,
126 ULP_MODE_TCPDDP = 5,
126 ULP_MODE_FCOE = 6, 127 ULP_MODE_FCOE = 6,
127}; 128};
128 129