diff options
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib.h')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h index 6b14bd1c60a0..c994a916a58a 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib.h +++ b/drivers/infiniband/ulp/ipoib/ipoib.h | |||
@@ -100,7 +100,12 @@ struct ipoib_pseudoheader { | |||
100 | 100 | ||
101 | struct ipoib_mcast; | 101 | struct ipoib_mcast; |
102 | 102 | ||
103 | struct ipoib_buf { | 103 | struct ipoib_rx_buf { |
104 | struct sk_buff *skb; | ||
105 | dma_addr_t mapping; | ||
106 | }; | ||
107 | |||
108 | struct ipoib_tx_buf { | ||
104 | struct sk_buff *skb; | 109 | struct sk_buff *skb; |
105 | DECLARE_PCI_UNMAP_ADDR(mapping) | 110 | DECLARE_PCI_UNMAP_ADDR(mapping) |
106 | }; | 111 | }; |
@@ -150,14 +155,14 @@ struct ipoib_dev_priv { | |||
150 | unsigned int admin_mtu; | 155 | unsigned int admin_mtu; |
151 | unsigned int mcast_mtu; | 156 | unsigned int mcast_mtu; |
152 | 157 | ||
153 | struct ipoib_buf *rx_ring; | 158 | struct ipoib_rx_buf *rx_ring; |
154 | 159 | ||
155 | spinlock_t tx_lock; | 160 | spinlock_t tx_lock; |
156 | struct ipoib_buf *tx_ring; | 161 | struct ipoib_tx_buf *tx_ring; |
157 | unsigned tx_head; | 162 | unsigned tx_head; |
158 | unsigned tx_tail; | 163 | unsigned tx_tail; |
159 | struct ib_sge tx_sge; | 164 | struct ib_sge tx_sge; |
160 | struct ib_send_wr tx_wr; | 165 | struct ib_send_wr tx_wr; |
161 | 166 | ||
162 | struct ib_wc ibwc[IPOIB_NUM_WC]; | 167 | struct ib_wc ibwc[IPOIB_NUM_WC]; |
163 | 168 | ||