diff options
author | Auke Kok <auke\-jan.h.kok@intel.com> | 2006-08-31 17:27:48 -0400 |
---|---|---|
committer | Auke Kok <juke-jan.h.kok@intel.com> | 2006-08-31 17:27:48 -0400 |
commit | 4187592b6d2230d4f9f7177c369dde2aef1a4337 (patch) | |
tree | eb4deadc93a8ab915372530de1cdf9b7a7c9cb0e /drivers/net/e100.c | |
parent | 7cc33234f23f1abb5d2f6639dda1700b1fde4b64 (diff) |
e100: Convert e100 to use netdev_alloc_skb().
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Diffstat (limited to 'drivers/net/e100.c')
-rw-r--r-- | drivers/net/e100.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c index b42ad76b1116..458af6a80bbb 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c | |||
@@ -1759,7 +1759,7 @@ static inline void e100_start_receiver(struct nic *nic, struct rx *rx) | |||
1759 | #define RFD_BUF_LEN (sizeof(struct rfd) + VLAN_ETH_FRAME_LEN) | 1759 | #define RFD_BUF_LEN (sizeof(struct rfd) + VLAN_ETH_FRAME_LEN) |
1760 | static int e100_rx_alloc_skb(struct nic *nic, struct rx *rx) | 1760 | static int e100_rx_alloc_skb(struct nic *nic, struct rx *rx) |
1761 | { | 1761 | { |
1762 | if(!(rx->skb = dev_alloc_skb(RFD_BUF_LEN + NET_IP_ALIGN))) | 1762 | if(!(rx->skb = netdev_alloc_skb(nic->netdev, RFD_BUF_LEN + NET_IP_ALIGN))) |
1763 | return -ENOMEM; | 1763 | return -ENOMEM; |
1764 | 1764 | ||
1765 | /* Align, init, and map the RFD. */ | 1765 | /* Align, init, and map the RFD. */ |
@@ -2139,7 +2139,7 @@ static int e100_loopback_test(struct nic *nic, enum loopback loopback_mode) | |||
2139 | 2139 | ||
2140 | e100_start_receiver(nic, NULL); | 2140 | e100_start_receiver(nic, NULL); |
2141 | 2141 | ||
2142 | if(!(skb = dev_alloc_skb(ETH_DATA_LEN))) { | 2142 | if(!(skb = netdev_alloc_skb(nic->netdev, ETH_DATA_LEN))) { |
2143 | err = -ENOMEM; | 2143 | err = -ENOMEM; |
2144 | goto err_loopback_none; | 2144 | goto err_loopback_none; |
2145 | } | 2145 | } |