diff options
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib.h')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h index 6545fa798b12..0a00ea0e887d 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib.h +++ b/drivers/infiniband/ulp/ipoib/ipoib.h | |||
@@ -84,9 +84,8 @@ enum { | |||
84 | IPOIB_MCAST_RUN = 6, | 84 | IPOIB_MCAST_RUN = 6, |
85 | IPOIB_STOP_REAPER = 7, | 85 | IPOIB_STOP_REAPER = 7, |
86 | IPOIB_MCAST_STARTED = 8, | 86 | IPOIB_MCAST_STARTED = 8, |
87 | IPOIB_FLAG_NETIF_STOPPED = 9, | 87 | IPOIB_FLAG_ADMIN_CM = 9, |
88 | IPOIB_FLAG_ADMIN_CM = 10, | 88 | IPOIB_FLAG_UMCAST = 10, |
89 | IPOIB_FLAG_UMCAST = 11, | ||
90 | 89 | ||
91 | IPOIB_MAX_BACKOFF_SECONDS = 16, | 90 | IPOIB_MAX_BACKOFF_SECONDS = 16, |
92 | 91 | ||
@@ -98,9 +97,9 @@ enum { | |||
98 | 97 | ||
99 | #define IPOIB_OP_RECV (1ul << 31) | 98 | #define IPOIB_OP_RECV (1ul << 31) |
100 | #ifdef CONFIG_INFINIBAND_IPOIB_CM | 99 | #ifdef CONFIG_INFINIBAND_IPOIB_CM |
101 | #define IPOIB_CM_OP_SRQ (1ul << 30) | 100 | #define IPOIB_OP_CM (1ul << 30) |
102 | #else | 101 | #else |
103 | #define IPOIB_CM_OP_SRQ (0) | 102 | #define IPOIB_OP_CM (0) |
104 | #endif | 103 | #endif |
105 | 104 | ||
106 | /* structs */ | 105 | /* structs */ |
@@ -197,7 +196,6 @@ struct ipoib_cm_rx { | |||
197 | 196 | ||
198 | struct ipoib_cm_tx { | 197 | struct ipoib_cm_tx { |
199 | struct ib_cm_id *id; | 198 | struct ib_cm_id *id; |
200 | struct ib_cq *cq; | ||
201 | struct ib_qp *qp; | 199 | struct ib_qp *qp; |
202 | struct list_head list; | 200 | struct list_head list; |
203 | struct net_device *dev; | 201 | struct net_device *dev; |
@@ -294,6 +292,7 @@ struct ipoib_dev_priv { | |||
294 | unsigned tx_tail; | 292 | unsigned tx_tail; |
295 | struct ib_sge tx_sge; | 293 | struct ib_sge tx_sge; |
296 | struct ib_send_wr tx_wr; | 294 | struct ib_send_wr tx_wr; |
295 | unsigned tx_outstanding; | ||
297 | 296 | ||
298 | struct ib_wc ibwc[IPOIB_NUM_WC]; | 297 | struct ib_wc ibwc[IPOIB_NUM_WC]; |
299 | 298 | ||
@@ -502,6 +501,7 @@ void ipoib_cm_destroy_tx(struct ipoib_cm_tx *tx); | |||
502 | void ipoib_cm_skb_too_long(struct net_device* dev, struct sk_buff *skb, | 501 | void ipoib_cm_skb_too_long(struct net_device* dev, struct sk_buff *skb, |
503 | unsigned int mtu); | 502 | unsigned int mtu); |
504 | void ipoib_cm_handle_rx_wc(struct net_device *dev, struct ib_wc *wc); | 503 | void ipoib_cm_handle_rx_wc(struct net_device *dev, struct ib_wc *wc); |
504 | void ipoib_cm_handle_tx_wc(struct net_device *dev, struct ib_wc *wc); | ||
505 | #else | 505 | #else |
506 | 506 | ||
507 | struct ipoib_cm_tx; | 507 | struct ipoib_cm_tx; |
@@ -590,6 +590,9 @@ static inline void ipoib_cm_handle_rx_wc(struct net_device *dev, struct ib_wc *w | |||
590 | { | 590 | { |
591 | } | 591 | } |
592 | 592 | ||
593 | static inline void ipoib_cm_handle_tx_wc(struct net_device *dev, struct ib_wc *wc) | ||
594 | { | ||
595 | } | ||
593 | #endif | 596 | #endif |
594 | 597 | ||
595 | #ifdef CONFIG_INFINIBAND_IPOIB_DEBUG | 598 | #ifdef CONFIG_INFINIBAND_IPOIB_DEBUG |