t4_crypto_send(9)
π t4_crypto_send β the Kernel API Manual glow-up (section 9, bestie) π
okay so real talk: this is t4_crypto_send(9) from the Kernel API Manual, section 9, and it's honestly such a short king of a function. let's get into it π«Ά
β¨ NAME β¨
t4_crypto_send β literally just: send crypto packet. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int t4_crypto_send (struct adapter *adap , struct sk_buff *skb );
like yes bestie, it returns an int, and yes, those are the args. no cap.
π¦ ARGUMENTS π¦
adapβ the adapter. the whole entire network adapter. main character energy, honestly πskbβ the packet. the little guy being yeeted. the payload princess π
π₯ DESCRIPTION π₯
So like. it sends a crypto packet. that's the job. π§
BUT here's the fun part β and by fun I mean the part you actually need to remember for the exam, bestie π β it doesn't just pick a Tx queue out of thin air. it uses the packet's queue_mapping to choose the appropriate Tx queue, and the mapping is sliced up like this:
- bit 0 β tells you whether the packet should be sent as
regularor ascontrol. one bit. two moods. π - bits 1-15 β these bad boys select the queue. that's your queue number, periodt. β¨
so it's giving "bitfield assignment realness" and honestly? ate. π₯
π SEE ALSO π
okay this is the part where the manpage just goes absolutely feral and lists, like, everything in the whole ./drivers/net/ethernet/chelsio/cxgb4/sge.c file. iykyk. here's the full squad, no one left behind π«Ά:
txq_avail(9)fl_cap(9)fl_starving(9)deferred_unmap_destructor(9)free_tx_desc(9)reclaim_completed_tx(9)cxgb4_reclaim_completed_tx(9)free_rx_bufs(9)unmap_rx_buf(9)refill_fl(9)alloc_ring(9)sgl_len(9)flits_to_desc(9)is_eth_imm(9)calc_tx_flits(9)cxgb4_write_sgl(9)cxgb4_ring_tx_db(9)cxgb4_inline_tx_skb(9)t4_sge_eth_txq_egress_update(9)cxgb4_eth_xmit(9)t4vf_is_eth_imm(9)t4vf_calc_tx_flits(9)cxgb4_vf_eth_xmit(9)reclaim_completed_tx_imm(9)cxgb4_ethofld_send_flowc(9)is_imm(9)ctrlq_check_stop(9)ctrl_xmit(9)restart_ctrlq(9)t4_mgmt_tx(9)is_ofld_imm(9)calc_tx_flits_ofld(9)txq_stop_maperr(9)ofldtxq_stop(9)service_ofldq(9)ofld_xmit(9)restart_ofldq(9)skb_txq(9)is_ctrl_pkt(9)t4_ofld_send(9)cxgb4_ofld_send(9)ofld_xmit_direct(9)cxgb4_crypto_send(9)cxgb4_pktgl_to_skb(9)t4_pktgl_free(9)cxgb4_sgetim_to_hwtstamp(9)t4_systim_to_hwstamp(9)t4_rx_hststamp(9)t4_tx_hststamp(9)t4_tx_completion_handler(9)t4_ethrx_handler(9)restore_rx_bufs(9)is_new_response(9)rspq_next(9)process_responses(9)napi_rx_handler(9)t4_intr_handler(9)bar2_address(9)t4_sge_alloc_eth_txq(9)t4_free_sge_resources(9)t4_sge_stop(9)t4_sge_init_soft(9)t4_sge_init(9)
likeβ¦ 62 entries. she's thorough. she's committed. we respect her. ππ
and that's the whole page, bestie β famously short, secretly packed. π
ngl this function is way less mysterious than it looks. one bit picks the mood, fifteen bits pick the queue. go forth and slay. π
π· xoxo, this page came from ./drivers/net/ethernet/chelsio... and was dated October 2026, and it signs off as t4_crypto_send(9) β catch you in the next manpage, mwah πβ¨π¦
π¦ 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