devlink_dpi...nter_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the Kernel API Manual β€” yes, that's the whole vibe, a kernel API manual, and honestly? it ate. sit down, hydrate, let's talk about counters ✨


🌸 NAME 🌸

devlink_dpipe_table_counter_enabled β€” check if counter allocation required πŸ”₯

like, the function's whole job is answering one question: "do we need counters here or nah?" and it's giving very much helpful bestie energy πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

bool devlink_dpipe_table_counter_enabled (struct devlink *devlink , const char *table_name );

so it returns a bool, it takes a struct devlink *devlink and a const char *table_name, and no cap, that's the whole signature πŸŽ€


πŸŽ€ ARGUMENTS πŸŽ€

  • devlink β€” a devlink. yeah that's it, that's the description 😭 it's literally "devlink", the manpage said so, and we respect the manpage.
  • table_name β€” the table's name πŸ’« (the original says "tables name", which is giving slightly unhinged grammar, but the meaning is right there β€” it's the name of the table bestie)

✨ DESCRIPTION ✨

so here's the deal, babes πŸ‘‘

This is used by the driver to check if counter allocation is required. that's the whole check. no gatekeeping 🫢

After counter allocation is turned on, the table entries are updated to include counter statistics. so like, boom πŸ’₯ suddenly your entries are out here carrying stats, main character energy fr fr πŸ“Š

After that point on, the driver must respect the counter state so that each entry added to the table is added with a counter. notice the "must" β€” that's not a suggestion, that's a periodt. the driver has to keep the counter state in mind for every single entry it adds, no exceptions, no "oops I forgot" πŸ™ˆ

ngl this is the important bit: once counters are on, every new entry gets added with a counter. the driver has to stay in sync with that state. lowkey iconic of the kernel to just tell you directly πŸ’…

🌈 SEE ALSO 🌈

all of these are also in ./net/devlink if you wanna go read them, and honestly you should, iykyk πŸ¦‹βœ¨


kay that's the whole page bestie, go forth and allocate counters responsibly πŸ’œ

sign-off era: this one lives in ./net/devlink, dated October 2026 🌸 till next time, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from