I'm trying to bring transmission timestamp of a packet up to P4 program.
I see that I can override bmi_interface_send to get the tx timestamp. It is not a big deal as I can access to its raw socket descriptor, then by setting SO_TIMESTAMPING option to the socket I can get tx timestamp.
I was wondering whether there exists a simple way to bring this tx timestamp up to the P4 program (this timestamp will be used by the next iteration, e.g., when the P4 program processes the next packet).
Thanks in advance for any suggestion!
I'm trying to bring transmission timestamp of a packet up to P4 program.
I see that I can override
bmi_interface_sendto get the tx timestamp. It is not a big deal as I can access to its raw socket descriptor, then by settingSO_TIMESTAMPINGoption to the socket I can get tx timestamp.I was wondering whether there exists a simple way to bring this tx timestamp up to the P4 program (this timestamp will be used by the next iteration, e.g., when the P4 program processes the next packet).
Thanks in advance for any suggestion!