projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: Use netdev_alloc_skb_ip_align()
[deliverable/linux.git]
/
drivers
/
net
/
8139too.c
diff --git
a/drivers/net/8139too.c
b/drivers/net/8139too.c
index 4a362875502661f8d3e7bae4adf78a3952114b43..7e333f73b22853d40092bd7022b836d61483fdca 100644
(file)
--- a/
drivers/net/8139too.c
+++ b/
drivers/net/8139too.c
@@
-2004,9
+2004,8
@@
no_early_rx:
/* Malloc up new buffer, compatible with net-2e. */
/* Omit the four octet CRC from the length. */
/* Malloc up new buffer, compatible with net-2e. */
/* Omit the four octet CRC from the length. */
- skb = netdev_alloc_skb
(dev, pkt_size + NET_IP_ALIGN
);
+ skb = netdev_alloc_skb
_ip_align(dev, pkt_size
);
if (likely(skb)) {
if (likely(skb)) {
- skb_reserve (skb, NET_IP_ALIGN); /* 16 byte align the IP fields. */
#if RX_BUF_IDX == 3
wrap_copy(skb, rx_ring, ring_offset+4, pkt_size);
#else
#if RX_BUF_IDX == 3
wrap_copy(skb, rx_ring, ring_offset+4, pkt_size);
#else
This page took
0.040763 seconds
and
5
git commands to generate.