From owner-freebsd-net@freebsd.org Sat Feb 22 19:48:52 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5E8F724AC62 for ; Sat, 22 Feb 2020 19:48:52 +0000 (UTC) (envelope-from daemon-user@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48PzR814Clz3xL6; Sat, 22 Feb 2020 19:48:52 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from reviews.nyi.freebsd.org (reviews.nyi.freebsd.org [IPv6:2610:1c1:1:607c::16:b]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 1A451994; Sat, 22 Feb 2020 19:48:52 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by reviews.nyi.freebsd.org (Postfix, from userid 1346) id 19417353FB8; Sat, 22 Feb 2020 19:48:52 +0000 (UTC) Date: Sat, 22 Feb 2020 19:48:52 +0000 To: Phabricator From: "neel_neelc.org (Neel Chauhan)" Cc: freebsd-net@freebsd.org Reply-to: "neel_neelc.org (Neel Chauhan)" Subject: [Differential] D23794: nat64lsn: When allocating, check if we already allocated pg in nat64lsn_alloc_pg() Message-ID: X-Priority: 3 X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , X-Herald-Rules: <28>, <81>, <128>, <67> X-Phabricator-Projects: <#network> X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Precedence: bulk Thread-Topic: PHID-DREV-ookq7jrtmoe3xzcxelnj X-Phabricator-Mail-ID: 1833671 X-Phabricator-Send-Attempt: q2c55bz5pgqyoiro Thread-Index: NmE2MzdmMGVjZjM4ODg1MzNiN2Q0ZTQwMmRk X-Phabricator-Stamps: actor(@neel_neelc.org) application(Differential) author(@neel_neelc.org) herald(H28) herald(H67) herald(H81) herald(H128) monogram(D23794) new() object-type(DREV) phid(PHID-DREV-ookq7jrtmoe3xzcxelnj) revision-repository(rS) revision-status(needs-review) subscriber(#contributor_reviews_base) subscriber(@ae) subscriber(@freebsd-net-list) subscriber(@imp) subscriber(@melifaro) tag(#network) via(web) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_0b89657564af586c524fb137e2c4d0de" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Feb 2020 19:48:52 -0000 --b1_0b89657564af586c524fb137e2c4d0de Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: base64 bmVlbF9uZWVsYy5vcmcgY3JlYXRlZCB0aGlzIHJldmlzaW9uLgpuZWVsX25lZWxjLm9yZyBhZGRl ZCBhIHByb2plY3Q6IG5ldHdvcmsuCkhlcmFsZCBhZGRlZCBzdWJzY3JpYmVyczogQ29udHJpYnV0 b3IgUmV2aWV3cyAoYmFzZSksIG1lbGlmYXJvLCBhZSwgaW1wLgoKUkVWSVNJT04gU1VNTUFSWQog IG5hdDY0bHNuOiBXaGVuIGFsbG9jYXRpbmcsIGNoZWNrIGlmIHdlIGFscmVhZHkgYWxsb2NhdGVk IHBnIGluIG5hdDY0bHNuX2FsbG9jX3BnKCkuCiAgCiAgU3VibWl0dGVkIGJ5OiBOZWVsIENoYXVo YW4gPG5lZWwgQVQgbmVlbGMgRE9UIG9yZz4KClJFUE9TSVRPUlkKICByUyBGcmVlQlNEIHNyYyBy ZXBvc2l0b3J5CgpSRVZJU0lPTiBERVRBSUwKICBodHRwczovL3Jldmlld3MuZnJlZWJzZC5vcmcv RDIzNzk0CgpBRkZFQ1RFRCBGSUxFUwogIHN5cy9uZXRwZmlsL2lwZncvbmF0NjQvbmF0NjRsc24u YwoKRU1BSUwgUFJFRkVSRU5DRVMKICBodHRwczovL3Jldmlld3MuZnJlZWJzZC5vcmcvc2V0dGlu Z3MvcGFuZWwvZW1haWxwcmVmZXJlbmNlcy8KClRvOiBuZWVsX25lZWxjLm9yZwpDYzogaW1wLCBh ZSwgbWVsaWZhcm8sIGZyZWVic2QtbmV0LWxpc3QsICNjb250cmlidXRvcl9yZXZpZXdzX2Jhc2Us IG1tYWN5LCBrcHJhdmVlbi5sa21sX2dtYWlsLmNvbSwgbWFyY25hcmNfZ21haWwuY29tLCBzaW1v bnZlbGxhX2dtYWlsLmNvbSwgbm92aWNlX3RlY2hpZS5jb20sIHRvbW1pLnBlcm5pbGFfaWtpLmZp Cg== --b1_0b89657564af586c524fb137e2c4d0de Content-Type: text/x-patch; charset=utf-8; name="D23794.68680.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D23794.68680.patch" ZGlmZiAtLWdpdCBhL3N5cy9uZXRwZmlsL2lwZncvbmF0NjQvbmF0NjRsc24uYyBiL3N5cy9uZXRw ZmlsL2lwZncvbmF0NjQvbmF0NjRsc24uYwotLS0gYS9zeXMvbmV0cGZpbC9pcGZ3L25hdDY0L25h dDY0bHNuLmMKKysrIGIvc3lzL25ldHBmaWwvaXBmdy9uYXQ2NC9uYXQ2NGxzbi5jCkBAIC0xMTQz LDI2ICsxMTQzLDI3IEBACiAJaWYgKGxpbmsgPT0gTlVMTCkKIAkJcmV0dXJuIChQR19FUlJPUigx KSk7CiAKLQkvKgotCSAqIFRPRE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