netdevsim: add ACL trap reporting cookie as a metadata
authorJiri Pirko <jiri@mellanox.com>
Tue, 25 Feb 2020 10:45:26 +0000 (11:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Feb 2020 19:05:55 +0000 (11:05 -0800)
commit1fa4b3fc80b4fac911e1f65489e61bc56c087d00
tree7aa16891799aeb91509266d1e0bac998decfbdb9
parented41e26d18af00cf21ad1186dacb0158be01bdcc
netdevsim: add ACL trap reporting cookie as a metadata

Add new trap ACL which reports flow action cookie in a metadata. Allow
used to setup the cookie using debugfs file.

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>
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/netdevsim.h