Re: Re: [PATCH bpf-next] netkit: Add some ethtool ops to provide information to user

From: Feng Zhou
Date: Wed Dec 06 2023 - 01:59:39 EST


在 2023/12/4 23:22, Daniel Borkmann 写道:
Thanks, so the netkit_get_link_ksettings is optional.

Yes, netkit_get_link_ksettings really not necessary, I just added it in line with veth.

I don't quite
follow what you
mean with regards to your business logic in veth to obtain peer ifindex. What does
the script do exactly with the peer ifindex (aka /why/ is it needed), could you
elaborate some more - it's still somewhat too vague? 🙂 E.g. why it does not suffice
to look at the device type or other kind of attributes?


The scripting logic of the business colleagues should just be simple logging records, using ethtool. Then they saw that netkit has this missing, so raised this requirement, so I sent this patch, wanting to hear your opinions. If you don't think it's necessary, let the business colleagues modify it.

Thanks.