ef4_filter_insert_filter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is the Kernel API Manual page for ef4_filter_insert_filter(9), and it’s literally the glow-up guide for adding or replacing a filter ✨

🌸 NAME 🌸

ef4_filter_insert_filter β€” add or replace a filter. periodt πŸ’…

✨ SYNOPSIS ✨

the signature is giving:

s32 ef4_filter_insert_filter (struct ef4_nic *efx , struct ef4_filter_spec *spec , bool replace_equal );

πŸŽ€ ARGUMENTS πŸŽ€

  • efx β€” the NIC in which to insert the filter πŸ¦‹
  • spec β€” the specification for the filter ✨
  • replace_equal β€” flag for whether the specified filter may replace an existing filter with equal priority πŸ‘‘

πŸ’… DESCRIPTION πŸ’…

On success, return the filter ID. On failure, return a negative error code. no cap.

If existing filters have equal match values to the new filter spec, then the new filter might replace them or the function might fail, as follows:

  1. If the existing filters have lower priority, or replace_equal is set and they have equal priority, replace them. ate πŸ’–
  2. If the existing filters have higher priority, return -EPERM. πŸ’€
  3. If !ef4_filter_is_mc_recipient(spec), or the NIC does not support delivery to multiple recipients, return -EEXIST. 😭

This implies that filters for multiple multicast recipients must all be inserted with the same priority and replace_equal = false. fr fr 🌈

πŸ¦‹ SEE ALSO πŸ¦‹


okay bye bestie 🫢 β€” source/version: ./drivers/net/ethernet/sfc/falcon, date: October 2026, manual: ef4_filter_insert_filter(9) πŸ’œ

πŸ“¦ where this page comes from