cvs commit: src/sys/dev/netif/re if_re.c if_rereg.h if_revar.h

Sepherosa Ziehau sephe at
Thu Oct 16 05:31:19 PDT 2008

sephe       2008/10/16 05:29:13 PDT

DragonFly src repository

  Modified files:
    sys/dev/netif/re     if_re.c if_rereg.h if_revar.h 
  Add hardware csum offload support for MAC style 2 chips, which include
  8102E, 8102EL, 8168C, 8168CP and 8168D.
  Obtained-from: RealTek r8101-1.009.00 r8168-8.008.00
  Add RE_C_AUTOPAD capability to indicate hardware could correctly pad
  short ether frames.  Turn it on for newer version of 8168B (0x38000000
  and 0xb8000000) and MAC style 2 chips; manually padding short UDP packets
  for newer version 8168B will result in incorrect UDP csum, while manually
  padding short ICMP packets for MAC style 2 chips will result in both
  incorrect IP header csum and incorrect IP length (o_O)
  Revision  Changes    Path
  1.83      +103 -51   src/sys/dev/netif/re/if_re.c
  1.23      +11 -6     src/sys/dev/netif/re/if_rereg.h
  1.25      +1 -0      src/sys/dev/netif/re/if_revar.h

More information about the Commits mailing list