aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes/nes_cm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_cm.c')
-rw-r--r--drivers/infiniband/hw/nes/nes_cm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c
index 0bef878e0f65..81c8e4625214 100644
--- a/drivers/infiniband/hw/nes/nes_cm.c
+++ b/drivers/infiniband/hw/nes/nes_cm.c
@@ -395,7 +395,7 @@ int schedule_nes_timer(struct nes_cm_node *cm_node, struct sk_buff *skb,
395 } 395 }
396 396
397 if (type == NES_TIMER_TYPE_SEND) { 397 if (type == NES_TIMER_TYPE_SEND) {
398 new_send->seq_num = htonl(tcp_hdr(skb)->seq); 398 new_send->seq_num = ntohl(tcp_hdr(skb)->seq);
399 atomic_inc(&new_send->skb->users); 399 atomic_inc(&new_send->skb->users);
400 400
401 ret = nes_nic_cm_xmit(new_send->skb, cm_node->netdev); 401 ret = nes_nic_cm_xmit(new_send->skb, cm_node->netdev);
@@ -420,7 +420,7 @@ int schedule_nes_timer(struct nes_cm_node *cm_node, struct sk_buff *skb,
420 spin_unlock_irqrestore(&cm_node->retrans_list_lock, flags); 420 spin_unlock_irqrestore(&cm_node->retrans_list_lock, flags);
421 } 421 }
422 if (type == NES_TIMER_TYPE_RECV) { 422 if (type == NES_TIMER_TYPE_RECV) {
423 new_send->seq_num = htonl(tcp_hdr(skb)->seq); 423 new_send->seq_num = ntohl(tcp_hdr(skb)->seq);
424 new_send->timetosend = jiffies; 424 new_send->timetosend = jiffies;
425 spin_lock_irqsave(&cm_node->recv_list_lock, flags); 425 spin_lock_irqsave(&cm_node->recv_list_lock, flags);
426 list_add_tail(&new_send->list, &cm_node->recv_list); 426 list_add_tail(&new_send->list, &cm_node->recv_list);