2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-22 01:21:45 +00:00

[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>
This commit is contained in:
Thomas Miletich 2013-08-19 13:36:27 +02:00 committed by Michael Brown
parent e5f6471525
commit 6d72b498c2

View File

@ -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);