On Sat, Oct 15, 2011 at 06:08:50PM +0800, Samuel Kidman wrote:
> Hello
> 
> I have just installed OpenBSD on a hobby server. All is going well
> except I have hit a pretty major stumbling block in that I
> can't get my network configuration working. I have assigned a static
> IPv4 address to the server, and I tried pinging my
> desktop computer. I opened up a packet sniffer on my desktop and I
> can see the packets coming in from the server,
> however the IP checksums are all set to 0. I read in the release
> notes that OpenBSD will set the checksum to zero before
> passing the packet to hardware to perform the checksum operation.
> This obviously isn't working on my system, so I was
> wondering how to get it working, or how to just get it done in software?
> 
> I am using the re (realtek ethernet) driver.
> 
> Regards, Sam

Yes, re(4) has csum offloading:
        
hwfeatures=8037<CSUM_IPv4,CSUM_TCPv4,CSUM_UDPv4,VLAN_MTU,VLAN_HWTAGGING,WOL>

Are you running current ?
Can you paste a dmesg ?

There was a bug in 4.8 I believe, maybe it snapped into 4.9, I can't
remember. 

The thing is you can't enable checksumming in software, and you
shouldn't, if you're re(4) for some reason can't do offload
checksumming, we should be able to detect and disable. 

By now we enable hw checksumming for all re(4):
sys/dev/ic/re.c:1133
        ifp->if_capabilities = IFCAP_VLAN_MTU | IFCAP_CSUM_IPv4 |
                               IFCAP_CSUM_TCPv4 | IFCAP_CSUM_UDPv4;

Reply via email to