safchain/ethtool

Setting GRO off

schmilmo opened this issue · 1 comments

Hi,

I would like to use the library to disable GRO (generic receiver offload)
I wasn't to understand if that is possible and how to do it.

Regards,
Samuel

Should be possible through

t, _ := ethtool.NewEthtool()
_ := t.Change("enp5s0", map[string]bool{
	"rx-gro": false,
	"rx-gro-hw": false,
})

You can find a list of feature names under https://elixir.bootlin.com/linux/v5.1.9/source/net/core/ethtool.c#L61