{"action":"created","comment":{"url":"https://api.github.com/repos/codilime/contrail-vrouter/pulls/comments/109396515","pull_request_review_id":30494093,"id":109396515,"diff_hunk":"@@ -1,44 +1,48 @@\n-/*-\n- * Copyright (c) 2014 Semihalf\n- * All rights reserved.\n- *\n- * Redistribution and use in source and binary forms, with or without\n- * modification, are permitted provided that the following conditions\n- * are met:\n- * 1. Redistributions of source code must retain the above copyright\n- *    notice, this list of conditions and the following disclaimer.\n- * 2. Redistributions in binary form must reproduce the above copyright\n- *    notice, this list of conditions and the following disclaimer in the\n- *    documentation and/or other materials provided with the distribution.\n- *\n- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\n- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n- * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\n- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n- * SUCH DAMAGE.\n- *\n- * $FreeBSD$\n- */\n-\n #include \"vrouter.h\"\n #include \"vr_flow.h\"\n \n-void\n-vr_mem_exit(void)\n-{\n+#define MEMORY_TAG 'MEM'\n \n-\t\n-}\n+extern void *vr_flow_table;\n+extern void *vr_oflow_table;\n+\n+PMDL mdl_mem   = NULL;\n+PVOID user_mem = NULL;\n \n int\n-vr_mem_init(void)\n+memory_init(void)\n {\n+    size_t flow_table_size;\n+\n+    compute_size_oflow_table();\n+\n+    flow_table_size = VR_FLOW_TABLE_SIZE + VR_OFLOW_TABLE_SIZE;\n+\n+    user_mem = ExAllocatePoolWithTag(NonPagedPoolNx, flow_table_size, MEMORY_TAG);\n+\n+    if (user_mem == NULL) {\n+        return STATUS_INSUFFICIENT_RESOURCES;\n+    }\n \n-\treturn 0;\n+    mdl_mem = IoAllocateMdl(user_mem, flow_table_size, FALSE, FALSE, NULL);\n+\n+    if (mdl_mem == NULL) {\n+        return STATUS_INSUFFICIENT_RESOURCES;","path":"windows/vr_mem.c","position":null,"original_position":65,"commit_id":"1d3b83b26c71bacf26479a2f31d1026b4758a782","original_commit_id":"90aaedcfee10956cf94d6bfa3b4c76c61b8e971d","user":{"login":"mmasztalerczuk","id":2396885,"avatar_url":"https://avatars0.githubusercontent.com/u/2396885?v=3","gravatar_id":"","url":"https://api.github.com/users/mmasztalerczuk","html_url":"https://github.com/mmasztalerczuk","followers_url":"https://api.github.com/users/mmasztalerczuk/followers","following_url":"https://api.github.com/users/mmasztalerczuk/following{/other_user}","gists_url":"https://api.github.com/users/mmasztalerczuk/gists{/gist_id}","starred_url":"https://api.github.com/users/mmasztalerczuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmasztalerczuk/subscriptions","organizations_url":"https://api.github.com/users/mmasztalerczuk/orgs","repos_url":"https://api.github.com/users/mmasztalerczuk/repos","events_url":"https://api.github.com/users/mmasztalerczuk/events{/privacy}","received_events_url":"https://api.github.com/users/mmasztalerczuk/received_events","type":"User","site_admin":false},"body":":+1:","created_at":"2017-04-03T11:42:17Z","updated_at":"2017-04-03T11:42:17Z","html_url":"https://github.com/codilime/contrail-vrouter/pull/57#discussion_r109396515","pull_request_url":"https://api.github.com/repos/codilime/contrail-vrouter/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/codilime/contrail-vrouter/pulls/comments/109396515"},"html":{"href":"https://github.com/codilime/contrail-vrouter/pull/57#discussion_r109396515"},"pull_request":{"href":"https://api.github.com/repos/codilime/contrail-vrouter/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/codilime/contrail-vrouter/pulls/57","id":113158818,"html_url":"https://github.com/codilime/contrail-vrouter/pull/57","diff_url":"https://github.com/codilime/contrail-vrouter/pull/57.diff","patch_url":"https://github.com/codilime/contrail-vrouter/pull/57.patch","issue_url":"https://api.github.com/repos/codilime/contrail-vrouter/issues/57","number":57,"state":"open","locked":false,"title":"JW-337 Fix Section (introduce changes from pull request #42)","user":{"login":"mmasztalerczuk","id":2396885,"avatar_url":"https://avatars0.githubusercontent.com/u/2396885?v=3","gravatar_id":"","url":"https://api.github.com/users/mmasztalerczuk","html_url":"https://github.com/mmasztalerczuk","followers_url":"https://api.github.com/users/mmasztalerczuk/followers","following_url":"https://api.github.com/users/mmasztalerczuk/following{/other_user}","gists_url":"https://api.github.com/users/mmasztalerczuk/gists{/gist_id}","starred_url":"https://api.github.com/users/mmasztalerczuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmasztalerczuk/subscriptions","organizations_url":"https://api.github.com/users/mmasztalerczuk/orgs","repos_url":"https://api.github.com/users/mmasztalerczuk/repos","events_url":"https://api.github.com/users/mmasztalerczuk/events{/privacy}","received_events_url":"https://api.github.com/users/mmasztalerczuk/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-29T09:51:10Z","updated_at":"2017-04-03T11:42:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82ad6534db0b7caea6889070304e3863f26f2cdd","assignee":{"login":"mmasztalerczuk","id":2396885,"avatar_url":"https://avatars0.githubusercontent.com/u/2396885?v=3","gravatar_id":"","url":"https://api.github.com/users/mmasztalerczuk","html_url":"https://github.com/mmasztalerczuk","followers_url":"https://api.github.com/users/mmasztalerczuk/followers","following_url":"https://api.github.com/users/mmasztalerczuk/following{/other_user}","gists_url":"https://api.github.com/users/mmasztalerczuk/gists{/gist_id}","starred_url":"https://api.github.com/users/mmasztalerczuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmasztalerczuk/subscriptions","organizations_url":"https://api.github.com/users/mmasztalerczuk/orgs","repos_url":"https://api.github.com/users/mmasztalerczuk/repos","events_url":"https://api.github.com/users/mmasztalerczuk/events{/privacy}","received_events_url":"https://api.github.com/users/mmasztalerczuk/received_events","type":"User","site_admin":false},"assignees":[{"login":"mmasztalerczuk","id":2396885,"avatar_url":"https://avatars0.githubusercontent.com/u/2396885?v=3","gravatar_id":"","url":"https://api.github.com/users/mmasztalerczuk","html_url":"https://github.com/mmasztalerczuk","followers_url":"https://api.github.com/users/mmasztalerczuk/followers","following_url":"https://api.github.com/users/mmasztalerczuk/following{/other_user}","gists_url":"https://api.github.com/users/mmasztalerczuk/gists{/gist_id}","starred_url":"https://api.github.com/users/mmasztalerczuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmasztalerczuk/subscriptions","organizations_url":"https://api.github.com/users/mmasztalerczuk/orgs","repos_url":"https://api.github.com/users/mmasztalerczuk/repos","events_url":"https://api.github.com/users/mmasztalerczuk/events{/privacy}","received_events_url":"https://api.github.com/users/mmasztalerczuk/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/codilime/contrail-vrouter/pulls/57/commits","review_comments_url":"https://api.github.com/repos/codilime/contrail-vrouter/pulls/57/comments","review_comment_url":"https://api.github.com/repos/codilime/contrail-vrouter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codilime/contrail-vrouter/issues/57/comments","statuses_url":"https://api.github.com/repos/codilime/contrail-vrouter/statuses/1d3b83b26c71bacf26479a2f31d1026b4758a782","head":{"label":"codilime:JW_337","ref":"JW_337","sha":"1d3b83b26c71bacf26479a2f31d1026b4758a782","user":{"login":"codilime","id":2143695,"avatar_url":"https://avatars2.githubusercontent.com/u/2143695?v=3","gravatar_id":"","url":"https://api.github.com/users/codilime","html_url":"https://github.com/codilime","followers_url":"https://api.github.com/users/codilime/followers","following_url":"https://api.github.com/users/codilime/following{/other_user}","gists_url":"https://api.github.com/users/codilime/gists{/gist_id}","starred_url":"https://api.github.com/users/codilime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codilime/subscriptions","organizations_url":"https://api.github.com/users/codilime/orgs","repos_url":"https://api.github.com/users/codilime/repos","events_url":"https://api.github.com/users/codilime/events{/privacy}","received_events_url":"https://api.github.com/users/codilime/received_events","type":"Organization","site_admin":false},"repo":{"id":72856684,"name":"contrail-vrouter","full_name":"codilime/contrail-vrouter","owner":{"login":"codilime","id":2143695,"avatar_url":"https://avatars2.githubusercontent.com/u/2143695?v=3","gravatar_id":"","url":"https://api.github.com/users/codilime","html_url":"https://github.com/codilime","followers_url":"https://api.github.com/users/codilime/followers","following_url":"https://api.github.com/users/codilime/following{/other_user}","gists_url":"https://api.github.com/users/codilime/gists{/gist_id}","starred_url":"https://api.github.com/users/codilime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codilime/subscriptions","organizations_url":"https://api.github.com/users/codilime/orgs","repos_url":"https://api.github.com/users/codilime/repos","events_url":"https://api.github.com/users/codilime/events{/privacy}","received_events_url":"https://api.github.com/users/codilime/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codilime/contrail-vrouter","description":"Contrail Virtual Router","fork":true,"url":"https://api.github.com/repos/codilime/contrail-vrouter","forks_url":"https://api.github.com/repos/codilime/contrail-vrouter/forks","keys_url":"https://api.github.com/repos/codilime/contrail-vrouter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codilime/contrail-vrouter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codilime/contrail-vrouter/teams","hooks_url":"https://api.github.com/repos/codilime/contrail-vrouter/hooks","issue_events_url":"https://api.github.com/repos/codilime/contrail-vrouter/issues/events{/number}","events_url":"https://api.github.com/repos/codilime/contrail-vrouter/events","assignees_url":"https://api.github.com/repos/codilime/contrail-vrouter/assignees{/user}","branches_url":"https://api.github.com/repos/codilime/contrail-vrouter/branches{/branch}","tags_url":"https://api.github.com/repos/codilime/contrail-vrouter/tags","blobs_url":"https://api.github.com/repos/codilime/contrail-vrouter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codilime/contrail-vrouter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codilime/contrail-vrouter/git/refs{/sha}","trees_url":"https://api.github.com/repos/codilime/contrail-vrouter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codilime/contrail-vrouter/statuses/{sha}","languages_url":"https://api.github.com/repos/codilime/contrail-vrouter/languages","stargazers_url":"https://api.github.com/repos/codilime/contrail-vrouter/stargazers","contributors_url":"https://api.github.com/repos/codilime/contrail-vrouter/contributors","subscribers_url":"https://api.github.com/repos/codilime/contrail-vrouter/subscribers","subscription_url":"https://api.github.com/repos/codilime/contrail-vrouter/subscription","commits_url":"https://api.github.com/repos/codilime/contrail-vrouter/commits{/sha}","git_commits_url":"https://api.github.com/repos/codilime/contrail-vrouter/git/commits{/sha}","comments_url":"https://api.github.com/repos/codilime/contrail-vrouter/comments{/number}","issue_comment_url":"https://api.github.com/repos/codilime/contrail-vrouter/issues/comments{/number}","contents_url":"https://api.github.com/repos/codilime/contrail-vrouter/contents/{+path}","compare_url":"https://api.github.com/repos/codilime/contrail-vrouter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codilime/contrail-vrouter/merges","archive_url":"https://api.github.com/repos/codilime/contrail-vrouter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codilime/contrail-vrouter/downloads","issues_url":"https://api.github.com/repos/codilime/contrail-vrouter/issues{/number}","pulls_url":"https://api.github.com/repos/codilime/contrail-vrouter/pulls{/number}","milestones_url":"https://api.github.com/repos/codilime/contrail-vrouter/milestones{/number}","notifications_url":"https://api.github.com/repos/codilime/contrail-vrouter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codilime/contrail-vrouter/labels{/name}","releases_url":"https://api.github.com/repos/codilime/contrail-vrouter/releases{/id}","deployments_url":"https://api.github.com/repos/codilime/contrail-vrouter/deployments","created_at":"2016-11-04T14:49:29Z","updated_at":"2016-11-04T14:49:32Z","pushed_at":"2017-04-03T11:41:54Z","git_url":"git://github.com/codilime/contrail-vrouter.git","ssh_url":"git@github.com:codilime/contrail-vrouter.git","clone_url":"https://github.com/codilime/contrail-vrouter.git","svn_url":"https://github.com/codilime/contrail-vrouter","homepage":null,"size":10388,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":0,"default_branch":"windows"}},"base":{"label":"codilime:windows","ref":"windows","sha":"f1ce8ddfbb1be4b77f18e0748afb583dcb63ef34","user":{"login":"codilime","id":2143695,"avatar_url":"https://avatars2.githubusercontent.com/u/2143695?v=3","gravatar_id":"","url":"https://api.github.com/users/codilime","html_url":"https://github.com/codilime","followers_url":"https://api.github.com/users/codilime/followers","following_url":"https://api.github.com/users/codilime/following{/other_user}","gists_url":"https://api.github.com/users/codilime/gists{/gist_id}","starred_url":"https://api.github.com/users/codilime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codilime/subscriptions","organizations_url":"https://api.github.com/users/codilime/orgs","repos_url":"https://api.github.com/users/codilime/repos","events_url":"https://api.github.com/users/codilime/events{/privacy}","received_events_url":"https://api.github.com/users/codilime/received_events","type":"Organization","site_admin":false},"repo":{"id":72856684,"name":"contrail-vrouter","full_name":"codilime/contrail-vrouter","owner":{"login":"codilime","id":2143695,"avatar_url":"https://avatars2.githubusercontent.com/u/2143695?v=3","gravatar_id":"","url":"https://api.github.com/users/codilime","html_url":"https://github.com/codilime","followers_url":"https://api.github.com/users/codilime/followers","following_url":"https://api.github.com/users/codilime/following{/other_user}","gists_url":"https://api.github.com/users/codilime/gists{/gist_id}","starred_url":"https://api.github.com/users/codilime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codilime/subscriptions","organizations_url":"https://api.github.com/users/codilime/orgs","repos_url":"https://api.github.com/users/codilime/repos","events_url":"https://api.github.com/users/codilime/events{/privacy}","received_events_url":"https://api.github.com/users/codilime/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codilime/contrail-vrouter","description":"Contrail Virtual Router","fork":true,"url":"https://api.github.com/repos/codilime/contrail-vrouter","forks_url":"https://api.github.com/repos/codilime/contrail-vrouter/forks","keys_url":"https://api.github.com/repos/codilime/contrail-vrouter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codilime/contrail-vrouter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codilime/contrail-vrouter/teams","hooks_url":"https://api.github.com/repos/codilime/contrail-vrouter/hooks","issue_events_url":"https://api.github.com/repos/codilime/contrail-vrouter/issues/events{/number}","events_url":"https://api.github.com/repos/codilime/contrail-vrouter/events","assignees_url":"https://api.github.com/repos/codilime/contrail-vrouter/assignees{/user}","branches_url":"https://api.github.com/repos/codilime/contrail-vrouter/branches{/branch}","tags_url":"https://api.github.com/repos/codilime/contrail-vrouter/tags","blobs_url":"https://api.github.com/repos/codilime/contrail-vrouter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codilime/contrail-vrouter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codilime/contrail-vrouter/git/refs{/sha}","trees_url":"https://api.github.com/repos/codilime/contrail-vrouter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codilime/contrail-vrouter/statuses/{sha}","languages_url":"https://api.github.com/repos/codilime/contrail-vrouter/languages","stargazers_url":"https://api.github.com/repos/codilime/contrail-vrouter/stargazers","contributors_url":"https://api.github.com/repos/codilime/contrail-vrouter/contributors","subscribers_url":"https://api.github.com/repos/codilime/contrail-vrouter/subscribers","subscription_url":"https://api.github.com/repos/codilime/contrail-vrouter/subscription","commits_url":"https://api.github.com/repos/codilime/contrail-vrouter/commits{/sha}","git_commits_url":"https://api.github.com/repos/codilime/contrail-vrouter/git/commits{/sha}","comments_url":"https://api.github.com/repos/codilime/contrail-vrouter/comments{/number}","issue_comment_url":"https://api.github.com/repos/codilime/contrail-vrouter/issues/comments{/number}","contents_url":"https://api.github.com/repos/codilime/contrail-vrouter/contents/{+path}","compare_url":"https://api.github.com/repos/codilime/contrail-vrouter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codilime/contrail-vrouter/merges","archive_url":"https://api.github.com/repos/codilime/contrail-vrouter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codilime/contrail-vrouter/downloads","issues_url":"https://api.github.com/repos/codilime/contrail-vrouter/issues{/number}","pulls_url":"https://api.github.com/repos/codilime/contrail-vrouter/pulls{/number}","milestones_url":"https://api.github.com/repos/codilime/contrail-vrouter/milestones{/number}","notifications_url":"https://api.github.com/repos/codilime/contrail-vrouter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codilime/contrail-vrouter/labels{/name}","releases_url":"https://api.github.com/repos/codilime/contrail-vrouter/releases{/id}","deployments_url":"https://api.github.com/repos/codilime/contrail-vrouter/deployments","created_at":"2016-11-04T14:49:29Z","updated_at":"2016-11-04T14:49:32Z","pushed_at":"2017-04-03T11:41:54Z","git_url":"git://github.com/codilime/contrail-vrouter.git","ssh_url":"git@github.com:codilime/contrail-vrouter.git","clone_url":"https://github.com/codilime/contrail-vrouter.git","svn_url":"https://github.com/codilime/contrail-vrouter","homepage":null,"size":10388,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":0,"default_branch":"windows"}},"_links":{"self":{"href":"https://api.github.com/repos/codilime/contrail-vrouter/pulls/57"},"html":{"href":"https://github.com/codilime/contrail-vrouter/pull/57"},"issue":{"href":"https://api.github.com/repos/codilime/contrail-vrouter/issues/57"},"comments":{"href":"https://api.github.com/repos/codilime/contrail-vrouter/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/codilime/contrail-vrouter/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/codilime/contrail-vrouter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codilime/contrail-vrouter/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/codilime/contrail-vrouter/statuses/1d3b83b26c71bacf26479a2f31d1026b4758a782"}}}}
{"actor":{"display_login":"mmasztalerczuk"}}