Re: Disabling VLAN_HWTAGGING

From: Ruslan Ermilov (ru_at_freebsd.org)
Date: 03/29/04

  • Next message: FreeBSD bugmaster: "Current problem reports assigned to you"
    Date: Mon, 29 Mar 2004 21:38:54 +0300
    To: David Gilbert <dgilbert@dclg.ca>
    
    
    

    On Mon, Mar 29, 2004 at 01:22:24PM -0500, David Gilbert wrote:
    > >>>>> "Jacob" == Jacob S Barrett <jbarrett@amduat.net> writes:
    >
    > Jacob> On Thursday 25 March 2004 03:45 pm, you wrote:
    > >> > Can you disable VLAN_HWTAGGING?
    > >>
    > >> Not without modifying if_nge.c, but it should be pretty trivial.
    >
    > Jacob> As trivial as setting chaning:
    > ifp-> if_capabilities = IFCAP_HWCSUM | IFCAP_VLAN_HWTAGGING;
    > Jacob> to:
    > ifp-> if_capabilities = 0;
    >
    > Jacob> This didn't solve the problem completely though. On the remote
    > Jacob> host I can now see tagged frames from the if_nge host, but the
    > Jacob> reply frames from the if_em host or not visible at all on the
    > Jacob> if_nge host (via tcpdump).
    >
    > Are you dumping all packets? We've found that you can dump a specific
    > vlan on nge's, but you can't get good data by dumping the raw port
    > itself. No matter how it's set, in both Linux and FreeBSD, many nge
    > chipsets will not show vlan packets from the driver with a tcpdump.
    >
    Hmm, you can't probably see it because the hardware is configured to
    do VLAN tag insertion/removal, and stores VLAN data decoupled from the
    frame's mbuf chain. And BPF is very unlikely to reconstruct the
    ETHERTYPE_VLAN packet using this information...

    Cheers,

    -- 
    Ruslan Ermilov
    ru@FreeBSD.org
    FreeBSD committer
    
    



  • Next message: FreeBSD bugmaster: "Current problem reports assigned to you"

    Relevant Pages

    • Re: bge data corruption bug (was: 1168 octets payload and bad TCPchecksums)
      ... but the difference is the same even for other packets). ... > dword of the transmitted frame is getting corrupted in hardware. ... > with 1168 octets of payload, using vlan tagging on the bge interface. ... bge interface for one supported by the sk or em driver solves the problem. ...
      (freebsd-net)
    • VLAN security question
      ... installed a Cisco switch, programmed the switch to route Internet ... Internet traffic is now on a VLAN, ... VLAN traffic can be seen there (sensible because the phones contain ... can send packets onto the telephone VLAN (i.e., ...
      (freebsd-questions)
    • Re: 5.4 -- bridging, ipfw, dot1q
      ... The packets you see are encapsulated in 802.1q aka VLAN frames, ... > assume the bridge at least sees the packets). ... > My only guess is that ipfw doesn't have the brains to look beyond the VLAN ...
      (freebsd-hackers)
    • Re: native vlan question
      ... I think using "vlan dot1q tag native" should eliminate this question. ... "default VLAN" - that is what untagged means for incoming packets. ... not putting a tag on outbound packets form that VLAN on that port allows 2 ...
      (comp.dcom.sys.cisco)
    • af_packet.c -ERRMSGSIZE logic error for VLAN Support
      ... I guess a RAW packet interface needs to really be just that. ... This is busted with VLAN tags. ... I am sending packets out of the max length of 1514 with the ... method recommended for dealing with the VLAN tagging info. ...
      (Linux-Kernel)