Skip to content

Commit

Permalink
Drop frames without corresponding read requests to avoid clogging up …
Browse files Browse the repository at this point in the history
…buffers.
  • Loading branch information
agehall authored and niklasekstrom committed Jul 22, 2021
1 parent b21d1c5 commit 41bafca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Software/ethernet/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ static void complete_read_reqs()
if (ios2)
{
copy_from_bd_and_reply(ios2, bd);

Remove((struct Node *)bd);
AddTail(&et_rbuf_free_list, (struct Node *)bd);
}

Remove((struct Node *)bd);
AddTail(&et_rbuf_free_list, (struct Node *)bd);
}
Permit();
}
Expand Down

0 comments on commit 41bafca

Please sign in to comment.