1. 19 9月, 2008 2 次提交
    • L
      mv643xx_eth: deal with unexpected ethernet header sizes · 4df89bd5
      Lennert Buytenhek 提交于
      When the IP header doesn't start 14, 18, 22 or 26 bytes into the packet
      (which are the only four cases that the hardware can deal with if asked
      to do IP checksumming on transmit), invoke the software checksum helper
      instead of letting the packet go out with a corrupt checksum inserted
      into the packet in the wrong place.
      Signed-off-by: NLennert Buytenhek <buytenh@marvell.com>
      4df89bd5
    • L
      mv643xx_eth: fix receive checksumming · 170e7108
      Lennert Buytenhek 提交于
      We have to explicitly tell the hardware to include the pseudo-header
      when doing receive checksumming, otherwise hardware checksumming will
      fail for every received packet and we'll end up setting CHECKSUM_NONE
      on every received packet.
      
      While we're at it, when skb->ip_summed is set to CHECKSUM_UNNECESSARY
      on received packets, skb->csum is supposed to be undefined, and thus
      there is no need to set it.
      Signed-off-by: NLennert Buytenhek <buytenh@marvell.com>
      170e7108
  2. 14 9月, 2008 7 次提交
  3. 05 9月, 2008 15 次提交
  4. 29 8月, 2008 9 次提交
  5. 28 8月, 2008 7 次提交