vdpa/mlx5: Add RX counters to debugfs
[linux-2.6-microblaze.git] / drivers / vdpa / Kconfig
index 50f45d0..43b716e 100644 (file)
@@ -71,6 +71,18 @@ config MLX5_VDPA_NET
          be executed by the hardware. It also supports a variety of stateless
          offloads depending on the actual device used and firmware version.
 
+config MLX5_VDPA_STEERING_DEBUG
+       bool "expose steering counters on debugfs"
+       select MLX5_VDPA
+       help
+         Expose RX steering counters in debugfs to aid in debugging. For each VLAN
+         or non VLAN interface, two hardware counters are added to the RX flow
+         table: one for unicast and one for multicast.
+         The counters counts the number of packets and bytes and exposes them in
+         debugfs. Once can read the counters using, e.g.:
+         cat /sys/kernel/debug/mlx5/mlx5_core.sf.1/vdpa-0/rx/untagged/ucast/packets
+         cat /sys/kernel/debug/mlx5/mlx5_core.sf.1/vdpa-0/rx/untagged/mcast/bytes
+
 config VP_VDPA
        tristate "Virtio PCI bridge vDPA driver"
        select VIRTIO_PCI_LIB