rte_flow_item_nvgre(3)

✨ NAME ✨

rte_flow_item_nvgre β€” bestie, this is the struct that matches a NVGRE header in DPDK's flow API πŸ’– (the page header says rte_flow_item_nvgre(3), section 3 of the Library Functions Manual, just so u know where u are 🫢)


🌸 SYNOPSIS 🌸

#include <rte_flow.h>

πŸŽ€ Data Fields

  • rte_be16_t c_k_s_rsvd0_ver
  • rte_be16_t protocol
  • uint8_t tni[3]
  • uint8_t flow_id

πŸ’… Detailed Description πŸ’…

RTE_FLOW_ITEM_TYPE_NVGRE.

It matches a NVGRE header. That's the whole vibe. no cap ✨

Defined at line 1168 of the file rte_flow.h. πŸ“


πŸ¦‹ Field Documentation πŸ¦‹

πŸ’œ rte_be16_t c_k_s_rsvd0_ver

Okay so this one field is literally a whole bit-packing situation, and it's giving ✨crammed✨. Here's the breakdown, bit by bit, no skipping:

  • Checksum (1b)
  • undefined (1b)
  • key bit (1b)
  • sequence number (1b)
  • reserved 0 (9b)
  • version (3b)

And the tea β˜•: c_k_s_rsvd0_ver must have the value 0x2000 according to RFC 7637. Not "should", not "maybe", must. like, that's the rule bestie πŸ“œ

Defined at line 1175 of the file rte_flow.h.

πŸ“ rte_be16_t protocol

Protocol type, and it's 0x6558. yes that specific. πŸ’…

Defined at line 1176 of the file rte_flow.h.

🌈 uint8_t tni[3]

Virtual subnet ID 🫧 (three whole bytes of it, queen)

Defined at line 1177 of the file rte_flow.h.

⭐ uint8_t flow_id

Flow ID. cute, simple, iconic. πŸ‘‘

Defined at line 1178 of the file rte_flow.h.


πŸ’– Author πŸ’–

Generated automatically by Doxygen for DPDK from the source code. (not a human, just a lil robot doing its thing πŸ€–βœ¨ the way it wrote a whole doc for us fr fr)


aaaand that's the page bestie!! πŸŽ€ this was DPDK, Version 25.11.3, and it slayed as rte_flow_item_nvgre(3) β€” bye pookie, go match some NVGRE headers πŸ’…πŸ¦‹πŸ’–

πŸ“¦ where this page comes from