sync
This commit is contained in:
parent
f1b2576417
commit
2a351e0cdc
347 changed files with 9596 additions and 5486 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_loop.c,v 1.94 2023/06/05 11:35:46 bluhm Exp $ */
|
||||
/* $OpenBSD: if_loop.c,v 1.95 2023/07/02 19:59:15 bluhm Exp $ */
|
||||
/* $NetBSD: if_loop.c,v 1.15 1996/05/07 02:40:33 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -175,7 +175,8 @@ loop_clone_create(struct if_clone *ifc, int unit)
|
|||
ifp->if_xflags = IFXF_CLONED;
|
||||
ifp->if_capabilities = IFCAP_CSUM_IPv4 |
|
||||
IFCAP_CSUM_TCPv4 | IFCAP_CSUM_UDPv4 |
|
||||
IFCAP_CSUM_TCPv6 | IFCAP_CSUM_UDPv6;
|
||||
IFCAP_CSUM_TCPv6 | IFCAP_CSUM_UDPv6 |
|
||||
IFCAP_LRO;
|
||||
ifp->if_rtrequest = lortrequest;
|
||||
ifp->if_ioctl = loioctl;
|
||||
ifp->if_input = loinput;
|
||||
|
@ -281,6 +282,10 @@ loioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
|
|||
|
||||
switch (cmd) {
|
||||
case SIOCSIFFLAGS:
|
||||
if (ISSET(ifp->if_xflags, IFXF_LRO))
|
||||
SET(ifp->if_capabilities, IFCAP_TSOv4 | IFCAP_TSOv6);
|
||||
else
|
||||
CLR(ifp->if_capabilities, IFCAP_TSOv4 | IFCAP_TSOv6);
|
||||
break;
|
||||
|
||||
case SIOCSIFADDR:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue