Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58402
b: refs/heads/master
c: e9f63f3
h: refs/heads/master
v: v3
  • Loading branch information
Francois Romieu authored and Jeff Garzik committed Jul 9, 2007
1 parent 843a37b commit 4ad4196
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 275391a482c436282dde57beeffc5d61b229fdd2
refs/heads/master: e9f63f30863fd778a5329e93c7e2208b9bcb5b79
9 changes: 6 additions & 3 deletions trunk/drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ static const struct rtl_cfg_info {
[RTL_CFG_0] = {
.hw_start = rtl_hw_start_8169,
.region = 1,
.align = 2,
.align = 0,
.intr_event = SYSErr | LinkChg | RxOverflow |
RxFIFOOver | TxErr | TxOK | RxOK | RxErr,
.napi_event = RxFIFOOver | TxErr | TxOK | RxOK | RxOverflow
Expand Down Expand Up @@ -2076,12 +2076,15 @@ static struct sk_buff *rtl8169_alloc_rx_skb(struct pci_dev *pdev,
{
struct sk_buff *skb;
dma_addr_t mapping;
unsigned int pad;

skb = netdev_alloc_skb(dev, rx_buf_sz + align);
pad = align ? align : NET_IP_ALIGN;

skb = netdev_alloc_skb(dev, rx_buf_sz + pad);
if (!skb)
goto err_out;

skb_reserve(skb, (align - 1) & (unsigned long)skb->data);
skb_reserve(skb, align ? ((pad - 1) & (unsigned long)skb->data) : pad);

mapping = pci_map_single(pdev, skb->data, rx_buf_sz,
PCI_DMA_FROMDEVICE);
Expand Down

0 comments on commit 4ad4196

Please sign in to comment.