From: Maxim Uvarov [mailto:[email protected]] Sent: Wednesday, March 29, 2017 10:26 AM To: Savolainen, Petri (Nokia - FI/Espoo) <[email protected]> Cc: Bill Fischofer <[email protected]>; lng-odp-forward <[email protected]> Subject: Re: [lng-odp] [API-NEXT PATCH] api: packet: add per packet checksum control
I have few questions for better understanding of usage: if check sum is 0 it will be updated or left as zero. if check sum is some wrong value (i.e. packet was modified), what is expected? if check sum is valid and this feature supported only in software, what is expected? Maxim. Current value of the checksum field does not matter. This API (and the per interface config option) controls only checksum insertion. When enabled, ODP (HW) calculates checksum (before sending packet out of the interface) and overwrites the checksum field with the new value. When disabled, ODP does not overwrite the field. -Petri
