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
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms