Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2013 20:45:58 +0200
From:      Spil Oss <spil.oss@gmail.com>
To:        pyunyh@gmail.com
Cc:        current <freebsd-current@freebsd.org>
Subject:   Re: Problems with axe(4) and checksum offloading
Message-ID:  <CAEJyAvNjvHAGU4dErzAn3qTfX4hiqVSGAuH8j4OJ_3g5hmdu_Q@mail.gmail.com>
In-Reply-To: <20130408063548.GB1526@michelle.cdnetworks.com>
References:  <CAEJyAvM%2B8yKRgGwxoJrMnafTy%2B3dqAc=cFVvruXk9-aONgEGEQ@mail.gmail.com> <20130408063548.GB1526@michelle.cdnetworks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi YongHyeon,

output from verbose boot

ugen3.2: <vendor 0x0b95> at usbus3
axe0: <vendor 0x0b95 product 0x772b, rev 2.00/0.01, addr 2> on usbus3
axe0: PHYADDR 0xe0:0x10
miibus1: <MII bus> on axe0
ukphy0: <Generic IEEE 802.3u media interface> PHY 16 on miibus1
ukphy0: OUI 0x007063, model 0x0008, rev. 1
ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto,
auto-flow
ue0: <USB Ethernet> 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: <product 0x772b vendor 0x0b95> 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 <pyunyh@gmail.com> 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?
>



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