Skip to content

Commit

Permalink
Respect IOV limits across all methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycedowell committed Nov 26, 2024
1 parent aec970d commit eaf0cc2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/packet_writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ class UDPPacketSender : public PacketWriterMethod {
if( _max_burst_size > 0 ) {
_max_burst_size = std::min(_max_burst_size, (size_t) IOV_MAX);
} else {
// Divide by two since there is a header and a payload
_max_burst_size = IOV_MAX;
}

Expand Down Expand Up @@ -296,7 +295,6 @@ class UDPVerbsSender : public PacketWriterMethod {
if( _max_burst_size > 0 ) {
_max_burst_size = std::min(_max_burst_size, (size_t) BF_VERBS_SEND_NPKTBUF);
} else {
// Divide by two since there is a header and a payload
_max_burst_size = BF_VERBS_SEND_NPKTBUF;
}

Expand Down

0 comments on commit eaf0cc2

Please sign in to comment.