Based on the IETF draft Integrity of In-situ OAM Data Fields, this repository proposes two different implementations in the Linux kernel:
Options 2 and 3 are explained (as well as other possibilities) in these slides presented during IETF 119.
Note: both patches were created on top of net-next-6.8.0-rc6+.