Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
photosys: add idx for v6tab to mark its position
For linux kernel, it exposes almost 100 lines for /proc/net/snmp6 file. Considering multiple-netns situations, too many lines had to be read and transferred, which is quite time consuming and space consuming. Let's optimize this by adding 'idx' to mark the needed indicators' position in struct v6tab. During the first time reading, e.i. the init_net namespace, we record the positions. Then in the following other netns, we only need to store and transfer indicators' values according to their positions. Signed-off-by: Fei Li <[email protected]>
- Loading branch information