Date: Tue, 2 Aug 2016 06:37:12 +0000 From: Phabricator <phabric-noreply@FreeBSD.org> To: freebsd-net@freebsd.org Subject: [Differential] D6689: tcp/lro: Implement hash table for LRO entries. Message-ID: <55c05f816cbae37b80111aff14f946cb@localhost.localdomain> In-Reply-To: <differential-rev-PHID-DREV-gqea3nyz45kho6yqfulz-req@FreeBSD.org> References: <differential-rev-PHID-DREV-gqea3nyz45kho6yqfulz-req@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--b1_55c05f816cbae37b80111aff14f946cb Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: base64 VGhpcyByZXZpc2lvbiB3YXMgYXV0b21hdGljYWxseSB1cGRhdGVkIHRvIHJlZmxlY3QgdGhlIGNv bW1pdHRlZCBjaGFuZ2VzLgpDbG9zZWQgYnkgY29tbWl0IHJTMzAzNjU2OiB0Y3AvbHJvOiBJbXBs ZW1lbnQgaGFzaCB0YWJsZSBmb3IgTFJPIGVudHJpZXMuIChhdXRob3JlZCBieSBzZXBoZSkuCgpD SEFOR0VEIFBSSU9SIFRPIENPTU1JVAogIGh0dHBzOi8vcmV2aWV3cy5mcmVlYnNkLm9yZy9ENjY4 OT92cz0xNzU2OSZpZD0xODk1MyN0b2MKClJFUE9TSVRPUlkKICByUyBGcmVlQlNEIHNyYyByZXBv c2l0b3J5CgpDSEFOR0VTIFNJTkNFIExBU1QgVVBEQVRFCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVi c2Qub3JnL0Q2Njg5P3ZzPTE3NTY5JmlkPTE4OTUzCgpSRVZJU0lPTiBERVRBSUwKICBodHRwczov L3Jldmlld3MuZnJlZWJzZC5vcmcvRDY2ODkKCkFGRkVDVEVEIEZJTEVTCiAgaGVhZC9zeXMvbmV0 aW5ldC90Y3BfbHJvLmMKICBoZWFkL3N5cy9uZXRpbmV0L3RjcF9scm8uaAoKRU1BSUwgUFJFRkVS RU5DRVMKICBodHRwczovL3Jldmlld3MuZnJlZWJzZC5vcmcvc2V0dGluZ3MvcGFuZWwvZW1haWxw cmVmZXJlbmNlcy8KClRvOiBzZXBoZXJvc2FfZ21haWwuY29tLCBnbGViaXVzLCBnbm4sIGJ6LCBy d2F0c29uLCBnYWxsYXRpbiwgaHNlbGFza3ksICN0cmFuc3BvcnQsIHJycwpDYzogZnJlZWJzZC1u ZXQtbGlzdAo= --b1_55c05f816cbae37b80111aff14f946cb Content-Type: text/x-patch; charset=utf-8; name="D6689.18953.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D6689.18953.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL25ldGluZXQvdGNwX2xyby5oIGIvaGVhZC9zeXMvbmV0aW5l dC90Y3BfbHJvLmgKLS0tIGEvaGVhZC9zeXMvbmV0aW5ldC90Y3BfbHJvLmgKKysrIGIvaGVhZC9z eXMvbmV0aW5ldC90Y3BfbHJvLmgKQEAgLTQwLDYgKzQwLDcgQEAKIAogc3RydWN0IGxyb19lbnRy eSB7CiAJTElTVF9FTlRSWShscm9fZW50cnkpCW5leHQ7CisJTElTVF9FTlRSWShscm9fZW50cnkp CWhhc2hfbmV4dDsKIAlzdHJ1Y3QgbWJ1ZgkJKm1faGVhZDsKIAlzdHJ1Y3QgbWJ1ZgkJKm1fdGFp bDsKIAl1bmlvbiB7CkBAIC05NSw2ICs5Niw4IEBACiAJdW5zaWduZWQgc2hvcnQJbHJvX2Fja2Nu dF9saW07CQkvKiBtYXggIyBvZiBhZ2dyZWdhdGVkIEFDS3MgKi8KIAl1bnNpZ25lZCAJbHJvX2xl bmd0aF9saW07CQkvKiBtYXggbGVuIG9mIGFnZ3JlZ2F0ZWQgZGF0YSAqLwogCisJdV9sb25nCQls cm9faGFzaHN6OworCXN0cnVjdCBscm9faGVhZAkqbHJvX2hhc2g7CiAJc3RydWN0IGxyb19oZWFk CWxyb19hY3RpdmU7CiAJc3RydWN0IGxyb19oZWFkCWxyb19mcmVlOwogfTsKZGlmZiAtLWdpdCBh L2hlYWQvc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2hhc2hbaGFzaCAl IGxjLT5scm9faGFzaHN6XTsKKwl9CisKIAkvKiBUcnkgdG8gZmluZCBhIG1hdGNoaW5nIHByZXZp b3VzIHNlZ21lbnQuICovCi0JTElTVF9GT1JFQUNIKGxlLCAmbGMtPmxyb19hY3RpdmUsIG5leHQp IHsKKwlMSVNUX0ZPUkVBQ0gobGUsIGJ1Y2tldCwgaGFzaF9uZXh0KSB7CiAJCWlmIChsZS0+ZWhf dHlwZSAhPSBlaF90eXBlKQogCQkJY29udGludWU7CiAJCWlmIChsZS0+c291cmNlX3BvcnQgIT0g dGgtPnRoX3Nwb3J0IHx8CkBAIC03NzksNyArODM3LDcgQEAKIAkvKiBTdGFydCBhIG5ldyBzZWdt ZW50IGNoYWluLiAqLwogCWxlID0gTElTVF9GSVJTVCgmbGMtPmxyb19mcmVlKTsKIAlMSVNUX1JF TU9WRShsZSwgbmV4dCk7Ci0JdGNwX2xyb19hY3RpdmVfaW5zZXJ0KGxjLCBsZSk7CisJdGNwX2xy b19hY3RpdmVfaW5zZXJ0KGxjLCBidWNrZXQsIGxlKTsKIAlnZXRtaWNyb3RpbWUoJmxlLT5tdGlt ZSk7CiAKIAkvKiBTdGFydCBmaWxsaW5nIGluIGRldGFpbHMuICovCkBAIC04MzcsNiArODk1LDEz IEBACiAJcmV0dXJuICgwKTsKIH0KIAoraW50Cit0Y3BfbHJvX3J4KHN0cnVjdCBscm9fY3RybCAq bGMsIHN0cnVjdCBtYnVmICptLCB1aW50MzJfdCBjc3VtKQoreworCisJcmV0dXJuIHRjcF9scm9f cngyKGxjLCBtLCBjc3VtLCAxKTsKK30KKwogdm9pZAogdGNwX2xyb19xdWV1ZV9tYnVmKHN0cnVj dCBscm9fY3RybCAqbGMsIHN0cnVjdCBtYnVmICptYikKIHsKCg== --b1_55c05f816cbae37b80111aff14f946cb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55c05f816cbae37b80111aff14f946cb>