lf-edge / eve-api

Repository for eve-api code
Apache License 2.0
0 stars 13 forks source link

Clarification on the MTU propagation from host to guest #58

Closed milan-zededa closed 5 months ago

milan-zededa commented 5 months ago

Virtio interfaces do actually allow to propagate MTU value from the host to the guest.

milan-zededa commented 5 months ago

LGTM. Is there some place where folks can determine whether VIRTIO_ NET_F_MTU is supported? ethtool? Something else?

http://blog.vmsplice.net/2020/05/how-to-check-virtio-feature-bits-inside.html

Given that

#define VIRTIO_NET_F_MTU 3

We can check with:

# the position argument of "cat" starts with 1, hence we have to do +1
cat /sys/class/net/enp1s0/device/features | cut -c 4

Maybe I can link this article from the comment?

milan-zededa commented 5 months ago

@eriknordmark I will be submitting detailed documentation on the MTU topic for the EVE repo and will describe how to check VIRTIO_NET_F_MTU and other things. I think that I would prefer to avoid making the comment in the protofile any longer with some details and adding links that may go broke. Users do not really read comments in this repo anyway but look into the EVE documentation. WDYT?

eriknordmark commented 5 months ago

Ok