LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Receive active features on virtual network device (https://www.linuxquestions.org/questions/linux-networking-3/receive-active-features-on-virtual-network-device-4175653903/)

ronak123 05-14-2019 04:28 PM

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

nini09 05-21-2019 02:37 PM

The different interface type map to different driver.

ronak123 05-22-2019 01:40 PM

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

nini09 05-22-2019 02:47 PM

Does eth0 interface support checksum offload?

ronak123 05-30-2019 04:05 PM

Yes, it does support. But in case of encapsulation, eth0 will represent outer headers.

nini09 06-03-2019 04:00 PM

The physical interface support checksum offload only normally.


All times are GMT -5. The time now is 06:45 PM.