Re: [RFC PATCH 04/13] net: implement generic SOF_TIMESTAMPING_TX_* support

Patrick Ohly
2008-11-12T08:38:18Z

On Tue, 2008-11-11 at 23:15 +0000, Octavian Purdila wrote:
> I think the addition of the following bits will be of use to applications:
>
> serr = SKB_EXT_ERR(skb);
> serr->ee.ee_origin = SO_EE_ORIGIN_TXTSTAMP;
> serr->ee.ee_mac = skb->mac.raw - skb->data;
> serr->ee.ee_network = skb->nh.raw - skb->data;
> serr->ee.ee_transport = skb->h.raw - skb->data;
>
> For example, for UDP PTP we don't have to manually skip the ethernet (and take
> into account VLANs) and IP headers.

Yes, that would be useful. Will add it.

--
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.