Re: [PATCH bpf 2/2] selftests/bpf: Extend tcx tests to cover late tcx_entry release

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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);







[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux