Commit af758a22 authored by Bart Van Assche's avatar Bart Van Assche Committed by Doug Ledford

IB/nes: Fix indentation

Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Cc: Faisal Latif <faisal.latif@intel.com>
Acked-by: default avatarFaisal Latif <fasial.latif@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 3d1f236d
...@@ -757,18 +757,18 @@ static void nes_remove(struct pci_dev *pcidev) ...@@ -757,18 +757,18 @@ static void nes_remove(struct pci_dev *pcidev)
int netdev_index = 0; int netdev_index = 0;
unsigned long flags; unsigned long flags;
if (nesdev->netdev_count) { if (nesdev->netdev_count) {
netdev = nesdev->netdev[netdev_index]; netdev = nesdev->netdev[netdev_index];
if (netdev) { if (netdev) {
netif_stop_queue(netdev); netif_stop_queue(netdev);
unregister_netdev(netdev); unregister_netdev(netdev);
nes_netdev_destroy(netdev); nes_netdev_destroy(netdev);
nesdev->netdev[netdev_index] = NULL; nesdev->netdev[netdev_index] = NULL;
nesdev->netdev_count--; nesdev->netdev_count--;
nesdev->nesadapter->netdev_count--; nesdev->nesadapter->netdev_count--;
}
} }
}
nes_notifiers_registered--; nes_notifiers_registered--;
if (nes_notifiers_registered == 0) { if (nes_notifiers_registered == 0) {
......
...@@ -1861,8 +1861,9 @@ int nes_init_nic_qp(struct nes_device *nesdev, struct net_device *netdev) ...@@ -1861,8 +1861,9 @@ int nes_init_nic_qp(struct nes_device *nesdev, struct net_device *netdev)
} }
if ((nesdev->nesadapter->allow_unaligned_fpdus) && if ((nesdev->nesadapter->allow_unaligned_fpdus) &&
(nes_init_mgt_qp(nesdev, netdev, nesvnic))) { (nes_init_mgt_qp(nesdev, netdev, nesvnic))) {
nes_debug(NES_DBG_INIT, "%s: Out of memory for pau nic\n", netdev->name); nes_debug(NES_DBG_INIT, "%s: Out of memory for pau nic\n",
nes_destroy_nic_qp(nesvnic); netdev->name);
nes_destroy_nic_qp(nesvnic);
return -ENOMEM; return -ENOMEM;
} }
......
...@@ -926,11 +926,10 @@ static void nes_netdev_set_multicast_list(struct net_device *netdev) ...@@ -926,11 +926,10 @@ static void nes_netdev_set_multicast_list(struct net_device *netdev)
nesadapter->pft_mcast_map[mc_index] != nesadapter->pft_mcast_map[mc_index] !=
nesvnic->nic_index && nesvnic->nic_index &&
mc_index < max_pft_entries_avaiable) { mc_index < max_pft_entries_avaiable) {
nes_debug(NES_DBG_NIC_RX, nes_debug(NES_DBG_NIC_RX,
"mc_index=%d skipping nic_index=%d, " "mc_index=%d skipping nic_index=%d, used for=%d\n",
"used for=%d \n", mc_index, mc_index, nesvnic->nic_index,
nesvnic->nic_index, nesadapter->pft_mcast_map[mc_index]);
nesadapter->pft_mcast_map[mc_index]);
mc_index++; mc_index++;
} }
if (mc_index >= max_pft_entries_avaiable) if (mc_index >= max_pft_entries_avaiable)
......
...@@ -888,10 +888,10 @@ void nes_clc(unsigned long parm) ...@@ -888,10 +888,10 @@ void nes_clc(unsigned long parm)
struct nes_adapter *nesadapter = nesdev->nesadapter; struct nes_adapter *nesadapter = nesdev->nesadapter;
spin_lock_irqsave(&nesadapter->phy_lock, flags); spin_lock_irqsave(&nesadapter->phy_lock, flags);
nesadapter->link_interrupt_count[0] = 0; nesadapter->link_interrupt_count[0] = 0;
nesadapter->link_interrupt_count[1] = 0; nesadapter->link_interrupt_count[1] = 0;
nesadapter->link_interrupt_count[2] = 0; nesadapter->link_interrupt_count[2] = 0;
nesadapter->link_interrupt_count[3] = 0; nesadapter->link_interrupt_count[3] = 0;
spin_unlock_irqrestore(&nesadapter->phy_lock, flags); spin_unlock_irqrestore(&nesadapter->phy_lock, flags);
nesadapter->lc_timer.expires = jiffies + 3600 * HZ; /* 1 hour */ nesadapter->lc_timer.expires = jiffies + 3600 * HZ; /* 1 hour */
......
...@@ -2865,11 +2865,11 @@ int nes_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ...@@ -2865,11 +2865,11 @@ int nes_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
next_iwarp_state = NES_CQP_QP_IWARP_STATE_ERROR; next_iwarp_state = NES_CQP_QP_IWARP_STATE_ERROR;
/* next_iwarp_state = (NES_CQP_QP_IWARP_STATE_TERMINATE | 0x02000000); */ /* next_iwarp_state = (NES_CQP_QP_IWARP_STATE_TERMINATE | 0x02000000); */
if (nesqp->hte_added) { if (nesqp->hte_added) {
nes_debug(NES_DBG_MOD_QP, "set CQP_QP_DEL_HTE\n"); nes_debug(NES_DBG_MOD_QP, "set CQP_QP_DEL_HTE\n");
next_iwarp_state |= NES_CQP_QP_DEL_HTE; next_iwarp_state |= NES_CQP_QP_DEL_HTE;
nesqp->hte_added = 0; nesqp->hte_added = 0;
} }
if ((nesqp->hw_tcp_state > NES_AEQE_TCP_STATE_CLOSED) && if ((nesqp->hw_tcp_state > NES_AEQE_TCP_STATE_CLOSED) &&
(nesdev->iw_status) && (nesdev->iw_status) &&
(nesqp->hw_tcp_state != NES_AEQE_TCP_STATE_TIME_WAIT)) { (nesqp->hw_tcp_state != NES_AEQE_TCP_STATE_TIME_WAIT)) {
...@@ -3560,7 +3560,7 @@ static int nes_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry) ...@@ -3560,7 +3560,7 @@ static int nes_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry)
entry->byte_len = le32_to_cpu(cqe.cqe_words[NES_CQE_PAYLOAD_LENGTH_IDX]); entry->byte_len = le32_to_cpu(cqe.cqe_words[NES_CQE_PAYLOAD_LENGTH_IDX]);
wrid = ((u64)(le32_to_cpu(nesqp->hwqp.rq_vbase[wqe_index].wqe_words[NES_IWARP_RQ_WQE_COMP_SCRATCH_LOW_IDX]))) | wrid = ((u64)(le32_to_cpu(nesqp->hwqp.rq_vbase[wqe_index].wqe_words[NES_IWARP_RQ_WQE_COMP_SCRATCH_LOW_IDX]))) |
((u64)(le32_to_cpu(nesqp->hwqp.rq_vbase[wqe_index].wqe_words[NES_IWARP_RQ_WQE_COMP_SCRATCH_HIGH_IDX]))<<32); ((u64)(le32_to_cpu(nesqp->hwqp.rq_vbase[wqe_index].wqe_words[NES_IWARP_RQ_WQE_COMP_SCRATCH_HIGH_IDX]))<<32);
entry->opcode = IB_WC_RECV; entry->opcode = IB_WC_RECV;
nesqp->hwqp.rq_tail = (wqe_index+1)&(nesqp->hwqp.rq_size - 1); nesqp->hwqp.rq_tail = (wqe_index+1)&(nesqp->hwqp.rq_size - 1);
if ((entry->status != IB_WC_SUCCESS) && (nesqp->hwqp.rq_tail != nesqp->hwqp.rq_head)) { if ((entry->status != IB_WC_SUCCESS) && (nesqp->hwqp.rq_tail != nesqp->hwqp.rq_head)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment