|
@@ -526,8 +526,6 @@ struct dp_mon_ops {
|
|
|
struct htt_rx_ring_tlv_filter *tlv_filter);
|
|
|
void (*rx_enable_mpdu_logging)(uint32_t *msg_word,
|
|
|
struct htt_rx_ring_tlv_filter *tlv_filter);
|
|
|
- QDF_STATUS (*rx_mon_refill_buf_ring)(struct dp_intr *int_ctx);
|
|
|
- QDF_STATUS (*tx_mon_refill_buf_ring)(struct dp_intr *int_ctx);
|
|
|
};
|
|
|
|
|
|
struct dp_mon_soc {
|
|
@@ -1766,7 +1764,7 @@ void dp_monitor_service_mon_rings(struct dp_soc *soc, uint32_t quota)
|
|
|
#endif
|
|
|
|
|
|
/*
|
|
|
- * dp_rx_monitor_process() - Process monitor
|
|
|
+ * dp_monitor_process() - Process monitor
|
|
|
* @soc: point to soc
|
|
|
* @int_ctx: interrupt ctx
|
|
|
* @mac_id: lma
|
|
@@ -1777,7 +1775,7 @@ void dp_monitor_service_mon_rings(struct dp_soc *soc, uint32_t quota)
|
|
|
#ifndef DISABLE_MON_CONFIG
|
|
|
static inline
|
|
|
uint32_t dp_monitor_process(struct dp_soc *soc, struct dp_intr *int_ctx,
|
|
|
- uint32_t mac_id, uint32_t quota)
|
|
|
+ uint32_t mac_id, uint32_t quota)
|
|
|
{
|
|
|
struct dp_mon_ops *monitor_ops;
|
|
|
struct dp_mon_soc *mon_soc = soc->monitor_soc;
|
|
@@ -1796,72 +1794,16 @@ uint32_t dp_monitor_process(struct dp_soc *soc, struct dp_intr *int_ctx,
|
|
|
return monitor_ops->mon_rx_process(soc, int_ctx, mac_id, quota);
|
|
|
}
|
|
|
|
|
|
-static inline
|
|
|
-uint32_t dp_tx_mon_process(struct dp_soc *soc, struct dp_intr *int_ctx,
|
|
|
- uint32_t mac_id, uint32_t quota)
|
|
|
-{
|
|
|
- struct dp_mon_ops *monitor_ops;
|
|
|
- struct dp_mon_soc *mon_soc = soc->monitor_soc;
|
|
|
-
|
|
|
- if (!mon_soc) {
|
|
|
- dp_mon_debug("monitor soc is NULL");
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- monitor_ops = mon_soc->mon_ops;
|
|
|
- if (!monitor_ops || !monitor_ops->mon_tx_process) {
|
|
|
- dp_mon_debug("callback not registered");
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- return monitor_ops->mon_tx_process(soc, int_ctx, mac_id, quota);
|
|
|
-}
|
|
|
-
|
|
|
-static inline
|
|
|
-uint32_t dp_tx_mon_buf_refill(struct dp_intr *int_ctx)
|
|
|
-{
|
|
|
- struct dp_soc *soc = int_ctx->soc;
|
|
|
- struct dp_mon_ops *monitor_ops;
|
|
|
- struct dp_mon_soc *mon_soc = soc->monitor_soc;
|
|
|
-
|
|
|
- if (!mon_soc) {
|
|
|
- dp_mon_debug("monitor soc is NULL");
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- monitor_ops = mon_soc->mon_ops;
|
|
|
- if (!monitor_ops || !monitor_ops->tx_mon_refill_buf_ring) {
|
|
|
- dp_mon_debug("callback not registered");
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- return monitor_ops->tx_mon_refill_buf_ring(int_ctx);
|
|
|
-}
|
|
|
-
|
|
|
-static inline
|
|
|
-uint32_t dp_rx_mon_buf_refill(struct dp_intr *int_ctx)
|
|
|
+static inline uint32_t
|
|
|
+dp_tx_mon_process(struct dp_soc *soc, struct dp_intr *int_ctx,
|
|
|
+ uint32_t mac_id, uint32_t quota)
|
|
|
{
|
|
|
- struct dp_soc *soc = int_ctx->soc;
|
|
|
- struct dp_mon_ops *monitor_ops;
|
|
|
- struct dp_mon_soc *mon_soc = soc->monitor_soc;
|
|
|
-
|
|
|
- if (!mon_soc) {
|
|
|
- dp_mon_debug("monitor soc is NULL");
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- monitor_ops = mon_soc->mon_ops;
|
|
|
- if (!monitor_ops || !monitor_ops->rx_mon_refill_buf_ring) {
|
|
|
- dp_mon_debug("callback not registered");
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- return monitor_ops->rx_mon_refill_buf_ring(int_ctx);
|
|
|
+ return 0;
|
|
|
}
|
|
|
#else
|
|
|
static inline
|
|
|
uint32_t dp_monitor_process(struct dp_soc *soc, struct dp_intr *int_ctx,
|
|
|
- uint32_t mac_id, uint32_t quota)
|
|
|
+ uint32_t mac_id, uint32_t quota)
|
|
|
{
|
|
|
return 0;
|
|
|
}
|
|
@@ -1872,16 +1814,6 @@ dp_tx_mon_process(struct dp_soc *soc, struct dp_intr *int_ctx,
|
|
|
{
|
|
|
return 0;
|
|
|
}
|
|
|
-
|
|
|
-static inline
|
|
|
-uint32_t dp_tx_mon_buf_refill(struct dp_intr *int_ctx)
|
|
|
-{
|
|
|
-}
|
|
|
-
|
|
|
-static inline
|
|
|
-uint32_t dp_rx_mon_buf_refill(struct dp_intr *int_ctx)
|
|
|
-{
|
|
|
-}
|
|
|
#endif
|
|
|
|
|
|
/*
|