Date: Sat, 16 Apr 2005 13:08:16 +0200 (CEST) From: "Daan Vreeken [PA4DAN]" <Danovitsch@Vitsch.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/79998: [PATCH] Give sk(4) VLAN MTU capabilities Message-ID: <200504161108.j3GB8GGi088443@Vitsch.net> Resent-Message-ID: <200504161110.j3GBAQ1i079163@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 79998 >Category: kern >Synopsis: [PATCH] Give sk(4) VLAN MTU capabilities >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 16 11:10:25 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Daan Vreeken [PA4DAN] >Release: FreeBSD 5.3-RELEASE i386 >Organization: Vitsch Electronics >Environment: System: FreeBSD Racebeest.Danovitsch.LAN 5.3-RELEASE FreeBSD 5.3-RELEASE #8: Tue Mar 15 20:52:24 CET 2005 root@Racebeest.Danovitsch.LAN:/usr/src.5.3-release/sys/i386/compile/Laptop i386 >Description: Although sk(4) adapters can handle an MTU of up to 9000, the driver doesn't set the IFCAP_VLAN_MTU bit in it's capabilities. >How-To-Repeat: n/a >Fix: Apply the following patch to -current. It sets the IFCAP_VLAN_MTU bit and updates the vlan(4) manual page. --- 2005-04-16_sk_vlan.diff begins here --- --- sys/pci/if_sk.c.current Thu Apr 14 11:28:45 2005 +++ sys/pci/if_sk.c Sat Apr 16 12:23:19 2005 @@ -1449,6 +1449,8 @@ ifp->if_watchdog = sk_watchdog; ifp->if_init = sk_init; ifp->if_baudrate = 1000000000; + ifp->if_capabilities = IFCAP_VLAN_MTU; + ifp->if_capenable = ifp->if_capabilities; IFQ_SET_MAXLEN(&ifp->if_snd, SK_TX_RING_CNT - 1); ifp->if_snd.ifq_drv_maxlen = SK_TX_RING_CNT - 1; IFQ_SET_READY(&ifp->if_snd); --- share/man/man4/vlan.4.current Sat Apr 16 12:35:11 2005 +++ share/man/man4/vlan.4 Sat Apr 16 12:36:29 2005 @@ -151,6 +151,10 @@ supports long frames for .Nm natively. +.It Xr sk 4 +supports long frames for +.Nm +natively. .It Xr ste 4 supports long frames for .Nm --- 2005-04-16_sk_vlan.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504161108.j3GB8GGi088443>