Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Sep 2023 20:57:35 GMT
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ac77837ca758 - main - dtsec(4): Restore IFCAP_JUMBO_MTU lost in IfAPI conversion
Message-ID:  <202309022057.382KvZ7N057017@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhibbits:

URL: https://cgit.FreeBSD.org/src/commit/?id=ac77837ca7583221f5ef2d63235fd19ac9c571f7

commit ac77837ca7583221f5ef2d63235fd19ac9c571f7
Author:     Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2023-09-02 20:52:30 +0000
Commit:     Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2023-09-02 20:59:09 +0000

    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
---
 sys/dev/dpaa/if_dtsec.c | 1 +
 1 file changed, 1 insertion(+)

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) */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202309022057.382KvZ7N057017>