提交 f957da2a 编写于 作者: S Stephen Hemminger 提交者: Jeff Garzik

sky2: use roundup() macro

Use roundup() macro to size receive buffer.
Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 71749531
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册