forked from scionproto/scion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
brload: fix premature socket closure (scionproto#4591)
Brload borrows the file descriptor from a af_packet.TPacket structure in order to use it with sendmmsg (not available via TPacket). In the process it left the original TPacket, only used on the receiving side, exposed to garbage collection, resulting in the premature closure of the socket. Fixed it by keeping a reference to TPacket on the sending side. In passing: * increase the benchmark packet size to 1500 bytes, to show bandwidth (~10Gb/s) with normal frames. * display brload's output to help in diagnosing issues. Fixes scionproto#4590
- Loading branch information
1 parent
0e19e83
commit 261f66c
Showing
4 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters