[PATCH net-next v3] net-loopback: set lo dev initial state to UP

2021-02-01 Thread Jian Yang
From: Jian Yang Traditionally loopback devices come up with initial state as DOWN for any new network-namespace. This would mean that anyone needing this device would have to bring this UP by issuing something like 'ip link set lo up'. This can be avoided if the initial state is

[PATCH net-next v2] net-loopback: allow lo dev initial state to be controlled

2020-11-17 Thread Jian Yang
will only alter the behavior of the newer network namespaces. Signed-off-by: Mahesh Bandewar Signed-off-by: Jian Yang Reported-by: kernel test robot --- v2: * Updated sysctl name from `netdev_loopback_state` to `loopback_init_state` * Fixed the linking error when CONFIG_SYSCTL is n

[PATCH net-next] net-loopback: allow lo dev initial state to be controlled

2020-11-11 Thread Jian Yang
will only alter the behavior of the newer network namespaces. Signed-off-by: Mahesh Bandewar Signed-off-by: Jian Yang --- Documentation/admin-guide/sysctl/net.rst | 11 +++ drivers/net/loopback.c | 7 +++ include/linux/netdevice.h| 1 +

[PATCH net-next] selftests: txtimestamp: add flag for timestamp validation tolerance.

2020-07-27 Thread Jian Yang
From: Jian Yang The txtimestamp selftest sets a fixed 500us tolerance. This value was arrived at experimentally. Some platforms have higher variances. Make this adjustable by adding the following flag: -t N: tolerance (usec) for timestamp validation. Signed-off-by: Jian Yang Acked-by: Willem