-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lack of timestamps in Netmap packets
There were two bugs which prevented Netmap kernel timestamps being set to FastClick packets. 1. Netmap ts was being taken from nm_desc->hdr.ts. This field is updated by netmap_user.h helper functions. FastClick, however, access Netmap rings directly, bypassing helper functions. So this field was not being updated to current time. 2. In case of HAVE_NETMAP_PACKET_POOL && HAVE_BATCH, only batch_head (the first packets of batch) was provided with ts taken from Netmap. Rest of packets had uninitialized timestamps (with zero values). Also fix signed/unsigned comparison warning.
- Loading branch information
1 parent
58dfc60
commit 6b10967
Showing
4 changed files
with
19 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,8 +72,6 @@ CLICK_DECLS | |
* | ||
*/ | ||
|
||
|
||
|
||
class FromNetmapDevice: public RXQueueDevice { | ||
|
||
public: | ||
|
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