mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
Documentation: Add devlink-trap documentation
Add initial documentation of the devlink-trap mechanism, explaining the background, motivation and the semantics of the interface. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
391203ab11
commit
f3047ca01f
@@ -540,6 +540,9 @@ struct devlink_trap {
|
||||
u32 metadata_cap;
|
||||
};
|
||||
|
||||
/* All traps must be documented in
|
||||
* Documentation/networking/devlink-trap.rst
|
||||
*/
|
||||
enum devlink_trap_generic_id {
|
||||
DEVLINK_TRAP_GENERIC_ID_SMAC_MC,
|
||||
DEVLINK_TRAP_GENERIC_ID_VLAN_TAG_MISMATCH,
|
||||
@@ -556,6 +559,9 @@ enum devlink_trap_generic_id {
|
||||
DEVLINK_TRAP_GENERIC_ID_MAX = __DEVLINK_TRAP_GENERIC_ID_MAX - 1,
|
||||
};
|
||||
|
||||
/* All trap groups must be documented in
|
||||
* Documentation/networking/devlink-trap.rst
|
||||
*/
|
||||
enum devlink_trap_group_generic_id {
|
||||
DEVLINK_TRAP_GROUP_GENERIC_ID_L2_DROPS,
|
||||
DEVLINK_TRAP_GROUP_GENERIC_ID_L3_DROPS,
|
||||
|
||||
Reference in New Issue
Block a user