aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2023-09-02 20:52:30 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2023-09-02 20:59:09 +0000
commitac77837ca7583221f5ef2d63235fd19ac9c571f7 (patch)
tree4cd259578fc0ba93aa2c20ce03151041bafa87cc
parent224aec05e732bb97a0d3c91142973b98a91238d1 (diff)
downloadsrc-ac77837ca7583221f5ef2d63235fd19ac9c571f7.tar.gz
src-ac77837ca7583221f5ef2d63235fd19ac9c571f7.zip
dtsec(4): Restore IFCAP_JUMBO_MTU lost in IfAPI conversion
Also add IFCAP_VLAN_MTU, since it's supported. Fixes: 0083fc5c7 ("Mechanically convert dtsec(4) to IfAPI") MFC after: 1 week
-rw-r--r--sys/dev/dpaa/if_dtsec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/dpaa/if_dtsec.c b/sys/dev/dpaa/if_dtsec.c
index de5ca75c9a77..73272e1af79e 100644
--- a/sys/dev/dpaa/if_dtsec.c
+++ b/sys/dev/dpaa/if_dtsec.c
@@ -735,6 +735,7 @@ dtsec_attach(device_t dev)
if_setsendqready(ifp);
#endif
+ if_setcapabilities(ifp, IFCAP_JUMBO_MTU | IFCAP_VLAN_MTU);
if_setcapenable(ifp, if_getcapabilities(ifp));
/* Attach PHY(s) */