Skip to content

Commit

Permalink
[Bug Fix] MAC Address Fix
Browse files Browse the repository at this point in the history
We now fake the mac address where real MAC addresses
are not necessary. 

Commit log:

* mac address fix

* undoing load balancer change

* adding print statement

* spacing fix

* print statement for speed tester
  • Loading branch information
catherinemeadows authored Jun 23, 2020
1 parent bdf4e22 commit cc2c0bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/load_generator/load_generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ nf_setup(struct onvm_nf_local_ctx *nf_local_ctx) {
}

if (onvm_get_macaddr(0, &ehdr->s_addr) == -1) {
rte_exit(EXIT_FAILURE, "Failed to obtain MAC address\n");
RTE_LOG(INFO, APP, "Using fake MAC address\n");
onvm_get_fake_macaddr(&ehdr->s_addr);
}
for (j = 0; j < ETHER_ADDR_LEN; ++j) {
ehdr->d_addr.addr_bytes[j] = d_addr_bytes[j];
Expand Down
1 change: 1 addition & 0 deletions examples/speed_tester/speed_tester.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ nf_setup(struct onvm_nf_local_ctx *nf_local_ctx) {
*using input string for dest addr
*/
if (onvm_get_macaddr(0, &ehdr->s_addr) == -1) {
RTE_LOG(INFO, APP, "Using fake MAC address\n");
onvm_get_fake_macaddr(&ehdr->s_addr);
}
for (j = 0; j < ETHER_ADDR_LEN; ++j) {
Expand Down

0 comments on commit cc2c0bf

Please sign in to comment.