ENUM EFX_FILTER_MATCH_FLAGS(9)
π enum efx_filter_match_flags(9) β the group-chat guide
okay so listen bestie, this is a page straight out of the Kernel API Manual for enum efx_filter_match_flags, and honestly? it's giving "choose your own adventure but make it network hardware." it's the flags you use to tell the hardware what to actually match on when it filters packets. iconic behavior, no cap.
β¨ NAME β¨
enum efx_filter_match_flags β literally the flags that pick the hardware filter match type π
πΈ SYNOPSIS πΈ
enum efx_filter_match_flags {
EFX_FILTER_MATCH_REM_HOST ,
EFX_FILTER_MATCH_LOC_HOST ,
EFX_FILTER_MATCH_REM_MAC ,
EFX_FILTER_MATCH_REM_PORT ,
EFX_FILTER_MATCH_LOC_MAC ,
EFX_FILTER_MATCH_LOC_PORT ,
EFX_FILTER_MATCH_ETHER_TYPE ,
EFX_FILTER_MATCH_INNER_VID ,
EFX_FILTER_MATCH_OUTER_VID ,
EFX_FILTER_MATCH_IP_PROTO ,
EFX_FILTER_MATCH_LOC_MAC_IG ,
EFX_FILTER_MATCH_ENCAP_TYPE
};
(those trailing commas and that lonely blank line before the };? that's canon, bestie, keep it exactly like that π«Ά)
π¦ Constants π¦
the whole squad, one by one:
EFX_FILTER_MATCH_REM_HOSTβ match by the remote IP host address, slayEFX_FILTER_MATCH_LOC_HOSTβ match by the local IP host addressEFX_FILTER_MATCH_REM_MACβ match by the remote MAC address πEFX_FILTER_MATCH_REM_PORTβ match by the remote TCP/UDP portEFX_FILTER_MATCH_LOC_MACβ match by the local MAC addressEFX_FILTER_MATCH_LOC_PORTβ match by the local TCP/UDP portEFX_FILTER_MATCH_ETHER_TYPEβ match by Ether-type, periodtEFX_FILTER_MATCH_INNER_VIDβ match by inner VLAN IDEFX_FILTER_MATCH_OUTER_VIDβ match by outer VLAN IDEFX_FILTER_MATCH_IP_PROTOβ match by IP transport protocolEFX_FILTER_MATCH_LOC_MAC_IGβ match by local MAC address I/G bit. (yes, with the period, it's cute)EFX_FILTER_MATCH_ENCAP_TYPEβ match by encapsulation type. Used for RX default unicast and multicast/broadcast filters π₯
π Description π
okay so here's the tea: only some combinations are supported, and it all depends on your NIC type. vibe check by card:
- Falcon supports RX filters matching by {TCP,UDP}/IPv4 4-tuple or local 2-tuple (only implemented for Falcon B0) π¦ β yeah, B0 only, that's the whole sentence, don't come for me
- Siena supports RX and TX filters matching by {TCP,UDP}/IPv4 4-tuple or local 2-tuple, or local MAC with or without outer VID, and RX default filters β¨
- Huntington supports filter matching controlled by firmware, potentially using {TCP,UDP}/IPv{4,6} 4-tuple or local 2-tuple, local MAC or I/G bit, with or without outer and inner VID π
ngl the Huntington one is doing the most β "controlled by firmware, potentially usingβ¦" is highkey a whole mood. it's the main character of match combos π
π SEE ALSO π
the required reading, iykyk:
- Kernel file
./drivers/net/ethernet/sfc/siena/filter.henumπ efx_filter_priority(9)enum efx_filter_flags(9)struct efx_filter_spec(9)efx_filter_set_ipv4_local(9)efx_filter_set_ipv4_full(9)efx_filter_set_eth_local(9)efx_filter_set_uc_def(9)efx_filter_set_mc_def(9)
and that's the whole page, bestie π«Ά this lil gem lives in ./drivers/net/ethernet/sfc/siena, dated October 2026, and it's filed under enum efx_filter_match_flags(9) β go forth and filter responsibly πβ¨
π¦ 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