Changeset 9b8e04e2 in rtems


Ignore:
Timestamp:
Oct 22, 2013, 10:03:41 AM (6 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
fa12bb43
Parents:
80b9c8ac
git-author:
Daniel Hellstrom <daniel@…> (10/22/13 10:03:41)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:20)
Message:

GRETH: avoid hw generated UDP/TCP cksum generation

Hardware generated checksum UDP packets does not work for
IP fragmented UDP packets. It seems as if the BSD stack never
signals to the GRETH driver to generate or not to generate
TCP/UDP checksum for different cases. The GRETH driver never
tells the BSD stack about it capabilities either so there is
no point generating the cksums in HW when its done in SW any
way.

This patch disables hardware generated UDP and TCP checksums.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/net/greth.c

    r80b9c8ac r9b8e04e2  
    921921            /* Wrap around? */
    922922            if (dp->tx_ptr < dp->txbufs-1) {
    923                 ctrl = GRETH_TXD_ENABLE | GRETH_TXD_CS;
     923                ctrl = GRETH_TXD_ENABLE;
    924924            }else{
    925                 ctrl = GRETH_TXD_ENABLE | GRETH_TXD_CS | GRETH_TXD_WRAP;
     925                ctrl = GRETH_TXD_ENABLE | GRETH_TXD_WRAP;
    926926            }
    927927
Note: See TracChangeset for help on using the changeset viewer.