Home
last modified time | relevance | path

Searched refs:LookupMap (Results 1 – 2 of 2) sorted by relevance

/kernel/tests/net/test/
Dbpf_test.py78 from bpf import LookupMap
120 value = LookupMap(map_fd, next_key)
244 self.assertEqual(value, LookupMap(self.map_fd, key).value)
246 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, key)
259 self.assertEqual(value, LookupMap(self.map_fd, key).value)
269 self.assertEqual(value, LookupMap(self.map_fd, key).value)
270 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, 101)
290 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, key)
298 self.assertRaisesErrno(errno.EPERM, LookupMap, self.map_fd, key)
332 self.assertEqual(packet_count * 2, LookupMap(self.map_fd, key).value)
[all …]
Dbpf.py225 def LookupMap(map_fd, key): function