From owner-freebsd-current@FreeBSD.ORG Mon Apr 8 18:45:59 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 42CA1F6E for ; Mon, 8 Apr 2013 18:45:59 +0000 (UTC) (envelope-from spil.oss@gmail.com) Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [IPv6:2607:f8b0:4001:c03::232]) by mx1.freebsd.org (Postfix) with ESMTP id 1A36C104 for ; Mon, 8 Apr 2013 18:45:59 +0000 (UTC) Received: by mail-ie0-f178.google.com with SMTP id bn7so7567785ieb.9 for ; Mon, 08 Apr 2013 11:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:reply-to:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=8Tm/ep06MV0EiHXbA7gLoQ0k9XvAJKSmVd0fSwLGU0Y=; b=FX9glkqnOvYxN4Ar261KZ4+Bl8o0gF1+TFh5NMekpkvluCq+znn7OvkT9lcYtgGkzM AjQraAgH0IXNDtIxDA7pKrVq7wS+umfb1DJKiKVBsaQ+Ayl7gwEIUiItJ3mw6g9zak2J OOH4e1kORqcTpF2jMVCyRogtPOyTUEFPiKCLbzfk4nEjDxnLzWZ7gvs92Dn8zkPxh6Xe QNcYb3uUSDDHSOHoxDeam4YLUu/jeZGWaKDPE+ijLHBhEeu6Irh+t/Kdd+7ylxrX5F8z YTsXy85KO7bqNBf9YUk9L//dvK4xiWSR+E2zSq+DXjb2Nmg++R0ezinVv3RVb7b62EJp rWHQ== MIME-Version: 1.0 X-Received: by 10.50.140.73 with SMTP id re9mr7839104igb.59.1365446758699; Mon, 08 Apr 2013 11:45:58 -0700 (PDT) Received: by 10.42.189.4 with HTTP; Mon, 8 Apr 2013 11:45:58 -0700 (PDT) In-Reply-To: <20130408063548.GB1526@michelle.cdnetworks.com> References: <20130408063548.GB1526@michelle.cdnetworks.com> Date: Mon, 8 Apr 2013 20:45:58 +0200 Message-ID: Subject: Re: Problems with axe(4) and checksum offloading From: Spil Oss To: pyunyh@gmail.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: spil.oss@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: Mon, 08 Apr 2013 18:45:59 -0000 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 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? >