search for: get_coalesc

Displaying 20 results from an estimated 31 matches for "get_coalesc".

Did you mean: get_coalesce
2018 Oct 09
2
[PATCH net-next V3] virtio_net: ethtool tx napi configuration
Implement ethtool .set_coalesce (-C) and .get_coalesce (-c) handlers. Interrupt moderation is currently not supported, so these accept and display the default settings of 0 usec and 1 frame. Toggle tx napi through setting tx-frames. So as to not interfere with possible future interrupt moderation, value 1 means tx napi while value 0 means not. Only...
2018 Oct 09
2
[PATCH net-next V3] virtio_net: ethtool tx napi configuration
Implement ethtool .set_coalesce (-C) and .get_coalesce (-c) handlers. Interrupt moderation is currently not supported, so these accept and display the default settings of 0 usec and 1 frame. Toggle tx napi through setting tx-frames. So as to not interfere with possible future interrupt moderation, value 1 means tx napi while value 0 means not. Only...
2018 Sep 13
5
[PATCH net-next V2] virtio_net: ethtool tx napi configuration
Implement ethtool .set_coalesce (-C) and .get_coalesce (-c) handlers. Interrupt moderation is currently not supported, so these accept and display the default settings of 0 usec and 1 frame. Toggle tx napi through a bit in tx-frames. So as to not interfere with possible future interrupt moderation, value 1 means tx napi while value 0 means not. To p...
2018 Sep 13
5
[PATCH net-next V2] virtio_net: ethtool tx napi configuration
Implement ethtool .set_coalesce (-C) and .get_coalesce (-c) handlers. Interrupt moderation is currently not supported, so these accept and display the default settings of 0 usec and 1 frame. Toggle tx napi through a bit in tx-frames. So as to not interfere with possible future interrupt moderation, value 1 means tx napi while value 0 means not. To p...
2018 Sep 13
0
[PATCH net-next V2] virtio_net: ethtool tx napi configuration
On Thu, Sep 13, 2018 at 1:40 AM Jason Wang <jasowang at redhat.com> wrote: > > Implement ethtool .set_coalesce (-C) and .get_coalesce (-c) handlers. > Interrupt moderation is currently not supported, so these accept and > display the default settings of 0 usec and 1 frame. > > Toggle tx napi through a bit in tx-frames. So as to not interfere > with possible future interrupt moderation, value 1 means tx napi while...
2019 Jan 02
1
[PATCH RFC 1/2] virtio-net: bql support
...gt; > We support switch the mode through ethtool recently. See commit 0c465be183c7c57a26446df6ea96d8676b865f92 Author: Jason Wang <jasowang at redhat.com> Date:?? Tue Oct 9 10:06:26 2018 +0800 ??? virtio_net: ethtool tx napi configuration ??? Implement ethtool .set_coalesce (-C) and .get_coalesce (-c) handlers. ??? Interrupt moderation is currently not supported, so these accept and ??? display the default settings of 0 usec and 1 frame. ??? Toggle tx napi through setting tx-frames. So as to not interfere ??? with possible future interrupt moderation, value 1 means tx napi while ???...
2015 Feb 10
4
[PATCH RFC v5 net-next 4/6] virtio-net: add basic interrupt coalescing support
...-EINVAL; > + } > + vi->tx_coalesce_usecs = ec->tx_coalesce_usecs; > + vi->tx_max_coalesced_frames = ec->tx_max_coalesced_frames; > + } > + > + vi->tx_work_limit = ec->tx_max_coalesced_frames_irq; > + > + return 0; > +} > + > +static int virtnet_get_coalesce(struct net_device *dev, > + struct ethtool_coalesce *ec) > +{ > + struct virtnet_info *vi = netdev_priv(dev); > + > + ec->rx_coalesce_usecs = vi->rx_coalesce_usecs; > + ec->rx_max_coalesced_frames = vi->rx_max_coalesced_frames; > + ec->tx_coalesce_usecs = vi-...
2015 Feb 10
4
[PATCH RFC v5 net-next 4/6] virtio-net: add basic interrupt coalescing support
...-EINVAL; > + } > + vi->tx_coalesce_usecs = ec->tx_coalesce_usecs; > + vi->tx_max_coalesced_frames = ec->tx_max_coalesced_frames; > + } > + > + vi->tx_work_limit = ec->tx_max_coalesced_frames_irq; > + > + return 0; > +} > + > +static int virtnet_get_coalesce(struct net_device *dev, > + struct ethtool_coalesce *ec) > +{ > + struct virtnet_info *vi = netdev_priv(dev); > + > + ec->rx_coalesce_usecs = vi->rx_coalesce_usecs; > + ec->rx_max_coalesced_frames = vi->rx_max_coalesced_frames; > + ec->tx_coalesce_usecs = vi-...
2018 Oct 11
0
[PATCH net-next V3] virtio_net: ethtool tx napi configuration
From: Jason Wang <jasowang at redhat.com> Date: Tue, 9 Oct 2018 10:06:26 +0800 > Implement ethtool .set_coalesce (-C) and .get_coalesce (-c) handlers. > Interrupt moderation is currently not supported, so these accept and > display the default settings of 0 usec and 1 frame. > > Toggle tx napi through setting tx-frames. So as to not interfere > with possible future interrupt moderation, value 1 means tx napi while...
2015 Feb 09
0
[PATCH RFC v5 net-next 4/6] virtio-net: add basic interrupt coalescing support
...v, "Fail to set tx coalescing\n"); + return -EINVAL; + } + vi->tx_coalesce_usecs = ec->tx_coalesce_usecs; + vi->tx_max_coalesced_frames = ec->tx_max_coalesced_frames; + } + + vi->tx_work_limit = ec->tx_max_coalesced_frames_irq; + + return 0; +} + +static int virtnet_get_coalesce(struct net_device *dev, + struct ethtool_coalesce *ec) +{ + struct virtnet_info *vi = netdev_priv(dev); + + ec->rx_coalesce_usecs = vi->rx_coalesce_usecs; + ec->rx_max_coalesced_frames = vi->rx_max_coalesced_frames; + ec->tx_coalesce_usecs = vi->tx_coalesce_usecs; + ec->tx_...
2015 Feb 09
0
[PATCH RFC v5 net-next 4/6] virtio-net: add basic interrupt coalescing support
...v, "Fail to set tx coalescing\n"); + return -EINVAL; + } + vi->tx_coalesce_usecs = ec->tx_coalesce_usecs; + vi->tx_max_coalesced_frames = ec->tx_max_coalesced_frames; + } + + vi->tx_work_limit = ec->tx_max_coalesced_frames_irq; + + return 0; +} + +static int virtnet_get_coalesce(struct net_device *dev, + struct ethtool_coalesce *ec) +{ + struct virtnet_info *vi = netdev_priv(dev); + + ec->rx_coalesce_usecs = vi->rx_coalesce_usecs; + ec->rx_max_coalesced_frames = vi->rx_max_coalesced_frames; + ec->tx_coalesce_usecs = vi->tx_coalesce_usecs; + ec->tx_...
2017 Jan 18
0
[PATCH net-next V5 3/3] tun: rx batching
...tun->sndbuf = tfile->socket.sk->sk_sndbuf; + tun->rx_batched = 0; tun->pcpu_stats = netdev_alloc_pcpu_stats(struct tun_pcpu_stats); if (!tun->pcpu_stats) { @@ -2438,6 +2477,29 @@ static void tun_set_msglevel(struct net_device *dev, u32 value) #endif } +static int tun_get_coalesce(struct net_device *dev, + struct ethtool_coalesce *ec) +{ + struct tun_struct *tun = netdev_priv(dev); + + ec->rx_max_coalesced_frames = tun->rx_batched; + + return 0; +} + +static int tun_set_coalesce(struct net_device *dev, + struct ethtool_coalesce *ec) +{ + struct tun_struct...
2017 Jan 06
0
[PATCH V4 net-next 3/3] tun: rx batching
...tun->sndbuf = tfile->socket.sk->sk_sndbuf; + tun->rx_batched = 0; tun->pcpu_stats = netdev_alloc_pcpu_stats(struct tun_pcpu_stats); if (!tun->pcpu_stats) { @@ -2439,6 +2478,29 @@ static void tun_set_msglevel(struct net_device *dev, u32 value) #endif } +static int tun_get_coalesce(struct net_device *dev, + struct ethtool_coalesce *ec) +{ + struct tun_struct *tun = netdev_priv(dev); + + ec->rx_max_coalesced_frames = tun->rx_batched; + + return 0; +} + +static int tun_set_coalesce(struct net_device *dev, + struct ethtool_coalesce *ec) +{ + struct tun_struct...
2015 Feb 10
0
[PATCH RFC v5 net-next 4/6] virtio-net: add basic interrupt coalescing support
...e_usecs = ec->tx_coalesce_usecs; > > + vi->tx_max_coalesced_frames = ec->tx_max_coalesced_frames; > > + } > > + > > + vi->tx_work_limit = ec->tx_max_coalesced_frames_irq; > > + > > + return 0; > > +} > > + > > +static int virtnet_get_coalesce(struct net_device *dev, > > + struct ethtool_coalesce *ec) > > +{ > > + struct virtnet_info *vi = netdev_priv(dev); > > + > > + ec->rx_coalesce_usecs = vi->rx_coalesce_usecs; > > + ec->rx_max_coalesced_frames = vi->rx_max_coalesced_frames; > &g...
2015 Feb 10
0
[PATCH RFC v5 net-next 4/6] virtio-net: add basic interrupt coalescing support
...e_usecs = ec->tx_coalesce_usecs; > > + vi->tx_max_coalesced_frames = ec->tx_max_coalesced_frames; > > + } > > + > > + vi->tx_work_limit = ec->tx_max_coalesced_frames_irq; > > + > > + return 0; > > +} > > + > > +static int virtnet_get_coalesce(struct net_device *dev, > > + struct ethtool_coalesce *ec) > > +{ > > + struct virtnet_info *vi = netdev_priv(dev); > > + > > + ec->rx_coalesce_usecs = vi->rx_coalesce_usecs; > > + ec->rx_max_coalesced_frames = vi->rx_max_coalesced_frames; > &g...
2017 Jan 06
5
[PATCH V4 net-next 0/3] vhost_net tx batching
Hi: This series tries to implement tx batching support for vhost. This was done by using MSG_MORE as a hint for under layer socket. The backend (e.g tap) can then batch the packets temporarily in a list and submit it all once the number of bacthed exceeds a limitation. Tests shows obvious improvement on guest pktgen over over mlx4(noqueue) on host: Mpps -+%
2017 Jan 06
5
[PATCH V4 net-next 0/3] vhost_net tx batching
Hi: This series tries to implement tx batching support for vhost. This was done by using MSG_MORE as a hint for under layer socket. The backend (e.g tap) can then batch the packets temporarily in a list and submit it all once the number of bacthed exceeds a limitation. Tests shows obvious improvement on guest pktgen over over mlx4(noqueue) on host: Mpps -+%
2015 Feb 10
0
[PATCH RFC v5 net-next 4/6] virtio-net: add basic interrupt coalescing support
...e_usecs = ec->tx_coalesce_usecs; >> + vi->tx_max_coalesced_frames = ec->tx_max_coalesced_frames; >> + } >> + >> + vi->tx_work_limit = ec->tx_max_coalesced_frames_irq; >> + >> + return 0; >> +} >> + >> +static int virtnet_get_coalesce(struct net_device *dev, >> + struct ethtool_coalesce *ec) >> +{ >> + struct virtnet_info *vi = netdev_priv(dev); >> + >> + ec->rx_coalesce_usecs = vi->rx_coalesce_usecs; >> + ec->rx_max_coalesced_frames = vi->rx_max_coalesced_frames; >&gt...
2015 Feb 10
0
[PATCH RFC v5 net-next 4/6] virtio-net: add basic interrupt coalescing support
...e_usecs = ec->tx_coalesce_usecs; >> + vi->tx_max_coalesced_frames = ec->tx_max_coalesced_frames; >> + } >> + >> + vi->tx_work_limit = ec->tx_max_coalesced_frames_irq; >> + >> + return 0; >> +} >> + >> +static int virtnet_get_coalesce(struct net_device *dev, >> + struct ethtool_coalesce *ec) >> +{ >> + struct virtnet_info *vi = netdev_priv(dev); >> + >> + ec->rx_coalesce_usecs = vi->rx_coalesce_usecs; >> + ec->rx_max_coalesced_frames = vi->rx_max_coalesced_frames; >&gt...
2017 Jan 18
7
[PATCH net-next V5 0/3] vhost_net tx batching
Hi: This series tries to implement tx batching support for vhost. This was done by using MSG_MORE as a hint for under layer socket. The backend (e.g tap) can then batch the packets temporarily in a list and submit it all once the number of bacthed exceeds a limitation. Tests shows obvious improvement on guest pktgen over over mlx4(noqueue) on host: Mpps -+%