efx_filter_insert_filter(9)
π efx_filter_insert_filter π
okay bestie, so this one lives in the Kernel API Manual, and it's literally the function that puts a new filter into your NIC (or swaps one out). let's get into it π
β¨ SYNOPSIS β¨
s32 efx_filter_insert_filter (struct efx_nic *efx , struct
efx_filter_spec *spec , bool replace_equal );
yes queen, that's the whole signature, don't @ me π«Ά
πΈ ARGUMENTS πΈ
efxβ the NIC you're inserting the filter into. like, the actual network card, bestie πspecβ the specification for the filter. this is the blueprint for what you want β¨replace_equalβ a flag for whether the specified filter may replace an existing filter with equal priority. so like, do you want to be polite and let it swap, or nah? π
π DESCRIPTION π
On success, this returns the filter ID. On failure, it returns a negative error code (sad girl hours π).
okay so here's the tea: if existing filters have equal match values to the new filter spec, then the new filter might replace them, or the function might just fail. it's giving "it depends." here's the play-by-play:
- If the existing filters have lower priority, or
replace_equalis set and they have equal priority, replace them. slay, you win π - If the existing filters have higher priority, return
-EPERM. nope, not today, permission denied π« - If
!efx_siena_filter_is_mc_recipient(spec), or the NIC does not support delivery to multiple recipients, return-EEXIST. already exists, sorry bestie π
This implies that filters for multiple multicast recipients must all be inserted with the same priority and replace_equal = false. no cap, that's literally the rule π₯
π¦ SEE ALSO π¦
- Kernel file
./drivers/net/ethernet/sfc/siena/efx.h efx_filter_remove_id_safe(9)efx_filter_get_filter_safe(9)
mwah π that's the whole page. stay iconic, stay hydrated, and remember: -EPERM is just the kernel saying "not you, girl."
this little gem comes from ./drivers/net/ethernet/sfc/siena, dated October 2026 β go forth and filter responsibly, bestie π§β¨
π¦ 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