diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2008-11-17 02:06:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-17 02:06:39 -0500 |
commit | c3ccc12339afa2633c72131e2aa97d52d9ca1b8a (patch) | |
tree | e1ec7df7b1ce240a8c6a8e3029d0831952490005 /drivers/net/chelsio/sge.c | |
parent | 4d24b52ac5085ef8a264d044f1b302b7c029887a (diff) |
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.c | 2 |
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) | |||
1785 | */ | 1785 | */ |
1786 | int t1_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1786 | int t1_start_xmit(struct sk_buff *skb, struct net_device *dev) |
1787 | { | 1787 | { |
1788 | struct adapter *adapter = dev->priv; | 1788 | struct adapter *adapter = dev->ml_priv; |
1789 | struct sge *sge = adapter->sge; | 1789 | struct sge *sge = adapter->sge; |
1790 | struct sge_port_stats *st = per_cpu_ptr(sge->port_stats[dev->if_port], | 1790 | struct sge_port_stats *st = per_cpu_ptr(sge->port_stats[dev->if_port], |
1791 | smp_processor_id()); | 1791 | smp_processor_id()); |