Server network card upgrade method, device, equipment and storage medium

Through hot plug-in design and configuration information management, the server can upgrade network cards of different network cards models and forms without opening the chassis and without plugging and unplugging the cylindrical card, solving the problem of upgrading multiple network card firmware versions in the existing technology. Improves efficiency and ease of maintenance.

CN115834379BActive Publication Date: 2025-01-03INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211372360.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-03
Publication Date
2025-01-03
Estimated Expiration
2042-11-03

AI Technical Summary

Technical Problem

The existing technology is difficult to upgrade the firmware version of a certain network card without affecting the version of other network cards when there are different network card models and forms on the server. Especially when it is difficult to meet the upgrade of multiple network card firmware versions under the boot state. need.

Method used

Through the hot plug-in design, the server can receive network card upgrade requests, obtain network card identification and generate configuration information, and power off other network cards to upgrade required network cards separately, so as to achieve different chips without opening the chassis and not plugging and unplugging the network card. Upgrading of version requirements.

Benefits of technology

It has achieved the upgrade of multiple network card firmware versions, improved the efficiency of network card upgrade, saved workload, and improved the server's ease of maintenance, suitable for mass production and customer on-site maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115834379B_ABST
    Figure CN115834379B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a server network card upgrade method, device, equipment and storage medium, which are applied to a server, where there are at least two network cards in place with different network card models and / or different network card forms of the same chip, and at least two network cards in place are inserted into the server based on a hot-swappable design, and the method includes: receiving a network card upgrade request sent by a client; obtaining the network card identifier of the network card to be upgraded in the server based on the network card information of the network card to be upgraded, and generating configuration information for the network card to be upgraded based on the network card identifier; powering off other network cards in place except the network card to be upgraded currently based on the configuration information, and upgrading the network card to be upgraded currently based on the version requirements to be upgraded. The network card upgrade operation with different network card upgrade requirements can be implemented on the network card in place without opening the chassis and plugging and unplugging the network card, meeting the requirements of multiple network card FW upgrades, and facilitating batch maintenance of network card upgrades.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method for upgrading a server network card, an apparatus for upgrading a server network card, a corresponding electronic device, and a corresponding non-volatile computer-readable storage medium. Background Art

[0002] When an ordinary PC (Personal Computer) accesses a LAN or the Internet, it usually only needs one network card. However, in order to meet the network needs of the server, the server usually needs two or more network cards to provide the server with high-speed network connection capabilities based on the network cards. As the server continues to develop and grow, customers have higher and higher requirements for network cards. The use of network cards on servers requires comprehensive functionality, stability, and performance testing and verification.

[0003] In the relevant technologies for upgrading server network cards, usually all network card FW (FirmWare, usually FW version, i.e. firmware version) of the same manufacturer and the same chip are upgraded. When there are both OCP-type network cards (referring to LOM cards defined by the Open Compute Project organization, where LOM cards are an integrated network card, usually a network card that can provide a high-speed network interface from the motherboard) and PCIE-type network cards (i.e. PCIe standard network cards, i.e. network cards that can provide a high-speed network interface from the PCIe slot on the motherboard) with the same chip on the server, it is impossible to achieve the demand for FW upgrade of only one type of network card when the computer is turned on, and it is difficult to meet the demand for FW upgrade of multiple network cards. Summary of the invention

[0004] In view of the above problems, embodiments of the present application are proposed to provide a method for upgrading a server network card, an upgrade device for a server network card, a corresponding electronic device, and a corresponding non-volatile computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0005] The embodiment of the present application discloses a method for upgrading a server network card, which is applied to a server. The server has at least two network cards of different network card models and / or different network card forms of the same chip, and the at least two network cards are inserted into the server based on a hot-swap design. The method includes:

[0006] The server receives a network card upgrade request sent by the client, where the network card upgrade request includes network card information of the network card to be upgraded and an upgrade version requirement to be upgraded;

[0007] Based on the network card information of the network card to be upgraded, the network card identifier of the network card to be upgraded on the server is obtained, and configuration information for the network card to be upgraded is generated according to the network card identifier; the configuration information is used to indicate the network card location and upgrade version requirements for the network card to be upgraded, wherein the upgrade version requirements for the network card to be upgraded include different upgrade version requirements for the same chip, and / or the same upgrade version requirements for the same chip, and / or the requirements for retaining the original version for the same chip;

[0008] According to the configuration information, other in-place network cards except the network card currently required to be upgraded are powered off, and based on the version requirement required to be upgraded, the network card currently required to be upgraded is upgraded.

[0009] Optionally, generating configuration information for the network card to be upgraded according to the network card identifier includes:

[0010] According to the network card identifier of the network card to be upgraded on the server, obtain the network card model, current network card version, and network card position of the network card to be upgraded on the server;

[0011] The configuration information for the network card to be upgraded is generated by using the network card model of the network card to be upgraded, the current network card version, the network card position of the network card to be upgraded on the server, and the upgrade version requirement to be upgraded.

[0012] Optionally, according to the configuration information, other in-place network cards except the currently required upgraded network card are powered off, and based on the version requirement required to be upgraded, the currently required upgraded network card is upgraded, including:

[0013] Determine, based on the configuration information, whether there are requirements for different upgrade versions of the same chip in the network cards to be upgraded; if there are requirements for different upgrade versions of the same chip in the network cards to be upgraded, determine the upgrade order based on the requirements for different upgrade versions;

[0014] The network card positions of the network cards currently required to be upgraded are determined in sequence according to the upgrade order. According to the determined network card positions of the network cards currently required to be upgraded, other network cards in position except the network cards currently required to be upgraded are powered off until all the network cards required to be upgraded are upgraded according to different upgrade version requirements.

[0015] Optionally, the network card positions of the network cards currently required to be upgraded are determined in sequence according to the upgrade sequence, and according to the determined network card positions of the network cards currently required to be upgraded, other network cards in place except the network cards currently required to be upgraded are powered off until all the network cards required to be upgraded are upgraded according to different upgrade version requirements, including:

[0016] When it is determined that there are requirements for different upgrade versions of the same chip in the network cards to be upgraded, the first network card to be upgraded is determined according to the upgrade sequence, and the network card position of the first network card to be upgraded and the network card positions of other network cards in place except the network card position of the first network card to be upgraded are obtained;

[0017] Based on the network card positions of other network cards in place, power off the other network cards in place except the first network card to be upgraded, and upgrade the first network card to be upgraded according to the version requirements to be upgraded;

[0018] The first upgraded network card after the upgrade operation is completed is powered off, and the subsequent upgraded network cards are upgraded according to the upgrade sequence and the requirements of different upgrade versions.

[0019] Optionally, the first upgraded network card after the upgrade operation is completed is powered off, and the subsequent upgraded network cards are upgraded according to different upgrade version requirements in the upgrade sequence, including:

[0020] After the upgrade of the first required upgrade network card is completed, if there are still different upgrade version requirements in the required upgrade network cards, the required upgrade network cards that still have different upgrade version requirements are obtained, the required upgrade network cards after the upgrade are completed are powered off, and the network card versions of the required upgrade network cards are upgraded according to the corresponding upgrade version requirements.

[0021] Optionally, according to the configuration information, other in-place network cards except the currently required upgraded network card are powered off, and based on the version requirement required to be upgraded, the currently required upgraded network card is upgraded, further comprising:

[0022] Determine whether there is a requirement for the same chip and the same upgrade version in the required upgraded network card based on the configuration information. If there is a requirement for the same chip and the same upgrade version in the required upgraded network card, obtain the required upgraded network card with the same upgrade version requirement, and perform an upgrade operation on the required upgraded network card according to the required upgrade version requirement.

[0023] Optionally, according to the configuration information, other in-place network cards except the currently required upgraded network card are powered off, and based on the version requirement required to be upgraded, the currently required upgraded network card is upgraded, further comprising:

[0024] Determine whether there is a requirement to retain the original version of the same chip in the network card to be upgraded according to the configuration information; if there is a requirement to retain the original version of the same chip in the network card to be upgraded, obtain the location of the network card that retains the original version in the network card in place of the server;

[0025] The in-place network card corresponding to the network card position retaining the original version requirement is powered off, and the other in-place network cards except the network card position retaining the original version requirement are upgraded based on the version requirement to be upgraded.

[0026] The embodiment of the present invention further discloses a server network card upgrade device, which is applied to a server. The server has at least two network cards of different network card models and / or different network card forms with the same chip. The at least two network cards are inserted into the server based on a hot-swap design. The device includes:

[0027] A network card upgrade request receiving module is used to receive a network card upgrade request sent by a client, wherein the network card upgrade request includes network card information of the network card to be upgraded and an upgrade version requirement to be upgraded;

[0028] A configuration information generation module, used for obtaining a network card identifier of the network card to be upgraded on the server based on the network card information of the network card to be upgraded, and generating configuration information for the network card to be upgraded according to the network card identifier; the configuration information is used to indicate the network card location and upgrade version requirements for the network card to be upgraded, wherein the upgrade version requirements for the network card to be upgraded include different upgrade version requirements for the same chip, and / or the same upgrade version requirements for the same chip, and / or the requirements for retaining the original version for the same chip;

[0029] The network card upgrade module is used to power off other network cards in place except the network card currently required to be upgraded according to the configuration information, and upgrade the network card currently required to be upgraded based on the version requirements required to be upgraded.

[0030] Optionally, the configuration information generating module includes:

[0031] The network card position determination submodule is used to obtain the network card model, current network card version, and network card position of the network card to be upgraded on the server according to the network card identifier of the network card to be upgraded on the server;

[0032] The configuration information generation submodule is used to generate configuration information for the network card to be upgraded by adopting the network card model to be upgraded, the current network card version, the network card position of the network card to be upgraded in the server, and the upgrade version requirement to be upgraded.

[0033] Optionally, the network card upgrade module includes:

[0034] An upgrade sequence determination submodule is used to determine whether there are different upgrade version requirements for the same chip in the required upgraded network card according to the configuration information. If there are different upgrade version requirements for the same chip in the required upgraded network card, the upgrade sequence is determined based on the different upgrade version requirements.

[0035] The first network card upgrade submodule is used to determine the network card position of the network card that currently needs to be upgraded in accordance with the upgrade order, and according to the determined network card position of the network card that currently needs to be upgraded, power off the other network cards in place except the network card that currently needs to be upgraded until all the network cards that need to be upgraded are upgraded according to different upgrade version requirements.

[0036] Optionally, the first network card upgrade submodule includes:

[0037] The first network card position determination unit is used to determine the first network card to be upgraded according to the upgrade sequence when it is determined that there are different upgrade versions of the same chip in the network cards to be upgraded, and obtain the network card position of the first network card to be upgraded, as well as the network card positions of other network cards in place except the network card position of the first network card to be upgraded;

[0038] The first network card upgrade unit is used to power off the other network cards in place except the first upgraded network card based on the network card positions of the other network cards in place, and upgrade the first upgraded network card according to the required upgraded version requirements;

[0039] The subsequent network card upgrade unit is used to power off the first upgraded network card after the upgrade operation is completed, and upgrade the subsequent upgraded network cards according to different upgrade version requirements in the upgrade sequence.

[0040] Optionally, the subsequent network card upgrade unit includes:

[0041] The subsequent network card upgrade sub-unit is used to obtain the required upgrade network cards that still have different upgrade version requirements after the upgrade of the required upgrade network card for the first upgrade is completed, if there are still different upgrade version requirements in the required upgrade network cards, power off the required upgrade network cards after the upgrade is completed, and upgrade the network card version of the required upgrade network cards according to the corresponding upgrade version requirements.

[0042] Optionally, the network card upgrade module further includes:

[0043] At the same time, the upgrade sub-module is used to determine whether there is a requirement for the same chip and the same upgrade version in the required upgraded network card based on the configuration information. If there is a requirement for the same chip and the same upgrade version in the required upgraded network card, the required upgraded network card with the same upgrade version requirement is obtained, and the required upgraded network card is upgraded according to the required upgraded version requirement.

[0044] Optionally, the network card upgrade module further includes:

[0045] The network card position determination submodule is used to determine whether there is a requirement to retain the original version of the same chip in the network card to be upgraded according to the configuration information. If there is a requirement to retain the original version of the same chip in the network card to be upgraded, the position of the network card that retains the original version requirement is obtained from the network cards in place on the server;

[0046] The second network card upgrade submodule is used to power off the in-place network card corresponding to the network card position retaining the original version requirement, and upgrade other in-place network cards except the network card position retaining the original version requirement based on the required upgraded version requirement.

[0047] The embodiment of the present invention further discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, any server network card upgrade method is implemented.

[0048] The embodiment of the present invention further discloses a non-volatile computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, any server network card upgrade method is implemented.

[0049] The embodiments of the present application include the following advantages:

[0050] In an embodiment of the present application, when there are at least two network cards of different network card models and / or different network card forms with the same chip on the server, the network cards on the server can be designed based on hot plugging, so that when a network card upgrade request sent by a client is received, other network cards except the current network card that needs to be upgraded can be powered off based on the corresponding configuration information of the network card that needs to be upgraded, and the current network card that needs to be upgraded can be upgraded based on the required upgraded version requirement, so that the upgrade operation of the network cards with different upgrade version requirements of the same chip can be performed on the network cards in place without opening the chassis and plugging and unplugging the network cards, and the upgrade operation of one of the network cards in place can be performed without performing the upgrade operation on the other network card in place. While being able to meet the customer's needs for upgrading the FW of multiple network cards, the automatic upgrade operation based on the configuration information is also possible, which facilitates batch maintenance of network card upgrades, improves the efficiency of network card upgrades, and saves workload. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a flowchart of the steps of an embodiment of a method for upgrading a server network card of the present application;

[0052] Figure 2 It is a flowchart of another embodiment of a method for upgrading a server network card of the present application;

[0053] Figure 3This is a flowchart of another embodiment of a method for upgrading a server network card of the present application;

[0054] Figure 4 It is a schematic diagram of the application flow of the method for upgrading the server network card provided in the embodiment of the present application;

[0055] Figure 5 It is a structural block diagram of an embodiment of an upgrade device for a server network card of the present application;

[0056] Figure 6 It is a hardware structure diagram of an electronic device for implementing a server network card upgrade method provided in an embodiment of the present application;

[0057] Figure 7 It is a schematic diagram of a non-volatile computer-readable storage medium for implementing a method for upgrading a server network card provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0059] When manufacturers launch network cards, they usually have multiple FW versions for one network card, and there are FW versions with different features for different customer needs. In many cases, these different FW versions can be converted to each other. When purchasing, customers may also purchase too many hard disks of a certain FW version, but after a period of time, there may be a newer FW version, or a FW version with better performance or energy consumption. At this time, the production line needs to refresh the FW version and then ship it with machines of different configurations. After using a certain FW for a long time, the customer may find that the FW version cannot meet the current needs due to business needs, so the network card FW on the existing server needs to be upgraded.

[0060] In the related technology of upgrading server network cards, if the FWs of all network cards of the same manufacturer on the server are the same, the network card FW upgrade test is usually performed directly, and the server will upgrade all network cards on the same chip of the same manufacturer; when network cards of different network card forms with the same chip exist on the server at the same time, such as OCP network cards and PCIE network cards, and the FWs of the network cards are required to be different, or when only one of the network cards (such as OCP) needs to be upgraded for FW, and the FWs of other network cards (PCIE type) remain unchanged, it is necessary to first shut down the server, unplug the PCIE network card, and then start the server to upgrade the FW of the OCP network card, and then insert the PCIE type network card to achieve the FW upgrade of only one type of network card, that is, when different network card forms with the same chip exist on the server at the same time, such as OCP network card and PCIE network card, it is not possible to achieve the FW upgrade of only one of the network cards (such as OCP) in the powered-on state without upgrading the other network card, which is inconvenient to meet the customer's demand for FW upgrades of multiple network cards. In addition, whether it is production line production or on-site network card FW upgrade, it will bring inconvenience and additional workload.

[0061] One of the core ideas of the embodiments of the present application is that when there are at least two network cards of different network card models and / or different network card forms on the server with the same chip, the network cards on the server can be designed based on hot plugging. By powering off the network cards that are not currently being upgraded, the network cards that need to be upgraded are kept in place, and the network card FW is upgraded separately for this / this batch of network cards, so as to achieve the requirement of upgrading the same chip of the server to different network card FWs without opening the chassis and plugging and unplugging the network cards. This is suitable for batch production of the same chip to upgrade to different network card FWs on the production line, and can meet the customer's demand for upgrading multiple network card FWs; and a network card FW configuration file is established for the network card, and the automatic upgrade operation based on the configuration information is implemented to achieve the network card FW upgrade for the network cards of multiple servers at the same time, avoiding upgrading the network cards one by one, facilitating batch maintenance of network card upgrades, improving the efficiency of network card FW upgrades, and greatly saving the workload of production line workers in disassembling and assembling machines and network cards to achieve different network card FW upgrades under the same chip. Furthermore, for customers, it also avoids the operation of opening the chassis cover for maintenance. Based on the command operation according to the configuration information, the network cards with the same chip on the same server can realize the FW upgrade of different network cards, which improves the maintainability of the server.

[0062] Reference Figure 1 , shows a flowchart of a method for upgrading a server network card according to an embodiment of the present application, which is applied to a server and may specifically include the following steps:

[0063] Step 101, receiving a network card upgrade request sent by a client;

[0064] The network cards on the server can be network cards with the same chip but different network card models, network cards with different network card forms (such as OCP network cards or PCIE network cards), or network cards with the same form but different network card models; however, even if the chip is the same, the network models of the multiple network cards it includes are different, where the network model can refer to the slot used by the network card in the server. But generally speaking, a network card model generally has only one chip.

[0065] It should be noted that the network card model corresponds to a specific PN code. The OCP type and PCIE type are just a rough classification based on the shape of the network card. That is, OCP-type network cards and PCIE-type network cards can be divided into many network card models.

[0066] In order to implement the upgrade operation of the existing network cards to meet the requirements of different upgrade versions of the same chip without opening the chassis and plugging and unplugging the network cards, and to implement the upgrade operation of one of the existing network cards without upgrading the other network card, so as to meet the customer's needs for FW upgrades of multiple network cards, when there are at least two existing network cards of different network card models and / or different network card forms of the same chip on the server, the network cards on the server can be hot-swappable, that is, at least two existing network cards can be inserted into the server based on the hot-swappable design.

[0067] Hot plugging refers to plugging and unplugging while powered on. The hot plugging function allows users to disconnect a component from the system based on a power-off operation without shutting down the system or cutting off the power. The hot plugging design can achieve the absence of the network card that is not being upgraded without physically plugging and unplugging the network card, making it easier to upgrade the network card that needs to be upgraded separately.

[0068] In an embodiment of the present application, the network card to be upgraded can be determined based on the network card upgrade requirement sent by the client, and the received network card upgrade requirement request may include the network card information of the network card to be upgraded and the upgrade version requirement to be upgraded. At this time, the server can determine the network card to be upgraded based on the network card information in the network card upgrade requirement request, so as to facilitate the subsequent power-off operation of the network card that does not need to be upgraded; and the server can determine whether the network cards to be upgraded in each in-place network card have different upgrade requirements based on the upgrade version requirement in the network card upgrade requirement request, so as to subsequently determine the upgrade order and perform the network card upgrade operation based on the upgrade order; and the server can also determine whether there are in-place network cards with the same upgrade requirement based on the upgrade version requirement in the request, so as to implement batch upgrade operations in the subsequent network card upgrade process.

[0069] Step 102, based on the network card information of the network card to be upgraded, obtaining the network card identifier of the network card to be upgraded in the server, and generating configuration information for the network card to be upgraded according to the network card identifier;

[0070] After receiving the network card upgrade request sent by the client, the network card identifier of the network card to be upgraded in the server can be obtained based on the network card information of the network card to be upgraded. The network card identifier BDF (Bus Device Function, which can be expressed as a bus number, a device number, and a function number in sequence) can be a unique identifier of the in-place network card in the server, so as to determine the relevant in-place information of the network card to be upgraded in the server based on the unique identifier and generate configuration information.

[0071] The configuration information can be used to indicate the location of the network card and the upgrade version requirements for the network card that needs to be upgraded. Specifically, it can be used to indicate the location of the network card when the power is turned off on the existing network card in the server, and the network card upgrade requirements that must be met when the network card that needs to be upgraded is upgraded. In actual applications, based on the instructions of the configuration information, it is possible to upgrade the network card that needs to be upgraded on demand, and to upgrade the network card FW of multiple servers at the same time, avoiding upgrading the network cards one by one, facilitating batch maintenance of network card upgrades, improving the efficiency of network card FW upgrades, and greatly saving the workload of production line workers in disassembling and assembling machines and network cards to upgrade the FW of different network cards under the same chip.

[0072] The upgrade version requirements indicated by the configuration information may generally include different upgrade version requirements for the same chip, and / or the same upgrade version requirements for the same chip, and / or the same chip retaining the original version requirements. Whether the network cards to be upgraded have different upgrade requirements can be determined mainly based on whether the required upgrade versions are the same.

[0073] Step 103: According to the configuration information, other network cards in place except the network card currently required to be upgraded are powered off, and based on the version requirement required to be upgraded, the network card currently required to be upgraded is upgraded.

[0074] After obtaining the configuration information for indicating the network card position and the upgrade version requirement for the network card that needs to be upgraded, it can be used to indicate the network card position when the power-off operation is subsequently performed on the network card in place in the server, as well as the network card upgrade requirements that are required to be met when the upgrade operation is subsequently performed on the network card that needs to be upgraded. At this time, other network cards in place except the network card that currently needs to be upgraded can be automatically powered off based on the configuration information, that is, the network cards in place on the server are designed based on hot pluggability, and the network cards that are currently not upgraded are powered off, while the network cards that currently need to be upgraded are kept in place, and the network card FW is upgraded separately for this / this batch of network cards, so as to achieve the requirement of upgrading the same chip of the server to different network card FW without opening the chassis and plugging and unplugging the network card.

[0075] After powering off other network cards in place except the network card currently required to be upgraded, the network card currently required to be upgraded that remains in place can be upgraded according to its required upgrade version requirements.

[0076] In one embodiment of the present application, after the upgrade operation is performed, it is also necessary to restart the server and detect the network card FW to determine whether the upgrade is successful. If the upgrade fails, a prompt message can be generated to prompt manual upgrade.

[0077] In an embodiment of the present application, when there are at least two network cards of different network card models and / or different network card forms with the same chip on the server, the network cards on the server can be designed based on hot plugging, so that when a network card upgrade request sent by a client is received, other network cards except the current network card that needs to be upgraded can be powered off based on the corresponding configuration information of the network card that needs to be upgraded, and the current network card that needs to be upgraded can be upgraded based on the required upgraded version requirement, so that the upgrade operation of the network cards with different upgrade version requirements of the same chip can be performed on the network cards in place without opening the chassis and plugging and unplugging the network cards, and the upgrade operation of one of the network cards in place can be performed without performing the upgrade operation on the other network card in place. While being able to meet the customer's needs for upgrading the FW of multiple network cards, the automatic upgrade operation based on the configuration information is also possible, which facilitates batch maintenance of network card upgrades, improves the efficiency of network card upgrades, and saves workload.

[0078] Reference Figure 2 , shows a flowchart of another embodiment of a method for upgrading a server network card of the present application, which may specifically include the following steps:

[0079] Step 201, based on the network card information of the network card to be upgraded, the network card identifier of the network card to be upgraded in the server is obtained, and configuration information for the network card to be upgraded is generated according to the network card identifier;

[0080] In an embodiment of the present application, in order to implement the upgrade operation of the in-place network cards according to the requirements of different upgrade versions of the same chip without opening the chassis and plugging and unplugging the network cards, and to implement the upgrade operation of one of the in-place network cards without performing the upgrade operation of the other in-place network card, so as to meet the customer's needs for FW upgrades of multiple network cards, when there are at least two in-place network cards of different network card models and / or different network card forms of the same chip on the server, the network cards in place on the server can be hot-pluggable, that is, at least two in-place network cards are inserted into the server based on the hot-pluggable design, so that the hot-pluggable design can achieve the phenomenon of not being in place for the network cards that are not upgraded without physically plugging and unplugging the network cards, so as to facilitate the upgrade of the network cards that need to be upgraded separately.

[0081] In actual applications, the network card that needs to be upgraded can be determined based on the network card upgrade requirements sent by the client. The received network card upgrade requirement request may include the network card information of the network card that needs to be upgraded and the upgrade version requirement that needs to be upgraded. At this time, the network card identifier BDF of the network card that needs to be upgraded in the server can be obtained based on the network card information of the network card that needs to be upgraded, the relevant in-place information of the network card that needs to be upgraded in the server can be determined, and the configuration information can be generated.

[0082] In a specific implementation, you can query the network card model, current network card version, and network card position of the network card to be upgraded on the server based on the network card identifier of the network card to be upgraded on the server, and then generate configuration information for the network card to be upgraded based on the queried network card model, current network card version, network card position of the network card to be upgraded on the server, and upgrade version requirements of the network card to be upgraded.

[0083] Then, the configuration information can be used to indicate the location of the network card and the upgrade version requirements for the network card that needs to be upgraded. Specifically, it can be used to indicate the location of the network card when the power is turned off on the existing network card in the server, and the network card upgrade requirements that must be met when the network card that needs to be upgraded is upgraded. In actual applications, based on the instructions of the configuration information, it is possible to achieve on-demand upgrades of the network cards that need to be upgraded, and to upgrade the network card FW of the network cards of multiple servers at the same time, avoiding upgrading the network cards one by one, facilitating batch maintenance of network card upgrades, improving the efficiency of network card FW upgrades, and greatly saving the workload of production line workers in disassembling and assembling machines and network cards to upgrade the FW of different network cards under the same chip.

[0084] The upgrade version requirements indicated by the configuration information may generally include different upgrade version requirements for the same chip, and / or the same upgrade version requirements for the same chip, and / or the same chip retaining the original version requirements. Whether the network cards to be upgraded have different upgrade requirements can be determined mainly based on whether the required upgrade versions are the same.

[0085] Step 202, judging whether there are requirements for different upgrade versions of the same chip in the network cards to be upgraded according to the configuration information, and if there are requirements for different upgrade versions of the same chip in the network cards to be upgraded, determining the upgrade order based on the requirements for different upgrade versions;

[0086] The server can determine the network cards that need to be upgraded based on the generated configuration information, so as to power off the network cards that do not need to be upgraded; and the server can determine whether the network cards that need to be upgraded in each position have different upgrade requirements based on the generated configuration information, so as to determine the upgrade order and perform the network card upgrade operation based on the upgrade order; and the server can also determine whether there are network cards in place with the same upgrade requirements based on the generated configuration information, so as to implement batch upgrade operations during the network card upgrade process.

[0087] In one embodiment of the present application, when performing an upgrade operation on an in-place network card, there is a situation where the upgrade operation of the in-place network card with different upgrade version requirements of the same chip is realized without opening the chassis and plugging and unplugging the network card. For example, when upgrading network cards of different network card forms and / or different network card types of the same chip, such as PCIE network cards and OCP network cards, due to the different network card forms of PCIE network cards and OCP network cards, even if they belong to the same type of chip, it is usually necessary to upgrade the PCIE network cards and OCP network cards of the same chip to different network card FWs.

[0088] Step 203, determine the network card position of the network card currently required to be upgraded in sequence according to the upgrade order, and according to the determined network card position of the network card currently required to be upgraded, power off the other network cards in place except the network card currently required to be upgraded until all the network cards required to be upgraded are upgraded according to different upgrade version requirements.

[0089] When determining whether there are requirements for different upgrade versions of the same chip in the required upgraded network cards based on the configuration information, if there are requirements for different upgrade versions of the same chip in the required upgraded network cards, then the upgrade order can be determined based on the different upgrade version requirements, so that the required upgraded network cards corresponding to the different upgrade version requirements can be upgraded based on the determined upgrade order.

[0090] Specifically, the network card position of the network card currently required to be upgraded can be determined in sequence according to the upgrade order, and according to the determined network card position of the network card currently required to be upgraded, the other network cards in place except the network card currently required to be upgraded are powered off until the network cards required to be upgraded are upgraded according to different upgrade version requirements. Among them, the network card position of the network card in place is mainly determined according to the PCIE topology and the silk screen on the chassis. Usually, when the network card is inserted into the server, its unique position in the server can be determined.

[0091] In actual applications, when it is determined that there are different upgrade version requirements for the same chip in the network cards that need to be upgraded, the first network card that needs to be upgraded can be determined according to the upgrade order, and the network card position of the first network card that needs to be upgraded and the network card positions of other network cards in place except the network card position of the first network card that needs to be upgraded can be obtained; then based on the network card positions of other network cards in place, the other network cards in place except the first network card that needs to be upgraded can be powered off, and the first network card that needs to be upgraded can be upgraded according to the required upgrade version requirements, and subsequently the first network card that needs to be upgraded can be powered off after the upgrade operation is completed, and subsequent network cards that need to be upgraded can be upgraded according to different upgrade version requirements in the upgrade order.

[0092] Mainly, after the upgrade of the first upgraded network card is completed, if there are still different upgrade version requirements in the upgraded network card, the upgraded network card that still has different upgrade version requirements is obtained, the upgraded network card after the upgrade is completed is powered off, and the network card version of the upgraded network card is upgraded according to the corresponding upgrade version requirements. The upgrade is completed when the server is restarted and the network card after the upgrade is performed is detected to see whether its network card version is the same as the required upgrade network card FW in the configuration information generated for the required upgrade network card. If the network card version of the network card after the upgrade operation is the same as the required upgrade network card FW in the configuration information, it means that the upgrade operation for the required upgrade network card is completed.

[0093] For example, assuming that the PCIE network card and OCP network card of the same chip need to be upgraded to different network card FWs, when upgrading the server network card FW, you can perform a hotplug power-off operation on the OCP network card before upgrading the network card FW based on the provided configuration information, which is usually manifested as the network card model, network card location and upgrade version requirements given in the configuration file. At this time, the OCP network card is not in place after the power failure, and the PCIE network card FW can be upgraded; after the PCIE network card upgrade is completed, the power supply can be restored to the OCP network card, and then the hotplug power-off operation can be performed on the upgraded PCIE network card. Since the PCIE network card is not in place, the OCP network card that is in place after the power supply is restored can be upgraded to FW, thereby achieving the upgrade of the PCIE network card and OCP network card of the same chip to different network card FWs without shutting down the server.

[0094] In a preferred embodiment, when in-place network cards of different network card models and / or different network card forms of the same chip are upgraded according to different upgrade version requirements, it can also be determined based on the configuration information whether there are requirements for the same chip and the same upgrade version in the network cards to be upgraded. If there are requirements for the same chip and the same upgrade version in the network cards to be upgraded, the network cards to be upgraded with the same upgrade version requirements are obtained, and the upgrade operations are performed on the network cards to be upgraded according to the required upgrade version requirements, thereby realizing simultaneous batch upgrades of the network cards with the same upgrade version requirements.

[0095] In actual applications, the upgrade operation for the network card to be upgraded mainly involves installing the installation package corresponding to the upgrade version requirement of the network card. For example, when upgrading network cards from the same manufacturer, different chips can be upgraded to the same FW, that is, the FW package is implemented by using the same package for multiple network cards.

[0096] In addition, after upgrading the existing network card of the server, you can restart the server and check the network card FW to determine whether the upgrade is successful. If the upgrade fails, a prompt message can be generated to prompt manual upgrade.

[0097] In an embodiment of the present application, when there are at least two network cards of different network card models and / or different network card forms with the same chip on the server, the network cards on the server can be designed based on hot plugging, so that when a network card upgrade request sent by a client is received, other network cards except the current network card that needs to be upgraded can be powered off based on the corresponding configuration information of the network card that needs to be upgraded, and the current network card that needs to be upgraded can be upgraded based on the required upgraded version requirement, so that the upgrade operation of the network cards with different upgrade version requirements of the same chip can be performed on the network cards in place without opening the chassis and plugging and unplugging the network cards, and the upgrade operation of one of the network cards in place can be performed without performing the upgrade operation on the other network card in place. While being able to meet the customer's needs for upgrading the FW of multiple network cards, the automatic upgrade operation based on the configuration information is also possible, which facilitates batch maintenance of network card upgrades, improves the efficiency of network card upgrades, and saves workload.

[0098] Reference Figure 3 , shows a flowchart of steps of another embodiment of a method for upgrading a server network card of the present application, which may specifically include the following steps:

[0099] Step 301, based on the network card information of the network card to be upgraded, the network card identifier of the network card to be upgraded in the server is obtained, and configuration information for the network card to be upgraded is generated according to the network card identifier;

[0100] In an embodiment of the present application, in order to implement the upgrade operation of the in-place network cards according to the requirements of different upgrade versions of the same chip without opening the chassis and plugging and unplugging the network cards, and to implement the upgrade operation of one of the in-place network cards without performing the upgrade operation of the other in-place network card, so as to meet the customer's needs for FW upgrades of multiple network cards, when there are at least two in-place network cards of different network card models and / or different network card forms of the same chip on the server, the network cards in place on the server can be hot-pluggable, that is, at least two in-place network cards are inserted into the server based on the hot-pluggable design, so that the hot-pluggable design can achieve the phenomenon of not being in place for the network cards that are not upgraded without physically plugging and unplugging the network cards, so as to facilitate the upgrade of the network cards that need to be upgraded separately.

[0101] In actual applications, the network card that needs to be upgraded can be determined based on the network card upgrade requirements sent by the client. The received network card upgrade requirement request may include the network card information of the network card that needs to be upgraded and the upgrade version requirement that needs to be upgraded. At this time, the network card identifier BDF of the network card that needs to be upgraded in the server can be obtained based on the network card information of the network card that needs to be upgraded, the relevant in-place information of the network card that needs to be upgraded in the server can be determined, and the configuration information can be generated.

[0102] In a specific implementation, you can query the network card model, current network card version, and network card position of the network card to be upgraded on the server based on the network card identifier of the network card to be upgraded on the server, and then generate configuration information for the network card to be upgraded based on the queried network card model, current network card version, network card position of the network card to be upgraded on the server, and upgrade version requirements of the network card to be upgraded.

[0103] Then, the configuration information can be used to indicate the location of the network card and the upgrade version requirements for the network card that needs to be upgraded. Specifically, it can be used to indicate the location of the network card when the power is turned off on the existing network card in the server, and the network card upgrade requirements that must be met when the network card that needs to be upgraded is upgraded. In actual applications, based on the instructions of the configuration information, it is possible to achieve on-demand upgrades of the network cards that need to be upgraded, and to upgrade the network card FW of the network cards of multiple servers at the same time, avoiding upgrading the network cards one by one, facilitating batch maintenance of network card upgrades, improving the efficiency of network card FW upgrades, and greatly saving the workload of production line workers in disassembling and assembling machines and network cards to upgrade the FW of different network cards under the same chip.

[0104] The upgrade version requirements indicated by the configuration information may generally include different upgrade version requirements for the same chip, and / or the same upgrade version requirements for the same chip, and / or the same chip retaining the original version requirements. Whether the network cards to be upgraded have different upgrade requirements can be determined mainly based on whether the required upgrade versions are the same.

[0105] Step 302, judging whether there is a requirement to retain the original version of the same chip in the network card to be upgraded according to the configuration information, if there is a requirement to retain the original version of the same chip in the network card to be upgraded, obtaining the location of the network card that retains the original version in the network card in place of the server;

[0106] The server can determine the network cards that need to be upgraded based on the generated configuration information, so as to power off the network cards that do not need to be upgraded; and the server can determine whether the network cards that need to be upgraded in each position have different upgrade requirements based on the generated configuration information, so as to determine the upgrade order and perform the network card upgrade operation based on the upgrade order; and the server can also determine whether there are network cards in place with the same upgrade requirements based on the generated configuration information, so as to implement batch upgrade operations during the network card upgrade process.

[0107] In one embodiment of the present application, when performing an upgrade operation on an existing network card, there is a situation where an upgrade operation is performed on one of the existing network cards without opening the chassis and plugging in or out the network card, but an upgrade operation is not performed on the other existing network card. For example, when upgrading network cards of different network card forms and / or different network card types of the same chip, such as PCIE network cards and OCP network cards, currently only the PCIE network card needs to be upgraded, and the OCP network card does not need to be upgraded, that is, the upgrade version requirement of the OCP network card is to retain the original version requirement.

[0108] Step 303: Power off the existing network cards corresponding to the network card positions that retain the original version requirements, and perform upgrade operations on other existing network cards except the network card positions that retain the original version requirements based on the version requirements to be upgraded.

[0109] When judging whether there is a requirement to retain the original version of the same chip in the network card to be upgraded based on the configuration information, if there is a requirement to retain the original version of the same chip in the network card to be upgraded, then the position of the network card that retains the original version requirement can be obtained from the in-place network card of the server, so as to implement a separate upgrade operation on the network card to be upgraded based on the network card position of the in-place network card that does not need to be upgraded.

[0110] Specifically, the in-place network card corresponding to the network card position that retains the original version requirement can be powered off, and the other in-place network cards except the network card position that retains the original version requirement can be upgraded based on the version requirement to be upgraded. Among them, the network card position of the in-place network card is mainly determined by the PCIE topology and the silk screen on the chassis. Usually, when the network card is inserted into the server, its unique position in the server can be determined.

[0111] Exemplarily, assuming that when upgrading network cards of different network card forms and / or different network card types of the same chip, such as PCIE network cards and OCP network cards, currently only the PCIE network card needs to be upgraded, and the OCP network card does not need to be upgraded. When upgrading the server network card FW, based on the provided configuration information, which is usually manifested as the network card model, network card location, and upgrade version requirements given in the configuration file, before upgrading the network card FW, a hotplug power-off operation is performed on the OCP network card that does not need to be upgraded. At this time, the OCP network card is not in place after the power-off, and the PCIE network card FW upgrade can be performed, so that without opening the chassis and plugging and unplugging the network card, an upgrade operation of one of the in-place network cards can be performed without upgrading the other in-place network card.

[0112] In a preferred embodiment, when upgrading existing network cards of different network card models and / or different network card forms of the same chip, it can also be determined based on the configuration information whether there is a requirement for the same chip and the same upgrade version in the network cards to be upgraded. If there is a requirement for the same chip and the same upgrade version in the network cards to be upgraded, the network cards to be upgraded with the same upgrade version requirement are obtained, and the upgrade operation is performed on the network cards to be upgraded according to the required upgrade version requirement, thereby realizing simultaneous batch upgrades of the network cards with the same upgrade version requirement.

[0113] In actual applications, the upgrade operation for the network card to be upgraded mainly involves installing the installation package corresponding to the upgrade version requirement of the network card. For example, when upgrading network cards from the same manufacturer, different chips can be upgraded to the same FW, that is, the FW package is implemented by using the same package for multiple network cards.

[0114] In addition, after upgrading the existing network card of the server, you can restart the server and check the network card FW to determine whether the upgrade is successful. If the upgrade fails, a prompt message can be generated to prompt manual upgrade.

[0115] In an embodiment of the present application, when there are at least two network cards of different network card models and / or different network card forms with the same chip on the server, the network cards on the server can be designed based on hot plugging, so that when a network card upgrade request sent by a client is received, other network cards except the current network card that needs to be upgraded can be powered off based on the corresponding configuration information of the network card that needs to be upgraded, and the current network card that needs to be upgraded can be upgraded based on the required upgraded version requirement, so that the upgrade operation of the network cards with different upgrade version requirements of the same chip can be performed on the network cards in place without opening the chassis and plugging and unplugging the network cards, and the upgrade operation of one of the network cards in place can be performed without performing the upgrade operation on the other network card in place. While being able to meet the customer's needs for upgrading the FW of multiple network cards, the automatic upgrade operation based on the configuration information is also possible, which facilitates batch maintenance of network card upgrades, improves the efficiency of network card upgrades, and saves workload.

[0116] Reference Figure 4 , shows an application flow diagram of the server network card upgrade method provided by an embodiment of the present application. Specifically, when there are at least two network cards of different network card models and / or different network card forms with the same chip on the server, the network cards on the server can be designed based on hot plugging. By powering off the network cards that are not currently being upgraded, the network cards that need to be upgraded can be kept in place, and the network card FW of this / this batch of network cards can be upgraded separately, so as to achieve the requirement of upgrading the same chip of the server to different network card FWs without opening the chassis and plugging and unplugging the network cards. This is suitable for mass production of the same chip to upgrade to different network card FWs on the production line, and can meet customers' needs for upgrading multiple network card FWs.

[0117] In this application scenario, the steps for upgrading the network card may include:

[0118] Step 1: Before performing the network card FW upgrade operation, load the network card FW configuration file in advance, so as to determine the network card upgrade order of the network cards to be upgraded in sequence through the configuration file, so as to facilitate the subsequent issuance of hotplug commands to the network cards that meet the requirements, and ensure that only one or a batch of network cards are upgraded. When the network card upgrade is successful, the other network cards are upgraded according to the process. Among them, after the network card upgrade operation is performed on the network card, an upgrade mark can be added to the one or a batch of network cards after the upgrade operation to indicate that these network cards have performed the upgrade operation.

[0119] Step 2: During the network card upgrade process, the server can provide a configuration file based on the network card FW upgrade requirements. Specifically, the network card identifier BDF of the in-place network card can be queried to determine the network card location, current FW version and other information based on the network card identifier. The provided configuration file includes information such as the network card model, the network card location of the server, and the upgrade version requirements that need to be upgraded.

[0120] For example, the network card FW configuration file may be:

[0121]

[0122] Step 3: The server can determine whether the upgraded network card has the same chip but different upgrade version requirements based on the information provided by the configuration file. If so, the network card that does not need to be upgraded will be powered off based on sending the hotplug command. At this time, the active light of the network card that is powered off can usually be shown as flashing first and then going out. If it is determined that the network card to be upgraded does not have the same chip but different network card FW requirements, and there is a situation where the same network card FW is upgraded, all network card FWs with the same upgrade version requirements can be prepared, and the network card FWs on the server can be upgraded simultaneously. The server needs to be restarted and the network card FWs need to be tested to determine whether the upgrade is successful. If the upgrade fails, a prompt message can be generated to prompt a manual upgrade.

[0123] Exemplarily, assuming that a power-off operation is performed on a PCIE network card, the network card hotplug command can specify the BDF, power-on or power-off instructions of the PCIE network card, and send control instructions to the PCIE controller so that the PCIE controller controls the connection or disconnection of the PCIE signal on the PCIE network card for the power-on and power-off actions of the PCIE network card, and controls the display status of the PCIE network card indicator light. Specifically, the active light of the in-place network card that is powered off can usually flash first and then go out.

[0124] Step 4: When it is determined that the FW network card to be upgraded belongs to the same chip but different network card FW requirements, the first or first batch of upgraded network cards and their upgraded versions can be determined according to the upgrade order. Before executing the network card FW upgrade command, the other network cards in place except the first upgraded network card can be powered off based on sending the hotplug command. At this time, only one or a batch of network card active lights are on on the server, and the active lights of the network cards in place that are powered off can usually be shown as flashing first and then going out; the network card FW upgrade command is executed on the currently in-place network card, which is manifested as installing the installation package corresponding to the upgraded version requirement of the network card, which can be implemented by copying the installation package to the server.

[0125] Exemplarily, you can obtain an installation package, such as nvmUpgrade_216.1.192.5_216.1.270.18.tar; then decompress the installation package tar-xvfnvmUpgrade_216.1.192.5_216.1.270.18.tar; and enter nvmUpgrade_216.1.192.5_216.1.270.18 and execute . / install to install the network card FW.

[0126] Step 5: After installing the network card, restart the server to check the network card FW. You can use ethtool-i eth0 (network port name) to check whether the network card FW version has been successfully upgraded.

[0127] Step 6: After restarting the server, the network card in place that was previously executed with the hotplug command becomes invalid, that is, all network cards are in place. At this time, you can check the network card and the network card FW, compare them with the configuration file, and determine whether the network card upgrade is successful. If the network card upgrade is completed, the script stops. If the network card upgrade is successful, it is necessary to determine whether there is a need for the same chip but different network card FW. If so, continue to upgrade the FW of the second network card, execute the hotplug command on the other network cards except the second network card to power them off, and then repeat steps 4 and 5 to complete the second network card FW upgrade, and so on. If it is determined that there is no need for the same chip but different network card FW, you can upgrade the network card according to the normal network card upgrade requirements, prepare all the network card FW, upgrade the network card FW on the server at the same time, and restart the server to check the network card and the network card FW.

[0128] It should be noted that the embodiments of the present application can form a configuration file for other components such as hard disk FW, backplane CPLD (Complex Programmable Logic Device), HCA (Mellanox ConnectX IB InfiniBand host channel adapter) card FW, etc. The configuration file can automatically implement a one-time FW upgrade for multiple components on the server simultaneously or sequentially, so as to improve the test efficiency without plugging and unplugging the network card.

[0129] In an embodiment of the present application, when there are at least two network cards of different network card models and / or different network card forms on the server with the same chip, the network cards on the server can be designed based on hot plugging. By powering off the network cards that are not currently being upgraded, the network cards that need to be upgraded can be kept in place, and the network card FW of this / this batch of network cards can be upgraded separately, so as to achieve the requirement of upgrading the same chip of the server to different network card FWs without opening the chassis and plugging and unplugging the network cards. This is suitable for batch production of the same chip to different network card FWs on the production line, and can meet customers' needs for upgrading multiple network card FWs; and a network card FW configuration file is established for the network card, and the automatic upgrade operation based on the configuration information can achieve the network card FW upgrade for the network cards of multiple servers at the same time, avoiding upgrading the network cards one by one, facilitating batch maintenance of network card upgrades, improving the efficiency of network card FW upgrades, and greatly saving the workload of production line workers in disassembling and assembling machines and network cards to achieve different network card FW upgrades under the same chip. Furthermore, for customers, it also avoids the operation of opening the chassis cover for maintenance. Based on the command operation according to the configuration information, the network cards with the same chip on the same server can realize the FW upgrade of different network cards, which improves the maintainability of the server.

[0130] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.

[0131] Reference Figure 5 , shows a structural block diagram of an embodiment of a server network card upgrade device of the present application, which is applied to a server, and the server has at least two network cards of different network card models and / or different network card forms of the same chip, and at least two network cards in place are inserted into the server based on a hot-swappable design, and specifically may include the following modules:

[0132] The network card upgrade request receiving module 501 is used to receive a network card upgrade request sent by a client, wherein the network card upgrade request includes network card information of the network card to be upgraded and an upgrade version requirement to be upgraded;

[0133] The configuration information generating module 502 is used to obtain the network card identification of the network card to be upgraded in the server based on the network card information of the network card to be upgraded, and generate the configuration information for the network card to be upgraded according to the network card identification; the configuration information is used to indicate the network card location and upgrade version requirements for the network card to be upgraded, wherein the upgrade version requirements for the network card to be upgraded include different upgrade version requirements for the same chip, and / or the same upgrade version requirements for the same chip, and / or the requirements for retaining the original version for the same chip;

[0134] The network card upgrade module 503 is used to power off other network cards except the network card currently required to be upgraded according to the configuration information, and upgrade the network card currently required to be upgraded based on the version requirement required to be upgraded.

[0135] In one embodiment of the present application, the configuration information generation module 502 may include the following submodules:

[0136] The network card position determination submodule is used to obtain the network card model, current network card version, and network card position of the network card to be upgraded on the server according to the network card identifier of the network card to be upgraded on the server;

[0137] The configuration information generation submodule is used to generate configuration information for the network card to be upgraded by adopting the network card model to be upgraded, the current network card version, the network card position of the network card to be upgraded in the server, and the upgrade version requirement to be upgraded.

[0138] In one embodiment of the present application, the network card upgrade module 503 may include the following submodules:

[0139] An upgrade sequence determination submodule is used to determine whether there are different upgrade version requirements for the same chip in the required upgraded network card according to the configuration information. If there are different upgrade version requirements for the same chip in the required upgraded network card, the upgrade sequence is determined based on the different upgrade version requirements.

[0140] The first network card upgrade submodule is used to determine the network card position of the network card that currently needs to be upgraded in accordance with the upgrade order, and according to the determined network card position of the network card that currently needs to be upgraded, power off the other network cards in place except the network card that currently needs to be upgraded until all the network cards that need to be upgraded are upgraded according to different upgrade version requirements.

[0141] In one embodiment of the present application, the first network card upgrade submodule may include the following units:

[0142] The first network card position determination unit is used to determine the first network card to be upgraded according to the upgrade sequence when it is determined that there are different upgrade versions of the same chip in the network cards to be upgraded, and obtain the network card position of the first network card to be upgraded, as well as the network card positions of other network cards in place except the network card position of the first network card to be upgraded;

[0143] The first network card upgrade unit is used to power off the other network cards in place except the first upgraded network card based on the network card positions of the other network cards in place, and upgrade the first upgraded network card according to the required upgraded version requirements;

[0144] The subsequent network card upgrade unit is used to power off the first upgraded network card after the upgrade operation is completed, and upgrade the subsequent upgraded network cards according to different upgrade version requirements in the upgrade sequence.

[0145] In one embodiment of the present application, the subsequent network card upgrade unit may include the following subunits:

[0146] The subsequent network card upgrade sub-unit is used to obtain the required upgrade network cards that still have different upgrade version requirements after the upgrade of the required upgrade network card for the first upgrade is completed, if there are still different upgrade version requirements in the required upgrade network cards, power off the required upgrade network cards after the upgrade is completed, and upgrade the network card version of the required upgrade network cards according to the corresponding upgrade version requirements.

[0147] In one embodiment of the present application, the network card upgrade module 503 may also include the following submodules:

[0148] At the same time, the upgrade sub-module is used to determine whether there is a requirement for the same chip and the same upgrade version in the required upgraded network card based on the configuration information. If there is a requirement for the same chip and the same upgrade version in the required upgraded network card, the required upgraded network card with the same upgrade version requirement is obtained, and the required upgraded network card is upgraded according to the required upgraded version requirement.

[0149] In one embodiment of the present application, the network card upgrade module 503 may also include the following submodules:

[0150] The network card position determination submodule is used to determine whether there is a requirement to retain the original version of the same chip in the network card to be upgraded according to the configuration information. If there is a requirement to retain the original version of the same chip in the network card to be upgraded, the position of the network card that retains the original version requirement is obtained from the network cards in place on the server;

[0151] The second network card upgrade submodule is used to power off the in-place network card corresponding to the network card position retaining the original version requirement, and upgrade other in-place network cards except the network card position retaining the original version requirement based on the required upgraded version requirement.

[0152] In an embodiment of the present application, the upgrade device of the server network card provided in the embodiment of the present application can be designed based on hot plugging when there are at least two network cards of different network card models and / or different network card forms with the same chip on the server, so that when a network card upgrade request sent by a client is received, other network cards in place except the network card currently required to be upgraded can be powered off based on the corresponding configuration information of the network card required to be upgraded, and the network card currently required to be upgraded can be upgraded based on the version required to be upgraded, so as to realize the upgrade operation of the network cards in place with different upgrade version requirements of the same chip without opening the chassis and plugging and unplugging the network cards, and realize the upgrade operation of one of the network cards in place without upgrading the other network cards in place, and meet the customer's needs for upgrading the FW of multiple network cards, and can also be based on the automatic upgrade operation performed on the configuration information, which is convenient for batch maintenance of network card upgrades, improves the efficiency of network card upgrades, and saves workload.

[0153] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0154] In some embodiments of the present application, the present application also provides an electronic device, including: Figure 6 The processor 601, memory 602 and a computer program stored in the memory 602 and capable of running on the processor are shown. When the computer program is executed by the processor 601, each process of the above-mentioned server network card upgrade method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0155] In some embodiments of the present application, the present application also provides a non-volatile computer-readable storage medium, such as Figure 7 As shown, a computer program 71 is stored on the non-volatile computer-readable storage medium 7. When the computer program 71 is executed by the processor, each process of the above-mentioned server network card upgrade method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other.

[0156] The various embodiments in this 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 referenced to each other.

[0157] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0158] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0159] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0160] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0161] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0162] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0163] The above is a detailed introduction to a server network card upgrade method, a server network card upgrade device, a corresponding electronic device and a corresponding non-volatile computer-readable storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for upgrading a server network card, characterized in that: Applied to a server, the server has at least two network cards of different network card models and / or different network card forms with the same chip, and the at least two network cards are inserted into the server based on a hot-swappable design. The method includes: The server receives a network card upgrade request sent by a client, wherein the network card upgrade request includes network card information of the network card to be upgraded and an upgrade version requirement to be upgraded; Based on the network card information of the network card to be upgraded, a network card identifier of the network card to be upgraded on the server is obtained, and configuration information for the network card to be upgraded is generated according to the network card identifier; the configuration information is used to indicate the network card location and upgrade version requirements for the network card to be upgraded, and the configuration information is generated based on the network card model of the network card to be upgraded, the current network card version, the network card location of the network card to be upgraded on the server, and the upgrade version requirements for the required upgrade, which are queried based on the network card identifier, wherein the upgrade version requirements for the network card to be upgraded include different upgrade version requirements for the same chip, and / or the same upgrade version requirements for the same chip, and / or the requirements for retaining the original version for the same chip; According to the configuration information, other in-place network cards except the current network card that needs to be upgraded are powered off, and the current network card that needs to be upgraded is upgraded based on the version requirements of the required upgrade; wherein, when there are different upgrade version requirements for the same chip among the network cards that need to be upgraded, other in-place network cards corresponding to the network card positions other than the network card position of the first upgraded network card that needs to be upgraded in the upgrade sequence determined based on the different upgrade version requirements are powered off, and after the first upgraded network card that needs to be upgraded is upgraded according to the version requirements of the required upgrade, the first upgraded network card that needs to be upgraded after the upgrade operation is completed is powered off, and based on the upgrade sequence, the network cards that still have different upgrade version requirements are obtained, the network cards that need to be upgraded after the upgrade are powered off, and the network card versions of the network cards that need to be upgraded are upgraded according to the corresponding upgrade version requirements.

2. The method according to claim 1, characterized in that: The step of powering off other in-place network cards except the currently required upgraded network card according to the configuration information, and upgrading the currently required upgraded network card based on the required upgraded version requirements, further includes: According to the configuration information, it is determined whether there is a requirement for the same chip and the same upgrade version in the required upgraded network card. If there is a requirement for the same chip and the same upgrade version in the required upgraded network card, the required upgraded network card with the same upgrade version requirement is obtained, and the required upgraded network card is upgraded according to the required upgraded version requirement.

3. The method according to claim 1 or 2, characterized in that: The step of powering off other in-place network cards except the currently required upgraded network card according to the configuration information, and upgrading the currently required upgraded network card based on the required upgraded version requirements, further includes: Determine whether there is a requirement to retain the original version of the same chip in the network card to be upgraded according to the configuration information; if there is a requirement to retain the original version of the same chip in the network card to be upgraded, obtain the location of the network card that retains the original version in the network card in place of the server; The in-place network card corresponding to the network card position retaining the original version requirement is powered off, and other in-place network cards except the network card position retaining the original version requirement are upgraded based on the version requirement to be upgraded.

4. A server network card upgrade device, characterized in that: Applied to a server, the server has at least two network cards of different network card models and / or different network card forms of the same chip, and the at least two network cards are inserted into the server based on a hot-swappable design. The device includes: A network card upgrade request receiving module, used to receive a network card upgrade request sent by a client, wherein the network card upgrade request includes network card information of the network card to be upgraded and an upgrade version requirement to be upgraded; A configuration information generation module, used for obtaining a network card identifier of the network card to be upgraded on the server based on the network card information of the network card to be upgraded, and generating configuration information for the network card to be upgraded according to the network card identifier; the configuration information is used to indicate the network card location and upgrade version requirements for the network card to be upgraded, and the configuration information is generated based on the network card model of the network card to be upgraded, the current network card version, the network card location of the network card to be upgraded on the server, and the upgrade version requirements for the required upgrade queried by the network card identifier, wherein the upgrade version requirements for the network card to be upgraded include different upgrade version requirements for the same chip, and / or the same upgrade version requirements for the same chip, and / or the requirements for retaining the original version for the same chip; A network card upgrade module is used to power off other in-place network cards except the network card currently required to be upgraded according to the configuration information, and upgrade the current network card required to be upgraded based on the version requirements required to be upgraded; wherein, when there are different upgrade version requirements for the same chip in the network cards required to be upgraded, power off other in-place network cards corresponding to the network card positions other than the network card position of the first upgraded network card required to be upgraded in the upgrade sequence determined based on the different upgrade version requirements, and after the upgrade operation is performed on the first upgraded network card required to be upgraded according to the version requirements required to be upgraded, power off the first upgraded network card required to be upgraded after the upgrade operation is completed, obtain the network cards required to be upgraded that still have different upgrade version requirements based on the upgrade sequence, power off the network cards required to be upgraded after the upgrade is completed, and upgrade the network card versions of the network cards required to be upgraded according to the corresponding upgrade version requirements.

5. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the method for upgrading the server network card according to any one of claims 1 to 3 is implemented.

6. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for upgrading the server network card according to any one of claims 1 to 3 is implemented.