CN109743105A - Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium - Google Patents
Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium Download PDFInfo
- Publication number
- CN109743105A CN109743105A CN201910016320.9A CN201910016320A CN109743105A CN 109743105 A CN109743105 A CN 109743105A CN 201910016320 A CN201910016320 A CN 201910016320A CN 109743105 A CN109743105 A CN 109743105A
- Authority
- CN
- China
- Prior art keywords
- optical module
- read
- network adapter
- intelligent network
- relevant parameter
- 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.)
- Pending
Links
Abstract
This application discloses a kind of intelligent network adapter optical mode block management method, device, system and a kind of intelligent network adapter and a kind of computer readable storage mediums, this method comprises: reading the read operation command word in default memory headroom, and control command is issued to by I2C bus by optical module according to the read operation command word;The relevant parameter of the corresponding optical module of the control command is read by the digital interface of the optical module;The default memory headroom is written into the relevant parameter, and sends reading end interrupt, so that host computer reads the relevant parameter from the default memory headroom after receiving the reading end interrupt.After the application reads read operation command word, control command is issued according to read operation command word using I2C bus and realizes management of the intelligent network adapter to optical module to read the corresponding information of control command by the digital interface of optical module to optical module.
Description
Technical field
This application involves field of computer technology, more specifically to a kind of intelligent network adapter optical mode block management method, dress
It sets, system and a kind of intelligent network adapter and a kind of computer readable storage medium.A kind of intelligent network adapter optical module managing device, system
And a kind of intelligent network adapter and a kind of computer readable storage medium
Background technique
Network interface card is the indispensable device of cloud computing and data center network transmission, and network interface card works in the networking component of link layer,
It is the interface that computer and transmission medium are connected in local area network, the physical connection being not only able to achieve between local network transport medium
It is matched with electric signal, further relates to the sending and receiving of frame, the encapsulation of frame and opening, medium access control, the coding of data and solution
The function of code and data buffer storage.
With cloud in more and more business, the response speed of data center is required it is higher and higher, data center at
This pressure is also increasing, and common network interface card only realizes the function of data receiver and transmission, and data processing and parsing need to account for
With expensive cpu resource, this mode does not adapt to increasingly developed data center gradually and requires.Intelligent network adapter (Smart
NIC) and the fundamental difference of standard network interface card (NIC) is the treating capacity that Smart NIC is unloaded from host CPU, and Smart NIC is to enclose
It being designed around FPGA platform, FPGA is designed to receive localization programming, once installation can easily update.Smart
NIC needs to meet following characteristics: can be realized complicated server-based network data plane functions, including multiple matchings are moved
It deals with, tunnel termination and initiation, metering and shaping and traffic statistics.It supports to replace by firmware loads or client's programming
The data plane changed, to executable function almost without scheduled limitation, and existing open source ecosystem Seamless integration-, most
Improve software function to limits.Smart NIC is able to ascend application program and virtualizing performance, realizes software defined network
(SDN) and many advantages of network function virtualization (NFV), by network virtualization, load balancing and other low order functions from clothes
It is removed in business device CPU, it is ensured that provide maximum processing capacity for application.At the same time, intelligent network adapter can also provide distribution
Computing resource allows user to develop the software of oneself or provide access service, to accelerate application-specific.
The transmission of intelligent network adapter outbound data converts optical signal for the electric signal of board dependent on optical module and passes in a fiber
Defeated, the effect of optical module is exactly photoelectric conversion, and transmitting terminal converts the electrical signal to optical signal, after being transmitted by optical fiber, receiving end
Optical signal is converted into electric signal again.Optical module is as the important conversion devices of signal light transmission/electricity, the parameter setting of traditional network interface card
The agreement and software tool that standard has been formed with inquiry (monitoring management), are integrated in linux system and trawl performance.But
Intelligent network adapter is designed since overall architecture no longer surrounds traditional network card chip around FPGA, traditional parameter setting and
Inquiry mechanism, driving, access all have changed, and need to be monitored pipe to optical module for the redesign of intelligent network adapter framework again
The method of reason.
Summary of the invention
The application's is designed to provide a kind of intelligent network adapter optical mode block management method, system and a kind of electronic equipment and one
Kind computer readable storage medium can be realized the monitoring management that intelligent network adapter is directed to optical module.
To achieve the above object, this application provides a kind of intelligent network adapter optical mode block management methods, comprising:
The read operation command word in default memory headroom is read, and will by I2C bus according to the read operation command word
Control command is issued to optical module;
The relevant parameter of the corresponding optical module of the control command is read by the digital interface of the optical module;
The default memory headroom is written into the relevant parameter, and sends reading end interrupt, so that host computer receives
The relevant parameter is read from the default memory headroom after to the reading end interrupt.
Optionally, the read operation command word is that the driving of the intelligent network adapter is received and is written empty to the default memory
Between in the operational order word that issues according to user instructions of the host computer.
Optionally, the digital interface by the optical module reads the corresponding optical module of the control command
After relevant parameter, further includes:
Judge whether the relevant parameter correctly reads;
If it is, starting the described the step of default memory headroom is written in the relevant parameter;
If it is not, then showing the prompt information for reading failure by upper computer software.
Optionally, further includes:
The write operation command word in the default memory headroom is read, and total by I2C according to the write operation command word
Line carries out data write operation to destination address in the optical module;
After the completion of the data write operation, write-in end interrupt is sent to the host computer.
Optionally, described that destination address in the optical module is carried out by I2C bus according to the write operation command word
After data write operation, further includes:
Judge whether the data write operation correctly executes, obtains judging result;
Correspondingly, it is described after the completion of the data write operation, write-in end interrupt is sent to the host computer, is wrapped
It includes:
After the completion of the data write operation, the corresponding write-in end interrupt of the judging result is sent on described
Position machine.
To achieve the above object, this application provides a kind of intelligent network adapter optical module managing devices, comprising:
Order issues module, orders for reading the read operation command word in default memory headroom, and according to the read operation
Enable word that control command is issued to optical module by I2C bus;
Parameter read module reads the corresponding light of the control command for the digital interface by the optical module
The relevant parameter of module;
Parameter writing module for the default memory headroom to be written in the relevant parameter, and is sent during reading terminates
It is disconnected, so that host computer reads the relevant parameter from the default memory headroom after receiving the reading end interrupt.
Optionally, further includes:
Judgment module is read, for judging whether the relevant parameter correctly reads;
Starting module is written, if correctly read for the relevant parameter, starts and described writes the relevant parameter
The step of entering the default memory headroom;
Information display module is shown by upper computer software and is read if do not read correctly for the relevant parameter
The prompt information of failure.
To achieve the above object, this application provides a kind of intelligent network adapter optical module management systems, comprising:
Host computer, FPGA and optical module;
The FPGA is attached by I2C bus and the optical module, is reading the read operation in default memory headroom
Control command is issued to by the optical module according to the read operation command word after command word, and passes through the number of the optical module
Interface reads the relevant parameter of the corresponding optical module of the control command;
It is attached by PCIe and the host computer, is sent after the default memory headroom is written in the relevant parameter
End interrupt is read to the host computer, so that the host computer receives after the reading end interrupt from the default memory
The relevant parameter is read in space.
To achieve the above object, this application provides a kind of intelligent network adapters, comprising:
Memory, for storing computer program;
Processor realizes aforementioned disclosed any intelligent network adapter optical module when for executing the computer program
The step of management method.
To achieve the above object, this application provides a kind of computer readable storage medium, the computer-readable storages
Computer program is stored on medium, the computer program realizes aforementioned disclosed any intelligence when being executed by processor
The step of energy network interface card optical mode block management method.
By above scheme it is found that a kind of intelligent network adapter optical mode block management method provided by the present application, comprising: read default
Read operation command word in memory headroom, and control command is issued to by I2C bus by light according to the read operation command word
Module;The relevant parameter of the corresponding optical module of the control command is read by the digital interface of the optical module;By institute
It states relevant parameter and the default memory headroom is written, and send reading end interrupt, so that host computer receives the reading knot
Beam reads the relevant parameter from the default memory headroom after interrupting.After the application reads read operation command word, utilize
I2C bus issues control command to optical module, so that the digital interface by optical module reads control according to read operation command word
Corresponding information is ordered, realizes management of the intelligent network adapter to optical module.Disclosed herein as well is a kind of intelligent network adapter optical module pipes
Device, system and a kind of intelligent network adapter and a kind of computer readable storage medium are managed, above-mentioned technical effect is equally able to achieve.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
Application.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of intelligent network adapter optical mode block management method disclosed in the embodiment of the present application;
Fig. 2 is the flow chart of another kind intelligent network adapter optical mode block management method disclosed in the embodiment of the present application;
Fig. 3 is the flow chart of another intelligent network adapter optical mode block management method disclosed in the embodiment of the present application;
Fig. 4 is the flow chart of another kind intelligent network adapter optical mode block management method disclosed in the embodiment of the present application;
Fig. 5 is a kind of flow chart of specific intelligent network adapter optical mode block management method disclosed in the embodiment of the present application;
Fig. 6 is a kind of structure chart of intelligent network adapter optical module managing device disclosed in the embodiment of the present application;
Fig. 7 is a kind of structural schematic diagram of intelligent network adapter optical module management system disclosed in the embodiment of the present application;
Fig. 8 is a kind of structure chart of intelligent network adapter disclosed in the embodiment of the present application;
Fig. 9 is the structure chart of another kind intelligent network adapter disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
In the prior art, intelligent network adapter is carried out since overall architecture no longer surrounds traditional network card chip around FPGA
Design, traditional parameter setting and inquiry mechanism, driving, access all have changed, and need to be directed to intelligent network adapter framework again again
Design the method that management is monitored to optical module.
Therefore, the embodiment of the present application discloses a kind of intelligent network adapter optical mode block management method, can be realized intelligent network adapter needle
Monitoring management to optical module.
Referring to Fig. 1, a kind of flow chart of intelligent network adapter optical mode block management method disclosed in the embodiment of the present application, such as Fig. 1 institute
Show, comprising:
S101: the read operation command word in default memory headroom is read, and total by I2C according to the read operation command word
Control command is issued to optical module by line;
In the present embodiment, FPGA reads the read operation command word in default memory headroom, further according to read operation order
Word issues control command by I2C bus.Wherein, read operation command word is that the driving of intelligent network adapter is received and is written to described pre-
If the operational order word that the host computer in memory headroom issues according to user instructions.
In specific implementation, after host computer receives user instruction, corresponding read operation life is issued according to user instructions
After enabling word, intelligent network adapter driving receive read operation command word, the read operation command word is written in default memory headroom
Designated position, specifically, default memory headroom can be PCIe register.
S102: the related of the corresponding optical module of the control command is read by the digital interface of the optical module and is joined
Number;
In this step, after FPGA issues control command by I2C bus, optical module is read by optical module data-interface
Relevant parameter.Wherein, relevant parameter may include the information such as size, temperature, level, the voltage of optical module.
It is understood that FPGA in advance maps the level agreement of I2C interface and standard according to optical module databook
Into default memory headroom, therefore, FPGA according to after the control command of host computer according to control command to the I2C interface of optical module
It, can be directly according to the databook of optical module and standard agreement, by controlling the level output to I2C interface when being read out
Realize the reading to optical module.
S103: the default memory headroom is written into the relevant parameter, and sends reading end interrupt, so that host computer
The relevant parameter is read from the default memory headroom after receiving the reading end interrupt.
Further, it after reading relevant parameter, is written into default memory headroom, and sends in corresponding terminate
It is disconnected, to prompt host computer that can read relevant parameter from default memory headroom, and export to software tool.
By above scheme it is found that a kind of intelligent network adapter optical mode block management method provided by the present application, comprising: read default
Read operation command word in memory headroom, and control command is issued to by I2C bus by light according to the read operation command word
Module;The relevant parameter of the corresponding optical module of the control command is read by the digital interface of the optical module;By institute
It states relevant parameter and the default memory headroom is written, and send reading end interrupt, so that host computer receives the reading knot
Beam reads the relevant parameter from the default memory headroom after interrupting.After the application reads read operation command word, utilize
I2C bus issues control command to optical module, so that the digital interface by optical module reads control according to read operation command word
Corresponding information is ordered, realizes management of the intelligent network adapter to optical module.
The embodiment of the present application discloses a kind of intelligent network adapter optical mode block management method, relative to a upper embodiment, this implementation
Example has made further instruction and optimization to technical solution.It is specific:
Referring to fig. 2, the flow chart of another intelligent network adapter optical mode block management method provided by the embodiments of the present application, such as Fig. 2
It is shown, comprising:
S201: the read operation command word in default memory headroom is read, and total by I2C according to the read operation command word
Control command is issued to optical module by line;
S202: the related of the corresponding optical module of the control command is read by the digital interface of the optical module and is joined
Number;
S203: judge whether the relevant parameter correctly reads;
In this step, after reading relevant parameter by data-interface, further determine whether correctly to read related ginseng
Number.
S204: if it is, the default memory headroom is written in the relevant parameter, and sending reading end interrupt,
So that host computer reads the relevant parameter from the default memory headroom after receiving the reading end interrupt;
If judging result is correct reading relevant parameter, relevant parameter is written to the step of default memory headroom by starting
Suddenly, corresponding end interrupt is further sent.
S205: if it is not, then showing the prompt information for reading failure by upper computer software.
If judging result is not read relevant parameter correctly, it is soft by host computer that prompt information will be read unsuccessfully accordingly
Part is shown, and sends corresponding reading end interrupt.
Based on any of the above embodiments, the present embodiment further comprises to optical module as a preferred method,
The step of carrying out data write-in.
Referring to Fig. 3, the flow chart of another intelligent network adapter optical mode block management method provided by the embodiments of the present application, such as Fig. 3
Shown, method includes:
S301: the write operation command word in the default memory headroom is read, and is passed through according to the write operation command word
I2C bus carries out data write operation to destination address in the optical module;
In the present embodiment, after host computer receives the user instruction of user's transmission, issues write accordingly according to user instructions
Operational order word, it is after further intelligent network adapter driving receives write operation command word, the write-in of write operation command word is default interior
Deposit the designated position in space.
In this step, FPGA reads the write operation command word of default memory headroom, to be determined according to write operation command word
Target writing address corresponding with write operation command word in optical module, and data are carried out to target writing address by I2C bus
Write operation.
S302: after the completion of the data write operation, write-in end interrupt is sent to the host computer.
Further, after the completion of data are written, end interrupt is sent to host computer, to notify host computer write operation
It completes.
The embodiment of the present application discloses a kind of intelligent network adapter optical mode block management method, relative to a upper embodiment, this implementation
Example has made further instruction and optimization to technical solution.It is specific:
Referring to fig. 4, the flow chart of another intelligent network adapter optical mode block management method provided by the embodiments of the present application, such as Fig. 4
It is shown, comprising:
S401: the write operation command word in the default memory headroom is read, and is passed through according to the write operation command word
I2C bus carries out data write operation to destination address in the optical module;
S402: after the completion of the data write operation, judge whether the data write operation correctly executes, sentenced
Disconnected result;
In this step, after the completion of data write operation, further judges whether data write operation correctly executes, obtain
Corresponding judging result.
S403: the corresponding write-in end interrupt of the judging result is sent to the host computer.
Further, if judgement obtains data write operation and correctly executes, the first write-in end interrupt is sent, to pass through
The information that host computer display data writing is completed;If judgement obtains data write operation and fails correctly to execute, sends second and write
Enter end interrupt, to pass through the information of host computer display data writing failure.
Fig. 5 is a kind of flow chart of specific intelligent network adapter optical mode block management method provided by the embodiments of the present application, is such as schemed
It is shown, after user's transmitting order to lower levels, if the current command is read command, corresponding command word is written to by PCIe according to read command and is posted
In storage, FPGA is read the target specified in optical module digital interface by I2C bus and reads address, and judgement is after reading
Relevant parameter specifically can be written to default memory headroom and send the by no correct reading parameter after correct read
One reads end interrupt, interrupts 1, such as to prompt host computer to be read out parameter manipulation;In incorrect read, sends second and read
End interrupt is taken, such as interrupts 2, to show the information for reading failure by host computer.
If the order that active user issues is write order, corresponding command word is written to by PCIe deposit according to write order
In device, FPGA writes data into the target writing address specified in optical module digital interface by I2C bus, and after write
Judge whether to be correctly written in parameter, specifically, after correct read, sends the first write-in end interrupt, interrupt 3, such as to pass through
The information that host computer display data writing is completed;If failing correctly to execute, the second write-in end interrupt is sent, such as interrupts 4, with
Pass through the information of host computer display data writing failure.
For reading optical module Physical Device Identifier parameter in a specific implementation scene,
Intelligent network adapter optical mode block management method provided by the present application is explained, specifically, comprising:
Step 1, user is sent by upper computer software tool reads Physical Device Identifier instruction;
Step 2, software tool detection device whether there is, and open equipment;
Specifically, it detects whether to be connected to optical module by I2C interface.
Step 3, software tool is by the user's space of equipment PCIe Address space mappinD to memory;
Step 4, it resets all control registers, remove receiving register FIFO;
In this step, by resetting all control registers, and receiving register is removed, eliminates the behaviour before this reading
Make the influence to current operation.
Step 5, global control register, enabled interruption, enabled interrupt flag bit are enabled;
In this step, by enabled global control register, enabled interruption, enabled interrupt flag bit, global control is allowed to post
Storage, interruption and interrupt flag bit can be triggered, so as to enter global control register or interrupt service routine.
Step 6, TX-FIFO register is written in address to be read and start bit by software tool, and FPGA accordingly exports specified
Level is to I2C interface;
Step 7, TX-FIFO register is written in data length and stop position position by software tool, and FPGA accordingly exports specified
Level is to I2C interface;
Step 8, RX-FIFO register, software tool reading numerical values are written in the data that FPGA returns to I2C;
Step 9, software tool searches corresponding agreement tables, by Physical Device according to the data read
The output of Identifier parameter.
Specifically, the numerical value read according to optical module standard digital interface passes through matching optical module standard digital interface association
View (Two-wire interface ID) is tabled look-up, and the standard for translating into optical module is described Physical Device
The printout of Identifier parameter is shown to screen.
A kind of intelligent network adapter optical module managing device provided by the embodiments of the present application is introduced below, it is described below
A kind of intelligent network adapter optical module managing device can be cross-referenced with a kind of above-described intelligent network adapter optical mode block management method.
Referring to Fig. 6, a kind of structure chart of intelligent network adapter optical module managing device provided by the embodiments of the present application, such as Fig. 6 institute
Show, comprising:
Order issues module 100, for reading the read operation command word in default memory headroom, and according to the read operation
Control command is issued to optical module by I2C bus by command word;
Parameter read module 200 reads the corresponding institute of the control command for the digital interface by the optical module
State the relevant parameter of optical module;
Parameter writing module 300 terminates for the default memory headroom to be written in the relevant parameter, and sends reading
It interrupts, so that host computer reads the relevant parameter from the default memory headroom after receiving the reading end interrupt.
On the basis of the above embodiments, as a kind of preferred aforesaid way, intelligent network adapter optical mode provided in this embodiment
Block managing device can also include:
Judgment module is read, for judging whether the relevant parameter correctly reads;
Starting module is written, if correctly read for the relevant parameter, starts and described writes the relevant parameter
The step of entering the default memory headroom;
Information display module is shown by upper computer software and is read if do not read correctly for the relevant parameter
The prompt information of failure.
To achieve the above object, this application provides a kind of intelligent network adapter optical module management systems, comprising:
Host computer, FPGA and optical module;
The FPGA is attached by I2C bus and the optical module, is reading the read operation in default memory headroom
Control command is issued to by the optical module according to the read operation command word after command word, and passes through the number of the optical module
Interface reads the relevant parameter of the corresponding optical module of the control command;
It is attached by PCIe and the host computer, is sent after the default memory headroom is written in the relevant parameter
End interrupt is read to the host computer, so that the host computer receives after the reading end interrupt from the default memory
The relevant parameter is read in space.
Fig. 7 is a kind of specific intelligent network adapter optical module management system schematic diagram provided by the embodiments of the present application, as schemed institute
Show, optical module provides the I2C interface of standard, which is connected to FPGA, the data that FPGA is designed by board by I2C bus
Bus is connected to PCIe, so that board be made to be connected to host computer by PCIe, carries out data interaction with host computer.
Present invention also provides a kind of intelligent network adapters, referring to Fig. 8, a kind of knot of intelligent network adapter provided by the embodiments of the present application
Composition, as shown in Figure 8, comprising:
Memory 11, for storing computer program;
Aforementioned disclosed any intelligent network adapter may be implemented in processor 12 when for executing the computer program
The step of optical mode block management method.
Specifically, memory 11 includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with
Operating system and computer-readable instruction, the built-in storage are the operating system and computer-readable in non-volatile memory medium
The operation of instruction provides environment.Processor 12 can be a central processing unit (Central in some embodiments
Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips, mentioned for electronic equipment
For calculating and control ability.
On the basis of the above embodiments, preferably, referring to Fig. 9, the electronic equipment further include:
Input interface 13 is connected with processor 12, for obtaining computer program, parameter and the instruction of external importing, warp
The control of processor 12 is saved into memory 11.The input interface 13 can be connected with input unit, receive user and be manually entered
Parameter or instruction.The input unit can be the touch layer covered on display screen, be also possible to be arranged in terminal enclosure by
Key, trace ball or Trackpad are also possible to keyboard, Trackpad or mouse etc..
The network port 14 is connected with processor 12, for being communicatively coupled with external each terminal device.The communication connection
The used communication technology can be cable communicating technology or wireless communication technique, such as mobile high definition chained technology (MHL), general
Universal serial bus (USB), high-definition media interface (HDMI), adopting wireless fidelity technology (WiFi), Bluetooth Communication Technology, low-power consumption bluetooth
The communication technology, communication technology based on IEEE802.11s etc..
Fig. 9 illustrates only the electronic equipment with component 11-14, it will be appreciated by persons skilled in the art that Fig. 9 is shown
Structure do not constitute the restriction to electronic equipment, may include more certain than illustrating less perhaps more components or combination
Component or different component layouts.
Present invention also provides a kind of computer readable storage medium, the storage medium may include: USB flash disk, mobile hard disk,
Read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic
The various media that can store program code such as dish or CD.Computer program, the calculating are stored on the storage medium
Machine program realizes the step of aforementioned disclosed any intelligent network adapter optical mode block management method when being executed by processor.
A kind of intelligent network adapter optical mode block management method provided by the present application, comprising: read the reading behaviour in default memory headroom
Make command word, and control command is issued to by I2C bus by optical module according to the read operation command word;Pass through the optical mode
The digital interface of block reads the relevant parameter of the corresponding optical module of the control command;It will be described in relevant parameter write-in
Default memory headroom, and reading end interrupt is sent, so that host computer is preset after receiving the reading end interrupt from described
The relevant parameter is read in memory headroom.After the application reads read operation command word, ordered using I2C bus according to read operation
It enables word issue control command to realize to optical module to read the corresponding information of control command by the digital interface of optical module
Management of the intelligent network adapter to optical module.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For system disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.It should be pointed out that for those skilled in the art, under the premise of not departing from the application principle, also
Can to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection scope of the claim of this application
It is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Claims (10)
1. a kind of intelligent network adapter optical mode block management method characterized by comprising
The read operation command word in default memory headroom is read, and will be controlled according to the read operation command word by I2C bus
Order is issued to optical module;
The relevant parameter of the corresponding optical module of the control command is read by the digital interface of the optical module;
The default memory headroom is written into the relevant parameter, and sends reading end interrupt, so that host computer receives institute
It states and reads the relevant parameter from the default memory headroom after reading end interrupt.
2. intelligent network adapter optical mode block management method according to claim 1, which is characterized in that the read operation command word is
The driving of the intelligent network adapter receives and the host computer being written into the default memory headroom issues according to user instructions
Operational order word.
3. intelligent network adapter optical mode block management method according to claim 1, which is characterized in that described to pass through the optical module
Digital interface read the relevant parameter of the corresponding optical module of the control command after, further includes:
Judge whether the relevant parameter correctly reads;
If it is, starting the described the step of default memory headroom is written in the relevant parameter;
If it is not, then showing the prompt information for reading failure by upper computer software.
4. intelligent network adapter optical mode block management method according to any one of claims 1 to 3, which is characterized in that further include:
The write operation command word in the default memory headroom is read, and I2C bus pair is passed through according to the write operation command word
Destination address carries out data write operation in the optical module;
After the completion of the data write operation, write-in end interrupt is sent to the host computer.
5. intelligent network adapter optical mode block management method according to claim 4, which is characterized in that described according to the write operation
After command word passes through I2C bus to destination address progress data write operation in the optical module, further includes:
Judge whether the data write operation correctly executes, obtains judging result;
Correspondingly, it is described after the completion of the data write operation, write-in end interrupt is sent to the host computer, comprising:
After the completion of the data write operation, the corresponding write-in end interrupt of the judging result is sent to described upper
Machine.
6. a kind of intelligent network adapter optical module managing device characterized by comprising
Order issues module, for reading the read operation command word in default memory headroom, and according to the read operation command word
Control command is issued to optical module by I2C bus;
Parameter read module reads the corresponding optical module of the control command for the digital interface by the optical module
Relevant parameter;
Parameter writing module for the default memory headroom to be written in the relevant parameter, and sends reading end interrupt, with
The relevant parameter is read from the default memory headroom after so that host computer is received the reading end interrupt.
7. intelligent network adapter optical module managing device according to claim 6, which is characterized in that further include:
Judgment module is read, for judging whether the relevant parameter correctly reads;
Starting module is written, if correctly read for the relevant parameter, starts described by relevant parameter write-in institute
The step of stating default memory headroom;
Information display module is shown by upper computer software if do not read correctly for the relevant parameter and reads failure
Prompt information.
8. a kind of intelligent network adapter optical module management system characterized by comprising
Host computer, FPGA and optical module;
The FPGA is attached by I2C bus and the optical module, is reading the read operation order in default memory headroom
Control command is issued to by the optical module according to the read operation command word after word, and passes through the digital interface of the optical module
Read the relevant parameter of the corresponding optical module of the control command;
It is attached by PCIe and the host computer, the relevant parameter is written after the default memory headroom to send and is read
End interrupt is to the host computer, so that the host computer receives after the reading end interrupt from the default memory headroom
It is middle to read the relevant parameter.
9. a kind of intelligent network adapter characterized by comprising
Memory, for storing computer program;
Processor realizes the intelligent network adapter optical module as described in any one of claim 1 to 5 when for executing the computer program
The step of management method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the intelligent network adapter optical module pipe as described in any one of claim 1 to 5 when the computer program is executed by processor
The step of reason method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910016320.9A CN109743105A (en) | 2019-01-08 | 2019-01-08 | Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910016320.9A CN109743105A (en) | 2019-01-08 | 2019-01-08 | Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109743105A true CN109743105A (en) | 2019-05-10 |
Family
ID=66363798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910016320.9A Pending CN109743105A (en) | 2019-01-08 | 2019-01-08 | Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109743105A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110430025A (en) * | 2019-08-01 | 2019-11-08 | 青岛海信宽带多媒体技术有限公司 | A kind of data transmission method for uplink, device and optical module |
CN112307031A (en) * | 2020-11-09 | 2021-02-02 | 成都优博创通信技术有限公司 | Optical module information processing method and device, optical module and readable storage medium |
WO2021031653A1 (en) * | 2019-08-16 | 2021-02-25 | 青岛海信宽带多媒体技术有限公司 | Digital diagnosis information acquisition method and device, and optical module |
CN114003538A (en) * | 2021-10-22 | 2022-02-01 | 苏州浪潮智能科技有限公司 | Intelligent network card and identification method thereof |
CN114116545A (en) * | 2021-10-15 | 2022-03-01 | 苏州浪潮智能科技有限公司 | Optical module identification regulation structure, method and storage medium |
CN114328311A (en) * | 2021-12-15 | 2022-04-12 | 珠海一微半导体股份有限公司 | Storage controller architecture, data processing circuit and data processing method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140556A (en) * | 2007-09-11 | 2008-03-12 | 中兴通讯股份有限公司 | Method and device for realizing accessing multiple I2C slave device by programmable device |
US20080089693A1 (en) * | 2006-10-13 | 2008-04-17 | Menara Networks, Inc. | Systems and methods for the integration of framing, OAM&P, and forward error correction in pluggable optical transceiver devices |
CN102055521A (en) * | 2009-11-11 | 2011-05-11 | 中兴通讯股份有限公司 | Control method and control device for reading-writing optical module information, and optical module |
CN103677671A (en) * | 2013-12-12 | 2014-03-26 | 青岛海信宽带多媒体技术有限公司 | Data reading-writing method and system of electrical port module |
CN103942064A (en) * | 2013-12-31 | 2014-07-23 | 上海天马微电子有限公司 | Method for processing identifying information of display panel and display panel |
CN105138308A (en) * | 2015-08-28 | 2015-12-09 | 青岛海信宽带多媒体技术有限公司 | Method and device for updating register |
US10075244B2 (en) * | 2015-05-28 | 2018-09-11 | Commscope Technologies Llc | Physical layer management configured active optical module with native and non-native network element support |
-
2019
- 2019-01-08 CN CN201910016320.9A patent/CN109743105A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080089693A1 (en) * | 2006-10-13 | 2008-04-17 | Menara Networks, Inc. | Systems and methods for the integration of framing, OAM&P, and forward error correction in pluggable optical transceiver devices |
CN101140556A (en) * | 2007-09-11 | 2008-03-12 | 中兴通讯股份有限公司 | Method and device for realizing accessing multiple I2C slave device by programmable device |
CN102055521A (en) * | 2009-11-11 | 2011-05-11 | 中兴通讯股份有限公司 | Control method and control device for reading-writing optical module information, and optical module |
CN103677671A (en) * | 2013-12-12 | 2014-03-26 | 青岛海信宽带多媒体技术有限公司 | Data reading-writing method and system of electrical port module |
CN103942064A (en) * | 2013-12-31 | 2014-07-23 | 上海天马微电子有限公司 | Method for processing identifying information of display panel and display panel |
US10075244B2 (en) * | 2015-05-28 | 2018-09-11 | Commscope Technologies Llc | Physical layer management configured active optical module with native and non-native network element support |
CN105138308A (en) * | 2015-08-28 | 2015-12-09 | 青岛海信宽带多媒体技术有限公司 | Method and device for updating register |
Non-Patent Citations (1)
Title |
---|
朱晓林: "基于I2C接口访问的光模块系统设计", 《设计参考》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110430025A (en) * | 2019-08-01 | 2019-11-08 | 青岛海信宽带多媒体技术有限公司 | A kind of data transmission method for uplink, device and optical module |
WO2021031653A1 (en) * | 2019-08-16 | 2021-02-25 | 青岛海信宽带多媒体技术有限公司 | Digital diagnosis information acquisition method and device, and optical module |
CN112307031A (en) * | 2020-11-09 | 2021-02-02 | 成都优博创通信技术有限公司 | Optical module information processing method and device, optical module and readable storage medium |
CN114116545A (en) * | 2021-10-15 | 2022-03-01 | 苏州浪潮智能科技有限公司 | Optical module identification regulation structure, method and storage medium |
CN114116545B (en) * | 2021-10-15 | 2023-07-18 | 苏州浪潮智能科技有限公司 | Optical module identification regulation structure, method and storage medium |
CN114003538A (en) * | 2021-10-22 | 2022-02-01 | 苏州浪潮智能科技有限公司 | Intelligent network card and identification method thereof |
CN114003538B (en) * | 2021-10-22 | 2023-07-14 | 苏州浪潮智能科技有限公司 | Identification method of intelligent network card and intelligent network card |
CN114328311A (en) * | 2021-12-15 | 2022-04-12 | 珠海一微半导体股份有限公司 | Storage controller architecture, data processing circuit and data processing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109743105A (en) | Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium | |
US10884965B2 (en) | PCI express tunneling over a multi-protocol I/O interconnect | |
US8521929B2 (en) | Virtual serial port management system and method | |
CN102866971B (en) | Device, the system and method for transmission data | |
CN107003955B (en) | Method, apparatus and system for integrating devices in a root complex | |
ES2641327T3 (en) | Data redirection for universal serial bus devices | |
US9927984B2 (en) | Electronic system with interface control mechanism and method of operation thereof | |
CN109688058B (en) | Message processing method and device and network equipment | |
CN103955441A (en) | Equipment management system, equipment management method and IO (Input/Output) expansion interface | |
CN103092798A (en) | On-chip system and method for accessing to equipment under bus | |
CN109451098A (en) | FPGA accelerator card MAC Address configuration method, device and accelerator card | |
CN104798010A (en) | Serial storage protocol compatible frame conversion, at least in part | |
US9639489B2 (en) | I/O device sharing system and I/O device sharing method | |
WO2024007510A1 (en) | Server management method, apparatus and system, and electronic device and readable storage medium | |
US10216664B2 (en) | Remote resource access method and switching device | |
CN117278890B (en) | Optical module access method, device and system, electronic equipment and readable storage medium | |
US10133492B2 (en) | Electronic system with interface control mechanism and method of operation thereof | |
CN116909639B (en) | Mounting system, method, cluster and storage medium | |
US20120324078A1 (en) | Apparatus and method for sharing i/o device | |
CN103562893A (en) | Facilitating transport mode input/output operations between a channel subsystem and input/output devices | |
CN111158905A (en) | Method and device for adjusting resources | |
WO2023155363A1 (en) | Server dynamic hot backup method, apparatus and device, and storage medium | |
US8825931B2 (en) | KVM switch system capable of wirelessly transmitting keyboard-mouse-data between wired input/output devices based on a security clearance level | |
CN111371799B (en) | Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller | |
CN114281389A (en) | Method and device for upgrading SOC (system on chip) and automatic driving vehicle |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190510 |
|
RJ01 | Rejection of invention patent application after publication |