net: Remove block->checksum
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 10 Nov 2017 16:53:49 +0000 (11:53 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Nov 2017 15:46:56 +0000 (10:46 -0500)
This was used to report the checksum computed by the NIC.  However, the
rest of the stack wasn't using it for anything.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/net/ether82563.c
kern/drivers/net/etherigbe.c
kern/include/ns.h

index 3e840d7..fe307a6 100644 (file)
@@ -1253,7 +1253,6 @@ static void ckcksums(struct ctlr *ctlr, struct rd *rd, struct block *bp)
                        ctlr->tcpcs++;
                        bp->flag |= Btcpck | Budpck;
                }
-               bp->checksum = rd->checksum;
                bp->flag |= Bpktck;
        }
 }
index c6ec1fb..5f1179f 100644 (file)
@@ -1188,7 +1188,6 @@ igberproc(void* arg)
                                                ctlr->tcpcs++;
                                                bp->flag |= Btcpck|Budpck;
                                        }
-                                       bp->checksum = rd->checksum;
                                        bp->flag |= Bpktck;
                                }
                                etheriq(edev, bp, 1);
index af6367f..67a2925 100644 (file)
@@ -383,7 +383,6 @@ struct block {
        uint8_t *base;                          /* start of the buffer */
        void (*free) (struct block *);
        uint16_t flag;
-       uint16_t checksum;                      /* IP checksum of complete packet (minus media header) */
        uint16_t checksum_start;                /* off from start of block to start csum */
        uint16_t checksum_offset;               /* off from checksum_start to store csum */
        uint16_t mss;               /* TCP MSS for TSO */