NETWORK CARD MODE SWITCHING METHOD, APPARATUS, ELECTRONIC DEVICE AND STORAGE MEDIUM
The embodiments of the present application provide a network card mode switching method, an apparatus, an electronic device and a storage medium, said method comprising: in a network card polling mode, acquiring a readable user state interrupt descriptor in a network card interrupt set, parsing the...
Saved in:
Main Authors | , |
---|---|
Format | Patent |
Language | Chinese English French |
Published |
16.05.2019
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The embodiments of the present application provide a network card mode switching method, an apparatus, an electronic device and a storage medium, said method comprising: in a network card polling mode, acquiring a readable user state interrupt descriptor in a network card interrupt set, parsing the readable user state interrupt descriptor, and obtaining a working thread number and a network card queue number corresponding to the readable user state interrupt descriptor; instructing a working thread corresponding to the working thread number, so that the working thread acquires a data packet in a network card queue corresponding to the network card queue number; and counting the number of times of invalid acquisition, by the working thread, for the data packet in the network card queue, and when the number of times of invalid invalidation is greater than a preset threshold for the number of times of invalid acquisition, switching the polling mode of the network card corresponding to the network card queue to a |
---|---|
Bibliography: | Application Number: WO2018CN114077 |