[openib-general] [PATCH RFC 12/21] ofed_1_2 Add functions/defines needed by cxgb3 to netdevice.h for sles9sp3

Steve Wise swise at opengridcomputing.com
Mon Jan 15 13:19:42 PST 2007


Add functions/defines needed by cxgb3 to netdevice.h for sles9sp3

Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---

 .../2.6.5_sles9_sp3/include/linux/netdevice.h      |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/netdevice.h b/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/netdevice.h
index 5641019..cf5da60 100644
--- a/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/netdevice.h
+++ b/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/netdevice.h
@@ -15,4 +15,13 @@ static inline void netif_tx_unlock(struc
 	spin_unlock(&dev->xmit_lock);
 }
 
+static inline int __netif_rx_schedule_prep(struct net_device *dev)
+{
+        return !test_and_set_bit(__LINK_STATE_RX_SCHED, &dev->state);
+}
+
+#define NETDEV_TX_OK 0          /* driver took care of packet */
+#define NETDEV_TX_BUSY 1        /* driver tx path was busy*/
+#define NETDEV_TX_LOCKED -1     /* driver tx lock was already taken */
+
 #endif




More information about the general mailing list