ixgbe_ipsec_find_rx_state(9)
π ixgbe_ipsec_find_rx_state(9) β the kernel API manual page, bestie edition
okay so you're reading the ixgbe_ipsec_find_rx_state(9) page from the Kernel API Manual and honestly? iconic. this is the little helper that goes "wait, which state matches this?" and hands you back exactly what you need. let's get into it π«Ά
β¨ NAME β¨
ixgbe_ipsec_find_rx_state β find the state that matches
like, literally its whole personality is matching. iykyk π
β¨ SYNOPSIS β¨
struct xfrm_state * ixgbe_ipsec_find_rx_state (struct ixgbe_ipsec *ipsec
, __be32 *daddr , u8 proto , __be32 spi , bool ip4 );
she takes five things and returns a struct xfrm_state *, no cap β¨
β¨ ARGUMENTS β¨
ipsecβ pointer to theipsecstruct. your main character struct, she holds the whole situation πdaddrβ the inbound address to match. this is what you're hunting for π―protoβ the protocol to match π¦spiβ the SPI to match π₯ (yep, the actual security parameter index, not a vibe)ip4βtrueif you're using an ipv4 address β
ngl,ip4being abooland not, like, an enum is so real of it. you either are or you aren't π
β¨ DESCRIPTION β¨
returns a pointer to the matching SA state information π
that's it. that's the whole plot. she matches, she returns the pointer, she leaves. lowkey elegant, highkey essential π
β¨ SEE ALSO β¨
the kernel file where all the magic lives, fr fr:
./drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
and the whole friend group π (they're literally all siblings, go read them too):
ixgbe_ipsec_set_tx_sa(9)ixgbe_ipsec_set_rx_item(9)ixgbe_ipsec_set_rx_sa(9)ixgbe_ipsec_set_rx_ip(9)ixgbe_ipsec_clear_hw_tables(9)ixgbe_ipsec_stop_data(9)ixgbe_ipsec_stop_engine(9)ixgbe_ipsec_start_engine(9)ixgbe_ipsec_restore(9)ixgbe_ipsec_find_empty_idx(9)ixgbe_ipsec_parse_proto_keys(9)ixgbe_ipsec_check_mgmt_ip(9)ixgbe_ipsec_add_sa(9)ixgbe_ipsec_del_sa(9)ixgbe_ipsec_vf_clear(9)ixgbe_ipsec_vf_add_sa(9)ixgbe_ipsec_vf_del_sa(9)ixgbe_ipsec_tx(9)ixgbe_ipsec_rx(9)ixgbe_init_ipsec_offload(9)ixgbe_stop_ipsec_offload(9)
okay that's the whole page bestie, no skips, no cuts πΈ
cute little sign-off: this one's sourced from ./drivers/net/ethernet/intel/i... (the path as printed, yeah it's abbreviated, that's how the page gives it π) and it's dated October 2026 β so go forth, match those states, and slay πβ¨π
π¦ 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