Displaying 2 results from an estimated 2 matches for "netfront_accel_vif_st".
2008 Feb 26
0
[PATCH] Fix request_module/modprobe deadlock in netfront accelerator
...cel(void)
{
struct netfront_accelerator *accelerator, *tmp;
unsigned long flags;
+
+ flush_workqueue(accel_watch_workqueue);
+ destroy_workqueue(accel_watch_workqueue);
spin_lock_irqsave(&accelerators_lock, flags);
@@ -156,7 +164,7 @@ static void accel_watch_changed(struct x
struct netfront_accel_vif_state *vif_state =
container_of(watch, struct netfront_accel_vif_state,
accel_watch);
- schedule_work(&vif_state->accel_work);
+ queue_work(accel_watch_workqueue, &vif_state->accel_work);
}
@@ -191,7 +199,7 @@ void netfront_accelerator_remove_watch(s
kfree(vif_state-...
2007 Oct 03
0
[PATCH 6/6] Network acceleration improvements
...+0100
+++ b/drivers/xen/netfront/accel.c Wed Oct 03 13:45:55 2007 +0100
@@ -500,6 +500,30 @@ EXPORT_SYMBOL_GPL(netfront_accelerator_r
/*
+ * Remove the hooks from a single vif state.
+ */
+static void
+accelerator_remove_single_hook(struct netfront_accelerator *accelerator,
+ struct netfront_accel_vif_state *vif_state)
+{
+ /* Make sure there are no data path operations going on */
+ netif_poll_disable(vif_state->np->netdev);
+ netif_tx_lock_bh(vif_state->np->netdev);
+
+ /*
+ * Remove the hooks, but leave the vif_state on the
+ * accelerator''s list as that signifies this vi...