@@ -1679,31 +1679,67 @@ struct st22_rx_ops {
16791679};
16801680
16811681/**
1682- * A structure used to retrieve general statistics(I/O) for a st20 tx port.
1683- */
1684- struct st20_tx_port_status {
1685- /** Total number of transmitted packets. */
1686- uint64_t packets ;
1687- /** Total number of transmitted bytes. */
1688- uint64_t bytes ;
1689- /** Total number of build packets. */
1690- uint64_t build ;
1691- /** Total number of transmitted frames. */
1692- uint64_t frames ;
1682+ * A structure used to retrieve general statistics(I/O) for a st20 tx session.
1683+ */
1684+ struct st20_tx_user_stats {
1685+ struct st_tx_user_stats common ;
1686+ uint64_t stat_pkts_dummy ;
1687+ uint64_t stat_epoch_troffset_mismatch ;
1688+ uint64_t stat_trans_troffset_mismatch ;
1689+ uint64_t stat_trans_recalculate_warmup ;
1690+ uint64_t stat_user_busy ;
1691+ uint64_t stat_lines_not_ready ;
1692+ uint64_t stat_vsync_mismatch ;
1693+ uint64_t stat_pkts_chain_realloc_fail ;
1694+ uint64_t stat_user_meta_cnt ;
1695+ uint64_t stat_user_meta_pkt_cnt ;
1696+ uint64_t stat_recoverable_error ;
1697+ uint64_t stat_unrecoverable_error ;
1698+ uint64_t stat_interlace_first_field ;
1699+ uint64_t stat_interlace_second_field ;
16931700};
16941701
16951702/**
1696- * A structure used to retrieve general statistics(I/O) for a st20 rx port.
1697- */
1698- struct st20_rx_port_status {
1699- /** Total number of received packets. */
1700- uint64_t packets ;
1701- /** Total number of received bytes. */
1702- uint64_t bytes ;
1703- /** Total number of received frames. */
1704- uint64_t frames ;
1705- /** Total number of received packets which are not valid. */
1706- uint64_t err_packets ;
1703+ * A structure used to retrieve general statistics(I/O) for a st20 rx session.
1704+ */
1705+ struct st20_rx_user_stats {
1706+ struct st_rx_user_stats common ;
1707+ uint64_t stat_bytes_received ;
1708+ uint64_t stat_slices_received ;
1709+ uint64_t stat_pkts_idx_dropped ;
1710+ uint64_t stat_pkts_offset_dropped ;
1711+ uint64_t stat_frames_dropped ;
1712+ uint64_t stat_pkts_idx_oo_bitmap ;
1713+ uint64_t stat_frames_pks_missed ;
1714+ uint64_t stat_pkts_rtp_ring_full ;
1715+ uint64_t stat_pkts_no_slot ;
1716+ uint64_t stat_pkts_redundant_dropped ;
1717+ uint64_t stat_pkts_wrong_interlace_dropped ;
1718+ uint64_t stat_pkts_wrong_len_dropped ;
1719+ uint64_t stat_pkts_enqueue_fallback ;
1720+ uint64_t stat_pkts_dma ;
1721+ uint64_t stat_pkts_slice_fail ;
1722+ uint64_t stat_pkts_slice_merged ;
1723+ uint64_t stat_pkts_multi_segments_received ;
1724+ uint64_t stat_pkts_not_bpm ;
1725+ uint64_t stat_pkts_wrong_payload_hdr_split ;
1726+ uint64_t stat_mismatch_hdr_split_frame ;
1727+ uint64_t stat_pkts_copy_hdr_split ;
1728+ uint64_t stat_vsync_mismatch ;
1729+ uint64_t stat_slot_get_frame_fail ;
1730+ uint64_t stat_slot_query_ext_fail ;
1731+ uint64_t stat_pkts_simulate_loss ;
1732+ uint64_t stat_pkts_user_meta ;
1733+ uint64_t stat_pkts_user_meta_err ;
1734+ uint64_t stat_pkts_retransmit ;
1735+ uint64_t stat_interlace_first_field ;
1736+ uint64_t stat_interlace_second_field ;
1737+ uint64_t stat_st22_boxes ;
1738+ uint64_t stat_burst_pkts_max ;
1739+ uint64_t stat_burst_succ_cnt ;
1740+ uint64_t stat_burst_pkts_sum ;
1741+ uint64_t incomplete_frames_cnt ;
1742+ uint64_t stat_pkts_wrong_kmod_dropped ;
17071743};
17081744
17091745/**
@@ -1837,7 +1873,7 @@ int st20_tx_put_mbuf(st20_tx_handle handle, void* mbuf, uint16_t len);
18371873int st20_tx_get_sch_idx (st20_tx_handle handle );
18381874
18391875/**
1840- * Retrieve the general statistics(I/O) for one tx st2110-20(video) session port .
1876+ * Retrieve the general statistics(I/O) for one tx st2110-20(video) session.
18411877 *
18421878 * @param handle
18431879 * The handle to the tx st2110-20(video) session.
@@ -1849,11 +1885,10 @@ int st20_tx_get_sch_idx(st20_tx_handle handle);
18491885 * - >=0 succ.
18501886 * - <0: Error code.
18511887 */
1852- int st20_tx_get_port_stats (st20_tx_handle handle , enum mtl_session_port port ,
1853- struct st20_tx_port_status * stats );
1888+ int st20_tx_get_session_stats (st20_tx_handle handle , struct st20_tx_user_stats * stats );
18541889
18551890/**
1856- * Reset the general statistics(I/O) for one tx st2110-20(video) session port .
1891+ * Reset the general statistics(I/O) for one tx st2110-20(video) session.
18571892 *
18581893 * @param handle
18591894 * The handle to the tx st2110-20(video) session.
@@ -1863,7 +1898,7 @@ int st20_tx_get_port_stats(st20_tx_handle handle, enum mtl_session_port port,
18631898 * - >=0 succ.
18641899 * - <0: Error code.
18651900 */
1866- int st20_tx_reset_port_stats (st20_tx_handle handle , enum mtl_session_port port );
1901+ int st20_tx_reset_session_stats (st20_tx_handle handle );
18671902
18681903/**
18691904 * Retrieve the pixel group info from st2110-20(video) format.
@@ -2187,7 +2222,7 @@ bool st20_rx_dma_enabled(st20_rx_handle handle);
21872222int st20_rx_timing_parser_critical (st20_rx_handle handle , struct st20_rx_tp_pass * pass );
21882223
21892224/**
2190- * Retrieve the general statistics(I/O) for one rx st2110-20(video) session port .
2225+ * Retrieve the general statistics(I/O) for one rx st2110-20(video) session.
21912226 *
21922227 * @param handle
21932228 * The handle to the rx st2110-20(video) session.
@@ -2199,11 +2234,10 @@ int st20_rx_timing_parser_critical(st20_rx_handle handle, struct st20_rx_tp_pass
21992234 * - >=0 succ.
22002235 * - <0: Error code.
22012236 */
2202- int st20_rx_get_port_stats (st20_rx_handle handle , enum mtl_session_port port ,
2203- struct st20_rx_port_status * stats );
2237+ int st20_rx_get_session_stats (st20_rx_handle handle , struct st20_rx_user_stats * stats );
22042238
22052239/**
2206- * Reset the general statistics(I/O) for one rx st2110-20(video) session port .
2240+ * Reset the general statistics(I/O) for one rx st2110-20(video) session.
22072241 *
22082242 * @param handle
22092243 * The handle to the rx st2110-20(video) session.
@@ -2213,7 +2247,7 @@ int st20_rx_get_port_stats(st20_rx_handle handle, enum mtl_session_port port,
22132247 * - >=0 succ.
22142248 * - <0: Error code.
22152249 */
2216- int st20_rx_reset_port_stats (st20_rx_handle handle , enum mtl_session_port port );
2250+ int st20_rx_reset_session_stats (st20_rx_handle handle );
22172251
22182252/**
22192253 * Create one rx st2110-22(compressed video) session.
0 commit comments