qcacmn: Add support for to_stack at link level
Add support for to_stack at link level Change-Id: I794a1bd8ef78a3af15f006ac3306b1c9b23e457d CRs-Fixed: 3571870
This commit is contained in:

committed by
Rahul Choudhary

parent
a0bd216fc8
commit
f223bd29ee
@@ -1695,6 +1695,7 @@ struct cdp_tx_stats {
|
|||||||
* @nawds_mcast_drop: Total multicast packets
|
* @nawds_mcast_drop: Total multicast packets
|
||||||
* @mec_drop: Total MEC packets dropped
|
* @mec_drop: Total MEC packets dropped
|
||||||
* @ppeds_drop: Total DS packets dropped
|
* @ppeds_drop: Total DS packets dropped
|
||||||
|
* @rx_success: Total rx success count
|
||||||
* @last_rx_ts: last timestamp in jiffies when RX happened
|
* @last_rx_ts: last timestamp in jiffies when RX happened
|
||||||
* @intra_bss: Intra-bss statistics
|
* @intra_bss: Intra-bss statistics
|
||||||
* @intra_bss.pkts: Intra BSS packets received
|
* @intra_bss.pkts: Intra BSS packets received
|
||||||
@@ -1789,6 +1790,7 @@ struct cdp_rx_stats {
|
|||||||
uint32_t nawds_mcast_drop;
|
uint32_t nawds_mcast_drop;
|
||||||
struct cdp_pkt_info mec_drop;
|
struct cdp_pkt_info mec_drop;
|
||||||
struct cdp_pkt_info ppeds_drop;
|
struct cdp_pkt_info ppeds_drop;
|
||||||
|
struct cdp_pkt_info rx_success;
|
||||||
unsigned long last_rx_ts;
|
unsigned long last_rx_ts;
|
||||||
struct {
|
struct {
|
||||||
struct cdp_pkt_info pkts;
|
struct cdp_pkt_info pkts;
|
||||||
|
@@ -833,6 +833,11 @@ done:
|
|||||||
DP_PEER_TO_STACK_INCC_PKT(txrx_peer, 1,
|
DP_PEER_TO_STACK_INCC_PKT(txrx_peer, 1,
|
||||||
QDF_NBUF_CB_RX_PKT_LEN(nbuf),
|
QDF_NBUF_CB_RX_PKT_LEN(nbuf),
|
||||||
enh_flag);
|
enh_flag);
|
||||||
|
DP_PEER_PER_PKT_STATS_INC_PKT(txrx_peer,
|
||||||
|
rx.rx_success, 1,
|
||||||
|
QDF_NBUF_CB_RX_PKT_LEN(nbuf),
|
||||||
|
link_id);
|
||||||
|
|
||||||
if (qdf_unlikely(txrx_peer->in_twt))
|
if (qdf_unlikely(txrx_peer->in_twt))
|
||||||
DP_PEER_PER_PKT_STATS_INC_PKT(txrx_peer,
|
DP_PEER_PER_PKT_STATS_INC_PKT(txrx_peer,
|
||||||
rx.to_stack_twt, 1,
|
rx.to_stack_twt, 1,
|
||||||
@@ -2311,6 +2316,10 @@ dp_rx_null_q_desc_handle_be(struct dp_soc *soc, qdf_nbuf_t nbuf,
|
|||||||
qdf_nbuf_set_next(nbuf, NULL);
|
qdf_nbuf_set_next(nbuf, NULL);
|
||||||
DP_PEER_TO_STACK_INCC_PKT(txrx_peer, 1, qdf_nbuf_len(nbuf),
|
DP_PEER_TO_STACK_INCC_PKT(txrx_peer, 1, qdf_nbuf_len(nbuf),
|
||||||
enh_flag);
|
enh_flag);
|
||||||
|
DP_PEER_PER_PKT_STATS_INC_PKT(txrx_peer,
|
||||||
|
rx.rx_success, 1,
|
||||||
|
qdf_nbuf_len(nbuf),
|
||||||
|
link_id);
|
||||||
/*
|
/*
|
||||||
* Update the protocol tag in SKB based on
|
* Update the protocol tag in SKB based on
|
||||||
* CCE metadata
|
* CCE metadata
|
||||||
|
@@ -1980,6 +1980,8 @@ void dp_update_vdev_stats_on_peer_unmap(struct dp_vdev *vdev,
|
|||||||
\
|
\
|
||||||
_tgtobj->rx.multicast.num += _srcobj->rx.multicast.num; \
|
_tgtobj->rx.multicast.num += _srcobj->rx.multicast.num; \
|
||||||
_tgtobj->rx.multicast.bytes += _srcobj->rx.multicast.bytes; \
|
_tgtobj->rx.multicast.bytes += _srcobj->rx.multicast.bytes; \
|
||||||
|
_tgtobj->rx.rx_success.num += _srcobj->rx.rx_success.num;\
|
||||||
|
_tgtobj->rx.rx_success.bytes += _srcobj->rx.rx_success.bytes;\
|
||||||
_tgtobj->rx.bcast.num += _srcobj->rx.bcast.num; \
|
_tgtobj->rx.bcast.num += _srcobj->rx.bcast.num; \
|
||||||
_tgtobj->rx.bcast.bytes += _srcobj->rx.bcast.bytes; \
|
_tgtobj->rx.bcast.bytes += _srcobj->rx.bcast.bytes; \
|
||||||
_tgtobj->rx.unicast.num += _srcobj->rx.unicast.num; \
|
_tgtobj->rx.unicast.num += _srcobj->rx.unicast.num; \
|
||||||
|
@@ -1703,6 +1703,10 @@ dp_rx_err_route_hdl(struct dp_soc *soc, qdf_nbuf_t nbuf,
|
|||||||
DP_PEER_TO_STACK_INCC_PKT(txrx_peer, 1,
|
DP_PEER_TO_STACK_INCC_PKT(txrx_peer, 1,
|
||||||
qdf_nbuf_len(nbuf),
|
qdf_nbuf_len(nbuf),
|
||||||
vdev->pdev->enhanced_stats_en);
|
vdev->pdev->enhanced_stats_en);
|
||||||
|
DP_PEER_PER_PKT_STATS_INC_PKT(txrx_peer,
|
||||||
|
rx.rx_success, 1,
|
||||||
|
qdf_nbuf_len(nbuf),
|
||||||
|
link_id);
|
||||||
qdf_nbuf_set_exc_frame(nbuf, 1);
|
qdf_nbuf_set_exc_frame(nbuf, 1);
|
||||||
qdf_nbuf_set_next(nbuf, NULL);
|
qdf_nbuf_set_next(nbuf, NULL);
|
||||||
|
|
||||||
|
@@ -7503,9 +7503,9 @@ void dp_print_peer_stats(struct dp_peer *peer,
|
|||||||
|
|
||||||
DP_PRINT_STATS("Node Rx Stats:");
|
DP_PRINT_STATS("Node Rx Stats:");
|
||||||
DP_PRINT_STATS("Packets Sent To Stack = %llu",
|
DP_PRINT_STATS("Packets Sent To Stack = %llu",
|
||||||
peer_stats->rx.to_stack.num);
|
peer_stats->rx.rx_success.num);
|
||||||
DP_PRINT_STATS("Bytes Sent To Stack = %llu",
|
DP_PRINT_STATS("Bytes Sent To Stack = %llu",
|
||||||
peer_stats->rx.to_stack.bytes);
|
peer_stats->rx.rx_success.bytes);
|
||||||
for (i = 0; i < CDP_MAX_RX_RINGS; i++) {
|
for (i = 0; i < CDP_MAX_RX_RINGS; i++) {
|
||||||
DP_PRINT_STATS("Ring Id = %d", i);
|
DP_PRINT_STATS("Ring Id = %d", i);
|
||||||
DP_PRINT_STATS(" Packets Received = %llu",
|
DP_PRINT_STATS(" Packets Received = %llu",
|
||||||
|
@@ -4560,6 +4560,7 @@ struct dp_peer_extd_tx_stats {
|
|||||||
* @peer_unauth_rx_pkt_drop: Unauth rx packet drops
|
* @peer_unauth_rx_pkt_drop: Unauth rx packet drops
|
||||||
* @policy_check_drop: policy check drops
|
* @policy_check_drop: policy check drops
|
||||||
* @to_stack_twt: Total packets sent up the stack in TWT session
|
* @to_stack_twt: Total packets sent up the stack in TWT session
|
||||||
|
* @rx_success: Total RX success count
|
||||||
* @protocol_trace_cnt: per-peer protocol counters
|
* @protocol_trace_cnt: per-peer protocol counters
|
||||||
* @mcast_3addr_drop:
|
* @mcast_3addr_drop:
|
||||||
* @rx_total: total rx count
|
* @rx_total: total rx count
|
||||||
@@ -4597,6 +4598,7 @@ struct dp_peer_per_pkt_rx_stats {
|
|||||||
uint32_t peer_unauth_rx_pkt_drop;
|
uint32_t peer_unauth_rx_pkt_drop;
|
||||||
uint32_t policy_check_drop;
|
uint32_t policy_check_drop;
|
||||||
struct cdp_pkt_info to_stack_twt;
|
struct cdp_pkt_info to_stack_twt;
|
||||||
|
struct cdp_pkt_info rx_success;
|
||||||
#ifdef VDEV_PEER_PROTOCOL_COUNT
|
#ifdef VDEV_PEER_PROTOCOL_COUNT
|
||||||
struct protocol_trace_count protocol_trace_cnt[CDP_TRACE_MAX];
|
struct protocol_trace_count protocol_trace_cnt[CDP_TRACE_MAX];
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1578,6 +1578,10 @@ dp_rx_null_q_desc_handle_li(struct dp_soc *soc, qdf_nbuf_t nbuf,
|
|||||||
qdf_nbuf_set_next(nbuf, NULL);
|
qdf_nbuf_set_next(nbuf, NULL);
|
||||||
DP_PEER_TO_STACK_INCC_PKT(txrx_peer, 1, qdf_nbuf_len(nbuf),
|
DP_PEER_TO_STACK_INCC_PKT(txrx_peer, 1, qdf_nbuf_len(nbuf),
|
||||||
enh_flag);
|
enh_flag);
|
||||||
|
|
||||||
|
DP_PEER_PER_PKT_STATS_INC_PKT(txrx_peer,
|
||||||
|
rx.rx_success, 1,
|
||||||
|
qdf_nbuf_len(nbuf), 0);
|
||||||
/*
|
/*
|
||||||
* Update the protocol tag in SKB based on
|
* Update the protocol tag in SKB based on
|
||||||
* CCE metadata
|
* CCE metadata
|
||||||
|
Reference in New Issue
Block a user