摘要 |
A method for determining instruction sequences, a related device, and a system. A method for determining instruction sequences may include: acquiring a function identifier; and determining M1 instruction sequences used to implement a function identified by the function identifier, where each instruction sequence in the M1 instruction sequences includes a unique entry instruction, and each instruction sequence in the M1 instruction sequences includes a unique exit instruction, where M1 is a positive integer, and the M1 instruction sequences are instruction sequences for creating a network packet processing program used to process a network packet. Solutions of embodiments of the present invention are advantageous for improving an extent of matching between a packet forwarding processing device and an instruction sequence that is executed by the packet forwarding processing device and used to process a network packet, and reducing an amount of invalid code run by the packet forwarding processing device. |