rte_swx_port_in_stats(3)

πŸ’– rte_swx_port_in_stats πŸ’–

okay bestie, gather round, because today we're talking about rte_swx_port_in_stats(3) β€” it's a page from the Library Functions Manual, and no, it's not a function bestie, it's a struct 🫢. It's the lil cutie that holds all the stats counters for an input port in DPDK's SWX pipeline world. she's giving receipts, she's giving numbers, she's giving "how busy was my port actually". iykyk ✨


✨ NAME ✨

rte_swx_port_in_stats β€” the input port statistics counters struct, and she's iconic πŸ’…


🌸 SYNOPSIS 🌸

#include <rte_swx_port.h>

πŸŽ€ Data Fields

  • uint64_t n_pkts
  • uint64_t n_bytes
  • uint64_t n_empty

three fields, all uint64_t, all living their best life. periodt πŸ‘‘


πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

okay so literally what this is: input port statistics counters. that's it, that's the vibe. she's a plain lil struct whose whole job is to hold the numbers that tell you what's been happening on an input port πŸ’–

and for the record, she's defined at line 72 of file rte_swx_port.h. noted, screenshotted, saved to the group chat πŸ“Έ


🌈 FIELD DOCUMENTATION 🌈

πŸ’œ uint64_t n_pkts

Number of packets. like, actual packets. the real ones. she's counting them fr fr πŸ”₯

defined at line 74 of file rte_swx_port.h.

πŸ“ uint64_t n_bytes

Number of bytes. and yes bestie, bytes, not packets β€” different unit, different counter, no cap πŸŽ€

defined at line 77 of file rte_swx_port.h.

🧚 uint64_t n_empty

Number of empty polls. that's the counter for every time you went to the port and she had nothing for you. the way that's actually a useful number is honestly wild 😭 but it is β€” empty polls are data too, bestie.

defined at line 80 of file rte_swx_port.h.


⭐ quick vibe check bestie: three counters, three line numbers, zero surprises. if you need n_pkts, n_bytes or n_empty, they're right here in rte_swx_port_in_stats. main character energy only πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. so like, a robot wrote this one, but respectfully, and honestly? she ate πŸ’…βœ¨


and that's the whole page, bestie, we're done here 🫢 this lil cutie came to you from DPDK, Version 25.11.3, and it's the rte_swx_port_in_stats(3) page β€” love her, use her, count those empty polls πŸŒΈπŸ’–πŸ¦‹

πŸ“¦ where this page comes from