summaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio/sge.c
diff options
context:
space:
mode:
authorWang Chen <wangchen@cn.fujitsu.com>2008-11-17 08:06:39 +0100
committerDavid S. Miller <davem@davemloft.net>2008-11-17 08:06:39 +0100
commitc3ccc12339afa2633c72131e2aa97d52d9ca1b8a (patch)
treee1ec7df7b1ce240a8c6a8e3029d0831952490005 /drivers/net/chelsio/sge.c
parentematch: simpler tcf_em_unregister() (diff)
downloadlinux-c3ccc12339afa2633c72131e2aa97d52d9ca1b8a.tar.xz
linux-c3ccc12339afa2633c72131e2aa97d52d9ca1b8a.zip
netdevice chelsio: Convert directly reference of netdev->priv
Several netdev share one adapter here. We use netdev->ml_priv of the netdevs point to the first netdev's priv. Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/chelsio/sge.c')
-rw-r--r--drivers/net/chelsio/sge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/chelsio/sge.c b/drivers/net/chelsio/sge.c
index fa0a1f129d37..ca80289fc04d 100644
--- a/drivers/net/chelsio/sge.c
+++ b/drivers/net/chelsio/sge.c
@@ -1785,7 +1785,7 @@ static inline int eth_hdr_len(const void *data)
*/
int t1_start_xmit(struct sk_buff *skb, struct net_device *dev)
{
- struct adapter *adapter = dev->priv;
+ struct adapter *adapter = dev->ml_priv;
struct sge *sge = adapter->sge;
struct sge_port_stats *st = per_cpu_ptr(sge->port_stats[dev->if_port],
smp_processor_id());