The method of automatic detection and driver loading of user mode network card under linux system

A user mode and network card technology, applied in the direction of program loading/starting, program control devices, etc., can solve the problems of CPU resource consumption, inability to fully utilize multi-core CPU, data copy loss, packet processing equipment, etc.

Inactive Publication Date: 2016-04-27
OPZOON TECH
View PDF3 Cites 0 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 architecture); the performance loss of the data copy from the kernel mode to the user mode of the Linux operating system will also become a roadblock for the packet processing device to make full use of the multi-core CPU; therefore, how to eliminate the kernel mode driver belt The high overhead of incoming system calls and packet copying has become a major research area in the industry

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
  • The method of automatic detection and driver loading of user mode network card under 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 under the Linux system proposed by the present invention will be described in detail in conjunction with the accompanying drawings and embodiments below.

[0020] Such as figure 1 As shown, the present invention provides a method for automatic detection and driver loading of user state network cards 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. The respective drivers traverse the devices mounted on the PCI bus, and determine whether the drivers match the device, if so, execute step S3, if not, return to step S1;

[0023] S3. Determine whether the category code of the device is the category code of the ne...

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 a method for automatic detection and driver loading of user state network cards under the Linux system. In the Linux kernel initialization stage, the PCI bus registers each driver and scans all devices mounted on the PCI bus; Mount the device on the PCI bus to determine whether the driver matches the device, if it matches, then continue to judge whether the class code of the device is the class code of the network card device, if not, initialize the device; if so, then Identify the device as a network card, save the network card information and give up the initialization of the network card, and obtain the network card information in user mode, and load the corresponding network card driver according to the network card information; the present invention automatically detects the network card and driver loading are placed in the user mode to eliminate the high overhead of system calls and data packet copying brought by the kernel mode driver.

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 state network card based on a kernel state under a Linux system. Background technique [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 architecture); the performance loss of the data copy from the kernel mode to the user mode of the Linux operating system will also become a roadblock for the packet processing device to make full use of the multi-core CPU; therefore, how to eliminate the kernel mode driver belt The high overhead of incoming system calls and packet copies ha...

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
Patent Type & Authority Patents(China)
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