Automatic detecting and driving loading method of user mode network card in Linux system

A user-mode, network card technology, applied in the direction of program loading/starting, program control devices, etc., can solve the problems of data copy loss of packet processing equipment, consumption of CPU resources, powerlessness, etc.

Inactive Publication Date: 2013-06-12
OPZOON TECH
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the continuous development of technology, the CPU resources that were greatly relieved in the early days of the multi-core era appear to be powerless on network packet processing devices equipped with 10GE or more network cards; the reason is that a large number of interrupts are consumed due to the impact of a large number of packets Certain CPU resources (especially the X86

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic detecting and driving loading method of user mode network card in Linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] A method for automatic detection and driver loading of a user-mode network card in a Linux system proposed by the present invention will be described in detail below with reference to the accompanying drawings and embodiments.

[0020] like figure 1 As shown, the present invention provides a method for automatic detection and driver loading of a user-mode network card under a Linux system, comprising the following steps:

[0021] S1. In the Linux kernel initialization phase, the PCI bus registers each driver and scans all devices mounted on the PCI bus; in the kernel initialization phase, the PCI driver loading will call the unified interface pci_register_driver to register each driver;

[0022] S2, each driver traverses the device mounted on the PCI bus, and judges whether the driver matches the device, if so, execute step S3, if not, return to step S1;

[0023] S3, determine whether the class code of the device is the class code of the network card device, if not, in...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an automatic detecting and driving loading method of a user mode network card in a Linux system. In the Linux inner core initialization phase, a PCI (peripheral component interconnect) bus registers each drive and scans equipment mounted on the PCI bus; each drive respectively traverses the equipment mounted on the PCI bus, whether the drive is matched with the equipment or not is judged, if the drive is matched with the equipment, whether the category code of the equipment is matched with the category code of network card equipment or not is continuously judged, and if not, the equipment is initialized; and if the category code of the equipment is matched with the category code of the network card equipment, the equipment is distinguished as a network card, the information of the network card is stored, the initialization of the network card is given up, in addition, the user mode obtains the information of the network card, and the corresponding network card driving is loaded according to the information of the network card. The automatic detecting and driving loading method has the advantages that the automatic loading and the driving loading of the network card are respectively placed in the user mode, and high overhead on the system invoking and the data packet copy due to the inner core mode driving is eliminated.

Description

technical field [0001] The invention relates to the field of computer operating systems, in particular to a method for automatic detection and driver loading of a user-mode network card based on a kernel mode under a Linux system. Background technique [0002] With the continuous development of technology, the CPU resources that have been greatly relieved in the early stage of the multi-core era are not enough for network packet processing equipment equipped with 10GE or more network cards. certain CPU resources (especially the X86 architecture); the performance loss of data copying from the kernel mode to the user mode of the Linux operating system will also become a stumbling block for the packet processing equipment to fully utilize the multi-core CPU; therefore, how to eliminate the kernel mode driver belt The high overhead of incoming system calls and data packet copying has become the main research area in the industry. SUMMARY OF THE INVENTION [0003] Aiming at th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/445
Inventor 高福亮
Owner OPZOON TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products