__libeth_xdp_set_features(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __libeth_xdp_set_features(9) ✨

okay so bestie, welcome to the kernel API manual πŸ’– this one's a lil function called __libeth_xdp_set_features and it's literally all about turning on XDP features for a netdev. buckle up, it's short but it matters.


🌸 NAME 🌸

__libeth_xdp_set_features β€” set XDP features for netdev ✨


πŸŽ€ SYNOPSIS πŸŽ€

void __libeth_xdp_set_features (struct net_device *dev , const struct
xdp_metadata_ops *xmo , u32 zc_segs , const struct xsk_tx_metadata_ops
*tmo );

πŸ’… ARGUMENTS πŸ’…

  • dev β€” the net_device you're configuring, periodt. this is the one that actually matters, no cap.
  • xmo β€” the XDP metadata ops (aka the Rx hints πŸ‘€).
  • zc_segs β€” the maximum number of S/G frags the HW can transmit. yeah, hardware limits, iconic of it honestly.
  • tmo β€” the XSk Tx metadata ops (the Tx hints ✨).

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it do? it sets all the features that libeth_xdp supports. that's the whole vibe ✨

here's the tea though: only the first argument is necessary 🫢. and if you don't pass that third one β€” like, you leave it at zero β€” then XSk support just won't be advertised. not a bug, just how she works πŸ’€.

⚠️ real talk: use the non-underscored versions in drivers instead. this underscore girlie is the internal one, iykyk πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘


⭐ and that's the whole page bestie 🫢 this lil manual moment comes to you from ./drivers/net/ethernet/intel/l..., dated October 2026, filed under __libeth_xdp_set_features(9) β€” slay, go set some features πŸ’–πŸŒˆ


πŸ“¦ where this page comes from