CN115941475A - Network card firmware upgrading method, device, equipment, network card and readable storage medium - Google Patents

Network card firmware upgrading method, device, equipment, network card and readable storage medium Download PDF

Info

Publication number
CN115941475A
CN115941475A CN202310247762.0A CN202310247762A CN115941475A CN 115941475 A CN115941475 A CN 115941475A CN 202310247762 A CN202310247762 A CN 202310247762A CN 115941475 A CN115941475 A CN 115941475A
Authority
CN
China
Prior art keywords
network card
firmware
upgrading
communication interface
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310247762.0A
Other languages
Chinese (zh)
Other versions
CN115941475B (en
Inventor
封吉聪
许泗强
李岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310247762.0A priority Critical patent/CN115941475B/en
Publication of CN115941475A publication Critical patent/CN115941475A/en
Application granted granted Critical
Publication of CN115941475B publication Critical patent/CN115941475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device and equipment for upgrading network card firmware, a network card and a readable storage medium, which belong to the field of computers and are used for upgrading the firmware of the network card. Considering that the difficulty of communicating the 'access authority of the CPU architecture to the network card' is high, and considering that the network cards on the two communicable devices can realize direct communication by transformation, the execution network card in the application can send the firmware upgrade request to the network cards on the other devices through the network card communication interface when receiving the firmware upgrade request to the network cards on the other devices, and under such a condition, even if the CPU architecture of the device where the upgraded network card is located does not have the access authority of the network card, the upgrade to the network card can be realized, and the upgraded network card does not need to be dismounted and mounted, so that the time cost and the labor cost are saved, and the working efficiency is improved.

Description

Network card firmware upgrading method, device, equipment, network card and readable storage medium
Technical Field
The invention relates to the field of computers, in particular to a network card firmware upgrading method, and also relates to a network card firmware upgrading device, equipment, a network card and a computer readable storage medium.
Background
Manufacturers of the network card may also design a CPU architecture (such as an X86 architecture or an Arm architecture), and these manufacturers usually restrict the kernel driver of the network card to be open only to the CPU architecture of their own home, that is, the kernel driver of the network card can only be accessed by the CPU architecture of their own manufacturers.
Although the network card can also be used in "a device based on a CPU architecture of another manufacturer", in this case, because the CPU architecture does not have access right to a core driver of the network card, the network card cannot be directly upgraded on the firmware of the network card.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a network card firmware upgrading method, which can realize the upgrading of a network card, does not need to disassemble and assemble the upgraded network card, saves the time cost and the labor cost, and improves the working efficiency; another object of the present invention is to provide an apparatus, a device, a network card and a computer readable storage medium for upgrading a firmware of a network card, which can upgrade the network card without disassembling and assembling the upgraded network card, thereby saving time cost and labor cost and improving work efficiency.
In order to solve the above technical problem, the present invention provides a method for upgrading a network card firmware, which is applied to an execution network card and includes:
responding to a firmware upgrading request sent by an upgrading tool on equipment where the firmware upgrading request is located, and judging whether a target network card of the firmware upgrading request is the execution network card or not;
if not, the firmware upgrading request is sent to the network card communication interface of the target network card through the network card communication interface of the execution network card, so that the target network card can carry out firmware upgrading;
and responding to the firmware upgrading request received through the network card communication interface, and upgrading the firmware of the execution network card.
Preferably, the performing the firmware upgrade on the network card in response to the firmware upgrade request received through the network card communication interface specifically includes:
responding to the firmware upgrading request received through the network card communication interface, and calling a kernel function in the kernel driver of the execution network card to upgrade the firmware;
acquiring result information of firmware upgrading;
sending the result information to the network card communication interface of the network card sending the firmware upgrading request through the network card communication interface of the execution network card;
and sending the result information received through the network card communication interface to the upgrading tool on the equipment where the network card is positioned.
Preferably, after obtaining the result information of the firmware upgrade, the method for upgrading the network card firmware further includes:
and sending the result information to a CPU of the equipment where the execution network card is located so as to prompt the result information.
Preferably, the result information includes:
upgrade success or failure result and current firmware version.
Preferably, after the response to the firmware upgrade request sent by the upgrade tool on the device where the firmware upgrade request is sent and the target network card of the firmware upgrade request is judged whether to be the execution network card, the network card firmware upgrade method further includes:
and if so, performing firmware upgrade on the execution network card according to the firmware upgrade request.
Preferably, after the responding to the firmware upgrade request received through the network card communication interface and calling a kernel function in the kernel driver executing the network card to perform firmware upgrade, the network card firmware upgrade method further includes:
acquiring the time consumed by upgrading the firmware;
sending the upgrade time consumption to the network card communication interface of the network card sending the firmware upgrade request through the network card communication interface of the network card communication interface;
and sending the upgrading time consumption received through the network card communication interface to the upgrading tool on the equipment where the upgrading tool is located.
Preferably, after the time for obtaining the firmware upgrade is consumed, the network card firmware upgrade method further includes:
judging whether the upgrade time consumption is in a preset time interval or not;
and if not, sending an upgrade time-consuming exception prompt to the upgrade tool and/or the CPU of the device where the upgrade tool is located.
Preferably, after the responding to the firmware upgrade request received through the network card communication interface and calling a kernel function in the kernel driver executing the network card to perform firmware upgrade, the network card firmware upgrade method further includes:
acquiring error point positions in the upgrading process of the firmware upgrading;
sending the error point location to the network card communication interface of the network card sending the firmware upgrading request through the network card communication interface of the network card;
and sending the error point location received through the network card communication interface to the upgrading tool on the equipment where the error point location is located.
Preferably, after obtaining the error point location in the upgrading process of the firmware upgrading, the network card firmware upgrading method further includes:
judging whether the error point location is a preset key point location;
and if so, sending a prompt message of key point bit error to the upgrading tool and/or the CPU of the device where the upgrading tool and/or the CPU are located.
Preferably, the CPU architecture of the device where the execution network card is located is an X86 architecture or an ARM architecture.
Preferably, the firmware upgrade request includes a plurality of firmware upgrade sub-requests;
the sending of the firmware upgrade request to the network card communication interface of the target network card through the network card communication interface of the execution network card is to facilitate the firmware upgrade of the target network card specifically:
and sending each firmware upgrading sub-request in the firmware upgrading request to the corresponding network card communication interface of the target network card through the network card communication interface of the execution network card so as to conveniently upgrade the firmware of each target network card.
Preferably, the device where the execution network card is located is connected with all other devices through the same communication device.
Preferably, the communication device is a fiber optic communication device;
the sending of each firmware upgrade sub-request in the firmware upgrade request to the corresponding network card communication interface of the target network card through the network card communication interface of the execution network card specifically includes:
and sending each firmware upgrading sub-request in the firmware upgrading requests to the network card communication interface of the target network card corresponding to the firmware upgrading sub-request in a Transmission Control Protocol (TCP) message form through the network card communication interface of the execution network card.
In order to solve the above technical problem, the present invention further provides a device for upgrading a firmware of a network card, which is applied to the implementation of the network card, and comprises:
the judging module is used for responding to a firmware upgrading request sent by an upgrading tool on the equipment where the judging module is located, judging whether a target network card of the firmware upgrading request is the execution network card or not, and if not, triggering the first sending module;
the first sending module is configured to send the firmware upgrade request to the communication interface of the target network card through a network card communication interface of the execution network card, so that the target network card performs firmware upgrade;
and the execution module is used for responding to the firmware upgrading request received through the communication interface and upgrading the firmware of the execution network card.
Preferably, the firmware upgrade request includes a plurality of firmware upgrade sub-requests;
the sending of the firmware upgrade request to the network card communication interface of the target network card through the network card communication interface of the execution network card is performed so that the firmware upgrade performed by the target network card specifically includes:
and sending each firmware upgrading sub-request in the firmware upgrading requests to the corresponding network card communication interface of the target network card through the network card communication interface of the execution network card so as to facilitate firmware upgrading of each target network card.
In order to solve the above technical problem, the present invention further provides a network card firmware upgrading method, applied to an upgrading tool, including:
sending a firmware upgrading request for a target network card to an execution network card on the device where the execution network card is located, so that the execution network card can judge whether the target network card is the execution network card; if not, the firmware upgrading request is sent to the network card communication interface of the target network card through the network card communication interface of the execution network card, so that the target network card can conveniently upgrade the firmware according to the firmware upgrading request.
In order to solve the above technical problem, the present invention further provides a network card firmware upgrading device, including:
the second sending module is used for sending a firmware upgrading request for the target network card to the execution network card on the device where the second sending module is located, so that the execution network card can judge whether the target network card is the execution network card; if not, the firmware upgrading request is sent to the network card communication interface of the target network card through the network card communication interface of the execution network card, so that the target network card can conveniently upgrade the firmware according to the firmware upgrading request.
In order to solve the above technical problem, the present invention further provides a device for upgrading a network card firmware, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the network card firmware upgrading method when the computer program is executed.
In order to solve the technical problem, the invention further provides a network card, which comprises a network card body and the network card firmware upgrading device connected with the network card body.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the network card firmware upgrading method are implemented.
The invention provides a network card firmware upgrading method, which considers that the difficulty of communicating the access authority of a CPU framework to a network card is higher, and considers that the network cards on two communicable devices can realize direct communication through transformation, so that an execution network card in the method can send a firmware upgrading request to the network cards on other devices through a network card communication interface when receiving the firmware upgrading request to the network cards on other devices.
The invention also provides a device and equipment for upgrading the network card firmware, the network card and a computer readable storage medium, and has the same beneficial effects as the upgrading method of the network card firmware.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for upgrading a network card firmware provided by the present invention;
fig. 2 is a schematic structural diagram of a network card firmware upgrading system provided by the present invention;
fig. 3 is a schematic structural diagram of a network card firmware upgrading device provided by the present invention;
fig. 4 is a schematic flowchart of another method for upgrading a network card firmware provided in the present invention;
fig. 5 is a schematic structural diagram of another network card firmware upgrading device provided in the present invention;
fig. 6 is a schematic structural diagram of a network card firmware upgrading device provided by the present invention;
fig. 7 is a schematic structural diagram of a computer-readable storage medium according to the present invention.
Detailed Description
The core of the invention is to provide a network card firmware upgrading method, which can realize the upgrading of the network card, and does not need to disassemble and assemble the upgraded network card, thereby saving the time cost and the labor cost and improving the working efficiency; the other core of the invention is to provide the network card firmware upgrading device, the equipment, the network card and the computer readable storage medium, which can realize the upgrading of the network card, and the upgraded network card is not required to be disassembled and assembled, thereby saving the time cost and the labor cost and improving the working efficiency.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of a network card firmware upgrading method provided by the present invention, where the network card firmware upgrading method is applied to an execution network card, and includes:
s101: responding to a firmware upgrading request sent by an upgrading tool on equipment where the firmware upgrading request is located, and judging whether a target network card of the firmware upgrading request is an execution network card;
specifically, in view of the technical problems in the above background art, in combination with consideration of the difficulty in opening "the access right of the CPU architecture to the network card" and the fact that the network cards on two communicable devices can realize direct communication by transformation, the present application intends to perform related transformation through the network cards to realize direct communication between the network cards, so as to indirectly realize upgrading of the network card firmware on the target device by using "the CPU architecture drives a device having access right to the kernel of the network card (hereinafter, may be referred to as a bridge device)", and does not need to disassemble and assemble the network card on the target device, thereby achieving the effects of improving the work efficiency and reducing the labor cost.
It should be noted that, in general, the upgrade tool (of the network card) is only opened to a specific CPU architecture during design, for example, the upgrade tool can only be used in the X86 architecture, and therefore, the upgrade tool is also selected to match with the CPU architecture.
In addition, it should be noted that "devices" in the bridge device and the target device mentioned in the embodiments of the present invention may refer to computer devices, which may be of various types, such as servers, and the like, and the embodiments of the present invention are not limited herein.
S102: if not, sending the firmware upgrading request to a network card communication interface of the target network card through a network card communication interface of the execution network card so as to facilitate the firmware upgrading of the target network card;
specifically, the target network card in the firmware upgrade request may not be the network card on the bridge device, and in this case, in the embodiment of the present invention, the firmware upgrade request may be sent to the network card communication interface of the target network card through the network card communication interface pre-established on the network card, so that the transmission of the firmware upgrade request is realized through direct information interaction between the network cards, and a CPU architecture on the device (i.e., the target device) where the target network card is located is bypassed, that is, in the case where the network card directly transfers the firmware upgrade request, the firmware upgrade may be performed on the target network card on the target device regardless of the type of the CPU architecture on the target device, and the method has a feature of not needing to disassemble and assemble the network card, and reduces the labor cost and improves the work efficiency.
The network card communication interface may be a virtual module constructed on the network card in advance, and may communicate with the network card communication interface of the network card on the target device.
S103: and responding to a firmware upgrading request received through the network card communication interface, and upgrading the firmware of the execution network card.
Specifically, for the network card, the firmware needs to be upgraded according to the firmware upgrade request received through the network card communication interface, so in the implementation of the present invention, the network card can also respond to the firmware upgrade request received through the network card communication interface to perform the firmware upgrade on the network card.
Specifically, the network cards may be designed to be a unified architecture, that is, each network card has the capability of executing the three steps.
The invention provides a network card firmware upgrading method, which considers that the difficulty of communicating the access authority of a CPU framework to a network card is higher, and considers that the network cards on two communicable devices can realize direct communication through transformation, so that an execution network card in the method can send a firmware upgrading request to the network cards on other devices through a network card communication interface when receiving the firmware upgrading request to the network cards on other devices.
On the basis of the above-described embodiment:
as a preferred embodiment, in response to a firmware upgrade request received through a network card communication interface, performing firmware upgrade on an execution network card specifically includes:
responding to a firmware upgrading request received through a network card communication interface, and calling a kernel function in a kernel driver for executing the network card to upgrade the firmware;
acquiring result information of firmware upgrading;
sending the result information to the network card communication interface of the network card sending the firmware upgrading request by executing the network card communication interface of the network card;
and sending the result information received through the network card communication interface to an upgrading tool on the equipment where the network card is positioned.
Specifically, for better explaining the embodiment of the present invention, please refer to fig. 2, and fig. 2 is a schematic structural diagram of a network card firmware upgrade system provided by the present invention, where a device of the X86 CPU architecture on the left side may be used as a bridge device, a device of the non-X86 CPU architecture on the right side may be a target device, an upgrade tool agent client and an upgrade tool agent server are network card communication interfaces, and the network card communication interface and the determining module are virtual modules newly constructed in a network card, so as to complete the upgrade work of the network card firmware in the embodiment of the present invention, the kernel driver refers to a kernel driver of the network card, and the kernel driver of the network card in the bridge device is not shown in fig. 2.
Specifically, the upgrading of the firmware of the network card needs to be completed through a kernel function in a kernel driver of the network card, and the interaction between the upgrading tool and the kernel driver of the network card is also a necessary condition for upgrading the firmware of the network card, so that the kernel function in the kernel driver for executing the network card can be called to upgrade the firmware in response to a firmware upgrading request received through a communication interface of the network card in the embodiment of the present invention.
Specifically, in order to facilitate the staff to know the result information of the firmware upgrade in time and quickly, the network card may further obtain the result information of the firmware upgrade, and send the result information to the network card communication interface of the network card that sends the firmware upgrade request through the network card communication interface, and after receiving the result information through the network card communication interface, the network card (of the bridge device) may further send the result information to the upgrade tool on the device where the network card is located (i.e., the bridge device).
As a preferred embodiment, after obtaining result information of firmware upgrade, the network card firmware upgrade method further includes:
and sending the result information to a CPU of the equipment where the execution network card is positioned so as to prompt the result information.
Specifically, considering that the worker learns that the result information is completed on the bridge device through the upgrade tool, and considering that the worker still has a need to learn the result information on the target device under some conditions, and the network card and the CPU can also perform data interaction, the network card in the embodiment of the present invention can also send the result information to the CPU of the device where the network card is located after obtaining the result information of the firmware upgrade, so as to prompt the result information.
As a preferred embodiment, the result information includes:
upgrade success or failure results and current firmware version.
Specifically, the upgrade success or failure result may include upgrade success and upgrade failure, and the current firmware version represents the firmware version information when the upgrade result is obtained, both of which may assist the staff in determining the upgrade result, and the data size is small.
Of course, the result information may be of other types besides the two types of information, and the embodiment of the present invention is not limited herein.
As a preferred embodiment, the upgrade tool is any one of Ianconf, eeupdate, and celo.
Specifically, ianconf, eeupdate and celo are stable and reliable upgrade tools, and are all suitable for the X86 CPU architecture.
Of course, in addition to the above examples, the upgrade tool may also be of other types, and the embodiments of the present invention are not limited herein.
As a preferred embodiment, after determining whether a target network card of a firmware upgrade request is an execution network card in response to a firmware upgrade request sent by an upgrade tool on a device where the firmware upgrade request is located, the network card firmware upgrade method further includes:
and if so, performing firmware upgrade on the execution network card according to the firmware upgrade request.
Specifically, considering that the network card on the bridge device also has a firmware upgrade requirement, and the target network card to which the firmware upgrade request is directed may also be the network card on the bridge device, therefore, after the network card responds to the firmware upgrade request sent by the upgrade tool on the device where the network card is located, and determines whether the target network card of the firmware upgrade request is the execution network card, if the target network card is the execution network card (i.e., the network card on the bridge device), the network card does not need to be forwarded to other network cards, but performs firmware upgrade on the execution network card according to the firmware upgrade request, that is, in theory, a worker may conveniently complete upgrade work on any network card on the bridge device, and further improve convenience and work efficiency.
As a preferred embodiment, after invoking a kernel function in a kernel driver executing a network card to perform firmware upgrade in response to a firmware upgrade request received through a network card communication interface, the network card firmware upgrade method further includes:
acquiring the time consumed by upgrading the firmware;
sending the upgrade time consumption to a network card communication interface of a network card sending a firmware upgrade request by executing the network card communication interface of the network card;
and sending the time consumed for upgrading received through the network card communication interface to an upgrading tool on the equipment where the network card is located.
Specifically, considering that time consumption required for upgrading is usually maintained within a certain time range for a firmware upgrading task, the time consumption for upgrading can also assist a worker in judging whether the upgrading process is normally performed, so that the network card in the embodiment of the present invention can also obtain the time consumption for upgrading the firmware in the upgrading process, send the time consumption to the network card of the bridge device, and finally send the time consumption to the upgrading tool.
The time consumed for upgrading may specifically refer to a time taken by the network card of the target device from receiving the firmware upgrade request to before the upgrade is completed, which is not limited herein in the embodiments of the present invention.
As a preferred embodiment, after obtaining the time consumed for upgrading the firmware, the method for upgrading the firmware of the network card further includes:
judging whether the upgrade consumed time is within a preset time interval or not;
and if not, sending an upgrade time consumption exception prompt to the upgrade tool and/or a CPU of the equipment where the execution network card is positioned.
Specifically, considering that a worker may not have the capability of judging whether the upgrade time consumption meets the relevant standard under some conditions, in order to assist the worker in judging the upgrade time consumption and improve user experience, the network card in the embodiment of the present invention may further autonomously judge whether the upgrade time consumption is in a preset time interval, and send an upgrade time consumption exception prompt to an upgrade tool and/or a CPU of a device where the network card is executed when the upgrade time consumption is not in the preset time interval.
The preset duration interval has a lower threshold and an upper threshold, which may be, for example, 1 minute to 3 minutes of the closed interval, and the embodiment of the present invention is not limited herein.
As a preferred embodiment, after invoking a kernel function in a kernel driver executing a network card to perform firmware upgrade in response to a firmware upgrade request received through a network card communication interface, the network card firmware upgrade method further includes:
acquiring error point positions in the upgrading process of firmware upgrading;
sending the error point location to the network card communication interface of the network card sending the firmware upgrading request by executing the network card communication interface of the network card;
and sending the error point location received through the network card communication interface to an upgrading tool on the equipment where the network card is positioned.
Specifically, considering that the error position of firmware upgrade may be in various situations, in order to facilitate a worker to find a failure reason when the firmware upgrade fails, the network card in the embodiment of the present invention may further obtain an error point location in the upgrade process of the firmware upgrade, and send the error point location to an upgrade tool on the bridge device, thereby further improving the working efficiency.
The error point may refer to a plurality of specific points, and the embodiment of the present invention is not limited herein.
As a preferred embodiment, after obtaining the error point in the firmware upgrading process, the method for upgrading the network card firmware further includes:
judging whether the error point location is a preset key point location;
and if so, sending a prompt message of the key point bit error to the upgrading tool and/or a CPU of the equipment where the execution network card is positioned.
Specifically, considering that error point locations involved in firmware upgrade failure can be in various situations, and some of the error point locations are relatively serious and need special attention of a worker, the embodiment of the invention can facilitate the worker to know the situations in time and intensively, and can judge whether the error point locations are preset key point locations; and if so, sending a prompt message of the key point bit error to the CPU of the equipment where the upgrading tool and/or the execution network card are/is located.
As a preferred embodiment, the CPU architecture of the device executing the network card is an X86 architecture or an ARM architecture.
Specifically, the X86 architecture and the ARM architecture have high popularity, and the improvement of the network card upgrading based on the X86 architecture or the ARM architecture has great significance.
Of course, the CPU architecture of the bridge device may be of various types other than the X86 architecture and the ARM architecture, and the embodiment of the present invention is not limited herein.
In a preferred embodiment, the firmware upgrade request includes a plurality of firmware upgrade sub-requests;
sending the firmware upgrading request to a network card communication interface of a target network card through executing the network card communication interface of the network card so that the firmware upgrading of the target network card is specifically as follows:
and sending each firmware upgrading sub-request in the firmware upgrading request to the network card communication interface of the corresponding target network card by executing the network card communication interface of the network card so as to conveniently upgrade the firmware of each target network card.
Specifically, considering that the number of network cards having firmware upgrade requirements may be large, in order to implement batched network card firmware upgrade, the firmware upgrade request in the embodiment of the present invention may include a plurality of firmware upgrade sub-requests, and after the network card of the bridge device receives the firmware upgrade request, each of the firmware upgrade sub-requests may be respectively sent to the corresponding network card (the network card where the network card is located or the network cards on other devices), so as to further improve the working efficiency.
As a preferred embodiment, the device where the network card is executed is connected to all other devices through the same communication device.
Specifically, in order to improve the design simplicity of the communication device computer device cluster and improve the working efficiency, the device where the execution network card is located in the embodiment of the present invention may be connected to all other devices through the same communication device.
As a preferred embodiment, the communication device is a fiber optic communication device;
sending each firmware upgrading sub-request in the firmware upgrading request to the network card communication interface of the corresponding target network card by executing the network card communication interface of the network card specifically comprises the following steps:
and sending each firmware upgrading sub-request in the firmware upgrading request to a network card communication interface of a target network card corresponding to the firmware upgrading sub-request in a Transmission Control Protocol (TCP) message form by executing a network card communication interface of the network card.
Specifically, the optical fiber communication device is usually present between the computer devices as a communication device commonly used between the computer devices, so that the data communication between the network cards can be realized by directly using the optical fiber communication device which may be present in the embodiment of the present invention, which can reduce the cost and improve the working efficiency.
Of course, besides the optical fiber communication device network, the communication device for performing communication between the computer devices by using the auxiliary network card may be of other types, and the embodiment of the present invention is not limited herein.
To better explain the network card firmware upgrading method in the present application, a specific embodiment is first provided:
specifically, referring to fig. 2, the logic for upgrading the firmware of the Intel platform is that an upgrade tool (update Tools) and a network card kernel driver (Iqvlinux) are mutually called, and because the upgrade tool and the kernel driver are not open to the Arm architecture, an X86 architecture machine is required to be used as a bridge at this time, and the Arm machine realizes the matching of the upgrade tool and the kernel driver by calling an X86 tooling machine, so as to realize that the Arm platform upgrades the firmware of the Intel network card; the whole comprises two major parts: the first is an X86 platform interface which is used as a tooling machine, and the second is a non-X86 platform calling interface; compiling to generate an iqvlinount module (wherein, the judging module in fig. 2 can realize the function of the iqvlinount module), a Tool agent client (upgrading Tool agent client), and a Tool agent server (upgrading Tool agent server); (1) firstly, an upgrade Tool sends a global variable request to Iqvlinougent, (2) an Iqvlinougent driver sends the request to a client Tool client, (3) the request is transmitted to a non-X86 machine server Tool server, (4) the request is finally transmitted to a network card kernel driver, chrdev calls a kernel function, the network card kernel driver returns to the server Tool server in a chrdev form and is transmitted to the client Tool client in a TCP message form, then the request is transmitted to an X86 end Iqvlinougent module through netlink (network connection), and finally the request is called and retransmitted to the upgrade Tool, so that the cross-platform interaction between the upgrade Tool and the network card kernel driver is realized.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a network card firmware upgrading device according to the present invention, where the network card firmware upgrading device is applied to execute a network card, and includes:
the judging module 31 is configured to respond to a firmware upgrade request sent by an upgrade tool on a device where the judging module is located, judge whether a target network card of the firmware upgrade request is an execution network card, and trigger the first sending module if the target network card of the firmware upgrade request is not the execution network card;
the first sending module 32 is configured to send the firmware upgrade request to the communication interface of the target network card through the network card communication interface of the execution network card, so that the target network card performs firmware upgrade;
and the execution module 33 is configured to perform firmware upgrade on the execution network card in response to the firmware upgrade request received through the communication interface.
The invention provides a network card firmware upgrading device, which considers that the difficulty of communicating the access authority of a CPU (Central processing Unit) framework to a network card is higher, and considers that the network cards on two communicable devices can realize direct communication through transformation, so that an execution network card in the device can send a firmware upgrading request to the network cards on other devices through a network card communication interface when receiving the firmware upgrading request to the network cards on other devices.
In a preferred embodiment, the firmware upgrade request includes a plurality of firmware upgrade sub-requests;
sending the firmware upgrading request to a network card communication interface of a target network card by executing the network card communication interface of the network card, so that the firmware upgrading of the target network card is specifically as follows:
and sending each firmware upgrading sub-request in the firmware upgrading request to the network card communication interface of the corresponding target network card by executing the network card communication interface of the network card so as to conveniently upgrade the firmware of each target network card.
For the introduction of the network card firmware upgrading device provided in the embodiment of the present invention, reference is made to the foregoing embodiment of the network card firmware upgrading method, and details of the embodiment of the present invention are not repeated herein.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another method for upgrading a network card firmware provided by the present invention, where the method for upgrading a network card firmware is applied to an upgrade tool, and includes:
s201: sending a firmware upgrading request for the target network card to an execution network card on the device where the network card is located so that the network card can judge whether the target network card is the execution network card; if not, the firmware upgrading request is sent to the network card communication interface of the target network card through the network card communication interface of the execution network card, so that the target network card can conveniently upgrade the firmware according to the firmware upgrading request.
The invention provides a network card firmware upgrading method, which considers that the difficulty of communicating the access authority of a CPU framework to a network card is higher, and considers that the network cards on two communicable devices can realize direct communication through transformation, so that an execution network card in the method can send a firmware upgrading request to the network cards on other devices through a network card communication interface when receiving the firmware upgrading request to the network cards on other devices.
For the introduction of the network card firmware upgrading method provided in the embodiment of the present invention, reference is made to the foregoing embodiment of the network card firmware upgrading method, and details of the embodiment of the present invention are not repeated herein.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another network card firmware upgrading device provided in the present invention, where the network card firmware upgrading device includes:
the second sending module 51 is configured to send a firmware upgrade request for the target network card to the execution network card on the device where the second sending module is located, so that the execution network card determines whether the target network card is the execution network card; if not, the firmware upgrading request is sent to the network card communication interface of the target network card through the network card communication interface of the execution network card, so that the target network card can conveniently upgrade the firmware according to the firmware upgrading request.
The invention provides a network card firmware upgrading device, which considers that the difficulty of communicating the access authority of a CPU (Central processing Unit) framework to a network card is higher, and considers that the network cards on two communicable devices can realize direct communication through transformation, so that an execution network card in the device can send a firmware upgrading request to the network cards on other devices through a network card communication interface when receiving the firmware upgrading request to the network cards on other devices.
For the introduction of the network card firmware upgrading device provided in the embodiment of the present invention, reference is made to the foregoing embodiment of the network card firmware upgrading method, and details of the embodiment of the present invention are not repeated herein.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another network card firmware upgrading device provided in the present invention, where the network card firmware upgrading device includes:
a memory 61 for storing a computer program;
and the processor 62 is configured to implement the steps of the network card firmware upgrading method in the foregoing embodiments when executing the computer program.
Specifically, the memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. When the processor executes the computer program stored in the memory, the following steps can be realized: responding to a firmware upgrading request sent by an upgrading tool on equipment where the firmware upgrading request is located, and judging whether a target network card of the firmware upgrading request is an execution network card; if not, sending the firmware upgrading request to a network card communication interface of the target network card through a network card communication interface of the execution network card so as to facilitate the target network card to carry out firmware upgrading; and responding to a firmware upgrading request received through the network card communication interface, and upgrading the firmware of the execution network card.
The invention provides a network card firmware upgrading device, which considers that the difficulty of communicating the access authority of a CPU framework to a network card is higher, and considers that the network cards on two devices capable of communicating realize direct communication through transformation, so that an execution network card in the application can send a firmware upgrading request to the network cards on other devices through a network card communication interface when receiving the firmware upgrading request to the network cards on other devices.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: responding to a firmware upgrading request received through a network card communication interface, and calling a kernel function in a kernel driver for executing the network card to upgrade the firmware;
acquiring result information of firmware upgrading;
sending the result information to the network card communication interface of the network card sending the firmware upgrading request by executing the network card communication interface of the network card;
and sending the result information received through the network card communication interface to an upgrading tool on the equipment where the network card is positioned.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: and sending the result information to a CPU of the equipment where the execution network card is positioned so as to prompt the result information.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: the result information includes:
upgrade success or failure result and current firmware version.
As an alternative embodiment, when the processor executes the computer subprogram stored in the memory, the following steps may be implemented: the upgrade tool is any one of Ianconf, eeupdate, and celo.
As an alternative embodiment, when the processor executes the computer subprogram stored in the memory, the following steps may be implemented: and if so, performing firmware upgrade on the execution network card according to the firmware upgrade request.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: acquiring the time consumed by upgrading the firmware;
sending the upgrade time consumption to a network card communication interface of the network card sending the firmware upgrade request by executing the network card communication interface of the network card;
and sending the time consumed for upgrading received through the network card communication interface to an upgrading tool on the equipment where the network card is located.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: judging whether the upgrade time consumption is in a preset time interval or not;
and if not, sending an upgrade time consumption exception prompt to an upgrade tool and/or a CPU of the equipment where the execution network card is positioned.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: acquiring error point positions in the upgrading process of firmware upgrading;
sending the error point location to a network card communication interface of the network card sending the firmware upgrading request by executing the network card communication interface of the network card;
and sending the error point location received through the network card communication interface to an upgrading tool on the equipment where the network card is positioned.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: judging whether the error point location is a preset key point location;
and if so, sending a prompt message of the key point bit error to the CPU of the equipment where the upgrading tool and/or the execution network card are/is located.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: the CPU architecture of the device executing the network card is an X86 architecture or an ARM architecture.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: the firmware upgrading request comprises a plurality of firmware upgrading sub-requests;
sending the firmware upgrading request to a network card communication interface of a target network card through executing the network card communication interface of the network card so that the firmware upgrading of the target network card is specifically as follows:
and sending each firmware upgrading sub-request in the firmware upgrading request to the network card communication interface of the corresponding target network card by executing the network card communication interface of the network card so as to conveniently upgrade the firmware of each target network card.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: the device where the network card is located is connected with all other devices through the same communication device.
As an alternative embodiment, when the processor executes the computer subprogram stored in the memory, the following steps may be implemented: the communication equipment is optical fiber communication equipment;
sending each firmware upgrading sub-request in the firmware upgrading request to the network card communication interface of the corresponding target network card by executing the network card communication interface of the network card specifically comprises the following steps:
and sending each firmware upgrading sub-request in the firmware upgrading request to a network card communication interface of a target network card corresponding to the firmware upgrading sub-request in a Transmission Control Protocol (TCP) message form by executing a network card communication interface of the network card.
For the introduction of the network card firmware upgrading device provided in the embodiment of the present invention, reference is made to the foregoing embodiment of the network card firmware upgrading method, and details of the embodiment of the present invention are not repeated herein.
The invention also provides a network card, which comprises a network card body and the network card firmware upgrading device connected with the network card body in the embodiment.
For the introduction of the network card provided in the embodiment of the present invention, please refer to the embodiment of the network card firmware upgrading method, which is not described herein again.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a computer-readable storage medium 70 according to the present invention, wherein a computer program 71 is stored on the computer-readable storage medium 70, and when the computer program 71 is executed by the processor 62, the steps of the method for upgrading the network card firmware in the foregoing embodiments are implemented.
For the introduction of the computer-readable storage medium provided in the embodiment of the present invention, please refer to the foregoing embodiment of the network card firmware upgrading method, which is not described herein again.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should also be noted that, in the present specification, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (20)

1. A method for upgrading firmware of a network card is applied to the execution of the network card, and comprises the following steps:
responding to a firmware upgrading request sent by an upgrading tool on equipment where the firmware upgrading request is located, and judging whether a target network card of the firmware upgrading request is the execution network card or not;
if not, the firmware upgrading request is sent to the network card communication interface of the target network card through the network card communication interface of the execution network card, so that the target network card can carry out firmware upgrading;
and responding to the firmware upgrading request received through the network card communication interface, and upgrading the firmware of the execution network card.
2. The method for upgrading firmware of the network card according to claim 1, wherein the firmware upgrading of the execution network card in response to the firmware upgrading request received through the network card communication interface specifically includes:
responding to the firmware upgrading request received through the network card communication interface, and calling a kernel function in the kernel driver of the execution network card to upgrade the firmware;
acquiring result information of firmware upgrading;
sending the result information to the network card communication interface of the network card sending the firmware upgrading request through the network card communication interface of the execution network card;
and sending the result information received through the network card communication interface to the upgrading tool on the equipment where the network card is positioned.
3. The network card firmware upgrading method according to claim 2, wherein after obtaining the firmware upgrading result information, the network card firmware upgrading method further comprises:
and sending the result information to a CPU of the equipment where the execution network card is located so as to prompt the result information.
4. The method for upgrading the firmware of the network card according to claim 3, wherein the result information comprises:
upgrade success or failure results and current firmware version.
5. The network card firmware upgrading method according to claim 1, wherein the network card firmware upgrading method, after determining whether a target network card of the firmware upgrading request is the execution network card in response to a firmware upgrading request sent by an upgrading tool on a device where the network card firmware upgrading request is located, further comprises:
and if so, performing firmware upgrade on the execution network card according to the firmware upgrade request.
6. The network card firmware upgrading method according to claim 2, wherein after the firmware upgrading is performed by calling a kernel function in the kernel driver of the execution network card in response to the firmware upgrading request received through the network card communication interface, the network card firmware upgrading method further comprises:
acquiring the time consumed by upgrading the firmware;
sending the upgrade time consumption to the network card communication interface of the network card sending the firmware upgrade request through the network card communication interface of the network card communication interface;
and sending the upgrading time consumption received through the network card communication interface to the upgrading tool on the equipment where the upgrading tool is located.
7. The method for upgrading the firmware of the network card according to claim 6, wherein after the time for upgrading the firmware is acquired, the method for upgrading the firmware of the network card further comprises:
judging whether the upgrade time consumption is in a preset time interval or not;
and if not, sending an upgrade time consumption abnormity prompt to the upgrade tool and/or the CPU of the equipment where the upgrade tool is located.
8. The network card firmware upgrading method according to claim 2, wherein after the firmware upgrading is performed by calling a kernel function in the kernel driver of the execution network card in response to the firmware upgrading request received through the network card communication interface, the network card firmware upgrading method further comprises:
acquiring error point positions in the upgrading process of the firmware upgrading;
sending the error point location to the network card communication interface of the network card sending the firmware upgrading request through the network card communication interface of the network card;
and sending the error point location received through the network card communication interface to the upgrading tool on the equipment where the error point location is located.
9. The method for upgrading the firmware of the network card according to claim 8, wherein after the error point location in the upgrading process of the firmware upgrading is obtained, the method for upgrading the firmware of the network card further comprises:
judging whether the error point location is a preset key point location;
and if so, sending a prompt message of the key point bit error to the upgrading tool and/or a CPU of the device where the upgrading tool and/or the device are located.
10. The method for upgrading firmware of a network card according to claim 1, wherein the CPU architecture of the device where the network card is executed is an X86 architecture or an ARM architecture.
11. The network card firmware upgrading method according to any one of claims 1 to 10, wherein the firmware upgrading request includes a plurality of firmware upgrading sub-requests;
the sending of the firmware upgrade request to the network card communication interface of the target network card through the network card communication interface of the execution network card is to facilitate the firmware upgrade of the target network card specifically:
and sending each firmware upgrading sub-request in the firmware upgrading requests to the corresponding network card communication interface of the target network card through the network card communication interface of the execution network card so as to facilitate firmware upgrading of each target network card.
12. The method for upgrading firmware of the network card according to claim 11, wherein the device where the execution network card is located is connected with all other devices through the same communication device.
13. The network card firmware upgrading method of claim 12, wherein the communication device is an optical fiber communication device;
the sending each firmware upgrade sub-request in the firmware upgrade requests to the network card communication interface of the corresponding target network card through the network card communication interface of the execution network card specifically includes:
and sending each firmware upgrading sub-request in the firmware upgrading requests to the network card communication interface of the target network card corresponding to the firmware upgrading sub-request in a Transmission Control Protocol (TCP) message form through the network card communication interface of the execution network card.
14. The utility model provides a network card firmware upgrading device which characterized in that is applied to and carries out the network card, includes:
the judging module is used for responding to a firmware upgrading request sent by an upgrading tool on the equipment where the judging module is located, judging whether a target network card of the firmware upgrading request is the execution network card or not, and if not, triggering the first sending module;
the first sending module is configured to send the firmware upgrade request to the communication interface of the target network card through a network card communication interface of the execution network card, so that the target network card performs firmware upgrade;
and the execution module is used for responding to the firmware upgrading request received through the communication interface and upgrading the firmware of the execution network card.
15. The network card firmware upgrade device according to claim 14, wherein the firmware upgrade request includes a plurality of firmware upgrade sub-requests;
the sending of the firmware upgrade request to the network card communication interface of the target network card through the network card communication interface of the execution network card is to facilitate the firmware upgrade of the target network card specifically:
and sending each firmware upgrading sub-request in the firmware upgrading request to the corresponding network card communication interface of the target network card through the network card communication interface of the execution network card so as to conveniently upgrade the firmware of each target network card.
16. A method for upgrading network card firmware is applied to an upgrading tool and comprises the following steps:
sending a firmware upgrading request for a target network card to an execution network card on the device where the execution network card is located, so that the execution network card can judge whether the target network card is the execution network card; if not, the firmware upgrading request is sent to the network card communication interface of the target network card through the network card communication interface of the execution network card, so that the target network card can conveniently upgrade the firmware according to the firmware upgrading request.
17. An apparatus for upgrading a firmware of a network card, comprising:
the second sending module is used for sending a firmware upgrading request for the target network card to the execution network card on the device where the second sending module is located, so that the execution network card can judge whether the target network card is the execution network card; if not, the firmware upgrading request is sent to the network card communication interface of the target network card through the network card communication interface of the execution network card, so that the target network card can conveniently upgrade the firmware according to the firmware upgrading request.
18. An apparatus for upgrading firmware of a network card, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the network card firmware upgrading method according to any one of claims 1 to 13 when executing the computer program.
19. A network card comprising a network card body and the network card firmware upgrade device of claim 18 connected to the network card body.
20. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program, which when executed by a processor implements the steps of the network card firmware upgrade method according to any one of claims 1 to 13.
CN202310247762.0A 2023-03-15 2023-03-15 Network card firmware upgrading method, device, equipment, network card and readable storage medium Active CN115941475B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310247762.0A CN115941475B (en) 2023-03-15 2023-03-15 Network card firmware upgrading method, device, equipment, network card and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310247762.0A CN115941475B (en) 2023-03-15 2023-03-15 Network card firmware upgrading method, device, equipment, network card and readable storage medium

Publications (2)

Publication Number Publication Date
CN115941475A true CN115941475A (en) 2023-04-07
CN115941475B CN115941475B (en) 2023-05-30

Family

ID=85832350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310247762.0A Active CN115941475B (en) 2023-03-15 2023-03-15 Network card firmware upgrading method, device, equipment, network card and readable storage medium

Country Status (1)

Country Link
CN (1) CN115941475B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616382A (en) * 2018-03-07 2018-10-02 华为技术有限公司 Upgrade method, apparatus, network interface card and the equipment of network interface card firmware
CN112463188A (en) * 2020-11-19 2021-03-09 苏州浪潮智能科技有限公司 Network card firmware automatic upgrading method and device and computer readable storage medium
CN115794239A (en) * 2022-11-11 2023-03-14 苏州浪潮智能科技有限公司 Network card firmware refreshing method, device, equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616382A (en) * 2018-03-07 2018-10-02 华为技术有限公司 Upgrade method, apparatus, network interface card and the equipment of network interface card firmware
CN112491600A (en) * 2018-03-07 2021-03-12 华为技术有限公司 Method and device for upgrading network card firmware, network card and equipment
CN112463188A (en) * 2020-11-19 2021-03-09 苏州浪潮智能科技有限公司 Network card firmware automatic upgrading method and device and computer readable storage medium
CN115794239A (en) * 2022-11-11 2023-03-14 苏州浪潮智能科技有限公司 Network card firmware refreshing method, device, equipment and medium

Also Published As

Publication number Publication date
CN115941475B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
US6425038B1 (en) Conversion of desk-top operating system for real-time control using installable interrupt service routines
US5675800A (en) Method and apparatus for remotely booting a computer system
EP2603865B1 (en) Exposing resource capabilities to web applications
CN111176801B (en) Multi-process management method, device, equipment and storage medium
US20210306242A1 (en) Non-intrusive it device monitoring and performing action based on it device state
CN109656608A (en) A kind of MCU firmware upgrade method and its relevant device
CN109416629A (en) Firmware upgrade method, electronic equipment, camera system and unmanned vehicle
US11989548B2 (en) Pushing a firmware update patch to a computing device via an out-of-band path
US9519600B2 (en) Driver shimming
CN111506331A (en) Server BMC refreshing method, system, terminal and storage medium
WO2022217759A1 (en) Esim code-number management method and apparatus
US20130030568A1 (en) Robot system control method and a device therefor
US7996524B2 (en) Controlling external communication of embedded device using proxy server
CN115941475A (en) Network card firmware upgrading method, device, equipment, network card and readable storage medium
WO2023226670A1 (en) Esim firmware upgrade method and apparatus, and device and medium
CN112631915A (en) Method, system, device and medium for PCIE device software simulation
CN113010470A (en) Edge node remote control system, method, device and storage medium
CN110413310A (en) Programme upgrade method and terminal device
CN100386726C (en) Method and system for renewing long-distance operation and control of computer platform system programe
CN111740972B (en) Method, device, equipment and storage medium for updating communication protocol stack information
CN107766066B (en) Method for updating slave module firmware
CN113961232A (en) Terminal, method and platform server for providing integrated development environment
JPH10111849A (en) Data processor and its peripheral equipment
CN114036081B (en) USB CDC driving method based on dependency injection type equipment library
KR101086363B1 (en) method of controlling robot system using runtime and apparatus thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant