On 12/12/21 8:08 PM, Zhou, Jie2X wrote:
hi,
I try to apply the "selftests: Fix raw socket bind tests with VRF" patch. https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=0f...
And found that following changes. TEST: Raw socket bind to local address - ns-A IP [ OK ] => TEST: Raw socket bind to local address - ns-A IP [FAIL] TEST: Raw socket bind to local address - VRF IP [FAIL] => TEST: Raw socket bind to local address - VRF IP [ OK ]
After the last round of patches all tests but 2 pass with the 5.16.0-rc3 kernel (net-next based) and ubuntu 20.04 OS.
The 2 failures are due local pings and to bugs in 'ping' - it removes the device bind by calling setsockopt with an "" arg.