From owner-freebsd-net@FreeBSD.ORG Fri Jun 12 18:24:04 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1205) id DF61A106566B; Fri, 12 Jun 2009 18:24:04 +0000 (UTC) Date: Fri, 12 Jun 2009 18:24:04 +0000 From: Navdeep Parhar To: "Bjoern A. Zeeb" Message-ID: <20090612182404.GA20035@hub.freebsd.org> Mail-Followup-To: "Bjoern A. Zeeb" , Pyun YongHyeon , FreeBSD net mailing list , Michael Tuexen , Andrew Thompson , Jack F Vogel , Andrew Gallatin , Pyun YongHyeon , "George V. Neville-Neil" References: <20090611184555.J22887@maildrop.int.zabbadoz.net> <20090612013406.GB72855@michelle.cdnetworks.co.kr> <20090612100900.M22887@maildrop.int.zabbadoz.net> <20090612170703.GA994@hub.freebsd.org> <20090612173728.B22887@maildrop.int.zabbadoz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090612173728.B22887@maildrop.int.zabbadoz.net> User-Agent: Mutt/1.4.2.1i Cc: Pyun YongHyeon , FreeBSD net mailing list , "George V. Neville-Neil" , Michael Tuexen , Andrew Thompson , Jack F Vogel , Andrew Gallatin , Pyun YongHyeon Subject: Re: Ethernet NIC drivers depending unconditionally on INET X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2009 18:24:05 -0000 On Fri, Jun 12, 2009 at 05:38:46PM +0000, Bjoern A. Zeeb wrote: > On Fri, 12 Jun 2009, Navdeep Parhar wrote: > > >On Fri, Jun 12, 2009 at 10:56:31AM +0000, Bjoern A. Zeeb wrote: > >>On Fri, 12 Jun 2009, Pyun YongHyeon wrote: > >> > >>Hi, > >> > >>>Yeah, there are no checksum offloading support for IPv6 under > >>>FreeBSD so there are no cases the frames are IPv6 when > >>>CSUM_IP/CSUM_TCP/CSUM_UDP/CSUM_TSO was set. > >> > >>The thing that scared me was sys/netinet/tcp_subr.c:tcp_maxmtu6(). > >> > >>What I had missed was the CSUM_TSO6 (the 6 at the end) part. > >>grepping through the tree I am even wondering a lot more now when I > >>see what cxgb(4) is doing with that;) > > > >I can't find a CSUM_TSO6 in head, did you mean IFCAP_TSO6? > > yes I did. > > >cxgb(4) > >will not let you enable IFCAP_TSO6 on the interface. It has always > >been disallowed as far as I can tell. > > Yes, you have it in the logic bu you define it to 0;) > #define IFCAP_TSO6 0x0 Not quite. TSO_SUPPORTED is defined and so cxgb(4) picks up the right values of IFCAP_TSO4 and IFCAP_TSO6. It's just that IFCAP_TSO6 is not in the enabled-by-default capabilities (CXGB_CAP_ENABLE), and cxgb_ioctl will not let you enable IFCAP_TSO6. cxgb's silicon supports TSO+IPv6, so I'm not sure why things are the way they are. If the stack's tso6 works, then this is a bug in cxgb. Regards, Navdeep > > /bz > > -- > Bjoern A. Zeeb The greatest risk is not taking one.