Date: Sat, 22 Feb 2020 19:48:52 +0000 From: "neel_neelc.org (Neel Chauhan)" <phabric-noreply@FreeBSD.org> To: Phabricator <phabric-noreply@FreeBSD.org> Cc: freebsd-net@freebsd.org Subject: [Differential] D23794: nat64lsn: When allocating, check if we already allocated pg in nat64lsn_alloc_pg() Message-ID: <differential-rev-PHID-DREV-ookq7jrtmoe3xzcxelnj-req@reviews.freebsd.org>
next in thread | raw e-mail | index | archive | help
--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 KSk7CiAKLQkvKgotCSAqIFRPRE86IGNoZWNrIHRoYXQgd2UgZGlkIG5vdCBhbHJlYWR5IGFsbG9j YXRlZCBQRyBpbgotCSAqCSBwcmV2aW91cyBjYWxsLgotCSAqLwotCiAJcmV0ID0gMDsKIAlhbGlh cyA9IGxpbmstPmFsaWFzOwogCS8qIEZpbmQgcGxhY2UgaW4gcGdjaHVuayB3aGVyZSBQRyBjYW4g YmUgYWRkZWQgKi8KIAlzd2l0Y2ggKGppLT5wcm90bykgewogCWNhc2UgSVBQUk9UT19UQ1A6CisJ CWlmICghY2tfcHJfbG9hZF9wdHIoJmFsaWFzLT50Y3BfcGcpKQorCQkJYnJlYWs7CiAJCXJldCA9 IG5hdDY0bHNuX2FsbG9jX3Byb3RvX3BnKGNmZywgYWxpYXMsCiAJCSAgICAmYWxpYXMtPnRjcF9j aHVua21hc2ssIGFsaWFzLT50Y3BfcGdtYXNrLAogCQkgICAgYWxpYXMtPnRjcCwgJmFsaWFzLT50 Y3BfcGcsIGppLT5wcm90byk7CiAJCWJyZWFrOwogCWNhc2UgSVBQUk9UT19VRFA6CisJCWlmICgh Y2tfcHJfbG9hZF9wdHIoJmFsaWFzLT51ZHBfcGcpKQorCQkJYnJlYWs7CiAJCXJldCA9IG5hdDY0 bHNuX2FsbG9jX3Byb3RvX3BnKGNmZywgYWxpYXMsCiAJCSAgICAmYWxpYXMtPnVkcF9jaHVua21h c2ssIGFsaWFzLT51ZHBfcGdtYXNrLAogCQkgICAgYWxpYXMtPnVkcCwgJmFsaWFzLT51ZHBfcGcs IGppLT5wcm90byk7CiAJCWJyZWFrOwogCWNhc2UgSVBQUk9UT19JQ01QOgorCQlpZiAoIWNrX3By X2xvYWRfcHRyKCZhbGlhcy0+aWNtcF9wZykpCisJCQlicmVhazsKIAkJcmV0ID0gbmF0NjRsc25f YWxsb2NfcHJvdG9fcGcoY2ZnLCBhbGlhcywKIAkJICAgICZhbGlhcy0+aWNtcF9jaHVua21hc2ss IGFsaWFzLT5pY21wX3BnbWFzaywKIAkJICAgIGFsaWFzLT5pY21wLCAmYWxpYXMtPmljbXBfcGcs IGppLT5wcm90byk7Cgo= --b1_0b89657564af586c524fb137e2c4d0de--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?differential-rev-PHID-DREV-ookq7jrtmoe3xzcxelnj-req>