diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-04-29 14:43:33 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-05-25 10:57:59 +0300 |
commit | 2fadc2d629abc51c81b2beaa52905e33842f1cb3 (patch) | |
tree | c4faa3cedf4931a29f18f7a738a6311487da349d /platform/linux-dpdk | |
parent | f0ce66a1eb1f7ca067827d9902c38d04d01ed4d1 (diff) |
Port 43e4ead4c "linux-gen: drop error packets according to pktin configuration"
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'platform/linux-dpdk')
-rw-r--r-- | platform/linux-dpdk/odp_packet.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/linux-dpdk/odp_packet.c b/platform/linux-dpdk/odp_packet.c index c1fad7256..e26f63ffc 100644 --- a/platform/linux-dpdk/odp_packet.c +++ b/platform/linux-dpdk/odp_packet.c @@ -1562,6 +1562,7 @@ int odp_packet_parse(odp_packet_t pkt, uint32_t offset, uint64_t l4_part_sum = 0; const uint32_t min_seglen = PARSE_ETH_BYTES + PARSE_L3_L4_BYTES; uint8_t buf[min_seglen]; + odp_pktin_config_opt_t opt; if (proto == ODP_PROTO_NONE || layer == ODP_PROTO_LAYER_NONE) return -1; @@ -1601,10 +1602,12 @@ int odp_packet_parse(odp_packet_t pkt, uint32_t offset, ethtype = 0; /* Invalid */ } + opt.all_bits = 0; + ret = _odp_packet_parse_common_l3_l4(&pkt_hdr->p, data, offset, packet_len, seg_len, layer, ethtype, param->chksums, - &l4_part_sum); + &l4_part_sum, opt); if (ret) return -1; |