Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: gptp: Do not handle multiple pdelay requests at once
The problem with the previous approach was that the response timestamp callback which calls net_pkt_unref could be skipped if the callback was already registered for another packet. The net_pkt_ref function was always called which led to memory leaks. This commit simply disallows handling multiple pdelay requests at once. If the timestamp callback is already registered, the received request will not be handled. Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
- Loading branch information