]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: microchip: sparx5: Adding KUNIT test for the VCAP API
authorSteen Hegelund <steen.hegelund@microchip.com>
Thu, 20 Oct 2022 13:09:04 +0000 (15:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Oct 2022 09:37:43 +0000 (10:37 +0100)
commit67d637516fa91c718dd60acd9358a9fb0e19b7b5
tree15b31b0f67df0fcd7f23e4cc78e93ff73e83fd9d
parent5d7e5b0401d7b7825c2a8572a403c341dc68f573
net: microchip: sparx5: Adding KUNIT test for the VCAP API

This provides a KUNIT test suite for the VCAP APIs encoding functionality.

The test can be run by adding these settings in a .kunitconfig file

CONFIG_KUNIT=y
CONFIG_NET=y
CONFIG_VCAP_KUNIT_TEST=y

Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/vcap/Kconfig
drivers/net/ethernet/microchip/vcap/vcap_ag_api_kunit.h [new file with mode: 0644]
drivers/net/ethernet/microchip/vcap/vcap_api.c
drivers/net/ethernet/microchip/vcap/vcap_api.h
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c [new file with mode: 0644]