aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/cxgb3/cxgb3_offload.h
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2007-08-29 19:15:47 -0700
committerJeff Garzik <jeff@garzik.org>2007-08-31 07:29:08 -0400
commit5fbf816fe7d72bfdbf22bfec05b4ec3aa6849f72 (patch)
tree62f35df3e9078e3f981b9c04176d9a9cb557a53a /drivers/net/cxgb3/cxgb3_offload.h
parent54d0f56e63edb1aa3901ea6389bf7ea5d43d0c22 (diff)
cxgb3 - Fix dev->priv usage
cxgb3 used netdev_priv() and dev->priv for different purposes. In 2.6.23, netdev_priv() == dev->priv, cxgb3 needs a fix. This patch is a partial backport of Dave Miller's changes in the net-2.6.24 git branch. Without this fix, cxgb3 crashes on 2.6.23. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cxgb3/cxgb3_offload.h')
-rw-r--r--drivers/net/cxgb3/cxgb3_offload.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/cxgb3_offload.h b/drivers/net/cxgb3/cxgb3_offload.h
index f15446a32ef..7a379138b5a 100644
--- a/drivers/net/cxgb3/cxgb3_offload.h
+++ b/drivers/net/cxgb3/cxgb3_offload.h
@@ -51,6 +51,8 @@ void cxgb3_offload_deactivate(struct adapter *adapter);
void cxgb3_set_dummy_ops(struct t3cdev *dev);
+struct t3cdev *dev2t3cdev(struct net_device *dev);
+
/*
* Client registration. Users of T3 driver must register themselves.
* The T3 driver will call the add function of every client for each T3