emac_xdp_xmit(9)
π emac_xdp_xmit(9) β from the Kernel API Manual, bestie β¨
okay so listen. this is a page straight out of the Kernel API Manual, and it's about one little function that does a very specific job. stay with me, it's gonna be cute and it's gonna be correct π
πΈ NAME πΈ
emac_xdp_xmit β the function that implements ndo_xdp_xmit. that's it, that's the whole vibe. it's the ndo_xdp_xmit implementation, no cap π«Ά
β¨ SYNOPSIS β¨
int emac_xdp_xmit (struct net_device *dev , int n , struct xdp_frame
**frames , u32 flags );
yes she takes four things and returns an int, periodt π
π ARGUMENTS π
devβ the netdev. that's the network device we're doing all this on π¦nβ number of frames. literally just how many frames we're talking about βframesβ array of XDP buffer pointers. it's giving "here's the whole lineup" πflagsβ XDP extra info. the lil extras, yk? π
π₯ RETURN π₯
the number of frames successfully sent π and like β failed frames will be free'ed by XDP core. so don't you dare go freeing them yourself, that's not your job, that's XDP core's job π
π DESCRIPTION π
so for error cases? a negative errno code comes back and no-frames are transmitted. read that again bestie, because it matters: the caller must handle freeing frames in that situation π the caller. that's you. handle it.
π§ SEE ALSO π§
the kernel file it lives in, for the curious girlies:
Kernel file ./drivers/net/ethernet/ti/icssg/icssg_prueth.c
and the whole friend group of related pages β every single one, i'm not skipping anybody:
icssg_is_addr_synced(9)icssg_hsr_fdb_update(9)icssg_prueth_hsr_fdb_add_del(9)emac_ndo_open(9)emac_ndo_stop(9)icssg_hsr_handle_multicast_sync(9)emac_ndo_set_rx_mode(9)emac_xdp_setup(9)emac_ndo_bpf(9)icssg_mode_firmware_names(9)
π friendly reminder: negative errno = nothing went out + the caller frees the frames. that's the whole caveat. don't fumble it.
and that's the page, bestie π this one came from ./drivers/net/ethernet/ti/icssg, dated October 2026 β mwah, go ship some frames πβ¨ππ¦
π¦ 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