/* Updates ip_vs_seq if pkt has been resized Assumes already checked proto==IPPROTO_TCP and diff!=0.  */
static void vs_seq_update(struct ip_vs_conn *cp, struct ip_vs_seq *vseq, unsigned flag, __u32 seq, int diff)
/* Updates ip_vs_seq if pkt has been resized Assumes already checked proto==IPPROTO_TCP and diff!=0.  */
static void vs_seq_update(struct ip_vs_conn *cp, struct ip_vs_seq *vseq, unsigned flag, __u32 seq, int diff)
{
	spin_lock(&cp->lock);
	if (!(cp->flags & flag) || after(seq, vseq->init_seq)) {
		vseq->previous_delta = vseq->delta;
		vseq->delta += diff;
		vseq->init_seq = seq;
		cp->flags |= flag;
	}
	spin_unlock(&cp->lock);
}