Re: Problem using ng_ether

2002-06-18 Thread John Polstra
In article <[EMAIL PROTECTED]>, Sebastien Petit <[EMAIL PROTECTED]> wrote: > Ok, I think that I've found the problem, this patch was not applied in > RELENG_4_5 branch and is just available on RELENG_4 (so FreeBSD-4.6) > Effectlivly, my running kernel was not actually built from those sources. S

Re: Problem using ng_ether

2002-06-18 Thread Sebastien Petit
On Tuesday 18 June 2002 05:54, you wrote: > In article <001f01c21493$b0612620$010110ac@SPEWIN>, > > Sebastien Petit <[EMAIL PROTECTED]> wrote: > > Apparently, my kernel contains the fix already: > > [spe@artik /usr/src/sys/netgraph]$ grep "if_hwassist" ng_ether.c > > priv->hwassist = ifp->

Re: Problem using ng_ether

2002-06-15 Thread Sebastien Petit
Apparently, my kernel contains the fix already: [spe@artik /usr/src/sys/netgraph]$ grep "if_hwassist" ng_ether.c priv->hwassist = ifp->if_hwassist; priv->ifp->if_hwassist = 0; priv->ifp->if_hwassist = priv->hwassist; /* restore h/w csum */ So, Why I've pro

Re: Problem using ng_ether

2002-06-15 Thread John Polstra
In article <001901c21456$3e08c3e0$010110ac@SPEWIN>, Sebastien Petit <[EMAIL PROTECTED]> wrote: > I'm using actually FreeBSD-4.5-RELEASE-p5, This kernel doesn't have the > patch ? I don't know, but you can find out pretty easily. Run this command: grep if_hwassist /sys/netgraph/ng_ether.c I

Re: Problem using ng_ether

2002-06-15 Thread Sebastien Petit
I'm using actually FreeBSD-4.5-RELEASE-p5, This kernel doesn't have the patch ? Sebastien. -- [EMAIL PROTECTED] > In article <[EMAIL PROTECTED]>, > Julian Elischer <[EMAIL PROTECTED]> wrote: > > I guess we need to figure out a way make the activation of > > the netgraph hooks automatically disa

Re: Problem using ng_ether

2002-06-14 Thread John Polstra
In article <[EMAIL PROTECTED]>, Julian Elischer <[EMAIL PROTECTED]> wrote: > I guess we need to figure out a way make the activation of > the netgraph hooks automatically disable H/W checksumming by default. Hmm, it looks like Archie already did that in February, in ng_ether.c revisions 1.22 (-c

Re: Problem using ng_ether

2002-06-14 Thread Julian Elischer
On Fri, 14 Jun 2002, John Polstra wrote: > > I'm not Julian or Archie, but I think I know what the problem is. > The xl interface supports hardware checksum offloading, while the rl > interface does not. When checksum offloading is used, the NIC itself > checks the checksums of received packe

Re: Problem using ng_ether

2002-06-14 Thread John Polstra
In article <[EMAIL PROTECTED]>, Sebastien Petit <[EMAIL PROTECTED]> wrote: > > I've a problem with ng_ether and xl0 driver, when I connect upper <-> lower > directly, packets have ip sum to 0 and a wrong tcp and udp cksum. I try to > use my test code on rl0 driver, and it work fine. > Julian o

Problem using ng_ether

2002-06-14 Thread Sebastien Petit
Hi, I've a problem with ng_ether and xl0 driver, when I connect upper <-> lower directly, packets have ip sum to 0 and a wrong tcp and udp cksum. I try to use my test code on rl0 driver, and it work fine. Julian or Archie, can you say me if I must recompute ip/tcp/udp checksum for all packets