From 6ef350297c5fe62734c9d88f5a943e3998c7cd7e Mon Sep 17 00:00:00 2001 From: liangbotong Date: Thu, 8 Jun 2023 09:29:16 +0800 Subject: [PATCH] NewIP rto and license adjustment 1. The header comment contains the copyright license, feature description, author, and creation date. 2. The NewIP rto is changed to 20. Signed-off-by: liangbotong --- newip/apply_newip.sh | 6 ++++++ newip/src/common/nip_addr.h | 2 +- newip/src/linux-5.10/net/newip/tcp_nip_parameter.c | 2 +- newip/tools/wireshark_cfg_for_newip.lua | 9 ++++++--- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/newip/apply_newip.sh b/newip/apply_newip.sh index 0b111a6..43eea50 100644 --- a/newip/apply_newip.sh +++ b/newip/apply_newip.sh @@ -2,6 +2,12 @@ # SPDX-License-Identifier: GPL-2.0 # Copyright (c) 2022 Huawei Device Co., Ltd. # +# Description: Create a symbolic link for NewIP in Linux 5.10 +# +# Author: Yang Yanjun +# +# Data: 2022-07-25 +# set -e diff --git a/newip/src/common/nip_addr.h b/newip/src/common/nip_addr.h index 8535b5c..3a461fe 100644 --- a/newip/src/common/nip_addr.h +++ b/newip/src/common/nip_addr.h @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later WITH Linux-syscall-note */ +/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * Copyright (c) 2022 Huawei Device Co., Ltd. * diff --git a/newip/src/linux-5.10/net/newip/tcp_nip_parameter.c b/newip/src/linux-5.10/net/newip/tcp_nip_parameter.c index 8c21542..1cae513 100644 --- a/newip/src/linux-5.10/net/newip/tcp_nip_parameter.c +++ b/newip/src/linux-5.10/net/newip/tcp_nip_parameter.c @@ -34,7 +34,7 @@ module_param_named(af_ninet, g_af_ninet, int, 0444); /* Rto timeout timer period (HZ/n) */ /*********************************************************************************************/ /* RTT RTO in the small-delay scenario */ -int g_nip_rto = 5; +int g_nip_rto = 20; module_param_named(nip_rto, g_nip_rto, int, 0644); int get_nip_rto(void) diff --git a/newip/tools/wireshark_cfg_for_newip.lua b/newip/tools/wireshark_cfg_for_newip.lua index f9f9fab..7a4eaf7 100644 --- a/newip/tools/wireshark_cfg_for_newip.lua +++ b/newip/tools/wireshark_cfg_for_newip.lua @@ -2,9 +2,12 @@ require "bit32" --[[ SPDX-License-Identifier: GPL-2.0-or-later Copyright (c) 2022 Huawei Device Co., Ltd. -Function : wireshark lua configure for NewIP protocol stack -Author : yangyanjun -Edit Date : 2022/5/27 + +Description: wireshark lua configure for NewIP protocol stack + +Author: Yang Yanjun + +Data: 2022-05-27 --]] do -- lua begin -- Gitee