diff options
Diffstat (limited to 'drivers/net/atlx/atl1.c')
-rw-r--r-- | drivers/net/atlx/atl1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c index 9c2394d49428..db04bfb3460f 100644 --- a/drivers/net/atlx/atl1.c +++ b/drivers/net/atlx/atl1.c | |||
@@ -1876,7 +1876,8 @@ static u16 atl1_alloc_rx_buffers(struct atl1_adapter *adapter) | |||
1876 | 1876 | ||
1877 | rfd_desc = ATL1_RFD_DESC(rfd_ring, rfd_next_to_use); | 1877 | rfd_desc = ATL1_RFD_DESC(rfd_ring, rfd_next_to_use); |
1878 | 1878 | ||
1879 | skb = dev_alloc_skb(adapter->rx_buffer_len + NET_IP_ALIGN); | 1879 | skb = netdev_alloc_skb(adapter->netdev, |
1880 | adapter->rx_buffer_len + NET_IP_ALIGN); | ||
1880 | if (unlikely(!skb)) { | 1881 | if (unlikely(!skb)) { |
1881 | /* Better luck next round */ | 1882 | /* Better luck next round */ |
1882 | adapter->net_stats.rx_dropped++; | 1883 | adapter->net_stats.rx_dropped++; |
@@ -2135,7 +2136,7 @@ static int atl1_tso(struct atl1_adapter *adapter, struct sk_buff *skb, | |||
2135 | return -1; | 2136 | return -1; |
2136 | } | 2137 | } |
2137 | 2138 | ||
2138 | if (skb->protocol == ntohs(ETH_P_IP)) { | 2139 | if (skb->protocol == htons(ETH_P_IP)) { |
2139 | struct iphdr *iph = ip_hdr(skb); | 2140 | struct iphdr *iph = ip_hdr(skb); |
2140 | 2141 | ||
2141 | real_len = (((unsigned char *)iph - skb->data) + | 2142 | real_len = (((unsigned char *)iph - skb->data) + |