[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <622de5f5-13a3-e005-c11f-392f710adfe4@iogearbox.net>
Date: Tue, 9 Jul 2024 21:48:24 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Martin KaFai Lau <martin.lau@...ux.dev>
Cc: martin.lau@...nel.org, bpf@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH bpf 2/2] selftests/bpf: Extend tcx tests to cover late
tcx_entry release
On 7/9/24 12:34 AM, Martin KaFai Lau wrote:
[...]
> It may be handy to be able to trigger rcu_barrier() to wait for the pending rcu callbacks to finish. Not sure if there is an existing way to do that without introducing a kfunc in bpf_testmod. Probably something to think about as an optimization.
>
> Thanks for the fix and the test. Applied.
Thanks, I'll take a look if this is or can be cleanly exposed somehow.
>> + ASSERT_OK(system("tc filter add dev foo ingress matchall action skbmod swap mac"), "add filter");
>> +cleanup:
>> + ASSERT_OK(system("ip link del dev foo"), "del veth");
>> + ASSERT_EQ(if_nametoindex("foo"), 0, "foo removed");
>> + ASSERT_EQ(if_nametoindex("bar"), 0, "bar removed");
>> +}
>> +
>> static void test_tc_links_dev_mixed(int target)
>> {
>> LIBBPF_OPTS(bpf_tc_opts, tc_opts, .handle = 1, .priority = 1);
>
>
Powered by blists - more mailing lists