diff options
author | Bryan O'Sullivan <bos@pathscale.com> | 2006-08-25 14:24:31 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-22 18:22:30 -0400 |
commit | b1c1b6a30eac88665a35a207cc5e6233090b9d65 (patch) | |
tree | 7f2351404d45a48688e3cc2be355d2fb016e4b18 /drivers/infiniband/hw/ipath/ipath_driver.c | |
parent | 367fe711c5dc85dbc3265cf01e34d4d6fbd55f06 (diff) |
IB/ipath: merge ipath_core and ib_ipath drivers
There is little point in keeping the two drivers separate, so we are
merging them.
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_driver.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_driver.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c index 6ded914f9eb9..9af7406d6a62 100644 --- a/drivers/infiniband/hw/ipath/ipath_driver.c +++ b/drivers/infiniband/hw/ipath/ipath_driver.c | |||
@@ -40,6 +40,7 @@ | |||
40 | 40 | ||
41 | #include "ipath_kernel.h" | 41 | #include "ipath_kernel.h" |
42 | #include "ipath_layer.h" | 42 | #include "ipath_layer.h" |
43 | #include "ipath_verbs.h" | ||
43 | #include "ipath_common.h" | 44 | #include "ipath_common.h" |
44 | 45 | ||
45 | static void ipath_update_pio_bufs(struct ipath_devdata *); | 46 | static void ipath_update_pio_bufs(struct ipath_devdata *); |
@@ -51,8 +52,6 @@ const char *ipath_get_unit_name(int unit) | |||
51 | return iname; | 52 | return iname; |
52 | } | 53 | } |
53 | 54 | ||
54 | EXPORT_SYMBOL_GPL(ipath_get_unit_name); | ||
55 | |||
56 | #define DRIVER_LOAD_MSG "QLogic " IPATH_DRV_NAME " loaded: " | 55 | #define DRIVER_LOAD_MSG "QLogic " IPATH_DRV_NAME " loaded: " |
57 | #define PFX IPATH_DRV_NAME ": " | 56 | #define PFX IPATH_DRV_NAME ": " |
58 | 57 | ||
@@ -510,6 +509,7 @@ static int __devinit ipath_init_one(struct pci_dev *pdev, | |||
510 | ipath_user_add(dd); | 509 | ipath_user_add(dd); |
511 | ipath_diag_add(dd); | 510 | ipath_diag_add(dd); |
512 | ipath_layer_add(dd); | 511 | ipath_layer_add(dd); |
512 | ipath_register_ib_device(dd); | ||
513 | 513 | ||
514 | goto bail; | 514 | goto bail; |
515 | 515 | ||
@@ -538,6 +538,7 @@ static void __devexit ipath_remove_one(struct pci_dev *pdev) | |||
538 | return; | 538 | return; |
539 | 539 | ||
540 | dd = pci_get_drvdata(pdev); | 540 | dd = pci_get_drvdata(pdev); |
541 | ipath_unregister_ib_device(dd->verbs_dev); | ||
541 | ipath_layer_remove(dd); | 542 | ipath_layer_remove(dd); |
542 | ipath_diag_remove(dd); | 543 | ipath_diag_remove(dd); |
543 | ipath_user_remove(dd); | 544 | ipath_user_remove(dd); |
@@ -978,12 +979,8 @@ reloop: | |||
978 | if (unlikely(eflags)) | 979 | if (unlikely(eflags)) |
979 | ipath_rcv_hdrerr(dd, eflags, l, etail, rc); | 980 | ipath_rcv_hdrerr(dd, eflags, l, etail, rc); |
980 | else if (etype == RCVHQ_RCV_TYPE_NON_KD) { | 981 | else if (etype == RCVHQ_RCV_TYPE_NON_KD) { |
981 | int ret = __ipath_verbs_rcv(dd, rc + 1, | 982 | ipath_ib_rcv(dd->verbs_dev, rc + 1, ebuf, |
982 | ebuf, tlen); | 983 | tlen); |
983 | if (ret == -ENODEV) | ||
984 | ipath_cdbg(VERBOSE, | ||
985 | "received IB packet, " | ||
986 | "not SMA (QP=%x)\n", qp); | ||
987 | if (dd->ipath_lli_counter) | 984 | if (dd->ipath_lli_counter) |
988 | dd->ipath_lli_counter--; | 985 | dd->ipath_lli_counter--; |
989 | 986 | ||