From nobody Mon Jun 27 08:28:30 2022 X-Original-To: dev-commits-src-main@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 7C787874C2B; Mon, 27 Jun 2022 08:28:30 +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 4LWgq226wcz4g8t; Mon, 27 Jun 2022 08:28:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656318510; 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=CT6+8Ua8vZicldbU2DMoG8Cg1bQOuXp4kefpFreOXhA=; b=rufznjBjrU4sySGmpA/2hc2+Dnp+LZTm50NfwAvUjmZ4zjNr+kNoJ9Pl3UV+ZydcaFqjTm wrLBOu0m1HKs35ba7+JY72xBUOwwmYXSOxH2vo+z8MR5+WQLEgPZzO9cglEyoRdj2fQBdO SwNYGZgT1TYL5uJbUznNvmtl0RizuXV9jxNsVOfdrcCSH76P4TbuD2QMk6EL5QJlftTUFd vJjBJZlapRVCOB6OTWarVxGQ0Wy2e3IYsSEo7MwfGx0W3vJZ/D1cd7x7D134HZ7S7Yjg5X noPXRbDcgFhjfRGMIw+OebVIwgUh+PZzBgvUvyzyPpSXZ0lKX2+nx7EXdazOqQ== 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 1E1D924F09; Mon, 27 Jun 2022 08:28:30 +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 25R8SUF1006940; Mon, 27 Jun 2022 08:28:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25R8SU1J006939; Mon, 27 Jun 2022 08:28:30 GMT (envelope-from git) Date: Mon, 27 Jun 2022 08:28:30 GMT Message-Id: <202206270828.25R8SU1J006939@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 1e824ee84f46 - main - if_bridge tests: test adding interfaces with different MTU List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1e824ee84f46b4a086bc3c7c528c0762e388bc66 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656318510; 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=CT6+8Ua8vZicldbU2DMoG8Cg1bQOuXp4kefpFreOXhA=; b=EIL1QSaCxmjB7DileRC6jbii093HjIQEJ11tJQFWbTOWUc0AnyYnUvvY5TdI4Dc/b/N1gF DMMAQ6DbCLmRnobhvRuqPIXXM5iVRI/I/l3IqLJw6NB1VhnwqsXULl9gUDS3O8VZdWrYjI FCxKNcZ0wBiCkzdx7P2QrWNzSyfyOg0G/PjkegKSs6v4UmaGyV6BIaz8QLslQHok9yUvfn sPkpOCN2XuIdUxrH48Ga7qZxGKa/iPwqGqpOD8++lZAf9S8MNeqN0Y5D+RSUcdImzN6xVn yYHIbLjmj0zm/6CEvHcm4laIclCLpXJbUgiHKyy2mNHp0qfS5EQzpvV5L7gjmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656318510; a=rsa-sha256; cv=none; b=r0D2lalRUl//T8y/+buIjv86f4c1lKCJQoldfWedJg2aYrvupxYU+cja4AeIMVvpPAeXWY BEqyQAL86dGxAHZjhygFrChDjyyjGLDvArIIVmwUlWLZzfukI5RtNOBw7qEsU9vp3M9/9O C0nyXq4Bpby3CP2NKD3LUhfOA96H8tWCF/JHDtjxFSZUqUAq2qJilo8RJaz5JQPo/oBs3h vUoidMspOF5VEcP56P4BOTB7EKDEqibTwARMSWIMZZURdFtK14/ggLd+cgnboMgjfu0bqH SbYwkv0TGMr9gmaOpNkkRe73TT98jk02CjBjBqBOxlWC2KhFdd0YgxSI6x3eGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=1e824ee84f46b4a086bc3c7c528c0762e388bc66 commit 1e824ee84f46b4a086bc3c7c528c0762e388bc66 Author: Kristof Provost AuthorDate: 2022-06-25 11:47:31 +0000 Commit: Kristof Provost CommitDate: 2022-06-27 06:27:28 +0000 if_bridge tests: test adding interfaces with different MTU We now allow new bridge members to be added with a different MTU from the bridge. We change the interface MTU to match the bridge. Test this. PR: 264883 --- tests/sys/net/if_bridge_test.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/sys/net/if_bridge_test.sh b/tests/sys/net/if_bridge_test.sh index 4cc935ceefa8..275a3bae5841 100755 --- a/tests/sys/net/if_bridge_test.sh +++ b/tests/sys/net/if_bridge_test.sh @@ -558,9 +558,6 @@ mtu_body() atf_check -s exit:0 \ ifconfig ${bridge} addm ${epair}a - # Can't add an interface with an MTU mismatch - atf_check -s exit:1 -e ignore \ - ifconfig ${bridge} addm ${gif} ifconfig ${gif} mtu 1500 atf_check -s exit:0 \ @@ -586,6 +583,17 @@ mtu_body() atf_check -s exit:1 -e ignore \ ifconfig ${epair}a mtu 1900 check_mtu ${epair}a 2000 + + # Test adding an interface with a different MTU + new_epair=$(vnet_mkepair) + check_mtu ${new_epair}a 1500 + atf_check -s exit:0 -e ignore \ + ifconfig ${bridge} addm ${new_epair}a + + check_mtu ${bridge} 2000 + check_mtu ${gif} 2000 + check_mtu ${epair}a 2000 + check_mtu ${new_epair}a 2000 } mtu_cleanup()