Re: [PATCH net-next RFC] virtio_net: ethtool tx napi configuration

2018-09-13 Thread Willem de Bruijn
> > +static u32 virtnet_get_priv_flags(struct net_device *dev) > > +{ > > + struct virtnet_info *vi = netdev_priv(dev); > > + int priv_flags = 0; > > + > > + if (vi->sq[0].napi.weight) > > + priv_flags |= 0x1; > > + > > + return priv_flags; > > +} > > Why the use of

Re: [PATCH net-next RFC] virtio_net: ethtool tx napi configuration

2018-09-13 Thread Tobin C. Harding
On Wed, Sep 12, 2018 at 07:29:11PM -0400, Willem de Bruijn wrote: > From: Willem de Bruijn > > Implement ethtool .set_priv_flags and .get_priv_flags handlers > and use ethtool private flags to toggle transmit napi: > > ethtool --set-priv-flags eth0 tx-napi on > ethtool --show-priv-flags

Re: [PATCH net-next RFC] virtio_net: ethtool tx napi configuration

2018-09-13 Thread Jason Wang
On 2018年09月13日 07:29, Willem de Bruijn wrote: From: Willem de Bruijn Implement ethtool .set_priv_flags and .get_priv_flags handlers and use ethtool private flags to toggle transmit napi: ethtool --set-priv-flags eth0 tx-napi on ethtool --show-priv-flags eth0 Link:

[PATCH net-next RFC] virtio_net: ethtool tx napi configuration

2018-09-12 Thread Willem de Bruijn
From: Willem de Bruijn Implement ethtool .set_priv_flags and .get_priv_flags handlers and use ethtool private flags to toggle transmit napi: ethtool --set-priv-flags eth0 tx-napi on ethtool --show-priv-flags eth0 Link: https://patchwork.ozlabs.org/patch/948149/ Suggested-by: Jason Wang