LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-23-2020, 12:52 PM   #1
ronak123
LQ Newbie
 
Registered: May 2019
Posts: 5

Rep: Reputation: Disabled
Outer checksum offload (Vxlan/Geneve)


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
 
Old 01-29-2020, 02:55 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,860

Rep: Reputation: 162Reputation: 162
You can use ethtool to toggle offloading feature.
 
Old 01-29-2020, 03:05 PM   #3
ronak123
LQ Newbie
 
Registered: May 2019
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for your reply. However, what you suggested relates to how we can enable/disable offloading feature. Even if we enable the offloading feature, user can specify if udp csum is required or not in outer header when vxlan interface is created. If vxlan interface is created with noudpcsum option, then the outer header wil have udp csum as 0.

So, my question is, how do we know if outer checksum is 0 or offload via skb or any other api?

Thanks
 
Old 01-30-2020, 02:23 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,860

Rep: Reputation: 162Reputation: 162
If so, you might have to look into kernel netfilter hook and NIC driver.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i know checksum of BIOS and verify checksum? liks Linux - Security 1 01-19-2016 02:15 PM
Disable checksum offload alopez@ac.upc.edu Linux - Networking 3 07-18-2012 03:50 PM
Checksum 4 Slackware download - what type of checksum is this. Earnest Lux Linux - Newbie 1 02-02-2008 08:02 PM
TCP/IP Offload reschaedl Linux - Networking 0 01-10-2002 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration