mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Two minor fixes, keep old 82542 from using jumbo frames, and add
missing htole64 in encap code. Reviewed by:Pdeuskar Approved by:Pdeuskar
This commit is contained in:
parent
a250f3820c
commit
ca2a8b584f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169918
@ -1020,8 +1020,9 @@ em_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
|
||||
case e1000_80003es2lan: /* Limit Jumbo Frame size */
|
||||
max_frame_size = 9234;
|
||||
break;
|
||||
/* Adapters that do not support jumbo frames */
|
||||
case e1000_82542:
|
||||
case e1000_ich8lan:
|
||||
/* ICH8 does not support jumbo frames */
|
||||
max_frame_size = ETHER_MAX_LEN;
|
||||
break;
|
||||
default:
|
||||
@ -1884,7 +1885,7 @@ em_encap(struct adapter *adapter, struct mbuf **m_headp)
|
||||
if (++i == adapter->num_tx_desc)
|
||||
i = 0;
|
||||
} else {
|
||||
ctxd->buffer_addr = seg_addr;
|
||||
ctxd->buffer_addr = htole64(seg_addr);
|
||||
ctxd->lower.data = htole32(
|
||||
adapter->txd_cmd | txd_lower | seg_len);
|
||||
ctxd->upper.data =
|
||||
|
Loading…
Reference in New Issue
Block a user