mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Disable/enable CSUM_UDP and CSUM_TCP along with CSUM_IP
Submitted by: guyyur@gmail.com Differential Revision: https://reviews.freebsd.org/D12536
This commit is contained in:
parent
80e5f51916
commit
2a811fc0b8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324118
@ -1041,10 +1041,10 @@ awg_ioctl(if_t ifp, u_long cmd, caddr_t data)
|
||||
if_togglecapenable(ifp, IFCAP_RXCSUM);
|
||||
if (mask & IFCAP_TXCSUM)
|
||||
if_togglecapenable(ifp, IFCAP_TXCSUM);
|
||||
if ((if_getcapenable(ifp) & (IFCAP_RXCSUM|IFCAP_TXCSUM)) != 0)
|
||||
if_sethwassistbits(ifp, CSUM_IP, 0);
|
||||
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
|
||||
if_sethwassistbits(ifp, CSUM_IP | CSUM_UDP | CSUM_TCP, 0);
|
||||
else
|
||||
if_sethwassistbits(ifp, 0, CSUM_IP);
|
||||
if_sethwassistbits(ifp, 0, CSUM_IP | CSUM_UDP | CSUM_TCP);
|
||||
break;
|
||||
default:
|
||||
error = ether_ioctl(ifp, cmd, data);
|
||||
|
Loading…
Reference in New Issue
Block a user