[RFC v1 1/4] ptp: introduce PTP protocol library

Kumar, Rajesh rajesh3.kumar at intel.com
Tue Apr 28 18:50:29 CEST 2026


On 28-04-2026 04:31 am, Stephen Hemminger wrote:
> On Tue, 28 Apr 2026 06:31:03 +0530
> Rajesh Kumar <rajesh3.kumar at intel.com> wrote:
>
>> +		const struct rte_udp_hdr *udp =
>> +			(const struct rte_udp_hdr *)
>> +			((const uint8_t *)eth + offset);
> Use rte_pktmbuf_mtod_offset() avoid pointer math as error prone.
Fixed.


More information about the dev mailing list