-int netfront_check_accelerator_queue_busy(struct net_device *dev,
- struct netfront_info *np)
+int netfront_check_accelerator_queue_ready(struct net_device *dev,
+ struct netfront_info *np)
{
struct netfront_accelerator *accelerator;
struct netfront_accel_hooks *hooks;
accelerator = np->accelerator;
/*
- * Call the check busy accelerator hook. The use count for the
+ * Call the check ready accelerator hook. The use count for the
* accelerator's hooks is incremented for the duration of the
* call to prevent the accelerator being able to modify the
* hooks in the middle (by, for example, unloading)
spin_unlock_irqrestore
(&accelerator->vif_states_lock, flags);
- rc = np->accel_vif_state.hooks->check_busy(dev);
+ rc = np->accel_vif_state.hooks->check_ready(dev);
kref_put(&np->accel_vif_state.vif_kref,
vif_kref_release);
if (unlikely(netif_queue_stopped(dev)) &&
netfront_tx_slot_available(np) &&
likely(netif_running(dev)) &&
- netfront_check_accelerator_queue_busy(dev, np))
+ netfront_check_accelerator_queue_ready(dev, np))
netif_wake_queue(dev);
}
-int netfront_check_queue_busy(struct net_device *dev)
+int netfront_check_queue_ready(struct net_device *dev)
{
struct netfront_info *np = netdev_priv(dev);
netfront_tx_slot_available(np) &&
likely(netif_running(dev));
}
-EXPORT_SYMBOL(netfront_check_queue_busy);
+EXPORT_SYMBOL(netfront_check_queue_ready);
static int network_open(struct net_device *dev)
* Called before re-enabling the TX queue to check the fast
* path has slots too
*/
- int (*check_busy)(struct net_device *dev);
+ int (*check_ready)(struct net_device *dev);
/*
* Get the fastpath network statistics
*/
* ensure the slow path has available slots. Returns true if OK to
* wake, false if still busy
*/
-extern int netfront_check_queue_busy(struct net_device *net_dev);
+extern int netfront_check_queue_ready(struct net_device *net_dev);
* if still busy
*/
extern
-int netfront_check_accelerator_queue_busy(struct net_device *dev,
- struct netfront_info *np);
+int netfront_check_accelerator_queue_ready(struct net_device *dev,
+ struct netfront_info *np);
extern
int netfront_accelerator_call_remove(struct netfront_info *np,
struct xenbus_device *dev);