Outer checksum offload (Vxlan/Geneve)
by ronak123 from LinuxQuestions.org on (#4YB71)
Hello,
With UDP tunnel segmentation offload feature, it is possible to send large (TSO) packets encapsulated by either Vxlan or Geneve. With such udp encapsulation, the outer checksum can either be 0 or offloaded to the nic to calculate (i.e. pseudo checksum populated).
My question - Is there any field in skb or any api which can let the nic know if the outer checksum is offloaded or not? We can always parse the header to udp and then check if its 0 or not, but I feel this is some sort of hack. So, I wanted to know if there is any API in linux stack through which I can get to know if the outer checksum is offloaded or not?
Any help is appreciated.
Thanks


With UDP tunnel segmentation offload feature, it is possible to send large (TSO) packets encapsulated by either Vxlan or Geneve. With such udp encapsulation, the outer checksum can either be 0 or offloaded to the nic to calculate (i.e. pseudo checksum populated).
My question - Is there any field in skb or any api which can let the nic know if the outer checksum is offloaded or not? We can always parse the header to udp and then check if its 0 or not, but I feel this is some sort of hack. So, I wanted to know if there is any API in linux stack through which I can get to know if the outer checksum is offloaded or not?
Any help is appreciated.
Thanks