From: "Michael S. Tsirkin" <m...@redhat.com> Date: Thu, 20 Dec 2018 17:34:23 -0500
> On Thu, Dec 20, 2018 at 05:14:54PM -0500, Willem de Bruijn wrote: >> From: Willem de Bruijn <will...@google.com> >> >> Virtio-net devices negotiate LRO support with the host. >> Display the initially negotiated state with ethtool -k. >> >> Also allow configuring it with ethtool -K, reusing the existing >> virtnet_set_guest_offloads helper that configures LRO for XDP. >> This is conditional on VIRTIO_NET_F_CTRL_GUEST_OFFLOADS. >> >> Virtio-net negotiates TSO4 and TSO6 separately, but ethtool does not >> distinguish between the two. Display LRO as on only if any offload >> is active. >> >> RTNL is held while calling virtnet_set_features, same as on the path >> from virtnet_xdp_set. >> >> Changes v1 -> v2 >> - allow ethtool config (-K) only if VIRTIO_NET_F_CTRL_GUEST_OFFLOADS >> - show LRO as enabled if any LRO variant is enabled >> - do not allow configuration while XDP is active >> - differentiate current features from the capable set, to restore >> on XDP down only those features that were active on XDP up >> - move test out of VIRTIO_NET_F_CSUM/TSO branch, which is tx only > > This part shouldn't be in the commit log, right? Should be after "---". As Willem stated, I really like to see the changelog in the commit message proper. It is just my taste, because I have on countless times relied on that information when reading over old changes. And I know it helps other people too. >> Signed-off-by: Willem de Bruijn <will...@google.com> > > Acked-by: Michael S. Tsirkin <m...@redhat.com> Applied, thanks for reviewing.