LinuxQuestions.org
Visit Jeremy's Blog.
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 05-14-2019, 04:28 PM   #1
ronak123
LQ Newbie
 
Registered: May 2019
Posts: 3

Rep: Reputation: Disabled
Receive active features on virtual network device


Hello,

So I have an interface eth0. On that, I created a virtual network interface if-vx (vxlan) using ip link add command. When I use ethtool -K eth0 tx off, I receive the set of features active on eth0 via __netdev_update_features() callback calling ndo_set_features() in my driver.

However, when I do the same on virtual interface (vxlan), ethtool -K if-vx tx off, I do not see a call to ndo_set_features() so my driver does not get to know if the feature is on or off. Any idea on how to retrieve the active feature bits on vxlan interface?

Any help is appreciated?

Thanks
 
Old 05-21-2019, 02:37 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,695

Rep: Reputation: 143Reputation: 143
The different interface type map to different driver.
 
Old 05-22-2019, 01:40 PM   #3
ronak123
LQ Newbie
 
Registered: May 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. Shouldn't there be any API to send relevant information (offload information) to the driver running on eth0 interface as it acts as vtep?

For example, If I disable rx checksum offload on vxlan interface (ethtool -K if-vx rx off), it means rx checksum verification should not be performed by the hardware and guest will do it. However, my driver does not get to know this offload setting change on vxlan interface.

Is there any way I can retrieve this information? These two interface should be linked somehow I guess?

Thanks,
Ronak
 
Old 05-22-2019, 02:47 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,695

Rep: Reputation: 143Reputation: 143
Does eth0 interface support checksum offload?
 
Old 05-30-2019, 04:05 PM   #5
ronak123
LQ Newbie
 
Registered: May 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Yes, it does support. But in case of encapsulation, eth0 will represent outer headers.
 
Old 06-03-2019, 04:00 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,695

Rep: Reputation: 143Reputation: 143
The physical interface support checksum offload only normally.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Can send and receive plain text mail, but can't receive on html pravada Linux - Server 6 05-20-2013 03:25 PM
[SOLVED] Can send and receive plain text mail, but can't receive on html pravada Linux - Software 1 05-17-2013 03:13 PM
How to receive SNMP TRAP from Network Device Boopathiraj Linux - Networking 10 08-13-2012 02:26 PM
[SOLVED] USB device is not claimed by any active driver for every device in Linux 2.4 jacquesdirac Linux - Hardware 3 11-12-2010 08:35 AM
How can I receive only from one network device? FabM Linux - Newbie 1 04-09-2009 05:18 PM

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

All times are GMT -5. The time now is 08:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration