Displaying 1 result from an estimated 1 matches for "accelerator_remove_single_hook".
2007 Oct 03
0
[PATCH 6/6] Network acceleration improvements
...5 drivers/xen/netfront/accel.c
--- a/drivers/xen/netfront/accel.c Wed Oct 03 13:41:33 2007 +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 lea...