search for: virtnet_reset_task

Displaying 9 results from an estimated 9 matches for "virtnet_reset_task".

2015 Jun 24
2
[RFC] virtio_net: Adding tx_timeout function.
...urn 0; } +static void virtnet_tx_timeout(struct net_device *dev) +{ + struct virtnet_info *vi = netdev_priv(dev); + + dev_warn(&dev->dev, "TX Timeout exception with latency: %ld\n", + jiffies - dev_trans_start(dev)); + + schedule_work(&vi->reset_task); +} + +static void virtnet_reset_task(struct work_struct *work); + static const struct net_device_ops virtnet_netdev = { .ndo_open = virtnet_open, .ndo_stop = virtnet_close, @@ -1405,6 +1420,7 @@ static const struct net_device_ops virtnet_netdev = { .ndo_get_stats64 = virtnet_stats, .ndo_vlan_rx_add_vid...
2015 Jun 24
2
[RFC] virtio_net: Adding tx_timeout function.
...urn 0; } +static void virtnet_tx_timeout(struct net_device *dev) +{ + struct virtnet_info *vi = netdev_priv(dev); + + dev_warn(&dev->dev, "TX Timeout exception with latency: %ld\n", + jiffies - dev_trans_start(dev)); + + schedule_work(&vi->reset_task); +} + +static void virtnet_reset_task(struct work_struct *work); + static const struct net_device_ops virtnet_netdev = { .ndo_open = virtnet_open, .ndo_stop = virtnet_close, @@ -1405,6 +1420,7 @@ static const struct net_device_ops virtnet_netdev = { .ndo_get_stats64 = virtnet_stats, .ndo_vlan_rx_add_vid...
2015 Jun 25
3
[RFC] virtio_net: Adding tx_timeout function.
...t if after this triggers user does something > to the device (e.g. attempts to remove it)? > Or if a packet is transmitted or used? At some point, this work must be canceled. Yes, you are right. Specially, when the driver is being removed. > > > +} > > + > > +static void virtnet_reset_task(struct work_struct *work); > > + > > static const struct net_device_ops virtnet_netdev = { > > .ndo_open = virtnet_open, > > .ndo_stop = virtnet_close, > > @@ -1405,6 +1420,7 @@ static const struct net_device_ops virtnet_netdev = { &g...
2015 Jun 25
3
[RFC] virtio_net: Adding tx_timeout function.
...t if after this triggers user does something > to the device (e.g. attempts to remove it)? > Or if a packet is transmitted or used? At some point, this work must be canceled. Yes, you are right. Specially, when the driver is being removed. > > > +} > > + > > +static void virtnet_reset_task(struct work_struct *work); > > + > > static const struct net_device_ops virtnet_netdev = { > > .ndo_open = virtnet_open, > > .ndo_stop = virtnet_close, > > @@ -1405,6 +1420,7 @@ static const struct net_device_ops virtnet_netdev = { &g...
2015 Jul 02
1
[RFC] virtio_net: Adding tx_timeout function.
...o remove it)? > > > Or if a packet is transmitted or used? > > > > At some point, this work must be canceled. > > Yes, you are right. Specially, when the driver is being removed. > > > > > > > +} > > > > + > > > > +static void virtnet_reset_task(struct work_struct *work); > > > > + > > > > static const struct net_device_ops virtnet_netdev = { > > > > .ndo_open = virtnet_open, > > > > .ndo_stop = virtnet_close, > > > > @@ -1405,6 +1420,7 @@ static...
2015 Jul 02
1
[RFC] virtio_net: Adding tx_timeout function.
...o remove it)? > > > Or if a packet is transmitted or used? > > > > At some point, this work must be canceled. > > Yes, you are right. Specially, when the driver is being removed. > > > > > > > +} > > > > + > > > > +static void virtnet_reset_task(struct work_struct *work); > > > > + > > > > static const struct net_device_ops virtnet_netdev = { > > > > .ndo_open = virtnet_open, > > > > .ndo_stop = virtnet_close, > > > > @@ -1405,6 +1420,7 @@ static...
2015 Jun 24
0
[RFC] virtio_net: Adding tx_timeout function.
...t exception with latency: %ld\n", > + jiffies - dev_trans_start(dev)); > + > + schedule_work(&vi->reset_task); What if after this triggers user does something to the device (e.g. attempts to remove it)? Or if a packet is transmitted or used? > +} > + > +static void virtnet_reset_task(struct work_struct *work); > + > static const struct net_device_ops virtnet_netdev = { > .ndo_open = virtnet_open, > .ndo_stop = virtnet_close, > @@ -1405,6 +1420,7 @@ static const struct net_device_ops virtnet_netdev = { > .ndo_get_stats64 = virtnet_...
2015 Jul 01
0
[RFC] virtio_net: Adding tx_timeout function.
...> > to the device (e.g. attempts to remove it)? > > Or if a packet is transmitted or used? > > At some point, this work must be canceled. > Yes, you are right. Specially, when the driver is being removed. > > > > > +} > > > + > > > +static void virtnet_reset_task(struct work_struct *work); > > > + > > > static const struct net_device_ops virtnet_netdev = { > > > .ndo_open = virtnet_open, > > > .ndo_stop = virtnet_close, > > > @@ -1405,6 +1420,7 @@ static const struct net_device_...
2015 Jun 25
0
[RFC] virtio_net: Adding tx_timeout function.
...ers user does something >> to the device (e.g. attempts to remove it)? >> Or if a packet is transmitted or used? > At some point, this work must be canceled. > Yes, you are right. Specially, when the driver is being removed. >>> +} >>> + >>> +static void virtnet_reset_task(struct work_struct *work); >>> + >>> static const struct net_device_ops virtnet_netdev = { >>> .ndo_open = virtnet_open, >>> .ndo_stop = virtnet_close, >>> @@ -1405,6 +1420,7 @@ static const struct net_device_ops virtne...