Skip to content

speed tester can crash if given a pcap with jumbo frames #314

@twood02

Description

@twood02

Bug Report

Current Behavior
If you forget to start the manager with jumbo frame support (-j), then speed tester will crash if you tell it to load a PCAP trace that contains jumbo frames.

Expected behavior/code
Rather than segfault, we should report an error if the size of a packet is larger than the mbuf size.

Steps to reproduce
Start the manager as normal, run speed tester with a pcap file with jumbo frames.

Possible Solution
When going through the while loop that allocates packets and uses rte_memcpy to copy the data from the PCAP, we should check the size of objects in pktmbuf_pool. This is a struct rte_mempool which has an elt_size field that we can check for the size of each object: https://doc.dpdk.org/api/structrte__mempool.html#ad61e210d2df01bf9c91230fee6a8cf21

Metadata

Metadata

Assignees

Labels

bug 🐛good first issueSimple issues for new ONVM developers to help with!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions