mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
sky2: use roundup() macro
Use roundup() macro to size receive buffer. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
71749531f2
commit
f957da2aa0
1 changed files with 1 additions and 2 deletions
|
@ -1180,8 +1180,7 @@ static int sky2_rx_start(struct sky2_port *sky2)
|
|||
rx_set_checksum(sky2);
|
||||
|
||||
/* Space needed for frame data + headers rounded up */
|
||||
size = ALIGN(sky2->netdev->mtu + ETH_HLEN + VLAN_HLEN, 8)
|
||||
+ 8;
|
||||
size = roundup(sky2->netdev->mtu + ETH_HLEN + VLAN_HLEN, 8);
|
||||
|
||||
/* Stopping point for hardware truncation */
|
||||
thresh = (size - 8) / sizeof(u32);
|
||||
|
|
Loading…
Reference in a new issue