Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[3c90x] Fix High-MTU packet reception
Prevent the card from flagging packets of 1518 bytes length as
overlength.

This fixes the High-MTU loopback test.

Signed-off-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
thomil authored and mcb30 committed Aug 20, 2013
1 parent e5f6471 commit 6d72b49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/drivers/net/3c90x.c
Expand Up @@ -822,6 +822,10 @@ static int a3c90x_open(struct net_device *netdev)

a3c90x_internal_IssueCommand(inf_3c90x->IOAddr, cmdStallCtl, upUnStall);

/* set maximum allowed receive packet length */
a3c90x_internal_SetWindow(inf_3c90x, winTxRxOptions3);
outl(RX_BUF_SIZE, inf_3c90x->IOAddr + regMaxPktSize_3_w);

/* enable packet transmission and reception */
a3c90x_internal_IssueCommand(inf_3c90x->IOAddr, cmdTxEnable, 0);
a3c90x_internal_IssueCommand(inf_3c90x->IOAddr, cmdRxEnable, 0);
Expand Down

0 comments on commit 6d72b49

Please sign in to comment.