STRUCT DP_STATS_PERCPU(9)
πΈ NAME πΈ
okay bestie, welcome to the struct dp_stats_percpu(9) page from the Kernel API Manual π«Ά. This is the lowdown on per-cpu packet processing statistics for a given datapath β yes, itβs giving datapath stats, and yes, itβs iconic π
β¨.
β¨ SYNOPSIS β¨
Hereβs the struct in all its glory, no cap:
struct dp_stats_percpu {
u64 n_hit;
u64 n_missed;
u64 n_lost;
u64 n_mask_hit;
u64 n_cache_hit;
struct u64_stats_sync syncp;
};
π Members π
these are the members, and each one is doing its little job π§π:
n_hitβ the number of received packets for which a matching flow was found in the flow table. successful match vibes, slay π .n_missedβ the number of received packets that had no matching flow in the flow table π. and listen: the sum ofn_hitandn_missedis the number of packets that have been received by the datapath. math bestie, periodt.n_lostβ the number of received packets that had no matching flow in the flow table and could not be sent to userspace (normally due to an overflow in one of the datapath's queues). tragic, honestly π.n_mask_hitβ the number of masks looked up for flow match.n_mask_hit / (n_hit + n_missed)will be the average masks looked up per packet. formula moment π₯.n_cache_hitβ the number of received packets that had their mask found using the mask cache. cache said βi got youβ π«Άβ¨.syncpβ synchronization point for 64bit counters. keeping the counters in check, main character energy π.
π SEE ALSO π
the whole squad, iykyk π:
- Kernel file
./net/openvswitch/datapath.h struct dp_nlsk_pids(9)struct datapath(9)struct ovs_skb_cb(9)struct dp_upcall_info(9)struct ovs_net(9)enum ovs_pkt_hash_types(9)
byeee π β source/version is ./net/openvswitch, dated October 2026, and this page is struct dp_stats_percpu(9) πβ¨.
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms