Displaying 2 results from an estimated 2 matches for "accel_vif_state".
2007 Oct 03
0
[PATCH 6/6] Network acceleration improvements
...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 vif i...
2007 Oct 30
0
[Patch 6/8] Netfront accelerator bug fixes
...celerator, tmp, &accelerators_list, link) {
+ BUG_ON(!list_empty(&accelerator->vif_states));
+
+ list_del(&accelerator->link);
+ kfree(accelerator->frontend);
+ kfree(accelerator);
+ }
+
+ spin_unlock_irqrestore(&accelerators_lock, flags);
+}
+
/*
* Initialise the accel_vif_state field in the netfront state
diff -r fdfd708d2ec4 drivers/xen/netfront/netfront.c
--- a/drivers/xen/netfront/netfront.c Wed Oct 24 15:38:35 2007 +0100
+++ b/drivers/xen/netfront/netfront.c Wed Oct 24 15:57:26 2007 +0100
@@ -2212,6 +2212,8 @@ static void __exit netif_exit(void)
unregister_inetadd...