Network card firmware upgrade method, device, equipment, medium and computer program product
By maintaining and resetting the data transmission control function in the multi-host network card processor, the invisible upgrade of the network card firmware is achieved, and the business interruption caused by the upgrade of the multi-host network card firmware is solved, reducing operation and maintenance costs and complexity.
Patent Information
- Application Number
- CN202411206011.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-08-30
AI Technical Summary
In servers using multihost network card (Multihost) solutions, network card firmware upgrades cannot achieve invisible upgrades, resulting in business interruption and increasing operation and maintenance costs.
By receiving the new network card firmware and maintaining and resetting the data transmission control function in the network card processor, we can ensure the continuity of service data transmission, loading the new firmware to the network card memory and initializing the memory area, realizing the sensorless upgrade of the network card firmware.
It realizes the invisible upgrade of network card firmware, reduces operation and maintenance costs and complexity, and ensures the continuity and stability of service data transmission.
Smart Images

Figure CN118796237B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of firmware upgrade, and in particular to a network card firmware upgrade method, device, equipment, medium and computer program product. Background Art
[0002] For servers using dual or quad motherboards, in order to reduce the overall cost, the network card will also adopt the Multihost solution. When the network card adopts the multi-host solution, it is necessary to reduce the impact of business interruptions caused by maintenance during the network card firmware upgrade and maintenance. To this end, it is necessary to achieve a senseless upgrade for the Multihost network card firmware upgrade. At present, the solution for network card firmware upgrade cannot complete a senseless upgrade, which will cause business interruptions and cannot meet the operation and maintenance requirements under the strict conditions of business data, resulting in high operation and maintenance costs. Therefore, how to achieve a senseless upgrade of the network card firmware has become a technical problem that needs to be solved urgently by technical personnel in this field. Summary of the invention
[0003] The purpose of the present invention is to provide a network card firmware upgrade method, device, equipment, medium and computer program product, which can realize the seamless upgrade of network card firmware.
[0004] In order to solve the above technical problems, the present invention provides a network card firmware upgrade method, comprising:
[0005] Receiving new network card firmware; the new network card firmware is issued by any host among the multiple hosts connected to the network card;
[0006] Refresh the corresponding type of network card firmware in the network card memory according to the new network card firmware, and load the new network card firmware in the network card memory into the memory of the network card;
[0007] When the new network card firmware is the data processing firmware, the first data transmission control function of the network card processor is maintained to control the transmission of the business data of each of the hosts through the first data transmission control function of the network card processor, and the second data transmission control function of the network card processor is reset and effective; after the second data transmission control function of the network card processor is reset and effective, the transmission of the business data of each of the hosts is controlled through the second data transmission control function of the network card processor, and the first data transmission control function of the network card processor is reset and effective.
[0008] In some embodiments, it also includes:
[0009] When the new network card firmware is data control firmware, the data distribution control function of the network card processor is reset to take effect.
[0010] In some embodiments, the network card processor includes a first data distribution control function and a second data distribution control function; the first data distribution control function and the second data distribution control function are both used to control the distribution of business data of each host.
[0011] In some embodiments, resetting and validating the data distribution control function of the network card processor includes:
[0012] The first data distribution control function and the second data distribution control function of the network card processor are reset to take effect.
[0013] In some embodiments, resetting and validating the data distribution control function of the network card processor includes:
[0014] Maintain the first data distribution control function of the network card processor to control the distribution of business data of each of the hosts through the first data distribution control function of the network card processor, and reset and take effect the second data distribution control function of the network card processor; after the second data distribution control function of the network card processor is reset and takes effect, control the distribution of business data of each of the hosts through the second data distribution control function of the network card processor, and reset and take effect the first data distribution control function of the network card processor.
[0015] In some embodiments, it also includes:
[0016] When the new network card firmware includes data control firmware and data processing firmware, the data distribution control function of the network card processor is reset and effective, and after the data distribution control function of the network card processor is reset and effective, the first data transmission control function of the network card processor is maintained to control the transmission of business data of each of the hosts through the first data transmission control function of the network card processor, and the second data transmission control function of the network card processor is reset and effective; after the second data transmission control function of the network card processor is reset and effective, the transmission of business data of each of the hosts is controlled through the second data transmission control function of the network card processor, and the first data transmission control function of the network card processor is reset and effective.
[0017] In some embodiments, each network port of the network card is connected to a switch respectively, and the switch adopts a redundant setting.
[0018] In some embodiments, the host displays M logical network ports, where M is equal to the number of network ports of the network card, each of the logical network ports is mapped to a network port of the network card, and each logical network port in the host is mapped to a different network port.
[0019] In some embodiments, the network card memory stores a set of data processing firmware and a set of data control firmware.
[0020] In some embodiments, refreshing the corresponding type of network card firmware in the network card memory according to the new network card firmware includes:
[0021] Identifying the type of the new network card firmware according to the flag bit of the new network card firmware;
[0022] If the new network card firmware is a data processing firmware, updating the data processing firmware in the network card memory to the new network card firmware;
[0023] If the new network card firmware is the data control firmware, updating the data control firmware in the network card memory to the new network card firmware;
[0024] If the new network card firmware includes data processing firmware and data control firmware, the data control firmware in the network card memory is refreshed to the data control firmware in the new network card firmware, and the data processing firmware in the network card memory is refreshed to the data processing firmware in the new network card firmware.
[0025] In some embodiments, loading the new network card firmware in the network card memory into the memory of the network card includes:
[0026] The new network card firmware in the network card memory is loaded into a target memory area of the network card; the target memory area is different from the memory area loaded with the original network card firmware.
[0027] In some embodiments, it also includes:
[0028] After the network card firmware upgrade is completed, the memory area loaded with the original network card firmware is initialized, so that the initialized memory area is used as a new target memory area.
[0029] In some embodiments, it also includes:
[0030] The host, the network card and the switch are networked to establish an Internet data center network.
[0031] In some embodiments, it also includes:
[0032] The switch is set to link aggregation control mode.
[0033] In some embodiments, it also includes:
[0034] The logical network port displayed under the system of the host is set to a redundant mode, and the service of the host is set to a dynamic link aggregation mode.
[0035] In some embodiments, each host provides bus resource balancing to the network card.
[0036] In order to solve the above technical problems, the present invention also provides a network card firmware upgrade device, comprising:
[0037] A receiving module, used for receiving new network card firmware; the new network card firmware is issued by any host among the multiple hosts connected to the network card;
[0038] A refresh loading module, used for refreshing the corresponding type of network card firmware in the network card memory according to the new network card firmware, and loading the new network card firmware in the network card memory into the memory of the network card;
[0039] The reset and validation module is used to maintain the first data transmission control function of the network card processor when the new network card firmware is the data processing firmware, so as to control the transmission of the business data of each host through the first data transmission control function of the network card processor, and reset and validate the second data transmission control function of the network card processor; after the second data transmission control function of the network card processor is reset and validated, control the transmission of the business data of each host through the second data transmission control function of the network card processor, and reset and validate the first data transmission control function of the network card processor.
[0040] In order to solve the above technical problems, the present invention also provides a network card firmware upgrade device, comprising:
[0041] Memory for storing computer programs;
[0042] The processor is used to implement the steps of the network card firmware upgrade method as described above when executing the computer program.
[0043] In order to solve the above technical problem, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the network card firmware upgrade method as described above when executed by a processor.
[0044] To solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the network card firmware upgrade method as described above are implemented.
[0045] The network card firmware upgrade method provided by the present invention comprises: receiving new network card firmware; the new network card firmware is issued by any host among multiple hosts connected to the network card; refreshing the network card firmware of the corresponding type in the network card memory according to the new network card firmware, and loading the new network card firmware in the network card memory into the memory of the network card; when the new network card firmware is data processing firmware, maintaining the first data transmission control function of the network card processor, so as to control the transmission of business data of each of the hosts through the first data transmission control function of the network card processor, and resetting and taking effect the second data transmission control function of the network card processor; after the second data transmission control function of the network card processor is reset and taken effect, controlling the transmission of business data of each of the hosts through the second data transmission control function of the network card processor, and resetting and taking effect the first data transmission control function of the network card processor.
[0046] It can be seen that in the network card firmware upgrade method provided by the present invention, the network card processor sets the first data transmission control function and the second data transmission control function, and both the first data transmission control function and the second data transmission control function can perform transmission control on the business data of each host connected to the network card. When the new network card firmware is a data processing firmware, when the new network card firmware is triggered to take effect, the second data transmission control function of the network card processor is first reset and effective. At this time, the transmission control of the business data of each host connected to the network card is taken over by the first data transmission control function of the network card processor that has not been reset and effective, ensuring that the business data transmission is not affected. Then, after the second data transmission control function of the network card processor is reset and effective, the first data transmission control function of the network card processor is reset and effective. At this time, the transmission control of the business data of each host connected to the network card is taken over by the second data transmission control function of the network card processor, ensuring that the business data transmission is not affected, thereby realizing the senseless upgrade of the network card firmware and reducing the operation and maintenance costs and complexity.
[0047] The network card firmware upgrading device, equipment, computer-readable storage medium and computer program product provided by the present invention all have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 A flowchart of a network card firmware upgrade method provided by an embodiment of the present invention;
[0050] Figure 2A schematic diagram of a networking architecture provided by an embodiment of the present invention;
[0051] Figure 3 A schematic diagram of a logic processing unit provided by an embodiment of the present invention;
[0052] Figure 4 A schematic diagram of a logic control unit provided by an embodiment of the present invention;
[0053] Figure 5 A schematic diagram of memory allocation provided by an embodiment of the present invention;
[0054] Figure 6 A schematic diagram of a network card firmware upgrade device provided by an embodiment of the present invention;
[0055] Figure 7 A schematic diagram of a network card firmware upgrade device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The core of the present invention is to provide a network card firmware upgrade method, device, equipment, medium and computer program product, which can realize the seamless upgrade of network card firmware.
[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] Please refer to Figure 1 , Figure 1 A schematic diagram of a method for upgrading network card firmware provided by an embodiment of the present invention, referring to Figure 1 As shown, the method includes:
[0059] S101: receiving new network card firmware; the new network card firmware is issued by any host among multiple hosts connected to the network card;
[0060] S102: Refresh the corresponding type of network card firmware in the network card memory according to the new network card firmware, and load the new network card firmware in the network card memory into the memory of the network card;
[0061] S103: When the new network card firmware is the data processing firmware, the first data transmission control function of the network card processor is maintained to control the transmission of the business data of each of the hosts through the first data transmission control function of the network card processor, and the second data transmission control function of the network card processor is reset and effective; after the second data transmission control function of the network card processor is reset and effective, the transmission of the business data of each of the hosts is controlled through the second data transmission control function of the network card processor, and the first data transmission control function of the network card processor is reset and effective.
[0062] In this embodiment, the network card is a multihost network card. The multihost network card connects multiple hosts (dual hosts, quad hosts, or other even number of hosts). In some embodiments, each host provides balanced bus resources to the network card. In the case of dual hosts, a single host can provide x8 PCIe (peripheral component interconnectexpress, a high-speed serial computer expansion bus standard) resources to the multi-host network card. In the case of quad hosts, a single host can provide x4 PCIe resources to the multi-host network card. In this way, the multi-host network card establishes a balanced allocation strategy with the PCIe resources of each host.
[0063] In addition, the network ports of the multi-host network cards are connected to switches. In some embodiments, each network port of the network card is connected to a switch, and the switch is set to be redundant. A network backup design is performed between switches. For example, two network ports of a dual-host network card are connected to a switch respectively, and the two switches are set to be redundant.
[0064] Any host connected to the multi-host network card can issue new network card firmware. The multi-host network card receives the new network card firmware from the host, refreshes the corresponding type of network card firmware in the network card memory according to the new network card firmware, and loads the new network card firmware in the network card memory into the memory of the network card.
[0065] In some embodiments, refreshing the corresponding type of network card firmware in the network card memory according to the new network card firmware includes:
[0066] Identifying the type of the new network card firmware according to the flag bit of the new network card firmware;
[0067] If the new network card firmware is a data processing firmware, updating the data processing firmware in the network card memory to the new network card firmware;
[0068] If the new network card firmware is the data control firmware, updating the data control firmware in the network card memory to the new network card firmware;
[0069] If the new network card firmware includes data processing firmware and data control firmware, the data control firmware in the network card memory is refreshed to the data control firmware in the new network card firmware, and the data processing firmware in the network card memory is refreshed to the data processing firmware in the new network card firmware.
[0070] For the received new network card firmware, the multi-host network card identifies the type of the new network card firmware according to the flag bit of the new network card firmware, and then accurately refreshes the corresponding network card firmware in the network card memory. If the new network card firmware is data processing firmware, the data processing firmware in the network card memory is refreshed to the new network card firmware. If the new network card firmware is data control firmware, the data control firmware in the network card memory is refreshed to the new network card firmware; if the new network card firmware includes data processing firmware and data control firmware, the data control firmware in the network card memory is refreshed to the data control firmware in the new network card firmware, and the data processing firmware in the network card memory is refreshed to the data processing firmware in the new network card firmware.
[0071] In some embodiments, loading the new network card firmware in the network card memory into the memory of the network card includes:
[0072] The new network card firmware in the network card memory is loaded into a target memory area of the network card; the target memory area is different from the memory area loaded with the original network card firmware.
[0073] During the process of making the network card firmware effective, this embodiment uses an additional memory area to load the new network card firmware into the memory area.
[0074] In some embodiments, it also includes: after the network card firmware upgrade is completed, the memory area loaded with the original network card firmware is initialized, and the initialized memory area is used as a new target memory area.
[0075] After the network card firmware upgrade is completed, the memory area loaded with the original network card firmware is initialized. After initialization, the memory area is used as a new target memory area and is reserved for the next firmware upgrade.
[0076] After the new network card firmware is loaded into the memory of the multi-host network card, the network card processor, i.e., the processor of the network card, reads the new network card firmware in the memory, thereby making the new network card firmware effective. Among them, the network card processor of the multi-host network card includes a data processing unit and a data control unit. Each host is mapped to a data processing unit and a data control unit, and the data processing units and data control units mapped to different hosts are different. This can avoid data interference between hosts on the one hand, and improve the security of data between hosts on the other hand.
[0077] The data processing unit executes data processing firmware for data transmission control. The data control unit executes data control firmware for business data distribution control. The business data transmitted to the network card is further distributed. In some embodiments, the network card memory stores a set of data processing firmware and a set of data control firmware. Each data processing unit calls the same set of data processing firmware, and each data control unit calls the same set of data control firmware. The network card firmware includes a set of data processing firmware and a set of data control firmware. Each data processing unit executes the same set of data processing firmware, and each data control unit executes the same set of data control firmware, which can reduce the development of firmware.
[0078] The data processing unit is responsible for the transmission control of business data. If the data processing firmware is directly imported into the data processing unit, it will cause data interruption for different businesses on multiple hosts, affecting the operation of the business and failing to meet the requirements of seamless upgrades. In order to achieve seamless upgrades and meet the data transmission needs of each host, this embodiment divides the logical processing unit on the data processing unit. The logical processing unit is used for transmission control of business data, and the transmission control of the business data of each host is achieved through the division of different logical processing units. Each data processing unit in the multi-host network card includes N logical processing units, where N is equal to the number of hosts connected to the multi-host network card, and each logical processing unit is mapped to each host connection port. The data processing firmware used by each logical processing unit is the same.
[0079] By dividing the data processing unit in the network card processor into logical processing units, the network card processor has multiple sets of data transmission control functions. Each set of data transmission control functions can realize the transmission control of business data of all hosts connected to the multi-host network card.
[0080] When the new network card firmware is the data processing firmware, the first data transmission control function of the network card processor is maintained, so as to control the transmission of the service data of each host through the first data transmission control function of the network card processor, and the second data transmission control function of the network card processor is reset and effective. After the second data transmission control function of the network card processor is reset and effective, the transmission of the service data of each host is controlled through the second data transmission control function of the network card processor, and the first data transmission control function of the network card processor is reset and effective. In this way, in the process of realizing the effectiveness of the data processing firmware, it is possible to ensure that the service data of each host is continuously flowing, and the normal operation of the services of each host is ensured.
[0081] The first data transmission control function of the network card controller is implemented by some logical processing units mapped to each host connection port, and the second data transmission control function of the network card controller is implemented by other logical processing units mapped to each host connection port. Resetting and taking effect the first data transmission control function of the network card controller means resetting and taking effect each logical processing unit that implements the first data transmission control function of the network card controller. Resetting and taking effect the second data transmission control function of the network card controller means resetting and taking effect each logical processing unit that implements the second data transmission control function of the network card controller. Resetting and taking effect the logical processing unit refers to triggering the logical processing unit to read the new data processing firmware, thereby implementing the new data processing firmware.
[0082] Taking a dual-host network card as an example, the two network ports of the dual-host network card are respectively called the first network port and the second network port. When the new network card firmware is a data processing firmware, after the new network card firmware is loaded into the memory, the various logical processing units mapped to the second network port are first reset and effective (the data transmission control function implemented by the various logical processing units mapped to the second network port is the second data transmission control function of the network card controller), and the various logical processing units mapped to the first network port are responsible for the transmission control of the business data of each host (the data transmission control function implemented by the various logical processing units mapped to the first network port is the first data transmission control function of the network card controller). After the reset of the various logical processing units mapped to the second network port is effective, the various logical processing units mapped to the second network port take over the transmission control of the business data of each host, and then the various logical processing units mapped to the first network port are reset and effective. After all the logical processing units are reset and effective, the network port can be restored to its original state to play the role of aggregation and redundancy.
[0083] In some embodiments, it also includes:
[0084] When the new network card firmware is data control firmware, the data distribution control function of the network card processor is reset to take effect.
[0085] The data control unit in the network card processor is responsible for data distribution control, that is, the data distribution control function of the network card processor is implemented by the data control unit in the network card processor. The reset-effective data control units of the multi-host network card implement the data distribution control function of the reset-effective network card processor.
[0086] In some embodiments, the network card processor includes a first data distribution control function and a second data distribution control function; the first data distribution control function and the second data distribution control function are both used to control the distribution of business data of each host.
[0087] N logical control units can be divided on the data control unit, where N is equal to the number of hosts connected to the multi-host network card, and each logical control unit is mapped to each host connection port. The data control firmware used by each logical control unit is the same. The logical control unit is used for distribution control of business data.
[0088] By dividing the data control unit in the network card processor into logical control units, the network card processor has multiple sets of data distribution control functions. Each set of data distribution control functions can realize the distribution control of business data of multiple hosts.
[0089] In some embodiments, resetting and validating the data distribution control function of the network card processor includes:
[0090] The first data distribution control function and the second data distribution control function of the network card processor are reset to take effect.
[0091] The reset time of the data control firmware is short and will hardly cause interruption of business data. Therefore, when the new network card firmware is the data control firmware, the first data distribution control function and the second data distribution control function are directly reset and effective.
[0092] In some embodiments, resetting and validating the data distribution control function of the network card processor includes:
[0093] Maintain the first data distribution control function of the network card processor to control the distribution of business data of each of the hosts through the first data distribution control function of the network card processor, and reset and take effect the second data distribution control function of the network card processor; after the second data distribution control function of the network card processor is reset and takes effect, control the distribution of business data of each of the hosts through the second data distribution control function of the network card processor, and reset and take effect the first data distribution control function of the network card processor.
[0094] The first data distribution control function of the network card controller is implemented by some logical control units mapped to each host connection port, and the second data transmission control function of the network card controller is implemented by other logical control units mapped to each host connection port. Resetting and taking effect the first data distribution control function of the network card controller means resetting and taking effect each logical control unit that implements the first data distribution control function of the network card controller. Resetting and taking effect the second data distribution control function of the network card controller means resetting and taking effect each logical control unit that implements the second data distribution control function of the network card controller. Resetting and taking effect the logical control unit refers to triggering the logical control unit to read the new data control firmware, thereby implementing the new data control firmware.
[0095] Taking a dual-host network card as an example, the two network ports of the dual-host network card are respectively called the first network port and the second network port. When the new network card firmware is a data control firmware, after the new network card firmware is loaded into the memory, the various logical control units mapped to the second network port are first reset and effective (the data distribution control function implemented by the various logical control units mapped to the second network port is the second data distribution control function of the network card controller), and the various logical control units mapped to the first network port are responsible for the distribution control of the business data of each host. After the various logical control units mapped to the second network port are reset and effective, the various logical control units mapped to the second network port take over the distribution control of the business data of each host, and then the various logical control units mapped to the first network port are reset and effective (the data distribution control function implemented by the various logical control units mapped to the first network port is the first data distribution control function of the network card controller).
[0096] In some embodiments, it also includes:
[0097] When the new network card firmware includes data control firmware and data processing firmware, the data distribution control function of the network card processor is reset and effective, and after the data distribution control function of the network card processor is reset and effective, the first data transmission control function of the network card processor is maintained to control the transmission of business data of each of the hosts through the first data transmission control function of the network card processor, and the second data transmission control function of the network card processor is reset and effective; after the second data transmission control function of the network card processor is reset and effective, the transmission of business data of each of the hosts is controlled through the second data transmission control function of the network card processor, and the first data transmission control function of the network card processor is reset and effective.
[0098] When the new network card firmware includes data control firmware and data processing firmware, the data control firmware is first triggered to take effect, and then the data processing firmware is triggered to take effect. Among them, when the data control firmware is triggered to take effect, the data control units mapped to each host can be directly reset and taken effect. In the case where the data distribution control function of the network card controller includes a first data distribution control function and a second data distribution control function, the first data distribution control function and the second data distribution control function of the network card controller can be directly reset and taken effect, or a sequential adjustment can be made, first maintaining the first data distribution control function of the network card processor to control the distribution of the business data of each of the hosts through the first data distribution control function of the network card processor, and resetting and taking effect the second data distribution control function of the network card processor; after the second data distribution control function of the network card processor is reset and taken effect, the distribution of the business data of each of the hosts is controlled through the second data distribution control function of the network card processor, and the first data distribution control function of the network card processor is reset and taken effect. When the data processing firmware is triggered to take effect, the first data transmission control function of the network card processor is maintained first, so as to control the transmission of the business data of each of the hosts through the first data transmission control function of the network card processor, and reset and take effect the second data transmission control function of the network card processor; after the second data transmission control function of the network card processor is reset and takes effect, the transmission of the business data of each of the hosts is controlled through the second data transmission control function of the network card processor, and the first data transmission control function of the network card processor is reset and takes effect.
[0099] In some embodiments, it also includes:
[0100] The host, network card and switch are networked to establish an Internet data center network. The switch is set to link aggregation control mode. The logical network port displayed under the system of the host is set to redundant mode, and the service of the host is set to dynamic link aggregation mode.
[0101] Taking a dual-port dual-host network card as an example, a specific implementation method is described below:
[0102] To network the server and establish an IDC (Internet Data Center) network, the main steps are as follows: 1. Install a PCIe x8+x8 dual-port network card on the server. Each PCIe x8 port is connected to a host to complete the connection of multiple hosts. 2. Each network port of the dual-port network card is connected to a switch. 3. Perform network settings: The dual-port network card displays the network from each physical network port on each host, that is, two logical network ports will be displayed under the system on both hosts. Figure 2As shown in the figure, operating system 1 is a system on one host, and operating system 2 is a system on another host. Two logical network ports are displayed under operating system 1 (system network port 0 and system network port 1). Two logical network ports are displayed under operating system 2 (system network port 0 and system network port 1). Each logical network port corresponds to a physical network port. Figure 2 As shown in the figure, the system network port 0 under operating system 1 corresponds to port 0 (a physical network port), and the system network port 1 under operating system 1 corresponds to port 1 (another physical network port). Similarly, the system network port 0 under operating system 1 corresponds to port 0 (a physical network port), and the system network port 1 under operating system 2 corresponds to port 1 (another physical network port). Set bonding for the two logical network ports under the system on the host, and set bond4 for the service. Figure 2 As shown, the two logical network ports under the operating system 1 on the host are set to bond, and the business is set to bond4. The two logical network ports under the operating system 2 on the host are set to bond, and the business is set to bond4. 4. Set up the network on the switch: First, set up LACP on the switch to meet the bond4 setting of each host. Secondly, set up 1+1 redundancy between the switches to meet the redundancy on the switch side.
[0103] Update the new network card firmware to the FLASH of the network card.
[0104] Triggering the new network card firmware to take effect. Triggering the new network card firmware to take effect means loading the new network card firmware in FLASH into the memory of the network card, and the processor reads the new network card firmware in the memory to make the new network card firmware take effect.
[0105] The data processing unit is equipped with data processing firmware, and the data control unit is equipped with data control firmware. In order to meet the data control and data transmission of each host, a logical processor is established on a single processor, that is, a logical processing unit is established on the data processing unit, and a logical control unit is established on the data control unit. The data transmission control and data distribution control of each host are realized through the division of different logical processors.
[0106] Multiple logical processing units are established on the data processing unit, and each logical processing unit corresponds to each host connection port. Take a data processing unit as an example, refer to Figure 3 As shown, the data processing unit establishes a logical processing unit 1 and a logical processing unit 2. The logical processing unit 1 corresponds to the terminal device 0 and the terminal device 2. The logical processing unit 2 corresponds to the terminal device 0 and the terminal device 1. The terminal device is a host connection port, such as the PCIe X8 port described above.
[0107] Multiple logical control units are established on the data control unit, and each logical processing unit corresponds to each host connection port. Take a data control unit as an example, refer to Figure 4 As shown, a logic control unit 1 and a logic control unit 2 are established on the data control unit. The logic control unit 1 corresponds to the terminal device 0 and the terminal device 2. The logic control unit 2 corresponds to the terminal device 0 and the terminal device 1.
[0108] Each logical processing unit uses the same data processing firmware. When the network card firmware is effective, an additional memory area is used to load the new network card firmware into the memory area. Taking a data processing unit as an example, logical processing unit 1 and logical processing unit 2 are established on the data processing unit. Figure 5 As shown, the data processing firmware used by logical processing unit 1 is the same as that used by logical processing unit 2. The original network card firmware is located in memory domain 1. When the network card firmware is effective, the new network card firmware is loaded into memory 2.
[0109] After the new network card firmware is loaded into the memory area, the processor memory address is triggered to read the address transferred to the memory area, so that the processor reads the new network card firmware in the memory area, thereby realizing the effectiveness of the new network card firmware.
[0110] Among them, when the new network card firmware is data control firmware, the data control units mapped to each host can be directly reset and take effect. It is also possible to retain the functions of each logical control unit mapped to the first network port (for example, port 0), reset and take effect each logical control unit mapped to the second network port (port 1), and after each logical control unit mapped to the second network port is reset and takes effect, reset and take effect each logical control unit mapped to the first network port.
[0111] For example, refer to Figure 4 Taking a data control unit as an example, when the new network card firmware is the data control firmware, the data control units mapped by each host can be directly reset and enabled. Alternatively, the function of the logic control unit 1 can be retained, and the logic control unit 2 can be reset and enabled, and after the reset and enabling of the logic control unit 1, the logic control unit 2 can be reset and enabled.
[0112] When the new network card firmware is the data processing firmware, the functions of the logic processing units mapped to the first network port are reserved first, and the business data transmission of the host is undertaken by the logic processing units of the first network port. The logic processing units mapped to the second network port are reset and effective. After the reset of the logic processing units mapped to the second network port is effective, the logic processing units mapped to the second network port take over the business data transmission of each host, and then the logic processing units mapped to the first network port are reset and effective.
[0113] For example, refer to Figure 3Before triggering the logic processing unit 1 firmware to take effect, logic processing unit 1 will complete the business under the logic processing unit, and transfer the business data processing rights to logic processing unit 2, and notify the driver to suspend the business of logic processing unit 1, triggering the logic processing unit 1 firmware to take effect. At this time, due to the bond backup function, the network data transmission and control based on port 0 will be interrupted, and the network data transmission and control of port 1 will not be affected by this reset. All data are transferred to port 2 and logic processing unit 2, and the network data is not affected by the reset, ensuring the normal operation of business data. After the logic processing unit 1 firmware takes effect, the logic processing unit firmware is triggered to take effect, and the logic processing unit 1 performs network data transmission to ensure the normal operation of the business.
[0114] After each logical processing unit firmware takes effect, the memory area where the original network card firmware runs is initialized to reserve for the next firmware to take effect.
[0115] In summary, in the network card firmware upgrade method provided by the present invention, the network card processor is provided with a first data transmission control function and a second data transmission control function, and both the first data transmission control function and the second data transmission control function can perform transmission control on the business data of each host connected to the network card. When the new network card firmware is a data processing firmware, when the new network card firmware is triggered to take effect, the second data transmission control function of the network card processor is first reset and taken effect. At this time, the transmission control of the business data of each host connected to the network card is taken over by the first data transmission control function of the network card processor that has not been reset and taken effect, to ensure that the business data transmission is not affected. Then, after the second data transmission control function of the network card processor is reset and taken effect, the first data transmission control function of the network card processor is reset and taken effect. At this time, the transmission control of the business data of each host connected to the network card is taken over by the second data transmission control function of the network card processor, to ensure that the business data transmission is not affected, thereby realizing a senseless upgrade of the network card firmware and reducing the operation and maintenance costs and complexity.
[0116] The present invention also provides a network card firmware upgrade device, and the device described below can be referred to in correspondence with the method described above. Figure 6 , Figure 6 A schematic diagram of a network card firmware upgrade device provided by an embodiment of the present invention, combined with Figure 6 As shown, the device comprises:
[0117] A receiving module 10 is used to receive new network card firmware; the new network card firmware is issued by any host among the multiple hosts connected to the network card;
[0118] A refresh loading module 20, used for refreshing the corresponding type of network card firmware in the network card memory according to the new network card firmware, and loading the new network card firmware in the network card memory into the memory of the network card;
[0119] The reset and validation module 30 is used to maintain the first data transmission control function of the network card processor when the new network card firmware is the data processing firmware, so as to control the transmission of the business data of each host through the first data transmission control function of the network card processor, and reset and validate the second data transmission control function of the network card processor; after the second data transmission control function of the network card processor is reset and validated, control the transmission of the business data of each host through the second data transmission control function of the network card processor, and reset and validate the first data transmission control function of the network card processor.
[0120] Based on the above embodiment, as a specific implementation method, it also includes:
[0121] The second reset and validation module is used to reset and validate the data distribution control function of the network card processor when the new network card firmware is the data control firmware.
[0122] Based on the above embodiment, as a specific implementation method, the network card processor includes a first data distribution control function and a second data distribution control function; the first data distribution control function and the second data distribution control function are both used to control the distribution of business data of each host.
[0123] Based on the above embodiment, as a specific implementation mode, the second reset validation module is specifically used for:
[0124] The first data distribution control function and the second data distribution control function of the network card processor are reset to take effect.
[0125] Based on the above embodiment, as a specific implementation mode, the second reset validation module is specifically used for:
[0126] Maintain the first data distribution control function of the network card processor to control the distribution of business data of each of the hosts through the first data distribution control function of the network card processor, and reset and take effect the second data distribution control function of the network card processor; after the second data distribution control function of the network card processor is reset and takes effect, control the distribution of business data of each of the hosts through the second data distribution control function of the network card processor, and reset and take effect the first data distribution control function of the network card processor.
[0127] Based on the above embodiment, as a specific implementation method, it also includes:
[0128] The third reset and validation module is used to reset and validate the data distribution control function of the network card processor when the new network card firmware includes data control firmware and data processing firmware, and after the data distribution control function of the network card processor is reset and validated, maintain the first data transmission control function of the network card processor to control the transmission of business data of each host through the first data transmission control function of the network card processor, and reset and validate the second data transmission control function of the network card processor; after the second data transmission control function of the network card processor is reset and validated, control the transmission of business data of each host through the second data transmission control function of the network card processor, and reset and validate the first data transmission control function of the network card processor.
[0129] Based on the above embodiment, as a specific implementation method, each network port of the network card is connected to a switch respectively, and the switch adopts a redundant setting.
[0130] Based on the above embodiment, as a specific implementation method, the host displays M logical network ports, M is equal to the number of network ports of the network card, each of the logical network ports is mapped to a network port of the network card, and the network ports mapped to each logical network port in the host are different.
[0131] Based on the above embodiment, as a specific implementation method, the network card memory stores a set of data processing firmware and a set of data control firmware.
[0132] Based on the above embodiment, as a specific implementation method, the refresh loading module 20 includes:
[0133] An identification submodule, used to identify the type of the new network card firmware according to the flag bit of the new network card firmware;
[0134] A first refreshing submodule, configured to refresh the data processing firmware in the network card memory to the new network card firmware if the new network card firmware is the data processing firmware;
[0135] A second refreshing submodule, configured to refresh the data control firmware in the network card memory to the new network card firmware if the new network card firmware is the data control firmware;
[0136] The third refresh submodule is used to refresh the data control firmware in the network card memory to the data control firmware in the new network card firmware, and refresh the data processing firmware in the network card memory to the data processing firmware in the new network card firmware if the new network card firmware includes data processing firmware and data control firmware.
[0137] Based on the above embodiment, as a specific implementation method, the refresh loading module 20 is specifically used for:
[0138] The new network card firmware in the network card memory is loaded into a target memory area of the network card; the target memory area is different from the memory area loaded with the original network card firmware.
[0139] Based on the above embodiment, as a specific implementation method, it also includes:
[0140] The memory initialization module is used to initialize the memory area loaded with the original network card firmware after the network card firmware upgrade is completed, so that the initialized memory area is used as the new target memory area.
[0141] Based on the above embodiment, as a specific implementation method, it also includes:
[0142] The networking module is used to network the host, the network card and the switch to establish an Internet data center network.
[0143] Based on the above embodiment, as a specific implementation method, it also includes:
[0144] The first network configuration module is used to set the switch to a link aggregation control mode.
[0145] Based on the above embodiment, as a specific implementation method, it also includes:
[0146] The second network configuration module is used to set the logical network port displayed under the system of the host to a redundant mode and set the service of the host to a dynamic link aggregation mode.
[0147] Based on the above embodiment, as a specific implementation method, each host provides bus resource balancing to the network card.
[0148] In the network card firmware upgrade device provided by the present invention, the network card processor is provided with a first data transmission control function and a second data transmission control function, and both the first data transmission control function and the second data transmission control function can perform transmission control on the business data of each host connected to the network card. When the new network card firmware is a data processing firmware, when the new network card firmware is triggered to take effect, the second data transmission control function of the network card processor is first reset and taken effect. At this time, the transmission control of the business data of each host connected to the network card is taken over by the first data transmission control function of the network card processor that has not been reset and taken effect, so as to ensure that the business data transmission is not affected. Then, after the second data transmission control function of the network card processor is reset and taken effect, the first data transmission control function of the network card processor is reset and taken effect. At this time, the transmission control of the business data of each host connected to the network card is taken over by the second data transmission control function of the network card processor, so as to ensure that the business data transmission is not affected, thereby realizing the senseless upgrade of the network card firmware and reducing the operation and maintenance cost and complexity.
[0149] The present invention also provides a network card firmware upgrade device, referring to Figure 7 As shown, the device includes a memory 1 and a processor 2 .
[0150] Memory 1, used for storing computer programs;
[0151] Processor 2 is used to execute the computer program to implement the following steps:
[0152] Receive new network card firmware; the new network card firmware is issued by any host among the multiple hosts connected to the network card; refresh the corresponding type of network card firmware in the network card memory according to the new network card firmware, and load the new network card firmware in the network card memory into the memory of the network card; when the new network card firmware is data processing firmware, maintain the first data transmission control function of the network card processor to control the transmission of business data of each of the hosts through the first data transmission control function of the network card processor, and reset and take effect the second data transmission control function of the network card processor; after the second data transmission control function of the network card processor is reset and takes effect, control the transmission of business data of each of the hosts through the second data transmission control function of the network card processor, and reset and take effect the first data transmission control function of the network card processor.
[0153] For an introduction to the device provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.
[0154] In the network card firmware upgrade device provided by the present invention, the network card processor is provided with a first data transmission control function and a second data transmission control function, and both the first data transmission control function and the second data transmission control function can perform transmission control on the business data of each host connected to the network card. When the new network card firmware is a data processing firmware, when the new network card firmware is triggered to take effect, the second data transmission control function of the network card processor is first reset and taken effect. At this time, the transmission control of the business data of each host connected to the network card is taken over by the first data transmission control function of the network card processor that has not been reset and taken effect, so as to ensure that the business data transmission is not affected. Then, after the second data transmission control function of the network card processor is reset and taken effect, the first data transmission control function of the network card processor is reset and taken effect. At this time, the transmission control of the business data of each host connected to the network card is taken over by the second data transmission control function of the network card processor, so as to ensure that the business data transmission is not affected, thereby realizing the senseless upgrade of the network card firmware and reducing the operation and maintenance cost and complexity.
[0155] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:
[0156] Receive new network card firmware; the new network card firmware is issued by any host among the multiple hosts connected to the network card; refresh the corresponding type of network card firmware in the network card memory according to the new network card firmware, and load the new network card firmware in the network card memory into the memory of the network card; when the new network card firmware is data processing firmware, maintain the first data transmission control function of the network card processor to control the transmission of business data of each of the hosts through the first data transmission control function of the network card processor, and reset and take effect the second data transmission control function of the network card processor; after the second data transmission control function of the network card processor is reset and takes effect, control the transmission of business data of each of the hosts through the second data transmission control function of the network card processor, and reset and take effect the first data transmission control function of the network card processor.
[0157] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0158] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not elaborate on it here.
[0159] The present invention also provides a computer program product, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the following steps are implemented:
[0160] Receive new network card firmware; the new network card firmware is issued by any host among the multiple hosts connected to the network card; refresh the corresponding type of network card firmware in the network card memory according to the new network card firmware, and load the new network card firmware in the network card memory into the memory of the network card; when the new network card firmware is data processing firmware, maintain the first data transmission control function of the network card processor to control the transmission of business data of each of the hosts through the first data transmission control function of the network card processor, and reset and take effect the second data transmission control function of the network card processor; after the second data transmission control function of the network card processor is reset and takes effect, control the transmission of business data of each of the hosts through the second data transmission control function of the network card processor, and reset and take effect the first data transmission control function of the network card processor.
[0161] In the computer program product provided by the present invention, the network card processor is provided with a first data transmission control function and a second data transmission control function, and both the first data transmission control function and the second data transmission control function can control the transmission of the business data of each host connected to the network card. When the new network card firmware is a data processing firmware, when the new network card firmware is triggered to take effect, the second data transmission control function of the network card processor is first reset and taken effect. At this time, the transmission control of the business data of each host connected to the network card is taken over by the first data transmission control function of the network card processor that has not been reset and taken effect, so as to ensure that the business data transmission is not affected. Then, after the second data transmission control function of the network card processor is reset and taken effect, the first data transmission control function of the network card processor is reset and taken effect. At this time, the transmission control of the business data of each host connected to the network card is taken over by the second data transmission control function of the network card processor, so as to ensure that the business data transmission is not affected, thereby realizing the senseless upgrade of the network card firmware and reducing the operation and maintenance cost and complexity.
[0162] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the devices, equipment, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0163] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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 present invention.
[0164] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0165] The network card firmware upgrade method, device, equipment, medium and computer program product provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation method of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the protection scope of the present invention.
Claims
1. A network card firmware upgrade method, characterized in that: include: Receive new network card firmware; The new network card firmware is issued by any host among the multiple hosts connected to the network card; The network card is a multi-host network card; The network card processor of the multi-host network card includes a data processing unit and a data control unit; each host is mapped to the data processing unit and the data control unit, and the data processing units and data control units mapped to different hosts are different; the data processing unit executes data processing firmware for data transmission control; the data control unit executes data control firmware for business data distribution control; the data processing unit includes N logical processing units, N is equal to the number of hosts connected to the multi-host network card, and each logical processing unit is mapped to each host connection port; the data control unit includes N logical control units, N is equal to the number of hosts connected to the multi-host network card, and each logical control unit is mapped to each host connection port; Refresh the corresponding type of network card firmware in the network card memory according to the new network card firmware, and load the new network card firmware in the network card memory into the memory of the network card; When the new network card firmware is the data processing firmware, the first data transmission control function of the network card processor is maintained to control the transmission of the business data of each of the hosts through the first data transmission control function of the network card processor, and the second data transmission control function of the network card processor is reset and effective; after the second data transmission control function of the network card processor is reset and effective, the transmission of the business data of each of the hosts is controlled through the second data transmission control function of the network card processor, and the first data transmission control function of the network card processor is reset and effective; resetting and effective the first data transmission control function of the network card controller refers to resetting and effective each logical processing unit that implements the first data transmission control function of the network card controller; resetting and effective the second data transmission control function of the network card controller refers to resetting and effective each logical processing unit that implements the second data transmission control function of the network card controller; resetting and effective the logical processing unit refers to triggering the logical processing unit to read the new data processing firmware; When the new network card firmware is a data control firmware, the data distribution control function of the network card processor is reset to take effect; the network card processor includes a first data distribution control function and a second data distribution control function; the first data distribution control function and the second data distribution control function are both used to distribute and control the business data of each of the hosts; resetting and taking effect the data distribution control function of the network card processor includes: resetting and taking effect the first data distribution control function and the second data distribution control function of the network card processor; or resetting and taking effect the data distribution control function of the network card processor includes: maintaining the first data distribution control function of the network card processor to control the business of each of the hosts through the first data distribution control function of the network card processor Data distribution, resetting and taking effect the second data distribution control function of the network card processor; after the second data distribution control function of the network card processor is reset and taken effect, the distribution of business data of each host is controlled by the second data distribution control function of the network card processor, and the first data distribution control function of the network card processor is reset and taken effect; resetting and taking effect the first data distribution control function of the network card controller refers to resetting and taking effect each logical control unit that implements the first data distribution control function of the network card controller; resetting and taking effect the second data distribution control function of the network card controller refers to resetting and taking effect each logical control unit that implements the second data distribution control function of the network card controller; resetting and taking effect the logical control unit refers to triggering the logical control unit to read the new data control firmware.
2. The network card firmware upgrade method according to claim 1, characterized in that: Also includes: When the new network card firmware includes data control firmware and data processing firmware, the data distribution control function of the network card processor is reset and effective, and after the data distribution control function of the network card processor is reset and effective, the first data transmission control function of the network card processor is maintained to control the transmission of business data of each of the hosts through the first data transmission control function of the network card processor, and the second data transmission control function of the network card processor is reset and effective; after the second data transmission control function of the network card processor is reset and effective, the transmission of business data of each of the hosts is controlled through the second data transmission control function of the network card processor, and the first data transmission control function of the network card processor is reset and effective.
3. The network card firmware upgrade method according to claim 1, characterized in that: Each network port of the network card is connected to a switch respectively, and the switch adopts a redundant setting.
4. The network card firmware upgrade method according to claim 1, characterized in that: The host displays M logical network ports, where M is equal to the number of network ports of the network card, each of the logical network ports is mapped to a network port of the network card, and the network ports mapped to the logical network ports in the host are different.
5. The network card firmware upgrade method according to claim 1, characterized in that: The network card memory stores a set of data processing firmware and a set of data control firmware.
6. The network card firmware upgrade method according to claim 1, characterized in that: Refreshing the corresponding type of network card firmware in the network card memory according to the new network card firmware includes: Identifying the type of the new network card firmware according to the flag bit of the new network card firmware; If the new network card firmware is a data processing firmware, updating the data processing firmware in the network card memory to the new network card firmware; If the new network card firmware is the data control firmware, updating the data control firmware in the network card memory to the new network card firmware; If the new network card firmware includes data processing firmware and data control firmware, the data control firmware in the network card memory is refreshed to the data control firmware in the new network card firmware, and the data processing firmware in the network card memory is refreshed to the data processing firmware in the new network card firmware.
7. The network card firmware upgrade method according to claim 1, characterized in that: Loading the new network card firmware in the network card memory into the memory of the network card includes: The new network card firmware in the network card memory is loaded into a target memory area of the network card; the target memory area is different from the memory area loaded with the original network card firmware.
8. The network card firmware upgrade method according to claim 7, characterized in that: Also includes: After the network card firmware upgrade is completed, the memory area loaded with the original network card firmware is initialized, so that the initialized memory area is used as a new target memory area.
9. The network card firmware upgrade method according to claim 1, characterized in that: Also includes: The host, the network card and the switch are networked to establish an Internet data center network.
10. The network card firmware upgrade method according to claim 9, characterized in that: Also includes: The switch is set to link aggregation control mode.
11. The network card firmware upgrade method according to claim 10, characterized in that: Also includes: The logical network port displayed under the system of the host is set to a redundant mode, and the service of the host is set to a dynamic link aggregation mode.
12. The network card firmware upgrade method according to claim 1, characterized in that: Each host provides bus resource balancing to the network card.
13. A network card firmware upgrade device, characterized in that: include: A receiving module, used for receiving new network card firmware; The new network card firmware is issued by any host among the multiple hosts connected to the network card; The network card is a multi-host network card; The network card processor of the multi-host network card includes a data processing unit and a data control unit; each host is mapped to the data processing unit and the data control unit, and the data processing units and data control units mapped to different hosts are different; the data processing unit executes data processing firmware for data transmission control; the data control unit executes data control firmware for business data distribution control; the data processing unit includes N logical processing units, N is equal to the number of hosts connected to the multi-host network card, and each logical processing unit is mapped to each host connection port; the data control unit includes N logical control units, N is equal to the number of hosts connected to the multi-host network card, and each logical control unit is mapped to each host connection port; A refresh loading module, used for refreshing the corresponding type of network card firmware in the network card memory according to the new network card firmware, and loading the new network card firmware in the network card memory into the memory of the network card; A reset and validation module is used to maintain the first data transmission control function of the network card processor when the new network card firmware is the data processing firmware, so as to control the transmission of the business data of each host through the first data transmission control function of the network card processor, and reset and validate the second data transmission control function of the network card processor; after the second data transmission control function of the network card processor is reset and validated, the transmission of the business data of each host is controlled through the second data transmission control function of the network card processor, and the first data transmission control function of the network card processor is reset and validated; resetting and validating the first data transmission control function of the network card controller refers to resetting and validating each logical processing unit that implements the first data transmission control function of the network card controller; resetting and validating the second data transmission control function of the network card controller refers to resetting and validating each logical processing unit that implements the second data transmission control function of the network card controller; resetting and validating the logical processing unit refers to triggering the logical processing unit to read the new data processing firmware; A second reset validation module is used to reset and validate the data distribution control function of the network card processor when the new network card firmware is a data control firmware; the network card processor includes a first data distribution control function and a second data distribution control function; the first data distribution control function and the second data distribution control function are both used to distribute and control the service data of each host; The second reset and validation module is specifically used to: reset and validate the first data distribution control function and the second data distribution control function of the network card processor; or, the second reset and validation module is specifically used to: maintain the first data distribution control function of the network card processor, so as to control the distribution of the service data of each of the hosts through the first data distribution control function of the network card processor, and reset and validate the second data distribution control function of the network card processor; after the second data distribution control function of the network card processor is reset and validated, control the distribution of the service data of each of the hosts through the second data distribution control function of the network card processor, and reset and validate the first data distribution control function of the network card processor; Resetting and taking effect the first data distribution control function of the network card controller refers to resetting and taking effect each logical control unit that implements the first data distribution control function of the network card controller; resetting and taking effect the second data distribution control function of the network card controller refers to resetting and taking effect each logical control unit that implements the second data distribution control function of the network card controller; resetting and taking effect the logical control unit refers to triggering the logical control unit to read the new data control firmware.
14. A network card firmware upgrade device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the network card firmware upgrade method according to any one of claims 1 to 12 when executing the computer program.
15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the network card firmware upgrade method according to any one of claims 1 to 12 are implemented.
16. A computer-readable storage medium, characterized in that: A computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the network card firmware upgrade method according to any one of claims 1 to 12 are implemented.