Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit is for a new architecture--loongarch.
Compilation and installation are normal in the loongarch architecture.
Tests unit test passed in pyroute2 project.
Examples,
First,loongarch architecture displays.
loongson@loongson-pc:~/dd/python-pyroute2$ lscpu | grep Architecture
Architecture: loongarch64
Second,tests unit test passed in pyroute2 project.
loongson@loongson-pc:~/dd/python-pyroute2$ python3.7 -m nose -v tests/unit
test_common.TestAddrPool.test_alloc_aligned ... ok
test_common.TestAddrPool.test_alloc_odd ... ok
test_common.TestAddrPool.test_free ... ok
test_common.TestAddrPool.test_free_fail ... ok
test_common.TestAddrPool.test_free_reverse_fail ... ok
test_common.TestAddrPool.test_locate ... ok
test_common.TestAddrPool.test_reverse ... ok
test_common.TestAddrPool.test_setaddr_allocated ... ok
test_common.TestAddrPool.test_setaddr_free ... ok
test_common.TestCommon.test_dqn2int ... ok
test_common.TestCommon.test_hexdump ... ok
test_common.TestCommon.test_uifname ... ok
test_common.TestCommon.test_uuid32 ... ok
Ran 13 tests in 0.247s
OK
Third,users test passed in the loongarch architecture.
Users test some netns:: interfaces those also pass, such as
loongson@loongson-pc:~/dd/python-pyroute2$ sudo python3
Python 3.7.3 (default, Sep 12 2020, 09:01:12)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
loongson@loongson-pc:~/dd/python-pyroute2$ sudo python3
Python 3.7.3 (default, Sep 12 2020, 09:01:12)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
The end, we look forward to your reply and we hope this submission could be merged.
Thanks.