Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75574
b: refs/heads/master
c: 2a49128
h: refs/heads/master
v: v3
  • Loading branch information
Jay Cliburn authored and Jeff Garzik committed Jan 18, 2008
1 parent 4138f43 commit c4be7a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: ce3ba1399d2ba81b3699a82649df0cd8223c6662
refs/heads/master: 2a49128f0a6edee337174ea341c1d6d7565be350
8 changes: 4 additions & 4 deletions trunk/drivers/net/atl1/atl1_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static int __devinit atl1_sw_init(struct atl1_adapter *adapter)
struct atl1_hw *hw = &adapter->hw;
struct net_device *netdev = adapter->netdev;

hw->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN;
hw->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN;
hw->min_frame_size = ETH_ZLEN + ETH_FCS_LEN;

adapter->wol = 0;
Expand Down Expand Up @@ -688,7 +688,7 @@ static int atl1_change_mtu(struct net_device *netdev, int new_mtu)
{
struct atl1_adapter *adapter = netdev_priv(netdev);
int old_mtu = netdev->mtu;
int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN;
int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN;

if ((max_frame < ETH_ZLEN + ETH_FCS_LEN) ||
(max_frame > MAX_JUMBO_FRAME_SIZE)) {
Expand Down Expand Up @@ -853,8 +853,8 @@ static u32 atl1_configure(struct atl1_adapter *adapter)
/* set Interrupt Clear Timer */
iowrite16(adapter->ict, hw->hw_addr + REG_CMBDISDMA_TIMER);

/* set MTU, 4 : VLAN */
iowrite32(hw->max_frame_size + 4, hw->hw_addr + REG_MTU);
/* set max frame size hw will accept */
iowrite32(hw->max_frame_size, hw->hw_addr + REG_MTU);

/* jumbo size & rrd retirement timer */
value = (((u32) hw->rx_jumbo_th & RXQ_JMBOSZ_TH_MASK)
Expand Down

0 comments on commit c4be7a4

Please sign in to comment.