forked from sdnfv/openNetVM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bug Fix] Add Check for Validating Ports
This fixes the invalid port print error message that would occur when an NF attempted to use retrieve the mac address of a port that wasn't bound to DPDK. Developers can now retrieve a fake mac addr for testing purposes or a real mac address in case the request port is bound. Commit log: * Add check for invalid port * Update bound ports detection * Format code * Conform with bash linter * Add onvm_macaddr_get * Remove redundant warning * Update with call to onvm_macaddr_get * Update examples/load_balancer/load_balancer.c * Update onvm_macaddr_get macro to function * Update onvm_macaddr_get usage * Add onvm_get_fake_macaddr * Update onvm_get_macaddr usage * Seperate onvm_get_macaddr and onvm_get_fake_macaddr * Update examples/speed_tester/speed_tester.c * Update style * Try to get real MAC address before using a fake * Remove redundant else statement
- Loading branch information
Showing
6 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters