Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144143951
D38932.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D38932.diff
View Options
diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c
--- a/sys/kern/uipc_ktls.c
+++ b/sys/kern/uipc_ktls.c
@@ -900,7 +900,7 @@
* existing pacing rate.
*/
if (tp->t_pacing_rate != -1 &&
- (ifp->if_capenable & IFCAP_TXTLS_RTLMT) != 0) {
+ (if_getcapenable(ifp) & IFCAP_TXTLS_RTLMT) != 0) {
params.hdr.type = IF_SND_TAG_TYPE_TLS_RATE_LIMIT;
params.tls_rate_limit.inp = inp;
params.tls_rate_limit.tls = tls;
@@ -915,17 +915,17 @@
params.hdr.numa_domain = inp->inp_numa_domain;
INP_RUNLOCK(inp);
- if ((ifp->if_capenable & IFCAP_MEXTPG) == 0) {
+ if ((if_getcapenable(ifp) & IFCAP_MEXTPG) == 0) {
error = EOPNOTSUPP;
goto out;
}
if (inp->inp_vflag & INP_IPV6) {
- if ((ifp->if_capenable & IFCAP_TXTLS6) == 0) {
+ if ((if_getcapenable(ifp) & IFCAP_TXTLS6) == 0) {
error = EOPNOTSUPP;
goto out;
}
} else {
- if ((ifp->if_capenable & IFCAP_TXTLS4) == 0) {
+ if ((if_getcapenable(ifp) & IFCAP_TXTLS4) == 0) {
error = EOPNOTSUPP;
goto out;
}
@@ -1000,12 +1000,12 @@
INP_RUNLOCK(inp);
if (inp->inp_vflag & INP_IPV6) {
- if ((ifp->if_capenable2 & IFCAP2_RXTLS6) == 0) {
+ if ((if_getcapenable2(ifp) & IFCAP2_RXTLS6) == 0) {
error = EOPNOTSUPP;
goto out;
}
} else {
- if ((ifp->if_capenable2 & IFCAP2_RXTLS4) == 0) {
+ if ((if_getcapenable2(ifp) & IFCAP2_RXTLS4) == 0) {
error = EOPNOTSUPP;
goto out;
}
@@ -1618,10 +1618,10 @@
INP_RUNLOCK(inp);
if (inp->inp_vflag & INP_IPV6) {
- if ((ifp->if_capenable2 & IFCAP2_RXTLS6) == 0)
+ if ((if_getcapenable2(ifp) & IFCAP2_RXTLS6) == 0)
goto out;
} else {
- if ((ifp->if_capenable2 & IFCAP2_RXTLS4) == 0)
+ if ((if_getcapenable2(ifp) & IFCAP2_RXTLS4) == 0)
goto out;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 6, 11:35 AM (21 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28448245
Default Alt Text
D38932.diff (1 KB)
Attached To
Mode
D38932: ktls: Use IfAPI accessors to get capabilities
Attached
Detach File
Event Timeline
Log In to Comment