Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2010 22:14:05 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/bce if_bce.c
Message-ID:  <201003232214.o2NMECjc004119@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
yongari     2010-03-23 22:14:05 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/dev/bce          if_bce.c 
  Log:
  SVN rev 205548 on 2010-03-23 22:14:05Z by yongari
  
  MFC r204373-204374:
  r204373:
    Move TSO setup to new function bce_tso_setup(). Also remove VLAN
    parsing code in TSO path as the controller requires VLAN hardware
    tagging to make TSO work over VLANs.
    While parsing the mbuf in TSO patch, always perform check for
    writable mbuf as bce(4) have to reset IP length and IP checksum
    field of IP header and make sure to ensure contiguous buffer before
    accessing IP/TCP headers. While I'm here replace magic number 40 to
    more readable sizeof(struct ip) + sizeof(struct tcphdr).
  
  r204374:
    Add TSO support on VLANs. bce(4) controllers require VLAN hardware
    tagging to make TSO work on VLANs so explicitly disable TSO on VLAN
    if VLAN hardware tagging is disabled.
  
  Revision   Changes    Path
  1.34.2.14  +124 -71   src/sys/dev/bce/if_bce.c



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