1. 19 Sep, 2008 2 commits
    • Lennert Buytenhek's avatar
      mv643xx_eth: deal with unexpected ethernet header sizes · 4df89bd5
      Lennert Buytenhek authored
      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: default avatarLennert Buytenhek <buytenh@marvell.com>
      4df89bd5
    • Lennert Buytenhek's avatar
      mv643xx_eth: fix receive checksumming · 170e7108
      Lennert Buytenhek authored
      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: default avatarLennert Buytenhek <buytenh@marvell.com>
      170e7108
  2. 14 Sep, 2008 7 commits
  3. 05 Sep, 2008 15 commits
  4. 28 Aug, 2008 16 commits