nfp_fl_ct_handle_pre_ct(9)
π nfp_fl_ct_handle_pre_ct(9) π
okay bestie, welcome to the nfp_fl_ct_handle_pre_ct(9) page β that's the manual name, and yes it's a mouthful, we're gonna get through it together π«Ά this one lives in the Kernel API Manual and it's all about handling -trk conntrack rules. no cap.
β¨ SYNOPSIS β¨
int nfp_fl_ct_handle_pre_ct (struct nfp_flower_priv *priv , struct
net_device *netdev , struct flow_cls_offload *flow , struct
netlink_ext_ack *extack , struct nfp_fl_nft_tc_merge *m_entry );
like, five arguments. five. she's high maintenance but she's iconic π
π ARGUMENTS π
privβ Pointer to app priv. that's the app's private little stash of stuff, iykyk.netdevβ thenetdevstructure. literally the network device herself β¨flowβ TC flower classifier offload structure. this is the flower situation being offloaded.extackβ Extack pointer for errors. when things go wrong, this is who gets to tell you πm_entryβ the previousnfp_fl_nft_tc_mergeentry. the one that came before, bestie.
πΈ DESCRIPTION πΈ
so what does she actually do? she adds a new entry to the relevant zone table, then tries to merge it with the other +trk+est entries, and offloads it if possible. that's the whole vibe check. π¦
lowkey simple on paper, but it's doing real work in there. the way that she just adds, merges, offloads? main character energy, fr fr. π
β RETURN β
- negative value β on error π (yes, negative, that's your cue that something went sideways)
0β if configured successfully π
π§ SEE ALSO π§
first up, the kernel file, exactly as written:
./drivers/net/ethernet/netronome/nfp/flower/conntrack.h
and the whole friend group π―ββοΈ:
struct nfp_fl_ct_zone_entry(9)struct nfp_fl_ct_flow_entry(9)struct nfp_fl_ct_tc_merge(9)struct nfp_fl_nft_tc_merge(9)struct nfp_fl_ct_map_entry(9)nfp_fl_ct_handle_post_ct(9)nfp_fl_create_new_pre_ct(9)nfp_fl_ct_clean_flow_entry(9)nfp_fl_ct_del_flow(9)nfp_fl_ct_handle_nft_flow(9)nfp_fl_ct_stats(9)
like, go read those too, they're all slaying in their own way π
ngl bestie, remember: this one handles the pre ct flow. nfp_fl_ct_handle_post_ct(9) is a whole different girl. don't mix them up π
okay that's the page!! before you go β this one's from the Kernel API Manual, the source/version line says ./drivers/net/ethernet/netrono..., and it's dated October 2026. periodt. now go off and offload something iconic π
β¨π
π¦ 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