diff options
author | Auke Kok <auke\-jan.h.kok@intel.com> | 2006-08-31 17:27:50 -0400 |
---|---|---|
committer | Auke Kok <juke-jan.h.kok@intel.com> | 2006-08-31 17:27:50 -0400 |
commit | 5791704fbe6e1a23de29332e18840f8c90faf601 (patch) | |
tree | baffbdc9d2d536a13eafb8741de4622378379cf9 /drivers/net/ixgb | |
parent | a535aa1922083c85ce6fb7d1341db0d17df433d4 (diff) |
ixgb: Convert dev_alloc_skb to netdev_alloc_skb.
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Diffstat (limited to 'drivers/net/ixgb')
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index 346273d42f97..6959735d4eba 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c | |||
@@ -1948,7 +1948,7 @@ ixgb_clean_rx_irq(struct ixgb_adapter *adapter) | |||
1948 | #define IXGB_CB_LENGTH 256 | 1948 | #define IXGB_CB_LENGTH 256 |
1949 | if (length < IXGB_CB_LENGTH) { | 1949 | if (length < IXGB_CB_LENGTH) { |
1950 | struct sk_buff *new_skb = | 1950 | struct sk_buff *new_skb = |
1951 | dev_alloc_skb(length + NET_IP_ALIGN); | 1951 | netdev_alloc_skb(netdev, length + NET_IP_ALIGN); |
1952 | if (new_skb) { | 1952 | if (new_skb) { |
1953 | skb_reserve(new_skb, NET_IP_ALIGN); | 1953 | skb_reserve(new_skb, NET_IP_ALIGN); |
1954 | new_skb->dev = netdev; | 1954 | new_skb->dev = netdev; |
@@ -2032,7 +2032,7 @@ ixgb_alloc_rx_buffers(struct ixgb_adapter *adapter) | |||
2032 | while(--cleancount > 2) { | 2032 | while(--cleancount > 2) { |
2033 | /* recycle! its good for you */ | 2033 | /* recycle! its good for you */ |
2034 | if (!(skb = buffer_info->skb)) | 2034 | if (!(skb = buffer_info->skb)) |
2035 | skb = dev_alloc_skb(adapter->rx_buffer_len | 2035 | skb = netdev_alloc_skb(netdev, adapter->rx_buffer_len |
2036 | + NET_IP_ALIGN); | 2036 | + NET_IP_ALIGN); |
2037 | else { | 2037 | else { |
2038 | skb_trim(skb, 0); | 2038 | skb_trim(skb, 0); |