]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
netfront accel: Remove backend changed accelerator hook
authorKeir Fraser <keir@xensource.com>
Tue, 30 Oct 2007 17:32:02 +0000 (17:32 +0000)
committerKeir Fraser <keir@xensource.com>
Tue, 30 Oct 2007 17:32:02 +0000 (17:32 +0000)
Signed-off-by <kmansley@solarflare.com>

drivers/xen/netfront/accel.c
drivers/xen/netfront/netfront.c
drivers/xen/netfront/netfront.h

index 9a2ca9e03c57377cc301b81aff6e2683b398d3d8..4f6c340ae6f2d18ff1ddc0749ccd1590180d4dad 100644 (file)
@@ -813,40 +813,6 @@ void netfront_accelerator_resume(struct netfront_info *np,
 }
 
 
-void netfront_accelerator_call_backend_changed(struct netfront_info *np,
-                                              struct xenbus_device *dev,
-                                              enum xenbus_state backend_state)
-{
-       struct netfront_accel_hooks *hooks;
-       unsigned flags;
-
-       /* 
-        * Call the backend_changed 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)
-        */
-       if (np->accel_vif_state.hooks) {
-               spin_lock_irqsave(&np->accelerator->vif_states_lock, flags); 
-               hooks = np->accel_vif_state.hooks;
-               if (hooks) {
-                       kref_get(&np->accel_vif_state.vif_kref);
-                       spin_unlock_irqrestore
-                               (&np->accelerator->vif_states_lock, flags);
-
-                       np->accel_vif_state.hooks->backend_changed
-                               (dev, backend_state);
-
-                       kref_put(&np->accel_vif_state.vif_kref,
-                                vif_kref_release);
-               } else {
-                       spin_unlock_irqrestore
-                               (&np->accelerator->vif_states_lock, flags);
-               }
-       }
-}
-
-
 void netfront_accelerator_call_stop_napi_irq(struct netfront_info *np,
                                             struct net_device *dev)
 {
index ba3b72f41cccaefc0f32e2282eac9fa560017ad2..5fbe225b6055b75d5df804d332bde1eb409ade35 100644 (file)
@@ -549,8 +549,6 @@ static void backend_changed(struct xenbus_device *dev,
                xenbus_frontend_closed(dev);
                break;
        }
-
-       netfront_accelerator_call_backend_changed(np, dev, backend_state);
 }
 
 /** Send a packet on a net device to encourage switches to learn the
index 780877f752277b605d9d269521e98512ec344a05..7768d63cc6fe29262d505d6af46b060478732f99 100644 (file)
@@ -63,12 +63,6 @@ struct netfront_accel_hooks {
         * remove: Opposite of new_device
         */
        int (*remove)(struct xenbus_device *dev);
-       /* 
-        * backend_changed: Callback from watch based on backend's
-        * xenbus state changing
-        */
-       void (*backend_changed)(struct xenbus_device *dev,
-                               enum xenbus_state backend_state);
        /*
         * The net_device is being polled, check the accelerated
         * hardware for any pending packets
@@ -287,10 +281,6 @@ extern
 void netfront_accelerator_resume(struct netfront_info *np,
                                 struct xenbus_device *dev);
 extern
-void netfront_accelerator_call_backend_changed(struct netfront_info *np,
-                                              struct xenbus_device *dev,
-                                              enum xenbus_state backend_state);
-extern
 void netfront_accelerator_call_stop_napi_irq(struct netfront_info *np,
                                             struct net_device *dev);
 extern