|
@@ -75,6 +75,16 @@ qdf_net_if_release_dev(struct qdf_net_if *nif);
|
|
|
*/
|
|
|
void qdf_napi_enable(struct napi_struct *napi);
|
|
|
|
|
|
+/**
|
|
|
+ * qdf_napi_disable() - Disable the napi schedule
|
|
|
+ * @napi: NAPI context
|
|
|
+ *
|
|
|
+ * This function suspends NAPI from being scheduled on this context
|
|
|
+ *
|
|
|
+ * Return: NONE
|
|
|
+ */
|
|
|
+void qdf_napi_disable(struct napi_struct *napi);
|
|
|
+
|
|
|
/**
|
|
|
* qdf_netif_napi_add - initialize a NAPI context
|
|
|
* @netdev: network device
|
|
@@ -152,6 +162,12 @@ qdf_napi_enable(struct napi_struct *napi)
|
|
|
__qdf_napi_enable(napi);
|
|
|
}
|
|
|
|
|
|
+static inline void
|
|
|
+qdf_napi_disable(struct napi_struct *napi)
|
|
|
+{
|
|
|
+ __qdf_napi_disable(napi);
|
|
|
+}
|
|
|
+
|
|
|
static inline void
|
|
|
qdf_netif_napi_add(struct net_device *netdev, struct napi_struct *napi,
|
|
|
int (*poll)(struct napi_struct *, int), int weight)
|