OSDN Git Service

selftests: netdevsim: Test psample functionality
authorIdo Schimmel <idosch@nvidia.com>
Sun, 14 Mar 2021 12:19:33 +0000 (14:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Mar 2021 22:00:43 +0000 (15:00 -0700)
commitf26b30918dac568425811f71fd21a53ed2307f44
treec14b1ebf0fc7c7fcb452bb7194a3776d81894d4a
parenta8700c3dd0a48f379d269ac6ddcf8bd857042771
selftests: netdevsim: Test psample functionality

Test various aspects of psample functionality over netdevsim and in
particular test that the psample module correctly reports the provided
metadata.

Example:

 # ./psample.sh
 TEST: psample enable / disable                                      [ OK ]
 TEST: psample group number                                          [ OK ]
 TEST: psample metadata                                              [ OK ]

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/netdevsim/psample.sh [new file with mode: 0755]