Limit net_poll to 2 frames per iteration, pipeline=2 for both rate tests
This commit is contained in:
@@ -135,7 +135,8 @@ void net_poll(std::span<uint8_t> tx) {
|
||||
w6300::irq_pending = false;
|
||||
w6300::clear_interrupt(w6300::ik_int_all);
|
||||
static uint8_t rx_buf[1518];
|
||||
while (w6300::get_socket_recv_buf(raw_socket) > 0) {
|
||||
int budget = 2;
|
||||
while (budget-- > 0 && w6300::get_socket_recv_buf(raw_socket) > 0) {
|
||||
auto result = w6300::recv(raw_socket, std::span{rx_buf});
|
||||
if (!result) break;
|
||||
span_writer tx_writer(tx);
|
||||
|
||||
Reference in New Issue
Block a user