On Tue, Jul 13, 2010 at 02:59:36PM -0500, Adam Kujawski wrote:
> Hello,
> 
> I applied the patch from SAITOH Masanobu to 4.7-RELEASE successfully,
> and that resolved the problem with the hardware initialization
> failing. However, while the interfaces on the Intel PRO/1000 QP
> (82576) work fine for untagged traffic, I'm unable to pass packets
> over 1472 bytes (payload) over a VLAN trunked interface (i.e. 'ping -s
> 1472 target' fails). This is on an amd64 multi-proc kernel.
> 
> Has anybody else tested this patch with tagged VLAN interfaces? It
> seems a similar problem was reported in openbsd-misc back in May
> (subject: vlan + em driver).

sounds like hardware vlan tagging is different on these adapters,
here is a hack to confirm this

Index: if_em.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/if_em.c,v
retrieving revision 1.240
diff -u -p -r1.240 if_em.c
--- if_em.c     28 Jun 2010 20:24:39 -0000      1.240
+++ if_em.c     14 Jul 2010 17:48:49 -0000
@@ -1816,7 +1816,8 @@ em_setup_interface(struct em_softc *sc)
        ifp->if_capabilities = IFCAP_VLAN_MTU;
 
 #if NVLAN > 0
-       ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING;
+       if (sc->hw.mac_type != em_82575)
+               ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING;
 #endif
 
 #ifdef EM_CSUM_OFFLOAD

Reply via email to