Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168742
b: refs/heads/master
c: 8812304
h: refs/heads/master
v: v3
  • Loading branch information
Raimonds Cicans authored and David S. Miller committed Nov 14, 2009
1 parent df24d95 commit 5adfdf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 55369c0a6441e95062cfaeef6eefcfb357a31e8c
refs/heads/master: 8812304cf1110ae16b0778680f6022216cf4716a
4 changes: 2 additions & 2 deletions trunk/drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -3243,9 +3243,9 @@ static void __devexit rtl8169_remove_one(struct pci_dev *pdev)
static void rtl8169_set_rxbufsize(struct rtl8169_private *tp,
struct net_device *dev)
{
unsigned int mtu = dev->mtu;
unsigned int max_frame = dev->mtu + VLAN_ETH_HLEN + ETH_FCS_LEN;

tp->rx_buf_sz = (mtu > RX_BUF_SIZE) ? mtu + ETH_HLEN + 8 : RX_BUF_SIZE;
tp->rx_buf_sz = (max_frame > RX_BUF_SIZE) ? max_frame : RX_BUF_SIZE;
}

static int rtl8169_open(struct net_device *dev)
Expand Down

0 comments on commit 5adfdf5

Please sign in to comment.