ksz_port_set...ust_validate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

  1. DCB_APP_SEL_PCP β€” Priority Code Point selector (highest priority)
  2. 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:


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