Lightweight packet timestamping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Lightweight packet timestamping
- From: Federico Parola <fede.parola@xxxxxxxxxx>
- Date: Thu, 4 Jun 2020 13:30:48 +0000
- Accept-language: it-IT, en-US
- In-reply-to: <DB7PR08MB3130C02AB04133E07146F40D9E890@DB7PR08MB3130.eurprd08.prod.outlook.com>
- References: <DB7PR08MB3130BDD01387627E7FAD775F9E890@DB7PR08MB3130.eurprd08.prod.outlook.com>,<DB7PR08MB3130C02AB04133E07146F40D9E890@DB7PR08MB3130.eurprd08.prod.outlook.com>
- Thread-index: AQHWOnHQlLnyAZiVv0mslffaZPxs+qjIcifQgAABDww=
- Thread-topic: Lightweight packet timestamping
I'm implementing a token bucket algorithm to apply rate limit to traffic and I need the timestamp of packets to update the bucket. To get this information I'm using the bpf_ktime_get_ns() helper but I've discovered it has a non negligible impact on performance. I've seen there is work in progress to make hardware timestamps available to XDP programs, but I don't know if this feature is already available. Is there a faster way to retrieve this information?
Thanks for your attention.
[Index of Archives]
[Linux Networking Development]
[Fedora Linux Users]