nfp_fl_ct_handle_pre_ct(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the netdev structure. 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 previous nfp_fl_nft_tc_merge entry. 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 πŸ‘―β€β™€οΈ:

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