RDMA/cxgb4: Use ULP_MODE_TCPDDP
authorSteve Wise <swise@opengridcomputing.com>
Fri, 11 Mar 2011 22:30:21 +0000 (22:30 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 14 Mar 2011 19:09:12 +0000 (12:09 -0700)
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>
drivers/infiniband/hw/cxgb4/cm.c
drivers/net/cxgb4/t4_msg.h

index 65d3fe6cfd5c714c6bf315aafe4cb7c6418c3923..b4d9e4caf3c9859c505eff05d5577f56b0f334b4 100644 (file)
@@ -482,6 +482,7 @@ static int send_connect(struct c4iw_ep *ep)
               TX_CHAN(ep->tx_chan) |
               SMAC_SEL(ep->smac_idx) |
               DSCP(ep->tos) |
+              ULP_MODE(ULP_MODE_TCPDDP) |
               RCV_BUFSIZ(rcv_win>>10);
        opt2 = RX_CHANNEL(0) |
               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,
               TX_CHAN(ep->tx_chan) |
               SMAC_SEL(ep->smac_idx) |
               DSCP(ep->tos) |
+              ULP_MODE(ULP_MODE_TCPDDP) |
               RCV_BUFSIZ(rcv_win>>10);
        opt2 = RX_CHANNEL(0) |
               RSS_QUEUE_VALID | RSS_QUEUE(ep->rss_qid);
index a550d0c706f3e6d70fe318c9282274355aaa62c5..eb71b8250b917ddd61740daf45f7b456f52aadae 100644 (file)
@@ -123,6 +123,7 @@ enum {
        ULP_MODE_NONE          = 0,
        ULP_MODE_ISCSI         = 2,
        ULP_MODE_RDMA          = 4,
+       ULP_MODE_TCPDDP        = 5,
        ULP_MODE_FCOE          = 6,
 };