search for: _virtnet_reset

Displaying 11 results from an estimated 11 matches for "_virtnet_reset".

Did you mean: virtnet_reset
2019 Nov 22
2
[PATCH net-next v2] drivers: net: virtio_net: Implement a dev_watchdog handler
...} +static void _remove_vq_common(struct virtnet_info *vi) +{ + vi->vdev->config->reset(vi->vdev); + + /* Free unused buffers in both send and recv, if any. */ + free_unused_bufs(vi); + + _free_receive_bufs(vi); + + free_receive_page_frags(vi); + + virtnet_del_vqs(vi); +} + +static int _virtnet_reset(struct virtnet_info *vi) +{ + struct virtio_device *vdev = vi->vdev; + int ret; + + virtio_config_disable(vdev); + vdev->failed = vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_FAILED; + + virtnet_freeze_down(vdev); + _remove_vq_common(vi); + + virtio_add_status(vdev, VIRTIO_CONFI...
2019 Nov 22
2
[PATCH net-next v2] drivers: net: virtio_net: Implement a dev_watchdog handler
...} +static void _remove_vq_common(struct virtnet_info *vi) +{ + vi->vdev->config->reset(vi->vdev); + + /* Free unused buffers in both send and recv, if any. */ + free_unused_bufs(vi); + + _free_receive_bufs(vi); + + free_receive_page_frags(vi); + + virtnet_del_vqs(vi); +} + +static int _virtnet_reset(struct virtnet_info *vi) +{ + struct virtio_device *vdev = vi->vdev; + int ret; + + virtio_config_disable(vdev); + vdev->failed = vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_FAILED; + + virtnet_freeze_down(vdev); + _remove_vq_common(vi); + + virtio_add_status(vdev, VIRTIO_CONFI...
2019 Nov 26
0
[net-next V3 2/2] drivers: net: virtio_net: Implement a dev_watchdog handler
...} +static void _remove_vq_common(struct virtnet_info *vi) +{ + vi->vdev->config->reset(vi->vdev); + + /* Free unused buffers in both send and recv, if any. */ + free_unused_bufs(vi); + + _free_receive_bufs(vi); + + free_receive_page_frags(vi); + + virtnet_del_vqs(vi); +} + +static int _virtnet_reset(struct virtnet_info *vi) +{ + struct virtio_device *vdev = vi->vdev; + int ret; + + virtio_config_disable(vdev); + vdev->failed = vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_FAILED; + + virtnet_freeze_down(vdev); + _remove_vq_common(vi); + + virtio_add_status(vdev, VIRTIO_CONFI...
2019 Nov 22
0
[PATCH] drivers: net: virtio_net: Implement a dev_watchdog handler
...} +static void _remove_vq_common(struct virtnet_info *vi) +{ + vi->vdev->config->reset(vi->vdev); + + /* Free unused buffers in both send and recv, if any. */ + free_unused_bufs(vi); + + _free_receive_bufs(vi); + + free_receive_page_frags(vi); + + virtnet_del_vqs(vi); +} + +static int _virtnet_reset(struct virtnet_info *vi) +{ + struct virtio_device *vdev = vi->vdev; + int ret; + + virtio_config_disable(vdev); + vdev->failed = vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_FAILED; + + virtnet_freeze_down(vdev); + _remove_vq_common(vi); + + virtio_add_status(vdev, VIRTIO_CONFI...
2019 Nov 22
0
[PATCH net-next v2] drivers: net: virtio_net: Implement a dev_watchdog handler
...t; + vi->vdev->config->reset(vi->vdev); > + > + /* Free unused buffers in both send and recv, if any. */ > + free_unused_bufs(vi); > + > + _free_receive_bufs(vi); > + > + free_receive_page_frags(vi); > + > + virtnet_del_vqs(vi); > +} > + > +static int _virtnet_reset(struct virtnet_info *vi) > +{ > + struct virtio_device *vdev = vi->vdev; > + int ret; > + > + virtio_config_disable(vdev); > + vdev->failed = vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_FAILED; > + > + virtnet_freeze_down(vdev); > + _remove_vq_common(...
2019 Nov 22
0
[PATCH net-next v2] drivers: net: virtio_net: Implement a dev_watchdog handler
...ny. */ > > > + free_unused_bufs(vi); > > > + > > > + _free_receive_bufs(vi); > > > + > > > + free_receive_page_frags(vi); > > > + > > > + virtnet_del_vqs(vi); > > > +} > > > + > > > +static int _virtnet_reset(struct virtnet_info *vi) > > > +{ > > > + struct virtio_device *vdev = vi->vdev; > > > + int ret; > > > + > > > + virtio_config_disable(vdev); > > > + vdev->failed = vdev->config->get_status(vdev) & VIRTIO_CONFIG_...
2019 Nov 23
1
[PATCH net-next v2] drivers: net: virtio_net: Implement a dev_watchdog handler
...vi); > > > > + > > > > + _free_receive_bufs(vi); > > > > + > > > > + free_receive_page_frags(vi); > > > > + > > > > + virtnet_del_vqs(vi); > > > > +} > > > > + > > > > +static int _virtnet_reset(struct virtnet_info *vi) > > > > +{ > > > > + struct virtio_device *vdev = vi->vdev; > > > > + int ret; > > > > + > > > > + virtio_config_disable(vdev); > > > > + vdev->failed = vdev->config->get_sta...
2019 Nov 22
4
[PATCH net-next v2] drivers: net: virtio_net: Implement a dev_watchdog handler
.../* Free unused buffers in both send and recv, if any. */ > > + free_unused_bufs(vi); > > + > > + _free_receive_bufs(vi); > > + > > + free_receive_page_frags(vi); > > + > > + virtnet_del_vqs(vi); > > +} > > + > > +static int _virtnet_reset(struct virtnet_info *vi) > > +{ > > + struct virtio_device *vdev = vi->vdev; > > + int ret; > > + > > + virtio_config_disable(vdev); > > + vdev->failed = vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_FAILED; > > + > &gt...
2019 Nov 22
4
[PATCH net-next v2] drivers: net: virtio_net: Implement a dev_watchdog handler
.../* Free unused buffers in both send and recv, if any. */ > > + free_unused_bufs(vi); > > + > > + _free_receive_bufs(vi); > > + > > + free_receive_page_frags(vi); > > + > > + virtnet_del_vqs(vi); > > +} > > + > > +static int _virtnet_reset(struct virtnet_info *vi) > > +{ > > + struct virtio_device *vdev = vi->vdev; > > + int ret; > > + > > + virtio_config_disable(vdev); > > + vdev->failed = vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_FAILED; > > + > &gt...
2019 Nov 26
9
[net-next V3 0/2] drivers: net: virtio_net: implement
This series add two important features. One of them changes the .ndo_tx_timeout to include an extra parameter to identify the stuck queue. Many drivers are using a nester loop to identify which queue is stooped/stucked. This is a redundant work since dev_watchdog is doing exactly the same thing. This is so interesting for other drivers to in terms of code optimization. The second part (second
2019 Nov 26
9
[net-next V3 0/2] drivers: net: virtio_net: implement
This series add two important features. One of them changes the .ndo_tx_timeout to include an extra parameter to identify the stuck queue. Many drivers are using a nester loop to identify which queue is stooped/stucked. This is a redundant work since dev_watchdog is doing exactly the same thing. This is so interesting for other drivers to in terms of code optimization. The second part (second