Skip to content

Commit

Permalink
Poll and run the ENA admin queue while there is data
Browse files Browse the repository at this point in the history
  • Loading branch information
xguerin committed Nov 13, 2023
1 parent e610d4c commit da9a3e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/stack/tcpv4/Processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ Processor::process(Connection& e, const uint16_t len, const uint8_t* const data,
can_send = e.hasAvailableSegments() && e.window() > 0;
}
/*
* Otherwise, just send the ACK. This will cause the
* Otherwise, just send the ACK.
*/
else {
res = sendAck(e);
Expand Down
6 changes: 4 additions & 2 deletions src/transport/ena/Port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,11 @@ Port::~Port()
void
Port::run()
{
if (m_admin->poll(m_raw) == Status::NoDataAvailable) {
Status status;
do {
status = m_admin->poll(m_raw);
m_raw.run();
}
} while (status == Status::Ok);
}

Device::Ref
Expand Down

0 comments on commit da9a3e1

Please sign in to comment.