diff options
author | Steve Wise <swise@opengridcomputing.com> | 2014-03-21 11:10:34 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-03-24 13:07:35 -0400 |
commit | 9c88aa003d26e9f1e9ea6e08511768c2ef666654 (patch) | |
tree | 47d7983648090789ce96f01d056e65870276d414 /drivers/infiniband/hw | |
parent | be13b2dff8c4e41846477b22cc5c164ea5a6ac2e (diff) |
RDMA/cxgb4: Update snd_seq when sending MPA messages
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 6bfef31f6b1e..a1bc41d04620 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c | |||
@@ -762,6 +762,7 @@ static void send_mpa_req(struct c4iw_ep *ep, struct sk_buff *skb, | |||
762 | start_ep_timer(ep); | 762 | start_ep_timer(ep); |
763 | state_set(&ep->com, MPA_REQ_SENT); | 763 | state_set(&ep->com, MPA_REQ_SENT); |
764 | ep->mpa_attr.initiator = 1; | 764 | ep->mpa_attr.initiator = 1; |
765 | ep->snd_seq += mpalen; | ||
765 | return; | 766 | return; |
766 | } | 767 | } |
767 | 768 | ||
@@ -841,6 +842,7 @@ static int send_mpa_reject(struct c4iw_ep *ep, const void *pdata, u8 plen) | |||
841 | t4_set_arp_err_handler(skb, NULL, arp_failure_discard); | 842 | t4_set_arp_err_handler(skb, NULL, arp_failure_discard); |
842 | BUG_ON(ep->mpa_skb); | 843 | BUG_ON(ep->mpa_skb); |
843 | ep->mpa_skb = skb; | 844 | ep->mpa_skb = skb; |
845 | ep->snd_seq += mpalen; | ||
844 | return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); | 846 | return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); |
845 | } | 847 | } |
846 | 848 | ||
@@ -925,6 +927,7 @@ static int send_mpa_reply(struct c4iw_ep *ep, const void *pdata, u8 plen) | |||
925 | t4_set_arp_err_handler(skb, NULL, arp_failure_discard); | 927 | t4_set_arp_err_handler(skb, NULL, arp_failure_discard); |
926 | ep->mpa_skb = skb; | 928 | ep->mpa_skb = skb; |
927 | state_set(&ep->com, MPA_REP_SENT); | 929 | state_set(&ep->com, MPA_REP_SENT); |
930 | ep->snd_seq += mpalen; | ||
928 | return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); | 931 | return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); |
929 | } | 932 | } |
930 | 933 | ||