From: zhang kai <zhangkaiheb@126.com>
To: wensong@linux-vs.org, horms@verge.net.au, ja@ssi.bg,
davem@davemloft.net, kuznet@ms2.inr.ac.ru,
yoshfuji@linux-ipv6.org
Cc: lvs-devel@vger.kernel.org, netdev@vger.kernel.org
Subject: [PATCH] ipvs: change type of delta and previous_delta in ip_vs_seq.
Date: Tue, 20 Aug 2019 08:37:18 +0800 [thread overview]
Message-ID: <20190820003718.GA16620@toolchain> (raw)
In NAT forwarding mode, Applications may decrease the size of packets,
and TCP sequences will get smaller, so both of variables will be negetive
values in this case.
Signed-off-by: zhang kai <zhangkaiheb@126.com>
---
include/net/ip_vs.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 3759167f91f5..de7e75063c7c 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -346,8 +346,8 @@ enum ip_vs_sctp_states {
*/
struct ip_vs_seq {
__u32 init_seq; /* Add delta from this seq */
- __u32 delta; /* Delta in sequence numbers */
- __u32 previous_delta; /* Delta in sequence numbers
+ __s32 delta; /* Delta in sequence numbers */
+ __s32 previous_delta; /* Delta in sequence numbers
* before last resized pkt */
};
--
2.17.1
next reply other threads:[~2019-08-20 0:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-20 0:37 zhang kai [this message]
2019-08-20 10:00 ` [PATCH] ipvs: change type of delta and previous_delta in ip_vs_seq Julian Anastasov
2019-08-20 10:00 ` Julian Anastasov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190820003718.GA16620@toolchain \
--to=zhangkaiheb@126.com \
--cc=davem@davemloft.net \
--cc=horms@verge.net.au \
--cc=ja@ssi.bg \
--cc=kuznet@ms2.inr.ac.ru \
--cc=lvs-devel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=wensong@linux-vs.org \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.