Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UPDATE] speed_tester jumbo frames crash fix #316

Merged
merged 3 commits into from
Jan 26, 2022

Conversation

aaronmhill01
Copy link
Contributor

Summary:

Speed tester will no longer crash if you tell it to load a PCAP trace that contains jumbo frames without using the -j flag.

Usage:

This PR includes
Resolves issues
Breaking API changes
Internal API changes
Usability improvements
Bug fixes X
New functionality
New NF/onvm_mgr args
Changes to starting NFs
Dependency updates
Web stats updates

Merging notes:

  • Dependencies: None

TODO before merging :

  • PR is ready for review

Test Plan:

Started manager without -j flag and successfully ran the speed tester using several PCAP files which contained jumbo frames.

@twood02 twood02 linked an issue Nov 22, 2021 that may be closed by this pull request
@@ -334,6 +342,10 @@ nf_setup(struct onvm_nf_local_ctx *nf_local_ctx) {
if (pkt == NULL)
break;

/* Length of the packet cannot exceed preallocated storage size */
if (header.caplen > max_elt_size)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On line 341: pkt = rte_pktmbuf_alloc(pktmbuf_pool); But you continue here without freeing that packet. Perhaps move this continue statement before the allocation occurs?

aaron and others added 2 commits December 1, 2021 12:16
@aaronmhill01
Copy link
Contributor Author

Updated functionality based on Dennis and Tim's comments.

@twood02 twood02 self-requested a review January 21, 2022 01:07
@dennisafa dennisafa merged commit df35154 into sdnfv:develop Jan 26, 2022
twood02 added a commit that referenced this pull request Aug 3, 2022
Merge branch 'develop' of https://github.com/sdnfv/openNetVM into jettjacobs-docs
* 'develop' of https://github.com/sdnfv/openNetVM:
  Python Script Update (#325)
  LB Adjustments; Run without mTCP (#322)
  Fix incorrect comment (#323)
  Scaling Example NF Updates (#321)
  ONVM 21.10
  [Bug Fix] speed_tester jumbo frames crash fix (#316)
  [Bug Fix] ARP endianess fixed (#317)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

speed tester can crash if given a pcap with jumbo frames
3 participants