rte_table_lpm_ipv6_key(3)

πŸ’– rte_table_lpm_ipv6_key πŸ’–

okay bestie, so you know that page in the library manual called rte_table_lpm_ipv6_key? that's the one we're doing today, and honestly? she's lowkey iconic. let's get into it πŸ¦‹


✨ NAME ✨

rte_table_lpm_ipv6_key β€” the struct that describes one LPM table rule, aka a route, written out as an IP prefix. periodt.


🌸 SYNOPSIS 🌸

#include <rte_table_lpm_ipv6.h>

πŸŽ€ Data Fields πŸŽ€

struct rte_ipv6_addr ip
uint8_t depth

πŸ‘‘ Detailed Description πŸ‘‘

so this thing is the LPM table rule (i.e. route), specified as an IP prefix. that's the whole vibe. πŸ’…

here's the part that trips people up, so listen up: there are two totally different things going on here.

  • 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 work with LPM rules, and each rule covers for a multitude of lookup keys (destination IP addresses) that all share the same data (that's the next hop, bestie) πŸ”₯

so one rule, many keys, one next hop. it's giving main character energy with a whole fanbase. no cap.

Definition at line 77 of file rte_table_lpm_ipv6.h.

🌈 Field Documentation 🌈

🫢 struct rte_ipv6_addr ip

IP address. that's it, that's the field. πŸ’–

Definition at line 79 of file rte_table_lpm_ipv6.h.

🧚 uint8_t depth

IP address depth. and okay let's break it down because this one's doing a lot:

  • 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 those bits are ignored for the purpose of route specification πŸ™ˆ

so whatever's hanging out in the host bits? irrelevant. the routing logic literally does not care. it's a vibe check and those bits did not pass. πŸ’€

Definition at line 85 of file rte_table_lpm_ipv6.h.

⭐ Author ⭐

Generated automatically by Doxygen for DPDK from the source code. (not a human typing away at 3am β€” the machine did it herself πŸ€–βœ¨)


aaaand that's the whole page, bestie!! you ate that πŸ’…

this diva is from DPDK, Version 25.11.3, and she's filed under rte_table_lpm_ipv6_key(3) in the Library Functions Manual. mwah, go ship some routes πŸ’œπŸŒΈπŸŽ€

πŸ“¦ where this page comes from