From nobody Wed Feb 23 00:09:07 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5ADE319D2B3E; Wed, 23 Feb 2022 00:09:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K3Gc31kXKz4WPX; Wed, 23 Feb 2022 00:09:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645574947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iwR5RmGKeTgAv8jq8x60uQ16OruKgTULVsVCdWEzH/4=; b=wlFtTjGX3YFSgxu1fgJ21NRElAvHgWKO3/VVPOJCYV8AELIYFJq9p9UTjhuLiUZJbvpIP8 RCaLlRVXzJxuDavGFcJyVl6TR/nN4ysoFN4di3IEsZqYKqUFRDbuVX7SUoyhx6R1TLdLjT UuXts5f25r6UCO5i2VloeNwiSHsZjnR5g55z8kEacEGdQgqirNKNmudM0bZr2Jty/C4O0q R3yDam6C7zZi/9kqBlH3GjluwxmkuMUbfds3le1cbAWN/cb+bfT1kMWVxq25+Sr/R+DgsS ZOlRoV8hUowUIYXDOtvPuW/u9e9YDVFeiX3ZqWCyXykg3RlYsLZbUH32Z0by3A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 199655F68; Wed, 23 Feb 2022 00:09:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21N097w4066061; Wed, 23 Feb 2022 00:09:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21N097Db066060; Wed, 23 Feb 2022 00:09:07 GMT (envelope-from git) Date: Wed, 23 Feb 2022 00:09:07 GMT Message-Id: <202202230009.21N097Db066060@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: b20c5963deae - stable/13 - sctp: improve counting of incoming chunks List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b20c5963deaee7c61160031eb78cb9a50698f8e2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645574947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iwR5RmGKeTgAv8jq8x60uQ16OruKgTULVsVCdWEzH/4=; b=OtNvkyu/hCJLXwk2XIEvJcIb8GRqxjVamdxevyJ+G6LYm0FDIAYrQ/+lV2RcQMx66T3Mht 0oJtml/Dsy+/FIAsbZ4QWQYhEpxKIXspiJBQrZuHtL04wstgK0wLleDuRRQdSwxTXtvAVP euDueWsKxqsORTVg3YpRUT9uoJQgU7obBQ41pM1P8idhe0suoqszp1iCuo+y5dn20yORIx xzK7CZtKT9UtyWIQNTN/XNhXGY+tLFA57qbmTtYDh3To3Vd9I5pQTdRfQpa4qxy2rqPx1f hyIj+IsKljT69RLfvifzgusg1oAduHyu3r1pEqepJANLY3nCwgpoQg3Pt2pFJQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645574947; a=rsa-sha256; cv=none; b=s0MbjwNpFMOpyfU7qo/yP6gfePJ+gOsU7mDM8+HaTmX9sPtCQXvEGcFxT1zCmwprzqBK/j 7xZwEIDv0TdsDJMhoLoEMw7Hwz7WJrHeRV4yimhAI0SPsy8wvfBWhtZDAwgk6qja4y2zvC m1LrFAzN1JwEdcsltjBFilRw3cQxqz5RhaRgcnO5aaSCDzoAdBfVXVv+I7Tbon8C1+jg4j 5HV3p/WvwNIf7PvptgXF5ZCrfwauWjucXShq3AmYgWtUycFeqKxeNwjDUiFJ7olgG7CNfW X+PjqfDTrhbhsMOvDM7ux4FF5+96oS/4Zgrr5Xq5EaL9y//XdxvnXz+6vh1hqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=b20c5963deaee7c61160031eb78cb9a50698f8e2 commit b20c5963deaee7c61160031eb78cb9a50698f8e2 Author: Michael Tuexen AuthorDate: 2022-01-01 19:59:47 +0000 Commit: Michael Tuexen CommitDate: 2022-02-23 00:07:31 +0000 sctp: improve counting of incoming chunks (cherry picked from commit 502d5e8500b9537d90ae225eed2b600ddcef2afd) --- sys/netinet/sctp_input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index f4a698b3a775..c86e369e2b92 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -5352,12 +5352,14 @@ sctp_common_input_processing(struct mbuf **mm, int iphlen, int offset, int lengt goto out; } if (ch->chunk_type == SCTP_SHUTDOWN_ACK) { + SCTP_STAT_INCR_COUNTER64(sctps_incontrolchunks); sctp_send_shutdown_complete2(src, dst, sh, mflowtype, mflowid, fibnum, vrf_id, port); goto out; } if (ch->chunk_type == SCTP_SHUTDOWN_COMPLETE) { + SCTP_STAT_INCR_COUNTER64(sctps_incontrolchunks); goto out; } if (ch->chunk_type != SCTP_ABORT_ASSOCIATION) {