Working mode management device and method for DPU chip, electronic equipment and computer storage medium

By using global and load information partition management working modes in the DPU chip, the problem of low working mode management efficiency of the DPU chip in various business scenarios is solved, and more efficient data processing and system performance are achieved.

CN118779013APending Publication Date: 2024-10-15YUSUR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410770195.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

When faced with data processing tasks in various business scenarios, DPU chips are less efficient in managing multiple working modes, affecting data processing efficiency.

Method used

The storage unit is divided into global information partition and loading information partition. The driver loads the global and loading file information required for each working mode. The processing unit controls the DPU chip to enter the current working mode based on the loading file information, and when the working mode is changed or debugged, Update the corresponding file information to reduce erasure and rewriting of storage units.

Benefits of technology

It improves the efficiency of working mode management, reduces the low efficiency of data loading, and improves the system performance and stability of the DPU chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779013A_ABST
    Figure CN118779013A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a working mode management device and method for a DPU chip, electronic equipment and a computer storage medium. The working mode management device comprises a storage unit and a control unit, wherein the storage unit comprises a global information partition and a loading information partition; the driving unit is used for storing a driving program of the storage unit, the driving program is used for loading global file information required by each working mode of the DPU chip into the global information partition and loading file loading information required by the current working mode in the global information into the information loading partition, and the file loading partition is used for loading file loading information required by the current working mode in the global information. Each working mode comprises a standard network card mode, an intelligent network card mode and an acceleration network card mode; and the processing unit is used for reading the loading file information from the loading information partition and controlling the DPU chip to enter the current working mode according to the loading file information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a device, method, electronic device, and computer storage medium for managing a working mode of a DPU chip. Background Art

[0002] The host CPU can process data streams for a variety of business scenarios. The data processing burden of the host CPU is heavy, which may affect the data processing efficiency of the host CPU in a variety of business scenarios.

[0003] For specific business scenarios, a coprocessor such as the DPU can be used to offload part of the host CPU's capabilities. However, when faced with data processing tasks in a variety of business scenarios, the DPU chip will be in a variety of working modes, which makes the management efficiency of a variety of working modes an issue that needs to be urgently addressed. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a working mode management device, method, electronic device and computer storage medium for a DPU chip to solve the above problems.

[0005] According to a first aspect of an embodiment of the present invention, there is provided a working mode management device for a DPU chip, comprising: a storage unit, comprising a global information partition and a loading information partition; a driving unit, storing a driver program of the storage unit, the driver program being used to load global file information required for each working mode of the DPU chip into the global information partition, and to load loading file information required for a current working mode in the global information into the loading information partition, wherein the various working modes include a standard network card mode, an intelligent network card mode and an accelerated network card mode; a processing unit, being used to read the loading file information from the loading information partition, and to control the DPU chip to enter the current working mode according to the loading file information.

[0006] In another implementation of the present invention, when the processing unit obtains a working mode change request, it sends a first information loading request to the driver unit, so that the driver loads the loading file information required for the changed working mode in the global information into the loading information partition, replacing the loading file information required for the working mode before the change.

[0007] In another implementation of the present invention, when the processing unit obtains the debugging request, it sends a second information loading request to the driver unit, so that the driver loads the modified global file information into the global information partition to replace the global file information before modification.

[0008] In another implementation of the present invention, after the global file information is modified, the driver updates the loading file information while maintaining the current working mode.

[0009] In another implementation of the present invention, the DPU chip also includes: an interconnect forwarding unit; at least one upstream unloading unit, which is arranged on the upstream side of the interconnect forwarding unit, and each upstream unloading unit is used to accelerate the upstream tasks in the data processing tasks according to the acceleration type of the upstream unloading unit to obtain the task acceleration result; at least one downstream unloading unit, which is arranged on the downstream side of the interconnect forwarding unit, and each downstream unloading unit is used to accelerate the downstream tasks in the data processing tasks according to the acceleration type of the downstream unloading unit to obtain the task acceleration result; the interconnect forwarding unit is used to perform corresponding task acceleration result forwarding operations between the at least one upstream unloading unit and the at least one downstream unloading unit.

[0010] In another implementation of the present invention, the interconnect forwarding unit is specifically used for: in downlink data transmission, forwarding the communication protocol acceleration processing result of the basic network offload unit to the network processor, wherein the basic network offload unit is used to add the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task, and the network processor is used to add the corresponding communication protocol field to the data packet processed by the basic network offload unit and send it to the external network; in uplink data transmission, the network processor is used to receive a data packet from the external network, segment the received data packet into the virtual network where the data packet is located, and forward the segment to the basic network offload unit, so that the basic network offload unit forwards the segment to the corresponding virtual network.

[0011] In another implementation of the present invention, the interconnect forwarding unit is specifically used to forward the task acceleration result of the first DMA offload unit of the host to the basic network offload unit, so that the basic network offload unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task.

[0012] In another implementation of the present invention, the interconnection forwarding unit is specifically used to: send the network processing result of the network processor performing the network forwarding task to the basic network offload unit, so that the basic network offload unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task; send the virtual network parsing result of the basic network offload unit to the second DMA offload unit of the coprocessor; forward the memory access result of the second DMA offload unit to the first DMA offload unit of the host.

[0013] In another implementation of the present invention, the interconnect forwarding unit is specifically used to forward the memory access result of the first DMA offload unit to the basic network offload unit, so that the basic network offload unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task.

[0014] According to a second aspect of an embodiment of the present invention, a method for managing working modes of a DPU chip is provided, comprising: loading global file information required for each working mode of the DPU chip into the global information partition, wherein the various working modes include a standard network card mode, an intelligent network card mode, and an accelerated network card mode; loading the loading file information required for the current working mode in the global information into the loading information partition; reading the loading file information from the loading information partition, and controlling the DPU chip to enter the current working mode according to the loading file information.

[0015] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the method described in the second aspect.

[0016] According to a fourth aspect of an embodiment of the present invention, there is provided a computer storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the second aspect is implemented.

[0017] According to a fifth aspect of an embodiment of the present invention, there is provided a computer program product, comprising computer instructions, which, when executed by a processor, implement the method as described in the second aspect.

[0018] In the scheme of the embodiment of the present invention, the processing unit only reads the loading file information from the loading information partition in the storage unit, and the global information partition is invisible to the processing unit. The global information partition and the loading information partition are managed separately by the driver program in the driving unit, thereby improving the decoupling between the processing unit and the global file information, avoiding the low data loading efficiency during the working mode management process, and thus improving the management efficiency of the working mode. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0020] Figure 1A This is a schematic structural diagram of a working mode management device of a DPU chip according to some embodiments of the present invention.

[0021] Figure 1B for Figure 1A Schematic structural diagram of some example DPU chips of the embodiments.

[0022] Figure 2 for Figure 1A and Figure 1B Schematic structural diagram of a DPU chip of some embodiments.

[0023] Figure 3A for Figure 2 Schematic diagram of the structure of a DPU chip with some offloading examples.

[0024] Figure 3B for Figure 2 Schematic structural diagram of DPU chips for other offloading examples.

[0025] Figure 3C for Figure 2 Schematic structural diagram of DPU chips for other offloading examples.

[0026] Figure 3D for Figure 2 Schematic structural diagram of DPU chips for other offloading examples.

[0027] Figure 4 1 is a flowchart of the steps of the working mode management method according to some other embodiments of the present invention.

[0028] Figure 5 Schematic diagram of the structure of electronic devices according to other embodiments of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.

[0030] The specific implementation of the embodiment of the present invention is further described below in conjunction with the accompanying drawings of the embodiment of the present invention.

[0031] Figure 1AFIG1 is a schematic structural diagram of a working mode management device for a DPU chip according to some embodiments of the present invention. The working mode management device 100 in FIG1 includes a storage unit 10 , a driving unit 20 and a processing unit 30 .

[0032] Specifically, the storage unit 10 includes a global information partition and a loading information partition. The driving unit 20 stores a driver of the storage unit, and the driver is used to load the global file information required for each working mode of the DPU chip into the global information partition, and load the loading file information required for the current working mode in the global information into the loading information partition. Each working mode includes a standard network card mode, an intelligent network card mode, and an accelerated network card mode. The processing unit 30 is used to read the loading file information from the loading information partition, and control the DPU chip to enter the current working mode according to the loading file information.

[0033] It should be understood that the processing unit may be a processor such as an embedded processor, specifically, the processing unit may be an embedded management processor (EMP), which is used to control the DPU chip at the top level of the system. The storage unit may be a non-volatile storage medium, for example, FLASH. The drive unit may be a volatile storage medium storing a driver. During the startup process of the working mode management device such as power-on, as an example, the driver may be loaded from the storage unit to the drive unit; as another example, the drive unit may be a unit configured in the storage unit, capable of running the driver in a non-volatile storage medium. In addition, the storage unit may include two storage spaces, a global information partition and a loading information partition. For example, each partition may be 32K.

[0034] It should also be understood that the working modes of the DPU chip include at least standard network card mode, smart network card mode and accelerated network card mode.

[0035] That is to say, in order to reduce the need for rewriting the storage unit during debugging and mode switching of the DPU chip system (i.e., the working mode management device). During the operation of the DPU chip system (i.e., the working mode management device), the files of each working mode are pre-downloaded to the global information partition of the storage unit and allocated to the loading information partition as needed. In this way, in the scenario of switching the working mode, only the loading information partition visible to the processing unit needs to be updated, thereby reducing the erasure and rewriting of the entire storage unit, thereby reducing system cost and improving performance.

[0036] It should also be understood that the global information partition and the loading information partition are independently maintained by the driver. The global information partition contains the descriptor information of all files in the working mode management device, and the processing unit does not directly interact with the global information partition, that is, the global information partition is not visible to the processing unit. In debugging scenarios such as updating, deleting or adding files, the driver will update the global information partition. Correspondingly, the loading information partition contains the file descriptor information that the processing unit needs to read. When the mode is switched or the file is updated, the driver will update the loading information partition to ensure that the processing unit can obtain the correct information when switching modes or reading files. The processing unit only reads the information of the loading information partition and does not modify it.

[0037] In the scheme of the embodiment of the present invention, the processing unit only reads the loading file information from the loading information partition in the storage unit, and the global information partition is invisible to the processing unit. The global information partition and the loading information partition are managed separately by the driver program in the driving unit, thereby improving the decoupling between the processing unit and the global file information, avoiding the low data loading efficiency during the working mode management process, and thus improving the management efficiency of the working mode.

[0038] In other embodiments, when the processing unit obtains the working mode change request, it sends a first information loading request to the driver unit, so that the driver loads the loading file information required for the changed working mode in the global information into the loading information partition, replacing the loading file information required for the working mode before the change. That is, in the scenario of the working mode change, the driver will update the loading information partition to ensure that the processing unit can obtain the correct information when switching modes or reading files.

[0039] In other embodiments, when the processing unit obtains the debugging request, it sends a second information loading request to the driver unit, so that the driver loads the modified global file information into the global information partition to replace the global file information before the modification. That is, in debugging scenarios such as updating, deleting or adding files, the driver will update the global information partition.

[0040] Furthermore, after the global file information is modified, the driver updates the loading file information while maintaining the current working mode, that is, the file information can be loaded while minimizing the erasure and rewriting of the storage unit.

[0041] Figure 1B Schematic diagram of the structure of a DPU chip according to some embodiments of the present invention. Figure 1B The DPU chip includes a working mode management device 100 and a data processing device 200 of the DPU chip.

[0042] The data processing device 200 includes an interconnect forwarding unit 110 , at least one upstream offloading unit 120 , and at least one downstream offloading unit 130 .

[0043] It should be understood that the interconnect forwarding unit can be an interconnect network such as an on-chip network. For example, the on-chip network (Network-on-Chip, NOC) can be an on-chip interconnect bus, for example, a network on chip with up to 20 inputs and 20 outputs. In other words, the on-chip network is used to connect the data communication of each unloading unit in the chip, and control the data flow through instructions. Other unloading units can be directly connected to the NOC through the bus system or indirectly through other unloading units, and data interaction between unloading units can be realized according to different instructions.

[0044] In addition, at least one upstream unloading unit 120 is arranged at the upstream side of the interconnection forwarding unit. Each upstream unloading unit 120 is used to accelerate the upstream task in the data processing task according to the acceleration type of the upstream unloading unit to obtain the task acceleration result;

[0045] At least one downstream offloading unit 130 is disposed at the downstream side of the interconnection forwarding unit. Each downstream offloading unit 130 is used to accelerate the downstream task in the data processing task according to the acceleration type of the downstream offloading unit to obtain a task acceleration result.

[0046] The interconnect forwarding unit 110 is used to perform corresponding task acceleration result forwarding operations between at least one upstream offloading unit 120 and at least one downstream offloading unit 130 .

[0047] It should be understood that the forwarding operation includes at least one of the above:

[0048] forwarding a task acceleration result of a first upstream offloading unit in the at least one upstream offloading unit 120 to a first downstream offloading unit in the at least one downstream offloading unit 130;

[0049] forwarding a task acceleration result of a first downstream offloading unit in the at least one downstream offloading unit 130 to a first upstream offloading unit in the at least one upstream offloading unit 120;

[0050] forwarding a task acceleration result of a first upstream offloading unit in the at least one upstream offloading unit 120 to a second upstream offloading unit in the at least one upstream offloading unit 120;

[0051] The task acceleration result of a first downstream offloading unit among the at least one downstream offloading unit 130 is forwarded to a second downstream offloading unit among the at least one downstream offloading unit 130 .

[0052] In the scheme of the embodiment of the present invention, at least one upstream offload unit can perform corresponding acceleration processing on upstream tasks, and at least one downstream offload unit can perform corresponding acceleration processing on downstream tasks, so that each offload unit can unload various functions of the processor respectively, and the interconnection forwarding unit can forward the intermediate task processing results between each upstream offload unit and each downstream offload unit, thereby ensuring the execution efficiency of the processor's data processing tasks. In addition, each offload unit can be independently configured and maintained, thereby improving the system stability of the DPU chip.

[0053] In other embodiments, Figure 2 As shown, at least one upstream offload module includes at least one of a DMA offload unit, a storage access offload unit such as an NVMe-oF offload unit, and a security offload unit. At least one downstream offload module includes at least one of a network processor and a basic network offload unit.

[0054] It should be understood that the storage access offload unit can manage and maintain at least one write queue and at least one read queue, each write queue can process write access instructions from different processing units in parallel, and each read queue can process read access instructions from different processing units in parallel. At least one write queue corresponds to a write operation to at least one storage unit, and at least one read queue corresponds to a read operation to at least one storage unit. Different local storage units connected through an interconnection forwarding network are different storage units, different remote storage units connected through an external network are different storage units, and local storage units and remote storage units are different storage units.

[0055] In other embodiments, the interconnect forwarding unit is specifically used to: in downlink data transmission, forward the communication protocol acceleration processing results of the basic network offload unit to the network processor, wherein the basic network offload unit is used to add the corresponding virtual network domain identifier and transport layer segment identifier to the data packet of the downstream task, and the network processor is used to add the corresponding communication protocol field to the data packet processed by the basic network offload unit and send it to the external network.

[0056] Alternatively, or optionally, the interconnect forwarding unit is specifically used for: in uplink data transmission, the network processor is used to receive a data packet from an external network, segment the received data packet into a virtual network where the data packet is located, and forward the segment to the basic network unloading unit, so that the basic network unloading unit forwards the segment to the corresponding virtual network.

[0057] It should be understood that a virtual network can correspond to at least one virtual machine. In uplink data transmission, as an example of the basic network offloading unit forwarding the segment to the corresponding virtual network, the basic network offloading unit can determine the virtual machine corresponding to the virtual machine identifier through the CPU according to the corresponding virtual network, and send the data packet to the corresponding virtual machine. Correspondingly, in downlink data transmission, the CPU sends a network processing request for the data packet to the coprocessor, and the coprocessor determines the virtual network where the virtual machine is located according to the network processing request, and sends the data packet as a downstream task to the basic network offloading unit. The basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier to the data packet of the downstream task, and the network processor is used to add a consistent communication protocol field to the data packet processed by the basic network offloading unit (the reverse operation of the forwarding process). It should be understood that the added consistent communication protocol field can include at least an IP address, and can also include a MAC address and a physical layer address. In some examples, multiple transport layer segments can be spliced ​​into an IP data packet, and at least a consistent IP address is added to correspond to the physical machine where the DPU chip is located. In other examples, the network processor communicates directly with the external network. In this case, the network processor also needs to add the MAC address and physical layer address to the data packet; alternatively, the network processor can communicate with the external network indirectly through the MAC offload unit. In this case, the network processor can encapsulate the data packet into an IP datagram, and further encapsulate it into a data packet sent to the external network through the MAC offload unit.

[0058] More specifically, a network processor (NP) is composed of a microprocessor with multiple processing cores and several coprocessors, and the multiple processing cores process in parallel. The processing flow is controlled by programmable microcode to implement a network processing system with related functions such as data packet processing, data packet protocol header parsing, table entry lookup, QoS, etc.

[0059] In addition, the network processor mainly parses and identifies the received network data packets, obtains the processing method for the data packet by querying the table entries based on the key fields extracted from the network data packet, and performs a series of operations on the network data packet according to the matching flow table, such as statistics and rate limit (Meter), message modification, tunnel encapsulation (cap) or decapsulation (decap), filtering feature messages, mirroring (Mirror), or secondary parser or table lookup (Recirc).

[0060] More specifically, the basic network offloading unit can complete some functions of a standard network card. For example, the basic network offloading unit is used to perform addressing and forwarding of the second layer of the network (e.g., the MAC layer) and perform network virtualization based on the MAC layer. For example, the basic network offloading unit at least adds a MAC address and a virtual network domain identifier to the received data packet.

[0061] In addition, the basic network offload unit also adds the data packet to the corresponding queue in the parallel processing queue (for example, a queue with a specific queue number), wherein the parallel queue processing is performed by multiple cores in the network processor. That is to say, through the parallel queue processing, the calculation of the load balancing RSS (Receive Side Scaling) is realized. In addition, in the development process of the basic network offload unit, the RSS of the DPDK (Data Plane Development Kit) can be adapted according to the received queue number.

[0062] In addition, the basic network offload unit is also used to implement the functions of TSO (TCP Segmentation Offload, TCP segmentation offload), GSO (Generic Segmentation Offload, general segmentation offload), and verification. In addition, the basic network offload unit can support the separate configuration of different vfs through virtual network domain identifiers. The basic network offload unit is also used to complete the TCP, UDP and IP layer checksum offload and fragment message reassembly functions when receiving.

[0063] In addition, the basic network offloading unit is also used to support VLAN-Tag offloading, Queue\PF\VF mapping table maintenance, support promiscuous mode, support VLAN broadcast mode, support MAC address filtering, VLAN filtering, etc. For example, an identifier indicating at least one of the above functions is added to the protocol header of the data packet.

[0064] In the case of a storage access offload unit such as an NVMe-oF offload unit, the interconnect forwarding unit forwards the task acceleration result of the first DMA offload unit of the host to the storage access offload unit, wherein the first DMA offload unit is used to perform memory access according to the memory access instruction of the upstream task, wherein the storage access offload unit is used to perform storage access according to the memory access result, such as Figure 3A Then, the interconnect forwarding unit forwards the storage access result to the second DMA offloading unit of the coprocessor, wherein the second DMA offloading unit is used to perform access acceleration processing on the storage access result via the coprocessor, such as Figure 3A The data flow is shown in (2).

[0065] Furthermore, the interconnect forwarding unit also forwards the access acceleration result of the second DMA offloading unit to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task, such as Figure 3A The data flow is shown in (3).

[0066] More specifically, the storage access offload unit may be an NVMe-oF offload unit. The storage access offload unit is used to implement an initialization system for NVMe storage protocol offload, and supports functions such as automatic disk mounting, SRIOV, bare metal boot, QOS traffic speed limit, and VF hot swap with underlying transmission protocols such as Fabric. In other words, the storage access offload unit can be connected to an interconnect forwarding unit such as an on-chip network through an underlying transmission protocol such as Fabric.

[0067] In addition, the storage access offload unit can be connected between multiple DMA offload units, for example, as a bridge unit connected between the first DMA offload unit and the second DMA offload unit, supporting the first DMA offload unit and the second DMA offload unit to share the functions of the storage access offload unit, including but not limited to: access to storage devices, and memory access functions, interrupts and other functions performed by storage devices through DMA offload units. When the host and coprocessor work together, the DPU chip can be used as a storage access offload unit to implement the offloading of the NVMe oF protocol. In some embodiments, the storage access offload unit can be used to connect and access storage devices in the local server. In other embodiments, the network processor and the basic network offload unit can be used to connect and access remote destination storage devices in other servers.

[0068] In some other embodiments, in the case of a security offload unit, the interconnect forwarding unit forwards the task acceleration result of the first DMA offload unit of the host to the security offload unit, and the security offload unit is used to perform data security processing on the task acceleration result, such as Figure 3B The data flow is shown in (1).

[0069] Then, the interconnect forwarding unit forwards the task acceleration result of the security offloading unit to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task, such as Figure 3B The data flow is shown in (2).

[0070] More specifically, the security offload unit is a hardware device that provides data security functions. The security offload unit is used to encrypt and decrypt data to protect the security and confidentiality of data. The security offload unit mainly implements the following encryption and decryption algorithms SM2 / SM3 / SM4, TRNG, RSA / SHA / AES, IPSEC / TLS, etc.

[0071] In other embodiments, in the case of the basic network offload unit, the DPU chip is in the standard network card mode or the smart network card mode, and the interconnect forwarding unit forwards the task acceleration result of the first DMA offload unit of the host to the basic network offload unit, so that the basic network offload unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task, such as Figure 3C The data flow is shown in Figure 2.

[0072] In some other embodiments, in the case of a virtual machine switching network, the DPU chip is in an accelerated network card mode, and the interconnect forwarding unit sends the network processing result of the network processor performing the network forwarding task to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task. The interconnect forwarding unit sends the virtual network parsing result of the basic network offloading unit to the second DMA offloading unit of the coprocessor, such as Figure 3D The interconnect forwarding unit forwards the memory access result of the second DMA offloading unit to the first DMA offloading unit of the host, as shown in the data flow (1). Figure 3D Then, the interconnect forwarding unit forwards the memory access result of the first DMA offloading unit to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier to the data packet of the downstream task, as shown in FIG. Figure 3D The data flow is shown in (3).

[0073] In the above-mentioned embodiments, the DMA offload unit may be a flexible DMA unit. The DMA offload unit is connected to an interconnect forwarding unit such as an on-chip network through a bus system such as PCIe.

[0074] In addition, the bus system supports flexible multi-queue DMA functions, supporting multiple queues in the sending and receiving directions (for example, up to 1024 queues), each queue supporting multiple DMA descriptors, and by configuring the data sending and receiving strategy, the control logic performs DMA access operations on data according to the DMA descriptors in each queue.

[0075] In addition, in the upstream direction example, the service data is sent from the device to the host memory or the coprocessor memory via the DMA offload unit. For example, after receiving the service data stream, a bus system such as PCIe looks up the corresponding host memory queue address according to the queue number and fills and encapsulates the packet content, and then uploads it to the corresponding cache queue of the host memory through DMA, and the application reads the data from the packet receiving address.

[0076] It should be understood that the DMA offload unit can receive access instructions from a processing unit such as a host or a coprocessor. The DMA offload unit can manage and maintain at least one write queue and at least one read queue, and the at least one write queue can process write access instructions from at least one processing unit in parallel, and the at least one read queue can process read access instructions from at least one processing unit in parallel. The write access instructions of at least one processing unit are processed by the DMA offload unit to serially access the memory; the read access instructions of at least one processing unit are processed by the DMA offload unit to serially access the memory.

[0077] In addition, in the example of the downlink direction, the service data is read from the host memory or coprocessor memory to the device. For example, multiple queue data in the host memory are loaded at the same time and need to be sent to the hardware, which will be cached and scheduled and then output to the corresponding PF (i.e., physical function) or VF (i.e., virtual function). After receiving the data sent by the host, the hardware will parse and reorganize it and send the data to the receiving service module according to the queue number.

[0078] In addition, multiple queues can be configured to have different QoS priorities, and data packets with different QoS requirements can be added to queues with corresponding QoS priorities.

[0079] The following will be combined Figure 4 The working mode management methods according to other embodiments of the present invention are described.

[0080] Figure 4 The working mode management method is applied to the DPU chip, and the working mode management method includes:

[0081] S410: Loading global file information required for each working mode of the DPU chip into the global information partition, wherein each working mode includes a standard network card mode, an intelligent network card mode, and an accelerated network card mode.

[0082] S420: Load the loading file information required for the current working mode in the global information into the loading information partition.

[0083] S430: Read the loading file information from the loading information partition, and control the DPU chip to enter the current working mode according to the loading file information.

[0084] In the scheme of the embodiment of the present invention, the processing unit only reads the loading file information from the loading information partition in the storage unit, and the global information partition is invisible to the processing unit. The global information partition and the loading information partition are managed separately by the driver program in the driving unit, thereby improving the decoupling between the processing unit and the global file information, avoiding the low data loading efficiency during the working mode management process, and thus improving the management efficiency of the working mode.

[0085] It should be understood that the specific implementation of each step in the working mode management method can refer to the corresponding description of the corresponding steps in the above working mode management device embodiment, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described device and module can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.

[0086] Reference Figure 5 , shows a schematic structural diagram of an electronic device according to another embodiment of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.

[0087] like Figure 5 As shown, the electronic device may include: a processor (processor) 502 for executing a program 510 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .

[0088] The processor, the communication interface, and the memory communicate with each other via a communication bus.

[0089] Communication interface, used to communicate with other electronic devices or servers.

[0090] The processor is used to execute the program, and specifically can execute the relevant steps in the above method embodiment.

[0091] Specifically, the program may include program codes including computer operation instructions.

[0092] The processor may be a CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0093] The memory is used to store programs. The memory may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0094] The program may include multiple computer instructions. Specifically, the program may enable a processor to execute the working mode management method described in any one of the aforementioned method embodiments through the multiple computer instructions.

[0095] The specific implementation of each step in the program can refer to the corresponding description of the corresponding steps, modules or units in the above method embodiments, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the DPU chip, device or module described above can refer to the corresponding process description in the above method embodiments, which will not be repeated here.

[0096] The embodiment of the present invention further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the method described in any of the above-mentioned multiple method embodiments is implemented. The computer storage medium includes, but is not limited to: a compact disc read-only memory (CD-ROM), a random access memory (RAM), a floppy disk, a hard disk or a magneto-optical disk, etc.

[0097] An embodiment of the present invention further provides a computer program product, including computer instructions, which instruct a computing device to execute the working mode management method in the above-mentioned multiple method embodiments.

[0098] In addition, it should be noted that the user-related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to sample data used to train the model, data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant regulations and standards, and corresponding operation entrances are provided for users to choose to authorize or refuse.

[0099] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present invention can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present invention.

[0100] The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD-ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA)). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., a random access memory (RAM), a read-only memory (ROM), a flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method shown here.

[0101] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present invention.

[0102] The above implementation methods are only used to illustrate the embodiments of the present invention, and are not limitations of the embodiments of the present invention. Ordinary technicians in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present invention. The patent protection scope of the embodiments of the present invention should be defined by the claims.

Claims

1. A working mode management device for a DPU chip, characterized in that: include: A storage unit, including a global information partition and a loading information partition; A driver unit storing a driver of the storage unit, wherein the driver is used to load global file information required for each working mode of the DPU chip into the global information partition, and load the loading file information required for the current working mode in the global information into the loading information partition, wherein the various working modes include a standard network card mode, an intelligent network card mode, and an accelerated network card mode; A processing unit is used to read the loading file information from the loading information partition and control the DPU chip to enter the current working mode according to the loading file information.

2. The working mode management device according to claim 1, characterized in that: When the processing unit obtains a working mode change request, it sends a first information loading request to the driver unit, so that the driver loads the loading file information required for the changed working mode in the global information into the loading information partition, replacing the loading file information required for the working mode before the change.

3. The working mode management device according to claim 1, characterized in that: When the processing unit obtains the debugging request, the processing unit sends a second information loading request to the driver unit, so that the driver loads the modified global file information into the global information partition to replace the global file information before the modification.

4. The working mode management device according to claim 3, characterized in that: After the global file information is modified, the driver updates the loading file information while maintaining the current working mode.

5. The working mode management device according to claim 1, characterized in that: The DPU chip includes: Interconnect forwarding unit; At least one upstream unloading unit is arranged at the upstream side of the interconnection forwarding unit, each upstream unloading unit is used to accelerate the upstream task in the data processing task according to the acceleration type of the upstream unloading unit to obtain the task acceleration result; At least one downstream unloading unit is arranged at the downstream side of the interconnection forwarding unit, and each downstream unloading unit is used to accelerate the downstream task in the data processing task according to the acceleration type of the downstream unloading unit to obtain a task acceleration result; The interconnect forwarding unit is used to perform corresponding task acceleration result forwarding operations between the at least one upstream offloading unit and the at least one downstream offloading unit.

6. The working mode management device according to claim 5, characterized in that: The interconnection forwarding unit is specifically used for: In downlink data transmission, the communication protocol acceleration processing result of the basic network offloading unit is forwarded to the network processor, wherein the basic network offloading unit is used to add the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task, and the network processor is used to add the corresponding communication protocol field to the data packet processed by the basic network offloading unit and send it to the external network; In uplink data transmission, the network processor is used to receive data packets from an external network, segment the received data packets into the virtual network where the data packets are located, and forward the segments to the basic network unloading unit, so that the basic network unloading unit forwards the segments to the corresponding virtual network.

7. The working mode management device according to claim 6, characterized in that: The interconnection forwarding unit is specifically used for: The task acceleration result of the first DMA offloading unit of the host is forwarded to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task.

8. The working mode management device according to claim 5, characterized in that: The interconnection forwarding unit is specifically used for: Sending the network processing result of the network forwarding task performed by the network processor to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task; Sending the virtual network parsing result of the basic network offloading unit to the second DMA offloading unit of the coprocessor; The memory access result of the second DMA offloading unit is forwarded to the first DMA offloading unit of the host.

9. The working mode management device according to claim 8, characterized in that: The interconnection forwarding unit is specifically used for: The memory access result of the first DMA offloading unit is forwarded to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task.

10. A method for managing a working mode of a DPU chip, characterized in that: include: Loading global file information required for each working mode of the DPU chip into the global information partition, wherein each working mode includes a standard network card mode, a smart network card mode, and an accelerated network card mode; Loading the loading file information required for the current working mode in the global information into the loading information partition; The loading file information is read from the loading information partition, and the DPU chip is controlled to enter the current working mode according to the loading file information.

11. An electronic device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the method according to claim 10.

12. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to claim 10 is implemented.