net: microchip: sparx5: Add VCAP debugFS key/action support for the VCAP API
authorSteen Hegelund <steen.hegelund@microchip.com>
Thu, 17 Nov 2022 21:31:12 +0000 (22:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2022 11:33:02 +0000 (11:33 +0000)
commit72d84dd609bea135f823e8d1a60380b4aa443ee5
tree0b6f1b3313d61a3af5655ff403b7bf521bf2399d
parent3a7921560d2fd38433fdb2e9b8728ab832880680
net: microchip: sparx5: Add VCAP debugFS key/action support for the VCAP API

This add support for displaying the keys and actions in a rule.
The keys and action display format will be determined by the size and the
type of the key or action. The longer keys will typically be displayed as a
hexadecimal byte array.

The actionset is not decoded in full as the Sparx5 IS2 only has one
supported action, so this will be added later with other VCAP types.

Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/vcap/vcap_api.c
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.c
drivers/net/ethernet/microchip/vcap/vcap_api_private.h