diff options
author | Jere Leppänen <jere.leppanen@nokia.com> | 2022-05-03 12:04:01 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-05-27 12:55:40 +0300 |
commit | cc4d96591e172b4b02799f70e5b602c07aa411dd (patch) | |
tree | 9c4b530c1e1f8a2dd668412106e7582cc0b5224d /platform/linux-generic/pktio/pcap.c | |
parent | 947128a95730a3a66924e873b9854aaf84d634eb (diff) |
linux-gen: pktio: remove struct pktio_entry::in_chksums
pktio_entry::in_chksums is just a copy of information in pktin
config. Remove it, and instead use pktin config directly.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'platform/linux-generic/pktio/pcap.c')
-rw-r--r-- | platform/linux-generic/pktio/pcap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/linux-generic/pktio/pcap.c b/platform/linux-generic/pktio/pcap.c index edb3194ae..2de70dd1f 100644 --- a/platform/linux-generic/pktio/pcap.c +++ b/platform/linux-generic/pktio/pcap.c @@ -251,7 +251,6 @@ static int pcapif_recv_pkt(pktio_entry_t *pktio_entry, int index ODP_UNUSED, int packets = 0, errors = 0; uint32_t octets = 0; uint16_t frame_offset = pktio_entry->s.pktin_frame_offset; - const odp_proto_chksums_t chksums = pktio_entry->s.in_chksums; const odp_proto_layer_t layer = pktio_entry->s.parse_layer; const odp_pktin_config_opt_t opt = pktio_entry->s.config.pktin; @@ -297,8 +296,7 @@ static int pcapif_recv_pkt(pktio_entry_t *pktio_entry, int index ODP_UNUSED, if (layer) { ret = _odp_packet_parse_common(pkt_hdr, data, pkt_len, - pkt_len, layer, chksums, - opt); + pkt_len, layer, opt); if (ret) errors++; |