STRUCT PPE_SC_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct ppe_sc_cfg(9) 🌸

okay bestie, we're in the Kernel API Manual today and this one is literally about PPE service code configuration πŸ’… (that's struct ppe_sc_cfg, for the people in the back 🫢). Buckle up, it's giving very niche networking energy and honestly? obsessed.


✨ NAME ✨

struct ppe_sc_cfg β€” PPE service code configuration. that's it, that's the vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct ppe_sc_cfg {
    bool dest_port_valid;
    int dest_port;
    struct ppe_sc_bypass bitmaps;
    bool is_src;
    int next_service_code;
    int eip_field_update_bitmap;
    int eip_hw_service;
    int eip_offset_sel;
 };

copy it exactly, no cap, don't be out here retyping it from memory 😭


πŸ‘‘ Members πŸ‘‘

  • dest_port_valid β€” do we generate a destination port or not? yes/no energy, a literal bool slay βœ…
  • dest_port β€” the destination port ID, the main character of this field ngl 🌟
  • bitmaps β€” a struct ppe_sc_bypass holding the bitmap of bypass features πŸ’«
  • is_src β€” the destination port acts as a source port, and the packet gets sent to the CPU πŸ–₯️ (iykyk)
  • next_service_code β€” the new service code that gets generated, fresh out the oven πŸ“
  • eip_field_update_bitmap β€” which fields get updated as actions are taken for EIP πŸ“
  • eip_hw_service β€” the hardware functions selected for EIP πŸ”₯
  • eip_offset_sel β€” packet offset selection: you're either using the packet's layer 4 offset or the packet's layer 3 offset for EIP, pick your fighter πŸ₯Š

πŸ’œ Description πŸ’œ

so here's the tea πŸ«–: the service code is generated while the packet is passing through PPE. that's the whole description. short, sweet, iconic, periodt ✨


🌈 SEE ALSO 🌈

  • the kernel file ./drivers/net/ethernet/qualcomm/ppe/ppe_config.h
  • enum ppe_scheduler_frame_mode(9)
  • struct ppe_scheduler_cfg(9)
  • enum ppe_resource_type(9)
  • struct ppe_queue_ucast_dest(9)
  • struct ppe_sc_bypass(9)
  • enum ppe_action_type(9)
  • struct ppe_rss_hash_cfg(9)

go read them, bestie, they're all linked in the lore πŸ§šπŸ’–


no warnings, no bugs, no exit statuses on this one β€” just pure struct goodness. but do keep every field spelled exactly right, fr fr πŸ™ˆ

and that's the whole page! footer deets for the record: source is ./drivers/net/ethernet/qualcom... and the date on it is October 2026, page is struct ppe_sc_cfg(9). mwah, ily, go configure some service codes πŸ’…πŸŽ€β­

πŸ“¦ where this page comes from