STRUCT BNX2I_ENDPOINT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🧚 struct bnx2i_endpoint(9) β€” a Kernel API Manual moment

okay bestie, so this is a page from the Kernel API Manual, and it's about struct bnx2i_endpoint β€” literally the whole vibe of what a tcp connection looks like in NX2 world. no cap.

✨ NAME ✨

struct bnx2i_endpoint β€” representation of tcp connection in NX2 world. that's it, that's the whole thing πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

like, here's the shape of it. don't touch the semicolons, they're doing their job:

struct bnx2i_endpoint {
    struct list_head link;
    struct bnx2i_hba *hba;
    struct bnx2i_conn *conn;
    struct iscsi_endpoint *cls_ep;
    struct cnic_sock *cm_sk;
    u32 hba_age;
    u32 state;
    unsigned long timestamp;
    atomic_t num_active_cmds;
    u32 ec_shift;
    struct qp_info qp;
    struct ep_handles ids;
  #define ep_iscsi_cid    ids.drv_iscsi_cid;
  #define ep_cid          ids.fw_cid;
  #define ep_pg_cid       ids.pg_cid;
    struct timer_list ofld_timer;
    wait_queue_head_t ofld_wait;
 };

πŸ’– Members πŸ’–

  • link β€” the list head that links elements together. it's giving glue energy 🫢
  • hba β€” the adapter this connection belongs to. your connection's home base, fr fr
  • conn β€” the iscsi connection this EP is linked to
  • cls_ep β€” the associated iSCSI endpoint pointer
  • cm_sk β€” the cnic sock struct
  • hba_age β€” the age, used to detect if iscsid issues ep_disconnect after the HBA reset is completed by bnx2i/cnic/bnx2 modules. lowkey a detective πŸ”
  • state β€” tracks the offload connection state machine. main character energy honestly
  • timestamp β€” tracks the start time for when the ep begins to connect ⏰
  • num_active_cmds β€” tracks the number of outstanding commands for this ep
  • ec_shift β€” the amount of shift as part of the event coal calc
  • qp β€” QP information
  • ids β€” contains the chip allocated context id & the driver assigned iscsi cid
  • ofld_timer β€” the offload timer, there to detect timeout ⏳
  • ofld_wait β€” a wait queue

🌸 Description 🌸

okay so β€” this is the Endpoint Structure, which is literally the equivalent of the tcp socket structure. that's the whole description, she's short and she ate πŸ’…βœ¨


πŸ”₯ SEE ALSO πŸ”₯

go look at the kernel file ./drivers/scsi/bnx2i/bnx2i.h, plus these iconic structs:

  • struct generic_pdu_resc(9)
  • struct bd_resc_page(9)
  • struct io_bdt(9)
  • struct bnx2i_conn(9)
  • struct iscsi_cid_queue(9)
  • struct bnx2i_hba(9)
  • struct qp_info(9)

heads up bestie: this page is from ./drivers/scsi/bnx2i, and the date on it is October 2026 πŸ—“οΈ

and that's a wrap! source ./drivers/scsi/bnx2i, October 2026, struct bnx2i_endpoint(9) β€” obsessed with her, honestly. bye bestie, go read the header file πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from