selftests: mlxsw: Add a TBF selftest
Petr Machata authored

Add a test that runs traffic across a port throttled with TBF. The test
checks that the observed throughput is within +-5% from the installed
shaper.

To allow checking both the software datapath and the offloaded one, make
the test suitable for inclusion from driver-specific wrapper. Introduce
such wrappers for mlxsw.
Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
e814c58d
Name Last commit Last update
Documentation hv_netvsc: Update document for XDP support
LICENSES LICENSES: Rename other to deprecated
arch Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
block block: fix an integer overflow in logical block size
certs certs: Add wrapper function to check blacklisted binary hash
crypto Merge tag 'tpmdd-next-20191219' of git://git.infradead.org/users/jjs/linux-tpmdd
drivers mlxsw: spectrum_qdisc: Support offloading of TBF Qdisc
fs Merge tag 'io_uring-5.5-2020-01-16' of git://git.kernel.dk/linux-block
include net: sched: Make TBF Qdisc offloadable
init Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/net
ipc treewide: Use sizeof_field() macro
kernel Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
lib lib/vdso: Make __cvdso_clock_getres() static
mm mm: memcg/slab: call flush_memcg_workqueue() only if memcg workqueue is valid
net net: sched: Make TBF Qdisc offloadable
samples Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
scripts Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
security net: bridge: vlan: add rtm definitions and dump support
sound Merge tag 'sound-5.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
tools selftests: mlxsw: Add a TBF selftest
usr gen_initramfs_list.sh: fix 'bad variable name' error
virt Merge tag 'kvm-ppc-fixes-5.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into kvm-master
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.