eth_header_cache(9)
π eth_header_cache(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for eth_header_cache(9), and it's literally the moment a neighbour hands over the receipts so we can build a header template. no cap, it's a tiny function but it's iconic in its own way π
β¨ NAME β¨
eth_header_cache β fill that cache entry from the neighbour, periodt
π¦ SYNOPSIS π¦
int eth_header_cache (const struct neighbour *neigh , struct hh_cache
*hh , __be16 type );
πΈ ARGUMENTS πΈ
neighβ the source neighbour π«Ά this is where the info is coming fromhhβ the destination cache entry π this is the glow-up target we're filling intypeβ the Ethernet type field, fr fr
β DESCRIPTION β
So what does it actually do? It creates an Ethernet header template from the neighbour. that's the whole vibe π§β¨ like, the neighbour's details get turned into a header template and everybody moves on. simple, clean, slay.
π₯ SEE ALSO π₯
Kernel file ./net/ethernet/eth.c β and bestie, the whole friend group is here:
eth_header(9)eth_get_headlen(9)eth_type_trans(9)eth_header_cache_update(9)eth_header_parse_protocol(9)eth_prepare_mac_addr_change(9)eth_commit_mac_addr_change(9)eth_mac_addr(9)ether_setup(9)alloc_etherdev_mqs(9)platform_get_ethdev_address(9)nvmem_get_mac_address(9)fwnode_get_mac_address(9)device_get_mac_address(9)device_get_ethdev_address(9)
π that's the whole page, no filler. go read the others if you want the full lore, iykyk.
mwah π this has been your girl signing off β brought to you by ./net/ethernet, dated October 2026, and this was eth_header_cache(9) all along πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms