diff options
author | Bogdan Pricope <bogdan.pricope@linaro.org> | 2018-01-16 17:07:54 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2018-02-16 22:55:47 +0300 |
commit | e7823af35b340fed70ed5f423f7d04c7d5c62b38 (patch) | |
tree | d71c7bd0ea3af02ba845a8c43015394b5c74dd9b /example | |
parent | 9ee8609b86639606217d2f78c52f28e3fe08c782 (diff) |
example: generator: remove useless csum checks
Remove useless csum checks: packets are dropped at platform level
if have csum errors.
Signed-off-by: Bogdan Pricope <bogdan.pricope@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example')
-rw-r--r-- | example/generator/odp_generator.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 440b6b287..d31b68513 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -824,21 +824,12 @@ static void process_pkts(int thr, thread_args_t *thr_args, odp_packet_t pkt_tbl[], unsigned len) { odp_packet_t pkt; - odp_packet_chksum_status_t csum_status; uint32_t left, offset, i; odph_ipv4hdr_t *ip; for (i = 0; i < len; ++i) { pkt = pkt_tbl[i]; - csum_status = odp_packet_l3_chksum_status(pkt); - if (csum_status == ODP_PACKET_CHKSUM_BAD) - printf("L3 checksum error detected.\n"); - - csum_status = odp_packet_l4_chksum_status(pkt); - if (csum_status == ODP_PACKET_CHKSUM_BAD) - printf("L4 checksum error detected.\n"); - /* Drop packets with errors */ if (odp_unlikely(odp_packet_has_error(pkt))) continue; |