Skip to content

Commit

Permalink
REMOVE: update virtualisers for vswitch
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Brown <alexandermichaelbrown@outlook.com>
  • Loading branch information
alexandermbrown committed Aug 6, 2024
1 parent 6e446ff commit c6689d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion network/components/virt_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ void rx_return(void)
//
// [1]: https://developer.arm.com/documentation/ddi0595/2021-06/AArch64-Instructions/DC-IVAC--Data-or-unified-Cache-line-Invalidate-by-VA-to-PoC
cache_clean_and_invalidate(buffer_vaddr, buffer_vaddr + buffer.len);
int client = get_mac_addr_match((struct ethernet_header *) buffer_vaddr);
// int client = get_mac_addr_match((struct ethernet_header *) buffer_vaddr);

// Layer 2 forwarding now happens in the vswitch
int client = 0;

if (client == BROADCAST_ID) {
int ref_index = buffer.io_or_offset / NET_BUFFER_SIZE;
assert(buffer_refs[ref_index] == 0);
Expand Down
2 changes: 1 addition & 1 deletion network/components/virt_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void init(void)

/* CDTODO: Can we make this system agnostic? */
state.buffer_region_paddrs[0] = buffer_data_region_cli0_paddr;
state.buffer_region_paddrs[1] = buffer_data_region_cli1_paddr;
// state.buffer_region_paddrs[1] = buffer_data_region_cli1_paddr;

tx_provide();
}

0 comments on commit c6689d7

Please sign in to comment.