Date: Thu, 30 Dec 2010 16:56:28 -0800 From: Pyun YongHyeon <pyunyh@gmail.com> To: "Sreekanth M." <kanthms@netlogicmicro.com> Cc: freebsd-net@freebsd.org Subject: Re: msk driver rxcsum issue Message-ID: <20101231005628.GH16411@michelle.cdnetworks.com> In-Reply-To: <9F4F5E1D3FF7D94388F341BE8819BA3D9B553B@orion8.netlogicmicro.com> References: <9F4F5E1D3FF7D94388F341BE8819BA3D9B553B@orion8.netlogicmicro.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Dec 29, 2010 at 12:35:51AM -0800, Sreekanth M. wrote: > Hi, > > > > I am Sreekanth from Netlogic microsystems. > > > > I am having an issue with msk driver. > > It is related to rxcsum. > > In freebsd 9, rxcsum is enabled in default for the device I am using on > XLS MIPS board. > > >From hardware id it is known that chip id is: CHIP_ID_YUKON_EC. > > > > Though I am able to ping to this port, ssh (TCP) is not working. > > > > If I disable the rxcsum through the command > > "Ifconfig msk0 -rxcsum" > > It works. i.e ssh command works fine. > > Would you try attached patch and let me know how it goes on MIPS? --NzB8fVQJ5HfG6fxh Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="msk.csum.diff" Index: sys/dev/msk/if_msk.c =================================================================== --- sys/dev/msk/if_msk.c (revision 216827) +++ sys/dev/msk/if_msk.c (working copy) @@ -3070,7 +3070,7 @@ default: return; } - csum = ntohs(sc_if->msk_csum & 0xFFFF); + csum = bswap16(sc_if->msk_csum & 0xFFFF); /* Checksum fixup for IP options. */ len = hlen - sizeof(struct ip); if (len > 0) { --NzB8fVQJ5HfG6fxh--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101231005628.GH16411>