diff options
author | Ralph Campbell <ralph.campbell@qlogic.com> | 2007-12-20 05:43:23 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-01-25 17:15:35 -0500 |
commit | c59a80aca0bfc491d90534ed5606d5493eca24a3 (patch) | |
tree | 181af3a515feb82e1c77b1d8bc5ec460485d44df /drivers/infiniband/hw/ipath/ipath_intr.c | |
parent | d65708f3a766116662ff9bac81088d52a49901f4 (diff) |
IB/ipath: kreceive uses portdata rather than devdata
kreceive is now portdata * instead of devdata * and other kreceive
related cleanups....
Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_intr.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_intr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_intr.c b/drivers/infiniband/hw/ipath/ipath_intr.c index 4795cb895f85..ec18b9b1bb08 100644 --- a/drivers/infiniband/hw/ipath/ipath_intr.c +++ b/drivers/infiniband/hw/ipath/ipath_intr.c | |||
@@ -683,7 +683,7 @@ static int handle_errors(struct ipath_devdata *dd, ipath_err_t errs) | |||
683 | for (i = 0; i < dd->ipath_cfgports; i++) { | 683 | for (i = 0; i < dd->ipath_cfgports; i++) { |
684 | struct ipath_portdata *pd = dd->ipath_pd[i]; | 684 | struct ipath_portdata *pd = dd->ipath_pd[i]; |
685 | if (i == 0) { | 685 | if (i == 0) { |
686 | hd = dd->ipath_port0head; | 686 | hd = pd->port_head; |
687 | tl = (u32) le64_to_cpu( | 687 | tl = (u32) le64_to_cpu( |
688 | *dd->ipath_hdrqtailptr); | 688 | *dd->ipath_hdrqtailptr); |
689 | } else if (pd && pd->port_cnt && | 689 | } else if (pd && pd->port_cnt && |
@@ -712,6 +712,8 @@ static int handle_errors(struct ipath_devdata *dd, ipath_err_t errs) | |||
712 | } | 712 | } |
713 | } | 713 | } |
714 | if (errs & INFINIPATH_E_RRCVEGRFULL) { | 714 | if (errs & INFINIPATH_E_RRCVEGRFULL) { |
715 | struct ipath_portdata *pd = dd->ipath_pd[0]; | ||
716 | |||
715 | /* | 717 | /* |
716 | * since this is of less importance and not likely to | 718 | * since this is of less importance and not likely to |
717 | * happen without also getting hdrfull, only count | 719 | * happen without also getting hdrfull, only count |
@@ -719,7 +721,7 @@ static int handle_errors(struct ipath_devdata *dd, ipath_err_t errs) | |||
719 | * vs user) | 721 | * vs user) |
720 | */ | 722 | */ |
721 | ipath_stats.sps_etidfull++; | 723 | ipath_stats.sps_etidfull++; |
722 | if (dd->ipath_port0head != | 724 | if (pd->port_head != |
723 | (u32) le64_to_cpu(*dd->ipath_hdrqtailptr)) | 725 | (u32) le64_to_cpu(*dd->ipath_hdrqtailptr)) |
724 | chkerrpkts = 1; | 726 | chkerrpkts = 1; |
725 | } | 727 | } |
@@ -1173,7 +1175,7 @@ irqreturn_t ipath_intr(int irq, void *data) | |||
1173 | * for receive are at the bottom. | 1175 | * for receive are at the bottom. |
1174 | */ | 1176 | */ |
1175 | if (chk0rcv) { | 1177 | if (chk0rcv) { |
1176 | ipath_kreceive(dd); | 1178 | ipath_kreceive(dd->ipath_pd[0]); |
1177 | istat &= ~port0rbits; | 1179 | istat &= ~port0rbits; |
1178 | } | 1180 | } |
1179 | 1181 | ||