Instruction writing method and apparatus, and network device
AssigneeHuawei Technologies Co., Ltd.
InventorsTaixu Tian, Zhongzhen Wang, Jincong Huang, Wenliang Shen, Weijian Luo
Life of this patent
Estimating the term…
Abstract
An instruction writing method, apparatus, and network device are provided to reduce a requirement for a storage space of a microcode processor. The method includes obtaining, by a first device, first indication information, where the first indication information indicates the first device to enable a first service function, and writing, by the first device, a first microcode instruction set corresponding to the first service function into an unused storage space of a target microcode processor in a network processor, where a size of the unused storage space is greater than or equal to a size of the first microcode instruction set.
Claims18
A method comprising:
- obtaining, by a first device, first indication information, wherein the first indication information indicates the first device to enable a first service function;
- determining, by the first device, a target microcode processor based on one or more unused storage spaces respectively comprised in one or more microcode processors and a size of a first microcode instruction set, wherein the one or more microcode processors belong to a network processor, wherein the one or more microcode processors comprise the target microcode processor, and wherein a size of the unused storage space of the target microcode processor is greater than or equal to the size of the first microcode instruction set;
- and
- writing, by the first device, after determining a target microcode processor, the first microcode instruction set corresponding to the first service function into the unused storage space of the target microcode processor in the network processor.
An apparatus comprising:
- a processor;
- and
- a non-transitory computer-readable memory storing a program to be executed by the processor, the program including instructions to:
- obtain first indication information, wherein the first indication information indicates the apparatus is to enable a first service function;
- and
- determine a target microcode processor based on one or more unused storage spaces respectively comprised in one or more microcode processors and a size of the first microcode instruction set, wherein the one or more microcode processors belong to a network processor, wherein the one or more microcode processors comprise the target microcode processor, and wherein a size of the unused storage space of the target microcode processor is greater than or equal to a size of a first microcode instruction set;
- and
- write the first microcode instruction set corresponding to the first service function into the unused storage space of the target microcode processor in the network processor.
Dependencies are inferred from the claim text.