rte_table_lpm_key(3)

πŸ’– rte_table_lpm_key β€” bestie's guide to the LPM key (manual page, section 3) πŸ’–

okay so you know how every good routing era needs a little key to unlock the vibes? this is that key. it's <rte_table_lpm_key>, living its best life over in the DPDK library functions manual, and honestly? it understands the assignment. πŸŽ€


✨ SYNOPSIS ✨

#include <rte_table_lpm.h>

🌸 Data Fields 🌸

  • uint32_t ip
  • uint8_t depth

periodt. that's the whole squad. πŸ’…


πŸ¦‹ Detailed Description πŸ¦‹

so this little struct is an LPM table rule (a.k.a. a route, bestie, that's the same thing), and it's specified as an IP prefix. iconic behavior fr fr.

now here's the tea, and it's important tea: the key used by the lookup operation is the destination IP address, read from the input packet meta-data. but the entry add and entry delete operations don't play like that β€” they work with LPM rules. and the way each one single rule covers for a multitude of lookup keys (those being destination IP addresses) that all share the same data (a.k.a. the next hop)? chef's kiss. that's the whole point. one rule, many keys, one shared next hop. the math is mathing. πŸ”₯

Definition at line 76 of file rte_table_lpm.h.


🧚 Field Documentation 🧚

πŸ’œ uint32_t ip

it's an IP address. that's it, that's the field, she said what she said. 🌈

Definition at line 78 of file rte_table_lpm.h.

πŸ“ uint8_t depth

this one is the IP address depth. here's the rundown so you don't get caught slipping: the most significant "depth" bits of the IP address specify the network part of the IP address, while the rest of the bits specify the host part of the address and are ignored for the purpose of route specification. so like, don't come for those bits, they're just vibing in the background. πŸ™ˆ

Definition at line 84 of file rte_table_lpm.h.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. no cap, it wasn't even a human ghostwriting this, it's literally the machine. πŸ’€


lowkey a whole legendary read, highkey obsessed. now go configure your routes, main character. ✨

DPDK, Version 25.11.3 β€” rte_table_lpm_key(3). bye bestie, ily, see u at the next lookup πŸ«ΆπŸ’–

πŸ“¦ where this page comes from