hw csum and htons?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

sorry if it already has been answered somewhere, but I did not find
any clarifying reference to it...

I patched the sunhme driver to work with my shiny HappyMeal-PCI card
on x86, and apart from that it does no autodetection of card type as
I did not understand the prom-code, I got these error messages:

Aug  9 15:59:00 till kernel: hw tcp v4 csum failed
Aug  9 15:59:03 till kernel: udp v4 hw csum failure.

I found the htons conversion in acenic.c, and included the htons in
the sunhme driver to convert the hw-csum, and it works without further
errors. As this conversion is missing in (almost) all other drivers,
is this something not yet really considered, or is there some switch
to tell the ip layer which bytesex it should assume, or are the other
cards simply smart enough to do the conversion themselves?

Thanks,
Wolfgang

P.S.: If someone has ideas on how to implement auto-detection of card type,
      (based on prom information?), perhaps one could make the driver
      fully functional also on other architectures than sparc. Unfortunately,
      I only own this single hme card, so can not do much testing...

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux