From owner-freebsd-current@FreeBSD.ORG Wed Apr 10 02:15:09 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 788A95B4 for ; Wed, 10 Apr 2013 02:15:09 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by mx1.freebsd.org (Postfix) with ESMTP id 54CB8B7E for ; Wed, 10 Apr 2013 02:15:09 +0000 (UTC) Received: by mail-pd0-f175.google.com with SMTP id g10so3823712pdj.34 for ; Tue, 09 Apr 2013 19:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:date:to:cc:subject:message-id:reply-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=e2YgP0ZahlZ9fWq7hw+h8wznQ0qMjIPX6OzcBj0pyPw=; b=rKo3BjCnwEK1UZcvAAdHCMCXfVYRDGSNQafOTz4dwQQMk5DWo6OS5CpFf5p3eADkRE 5FXr01jIzAmVIM1PB7aOEwr7v3Ddy52MCkO7h8/JlFAlueVuwQMRtTSW+ZlgS/dnarY+ ZQxaKmT+SzKyVSguxZEOzQ3ScUhL8zjkdVHFAXfSHDawRNgqH1rqMsrDR47PV0ChrHu4 ScJQVWRmrSOpimctZfT+4ojuafi3fxbNlbUWxwjvV0Ln93+ORZWchYszoYV5uX8UHRyD Kn4ngQi9AVhLNLEGZrSWivtTgpJlWHdOxzhVICHnZeSiqfYbB5sbcaK906DUlyFcECD0 1r/A== X-Received: by 10.66.157.36 with SMTP id wj4mr782497pab.88.1365560103389; Tue, 09 Apr 2013 19:15:03 -0700 (PDT) Received: from pyunyh@gmail.com (lpe4.p59-icn.cdngp.net. [114.111.62.249]) by mx.google.com with ESMTPS id f8sm4284050pbj.45.2013.04.09.19.14.59 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 09 Apr 2013 19:15:02 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 10 Apr 2013 11:14:55 +0900 From: YongHyeon PYUN Date: Wed, 10 Apr 2013 11:14:55 +0900 To: Spil Oss Subject: Re: Problems with axe(4) and checksum offloading Message-ID: <20130410021455.GB3086@michelle.cdnetworks.com> References: <20130408063548.GB1526@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Apr 2013 02:15:09 -0000 On Mon, Apr 08, 2013 at 08:45:58PM +0200, Spil Oss wrote: > Hi YongHyeon, > > output from verbose boot > > ugen3.2: at usbus3 > axe0: on usbus3 > axe0: PHYADDR 0xe0:0x10 > miibus1: on axe0 > ukphy0: PHY 16 on miibus1 > ukphy0: OUI 0x007063, model 0x0008, rev. 1 > ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, > auto-flow > ue0: on axe0 > ue0: bpf attached > ue0: Ethernet address: 00:60:6e:42:5b:53 > ue0: link state changed to UP > ue0: link state changed to DOWN > ue0: link state changed to UP AX88772B engineering sample I have still worked on latest current. Could you use a static IP rather than using DHCP and see whether that makes any difference?(Note, you have to revert your changes made to axe(4) before trying that). Also show me the output of 'ifconfig ue0' before/after running dhclient(8). > > Apart from what I originally described... > Networking does work, but not when packets pass through ipfw and nat. If I > add my ipfw rules before the divert natd rule networking works as expected, > without the SYN,ACK response packets are not accepted if I e.g. connect to > something on the axe interface. I have validated the ipfw ruleset with the > onboard realtek NIC and it then works as expected. > > # usbconfig -u 3 -a 2 dump_info > ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON (200mA) > > Kind regards, > > Spil. > > > On Mon, Apr 8, 2013 at 8:35 AM, YongHyeon PYUN wrote: > > > On Sun, Apr 07, 2013 at 09:14:16PM +0200, Spil Oss wrote: > > > Hi all, > > > > > > With checksum offloading enabled I cannot use my axe NIC (ASIX AX88772B). > > > > > > ifconfig ue0 -txcsum -rxcsum > > > will make dhclient ue0 return > > > > > > if I re-enable txcsum and rxcsum I get an immediate response from the > > dhcp > > > server. > > > > > > Tried to remove the csum features by commenting out > > > ifp->if_capabilities |= IFCAP_TXCSUM | IFCAP_RXCSUM; > > > ifp->if_hwassist = AXE_CSUM_FEATURES; > > > (lines 855 and 856 in /usr/src/sys/dev/usb/net/if_axe.c) > > > and rebuild the module. This does remove RXCSUM and TXCSUM from options > > and > > > behaves the same as disabling the features with ifconfig (i.e. does not > > > work) > > > > > > 10.0-CURRENT r248351 > > > > > > Hope someone can help me... Spil. > > > > Last time I tried, checksum offloading worked as expected. > > Would you show me the verbose dmesg output after attaching the > > axe(4) NIC? > >