Disabling GRO / GSO on Linux VM

Discussions about using Linux guests in VirtualBox.
Post Reply
m4a7z7
Posts: 2
Joined: 25. Apr 2018, 22:51

Disabling GRO / GSO on Linux VM

Post by m4a7z7 »

Hello,

I wanted to disable GRO and GSO (Generic Receive/Segmentation Offload) on a Linux VM to be able to precisely record network data. Unfortunately, I tried the following command with all of my network interfaces, and I get an error :

Code: Select all

 > ethtool -K [interface] gro off
Cannot get device udp-fragmentation-offload settings : Operation not supported
I get the same error message when I list the device features :

Code: Select all

> ethtool -k eth1
Features for eth1:
Cannot get device udp-fragmentation-offload settings: Operation not supported
rx-checksumming: off [fixed]
tx-checksumming: off
    tx-checksum-ipv4: off [fixed]
    tx-checksum-ip-generic: off [fixed]
    tx-checksum-ipv6: off [fixed]
    tx-checksum-fcoe-crc: off [fixed]
    tx-checksum-sctp: off [fixed]
scatter-gather: off
    tx-scatter-gather: off [fixed]
    tx-scatter-gather-fraglist: off [fixed]
tcp-segmentation-offload: off
    tx-tcp-segmentation: off [fixed]
    tx-tcp-ecn-segmentation: off [fixed]
    tx-tcp-mangleid-segmentation: off [fixed]
    tx-tcp6-segmentation: off [fixed]
udp-fragmentation-offload: off
generic-segmentation-offload: off [requested on]
generic-receive-offload: off
large-receive-offload: off [fixed]
rx-vlan-offload: off [fixed]
tx-vlan-offload: off [fixed]
ntuple-filters: off [fixed]
receive-hashing: off [fixed]
highdma: off [fixed]
rx-vlan-filter: off [fixed]
vlan-challenged: off [fixed]
tx-lockless: off [fixed]
netns-local: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: off [fixed]
tx-gre-csum-segmentation: off [fixed]
tx-ipxip4-segmentation: off [fixed]
tx-ipxip6-segmentation: off [fixed]
tx-udp_tnl-segmentation: off [fixed]
tx-udp_tnl-csum-segmentation: off [fixed]
tx-gso-partial: off [fixed]
tx-sctp-segmentation: off [fixed]
tx-esp-segmentation: off [fixed]
fcoe-mtu: off [fixed]
tx-nocache-copy: off
loopback: off [fixed]
rx-fcs: off [fixed]
rx-all: off [fixed]
tx-vlan-stag-hw-insert: off [fixed]
rx-vlan-stag-hw-parse: off [fixed]
rx-vlan-stag-filter: off [fixed]
l2-fwd-offload: off [fixed]
hw-tc-offload: off [fixed]
esp-hw-offload: off [fixed]
esp-tx-csum-hw-offload: off [fixed]
rx-udp_tunnel-port-offload: off [fixed]
I tried changing the network adapter type in the Virtualbox settings but that doesn't fix the problem. Does anyone know if there's a way to disable gro/gso ?

I run MacOS v10.12.6 (Sierra) with Virtualbox v5.2.8 r121009, the VM is a Kali Linux v4.15.0

Thanks a lot !
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Disabling GRO / GSO on Linux VM

Post by Martin »

Are you sure that this feature is even there?
If the virtual network adapter doesn't support it such an error message wouldn't be a surprise... ;)
m4a7z7
Posts: 2
Joined: 25. Apr 2018, 22:51

Re: Disabling GRO / GSO on Linux VM

Post by m4a7z7 »

I'm not sure, I supposed it did, but you're right that must be the reason why it doesn't work.

Thanks for your help !
Post Reply