Date: Fri, 26 Feb 2010 21:19:46 +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: <201002262120.o1QLK2Px030165@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
yongari 2010-02-26 21:19:46 UTC FreeBSD src repository Modified files: sys/dev/bce if_bce.c Log: SVN rev 204373 on 2010-02-26 21:19:46Z by yongari 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). Reviewed by: davidch Revision Changes Path 1.65 +114 -69 src/sys/dev/bce/if_bce.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002262120.o1QLK2Px030165>