Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103232
b: refs/heads/master
c: 8304295
h: refs/heads/master
v: v3
  • Loading branch information
Pekka Enberg authored and Jeff Garzik committed Jul 4, 2008
1 parent 1bed8fe commit aa614ad
Show file tree
Hide file tree
Showing 3 changed files with 6 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: 024f4d88b45003710e8e2ee937b0c56aaf2dff2d
refs/heads/master: 83042955210aaee70b881240fe4f5e8409235308
6 changes: 3 additions & 3 deletions trunk/drivers/net/ipg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1807,9 +1807,9 @@ static int ipg_nic_open(struct net_device *dev)
sp->jumbo.found_start = 0;
sp->jumbo.current_size = 0;
sp->jumbo.skb = NULL;
#ifdef JUMBO_FRAME
dev->mtu = IPG_TXFRAG_SIZE;
#endif

if (IPG_TXFRAG_SIZE)
dev->mtu = IPG_TXFRAG_SIZE;

/* Enable transmit and receive operation of the IPG. */
ipg_w32((ipg_r32(MAC_CTRL) | IPG_MC_RX_ENABLE | IPG_MC_TX_ENABLE) &
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/ipg.h
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,8 @@ enum ipg_regs {
#ifdef JUMBO_FRAME
/* IPG_TXFRAG_SIZE must <= 0x2b00, or TX will crash */
#define IPG_TXFRAG_SIZE JUMBO_FRAME_SIZE
#else
#define IPG_TXFRAG_SIZE 0 /* use default MTU */
#endif

/* Size of allocated received buffers. Nominally 0x0600.
Expand Down

0 comments on commit aa614ad

Please sign in to comment.