devlink: add trap metadata type for cookie
Allow driver to indicate cookie metadata for registered traps. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
2008495d81
commit
85b0589ede
@@ -541,6 +541,7 @@ struct devlink_trap_group {
|
||||
};
|
||||
|
||||
#define DEVLINK_TRAP_METADATA_TYPE_F_IN_PORT BIT(0)
|
||||
#define DEVLINK_TRAP_METADATA_TYPE_F_FA_COOKIE BIT(1)
|
||||
|
||||
/**
|
||||
* struct devlink_trap - Immutable packet trap attributes.
|
||||
|
Reference in New Issue
Block a user