Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Nguyen <[email protected]>
  • Loading branch information
dreamliner787-9 committed Nov 6, 2024
1 parent 2c97266 commit 08d8235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion tools/linux/net/board/odroidc4/net_driver_init
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ echo "ethtool -K $NET_INF tx off rx off" && \
ethtool -K "$NET_INF" tx off rx off && \

chmod +x /root/uio_net_driver && /root/uio_net_driver "$NET_INF"

4 changes: 2 additions & 2 deletions tools/linux/uio_drivers/net/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void tx_process(void)
bool tx_data_paddr_found = false;
for (int i = 0; i < NUM_NETWORK_CLIENTS; i++) {
if (dma_tx_addr >= vmm_info_passing->tx_paddrs[i] &&
dma_tx_addr < (vmm_info_passing->tx_paddrs[i] + NET_DATA_REGION_BYTES)) {
dma_tx_addr < (vmm_info_passing->tx_paddrs[i] + NET_DATA_REGION_BYTES)) {

tx_data_offset = dma_tx_addr - vmm_info_passing->tx_paddrs[i];
tx_client = i;
Expand All @@ -221,7 +221,7 @@ void tx_process(void)
sa.sll_ifindex = ifr.ifr_ifindex;
sa.sll_halen = ETH_ALEN;

int sent_bytes = sendto(sock_fd, tx_data, tx_buffer.len, 0, (struct sockaddr*)&sa, sizeof(sa));;
int sent_bytes = sendto(sock_fd, tx_data, tx_buffer.len, 0, (struct sockaddr *)&sa, sizeof(sa));
if (sent_bytes != tx_buffer.len) {
perror("tx_process(): sendto()");
LOG_NET_ERR("TX sent %d != expected %d. qutting.\n", sent_bytes, tx_buffer.len);
Expand Down

0 comments on commit 08d8235

Please sign in to comment.