Displaying 3 results from an estimated 3 matches for "virtnet_send_notf_coal_cmds".
2023 Mar 05
1
[PATCH net] virtio-net: unify notifications coalescing structs
...nux/virtio_net.h | 24 +++++++-----------------
2 files changed, 14 insertions(+), 25 deletions(-)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index fb5e68ed3ec..86b6b3e0257 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -2883,12 +2883,11 @@ static int virtnet_send_notf_coal_cmds(struct virtnet_info *vi,
struct ethtool_coalesce *ec)
{
struct scatterlist sgs_tx, sgs_rx;
- struct virtio_net_ctrl_coal_tx coal_tx;
- struct virtio_net_ctrl_coal_rx coal_rx;
+ struct virtio_net_ctrl_coal coal_params;
- coal_tx.tx_usecs = cpu_to_le32(ec->tx_coalesce_usecs);
- co...
2023 Jun 06
0
[PATCH net] virtio_net: use control_buf for coalesce params
...+205,8 @@ struct control_buf {
> __virtio16 vid;
> __virtio64 offloads;
> struct virtio_net_ctrl_rss rss;
> + struct virtio_net_ctrl_coal_tx coal_tx;
> + struct virtio_net_ctrl_coal_rx coal_rx;
> };
>
> struct virtnet_info {
> @@ -2934,12 +2936,10 @@ static int virtnet_send_notf_coal_cmds(struct virtnet_info *vi,
> struct ethtool_coalesce *ec)
> {
> struct scatterlist sgs_tx, sgs_rx;
> - struct virtio_net_ctrl_coal_tx coal_tx;
> - struct virtio_net_ctrl_coal_rx coal_rx;
>
> - coal_tx.tx_usecs = cpu_to_le32(ec->tx_coalesce_usecs);
> - coal_...
2023 Mar 06
1
[PATCH net] virtio-net: unify notifications coalescing structs
...------------
> 2 files changed, 14 insertions(+), 25 deletions(-)
>
> diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
> index fb5e68ed3ec..86b6b3e0257 100644
> --- a/drivers/net/virtio_net.c
> +++ b/drivers/net/virtio_net.c
> @@ -2883,12 +2883,11 @@ static int virtnet_send_notf_coal_cmds(struct virtnet_info *vi,
> struct ethtool_coalesce *ec)
> {
> struct scatterlist sgs_tx, sgs_rx;
> - struct virtio_net_ctrl_coal_tx coal_tx;
> - struct virtio_net_ctrl_coal_rx coal_rx;
> + struct virtio_net_ctrl_coa...