Lines Matching refs:headerInstance
319 def serializeExtract(self, serializer, headerInstance, program): argument
321 assert isinstance(headerInstance, p4_header_instance)
324 if ebpfProgram.EbpfProgram.isArrayElementInstance(headerInstance):
325 ebpfStack = program.getStackInstance(headerInstance.base_name)
341 if isinstance(headerInstance.index, int):
342 index = "[" + str(headerInstance.index) + "]"
343 elif headerInstance.index is P4_NEXT:
348 headerInstance.index)
351 ebpfHeader = program.getHeaderInstance(headerInstance.name)
360 self.serializeFieldExtract(serializer, headerInstance.base_name,
365 if ebpfProgram.EbpfProgram.isArrayElementInstance(headerInstance):
367 ebpfStack = program.getStackInstance(headerInstance.base_name)