<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">This is what I was trying to show in that image.<br></div><div dir="ltr">root@vm2-Standard-PC-i440FX-PIIX-1996:/home/vm2# ethtool -k ens3<br>Features for ens3:<br>rx-checksumming: on [fixed]<br>tx-checksumming: off<br>    tx-checksum-ipv4: off [fixed]<br>    tx-checksum-ip-generic: off [fixed]<br>    tx-checksum-ipv6: off [fixed]<br>    tx-checksum-fcoe-crc: off [fixed]<br>    tx-checksum-sctp: off [fixed]<br>scatter-gather: off<br>    tx-scatter-gather: off [fixed]<br>    tx-scatter-gather-fraglist: off [fixed]<br>tcp-segmentation-offload: off<br>    tx-tcp-segmentation: off [fixed]<br>    tx-tcp-ecn-segmentation: off [fixed]<br>    tx-tcp6-segmentation: off [fixed]<br>udp-fragmentation-offload: off [fixed]<br>generic-segmentation-offload: off [requested on]<br>generic-receive-offload: on<br>large-receive-offload: off [fixed]<br>rx-vlan-offload: off [fixed]<br>tx-vlan-offload: off [fixed]<br>ntuple-filters: off [fixed]<br>receive-hashing: off [fixed]<br>highdma: on [fixed]<br>rx-vlan-filter: on [fixed]<br>vlan-challenged: off [fixed]<br>tx-lockless: off [fixed]<br>netns-local: off [fixed]<br>tx-gso-robust: off [fixed]<br>tx-fcoe-segmentation: off [fixed]<br>tx-gre-segmentation: off [fixed]<br>tx-ipip-segmentation: off [fixed]<br>tx-sit-segmentation: off [fixed]<br>tx-udp_tnl-segmentation: off [fixed]<br>fcoe-mtu: off [fixed]<br>tx-nocache-copy: off<br>loopback: off [fixed]<br>rx-fcs: off [fixed]<br>rx-all: off [fixed]<br>tx-vlan-stag-hw-insert: off [fixed]<br>rx-vlan-stag-hw-parse: off [fixed]<br>rx-vlan-stag-filter: off [fixed]<br>l2-fwd-offload: off [fixed]<br>busy-poll: on [fixed]<br>hw-tc-offload: off [fixed]<br>root@vm2-Standard-PC-i440FX-PIIX-1996:/home/vm2# ethtool -K ens3 sg on tx on tso on gso on<br>Cannot change tx-checksumming<br>Cannot change scatter-gather<br>Cannot change tcp-segmentation-offload<br>Could not change any device features<br>root@vm2-Standard-PC-i440FX-PIIX-1996:/home/vm2#<br><br></div><div> I have changed my VM domain XML file to:<br><div><interface type='vhostuser'></div><div>      <mac address='52:54:00:e0:07:94'/></div><div>      <source type='unix' path='/usr/local/var/run/openvswitch/vhost-user2' mode='client'/></div><div>      <model type='virtio'/></div><div>      <driver name='vhost' queues='6'></div><div>        <host csum='on' gso='on' tso4='on' tso6='on' ecn='on' ufo='on' mrg_rxbuf='on'/></div><div>        <guest csum='on' tso4='on' tso6='on' ecn='on' ufo='on'/></div><div>      </driver></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/></div><div>    </interface></div></div><div><br></div><div>Still, I get the same error. I want to get TSO feature in this DPDK vhost user port. Unable to enable it.</div></div></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Fri, May 3, 2019 at 6:29 PM Michal Privoznik <<a href="mailto:mprivozn@redhat.com" target="_blank">mprivozn@redhat.com</a>> wrote:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">On 5/3/19 10:19 AM, Harsh Gondaliya wrote:<br>
> In my Linux VM, I am unable to change scatter-gather / tx-checksumming /<br>
> TCP-segmentation offload features by ethtool command. I am using virtio nic<br>
> with vhostuser port backend.<br>
> It shows me an error:<br>
> Cannot change tx-checksumming<br>
> Cannot change scatter-gather<br>
> Cannot change tcp-segmentation offload<br>
> Could not change any device features<br>
<br>
You need to enable those in domain XML:<br>
<br>
<a rel="noreferrer" href="https://libvirt.org/formatdomain.html#elementsDriverBackendOptions" target="_blank">https://libvirt.org/formatdomain.html#elementsDriverBackendOptions</a><br>
<br>
> <br>
> Ony running command ethtool -k ens3, I get the following:<br>
> [image: image.png]<br>
<br>
Oh¸ it's way better to post this as a text rather than image. Some of us <br>
use text clients to read e-mails.<br>
<br>
Michal<br>
</blockquote></div>