kern/79998: [PATCH] Give sk(4) VLAN MTU capabilities
Daan Vreeken [PA4DAN]
Danovitsch at Vitsch.net
Sat Apr 16 04:10:26 PDT 2005
>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 at 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:
More information about the freebsd-bugs
mailing list