drivers/net/ethernet/mscc/ocelot_police.h

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/mscc/ocelot_police.h

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/mscc/ocelot_police.h
Extension
.h
Size
1366 bytes
Lines
42
Domain
Driver Families
Bucket
drivers/net
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

struct qos_policer_conf {
	enum mscc_qos_rate_mode mode;
	bool dlb; /* Enable DLB (dual leaky bucket mode */
	bool cf;  /* Coupling flag (ignored in SLB mode) */
	u32  cir; /* CIR in kbps/fps (ignored in SLB mode) */
	u32  cbs; /* CBS in bytes/frames (ignored in SLB mode) */
	u32  pir; /* PIR in kbps/fps */
	u32  pbs; /* PBS in bytes/frames */
	u8   ipg; /* Size of IPG when MSCC_QOS_RATE_MODE_LINE is chosen */
};

int qos_policer_conf_set(struct ocelot *ocelot, u32 pol_ix,
			 struct qos_policer_conf *conf);

int ocelot_policer_validate(const struct flow_action *action,
			    const struct flow_action_entry *a,
			    struct netlink_ext_ack *extack);

#endif /* _MSCC_OCELOT_POLICE_H_ */

Annotation

Implementation Notes