ksz_port_set...ust_validate(9)
π NAME π
ksz_port_set_apptrust_validate β validates the apptrust selectors
This is a page from the Kernel API Manual, bestie β and it's all about that apptrust selector validation life.
β¨ SYNOPSIS β¨
int ksz_port_set_apptrust_validate (struct ksz_device *dev , int port ,
const u8 *sel , int nsel );
π«Ά ARGUMENTS π«Ά
devβ pointer to the KSZ switch device structure. That's the main character.portβ port number for which to set the apptrust selectors.selβ array of apptrust selectors to validate. The lineup, basically.nselβ number of apptrust selectors in the array. Gotta know how many we're checking.
πΈ DESCRIPTION πΈ
Okay so this function validates the apptrust selectors provided and makes sure they are in the correct order. No cap, the order matters.
This family of switches supports two apptrust selectors: DCB_APP_SEL_PCP and IEEE_8021QAZ_APP_SEL_DSCP. The priority order of the selectors is fixed and cannot be changed. The order is as follows:
DCB_APP_SEL_PCPβ Priority Code Point selector (highest priority)IEEE_8021QAZ_APP_SEL_DSCPβ Differentiated Services Code Point selector (lowest priority)
No swapping, no remixing, periodt. π
π₯ RETURN π₯
0 on success, or a negative error code on failure.
π SEE ALSO π
The kernel file is right here: ./drivers/net/dsa/microchip/ksz_dcb.c
And the whole gang:
ksz_get_dscp_prio_reg(9)ksz_get_apptrust_map_and_reg(9)ksz_port_get_default_prio(9)ksz_port_set_default_prio(9)ksz_port_get_dscp_prio(9)ksz_set_global_dscp_entry(9)ksz_init_global_dscp_map(9)ksz_port_add_dscp_prio(9)ksz_port_del_dscp_prio(9)ksz_apptrust_error(9)ksz_port_set_apptrust(9)ksz_port_get_apptrust(9)ksz_dcb_init_port(9)ksz_dcb_init(9)
source/version ./drivers/net/dsa/microchip Β· date October 2026 Β· page ksz_port_set...ust_validate(9) from the Kernel API Manual. bye bestie, go validate those selectors πβ¨
π¦ 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