Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8857c6f5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "use BpfMap's resetMap() for creating new maps" into main am: 838d7aea am: 276cb227

parents 091e62c0 276cb227
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -66,9 +66,7 @@ public:
        mTestableGpuMem = TestableGpuMem(mGpuMem.get());
        mTestableGpuMem.setInitialized();
        errno = 0;
        mTestMap = std::move(bpf::BpfMap<uint64_t, uint64_t>(BPF_MAP_TYPE_HASH,
                                                             TEST_MAP_SIZE,
                                                             BPF_F_NO_PREALLOC));
        mTestMap.resetMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC);

        EXPECT_EQ(0, errno);
        EXPECT_TRUE(mTestMap.isValid());
+1 −3
Original line number Diff line number Diff line
@@ -65,9 +65,7 @@ public:
        mTestableGpuMem = TestableGpuMem(mGpuMem.get());

        errno = 0;
        mTestMap = std::move(bpf::BpfMap<uint64_t, uint64_t>(BPF_MAP_TYPE_HASH,
                                                             TEST_MAP_SIZE,
                                                             BPF_F_NO_PREALLOC));
        mTestMap.resetMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC);

        EXPECT_EQ(0, errno);
        EXPECT_TRUE(mTestMap.isValid());