search for: dev_trans_start

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

2015 Jun 24
2
[RFC] virtio_net: Adding tx_timeout function.
...+1397,18 @@ static int virtnet_change_mtu(struct net_device *dev, int new_mtu) return 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...
2015 Jun 24
2
[RFC] virtio_net: Adding tx_timeout function.
...+1397,18 @@ static int virtnet_change_mtu(struct net_device *dev, int new_mtu) return 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...
2015 Jun 25
3
[RFC] virtio_net: Adding tx_timeout function.
...gt; } > > > > +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); > > 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? At some point, this work must be canceled. Yes, you are right. Specially,...
2015 Jun 25
3
[RFC] virtio_net: Adding tx_timeout function.
...gt; } > > > > +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); > > 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? At some point, this work must be canceled. Yes, you are right. Specially,...
2015 Jul 02
1
[RFC] virtio_net: Adding tx_timeout function.
..._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); > > > > > > 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? > > &gt...
2015 Jul 02
1
[RFC] virtio_net: Adding tx_timeout function.
..._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); > > > > > > 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? > > &gt...
2015 Jun 24
0
[RFC] virtio_net: Adding tx_timeout function.
...uct net_device *dev, int new_mtu) > return 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); 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 s...
2015 Jul 01
0
[RFC] virtio_net: Adding tx_timeout function.
...; +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); > > > > 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? > > At some point, this work must be...
2015 Jun 25
0
[RFC] virtio_net: Adding tx_timeout function.
...gt;>> +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); >> 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? > At some point, this work must be canceled. > Yes, you...