OSDN Git Service

selftests/xsk: do not change XDP program when not necessary
authorMagnus Karlsson <magnus.karlsson@intel.com>
Tue, 16 May 2023 10:31:00 +0000 (12:31 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 17 May 2023 05:31:51 +0000 (22:31 -0700)
commitd2e541494935a659b67e51aa3d1945bb3b799c4e
tree64013e7582f52ec57ea55b29efe08c96b026e5c5
parent0697e4394210b9f7d83c32c9236a47fdeddf9ac0
selftests/xsk: do not change XDP program when not necessary

Do not change the XDP program for the Tx thread when not needed. It
was erroneously compared to the XDP program for the Rx thread, which
is always going to be different, which meant that the code made
unnecessary switches to the same program it had before. This did not
affect functionality, just performance.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/r/20230516103109.3066-2-magnus.karlsson@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/xskxceiver.c