{"action":"created","comment":{"url":"https://api.github.com/repos/ix-project/ix/pulls/comments/71245752","id":71245752,"diff_hunk":"@@ -0,0 +1,122 @@\n+/*\n+* Copyright 2013-16 Board of Trustees of Stanford University\n+* Copyright 2013-16 Ecole Polytechnique Federale Lausanne (EPFL)\n+*\n+* Permission is hereby granted, free of charge, to any person obtaining a copy\n+* of this software and associated documentation files (the \"Software\"), to deal\n+* in the Software without restriction, including without limitation the rights\n+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+* copies of the Software, and to permit persons to whom the Software is\n+* furnished to do so, subject to the following conditions:\n+*\n+* The above copyright notice and this permission notice shall be included in\n+* all copies or substantial portions of the Software.\n+*\n+* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+* THE SOFTWARE.\n+*/\n+\n+/* For memmove and size_t */\n+#include <string.h>\n+  /* For struct sockaddr */\n+#include <sys/socket.h>\n+/* For pipe */\n+#include <unistd.h>\n+\n+/* General DPDK includes */\n+#include <rte_config.h> \n+#include <rte_ethdev.h>\n+\n+/* DPDK ixgbe includes */\n+#include <base/ixgbe_type.h>\n+#include <ixgbe_rxtx.h>\n+\n+/* Defines from IX override DPDK */\n+#undef EAGAIN","path":"inc/drivers/common.h","position":null,"original_position":40,"commit_id":"820bb74ff78e74dcf418abe358dd659a3d0b747a","original_commit_id":"94012cc3f209f89f017723ec52ebfe058e68a719","user":{"login":"prekageo","id":886291,"avatar_url":"https://avatars.githubusercontent.com/u/886291?v=3","gravatar_id":"","url":"https://api.github.com/users/prekageo","html_url":"https://github.com/prekageo","followers_url":"https://api.github.com/users/prekageo/followers","following_url":"https://api.github.com/users/prekageo/following{/other_user}","gists_url":"https://api.github.com/users/prekageo/gists{/gist_id}","starred_url":"https://api.github.com/users/prekageo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prekageo/subscriptions","organizations_url":"https://api.github.com/users/prekageo/orgs","repos_url":"https://api.github.com/users/prekageo/repos","events_url":"https://api.github.com/users/prekageo/events{/privacy}","received_events_url":"https://api.github.com/users/prekageo/received_events","type":"User","site_admin":false},"body":"This is copy-pasted code. Please use \"#include\" instead of copy-pasting.","created_at":"2016-07-18T22:52:30Z","updated_at":"2016-07-18T22:52:30Z","html_url":"https://github.com/ix-project/ix/pull/3#discussion_r71245752","pull_request_url":"https://api.github.com/repos/ix-project/ix/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/ix-project/ix/pulls/comments/71245752"},"html":{"href":"https://github.com/ix-project/ix/pull/3#discussion_r71245752"},"pull_request":{"href":"https://api.github.com/repos/ix-project/ix/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/ix-project/ix/pulls/3","id":77771448,"html_url":"https://github.com/ix-project/ix/pull/3","diff_url":"https://github.com/ix-project/ix/pull/3.diff","patch_url":"https://github.com/ix-project/ix/pull/3.patch","issue_url":"https://api.github.com/repos/ix-project/ix/issues/3","number":3,"state":"open","locked":false,"title":"Drivers/i40e","user":{"login":"bernardgut","id":1610489,"avatar_url":"https://avatars.githubusercontent.com/u/1610489?v=3","gravatar_id":"","url":"https://api.github.com/users/bernardgut","html_url":"https://github.com/bernardgut","followers_url":"https://api.github.com/users/bernardgut/followers","following_url":"https://api.github.com/users/bernardgut/following{/other_user}","gists_url":"https://api.github.com/users/bernardgut/gists{/gist_id}","starred_url":"https://api.github.com/users/bernardgut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernardgut/subscriptions","organizations_url":"https://api.github.com/users/bernardgut/orgs","repos_url":"https://api.github.com/users/bernardgut/repos","events_url":"https://api.github.com/users/bernardgut/events{/privacy}","received_events_url":"https://api.github.com/users/bernardgut/received_events","type":"User","site_admin":false},"body":"1. Rewrote the driver API.\r\n   - drivers are now added as headers in inc/drivers\r\n   - ix now relies on UIO to interract with NICs\r\n   - rewrote ixgbe\r\n   - some headers were cleaned up.\r\n   - rewrote the cpu_relax phase to be driver agnostic\r\n\r\n2. [i40e] adding i40e driver.\r\n","created_at":"2016-07-18T08:07:06Z","updated_at":"2016-07-18T22:52:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54645fa998a62dc11c6b2578e5dbd7978e403f21","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ix-project/ix/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ix-project/ix/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ix-project/ix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ix-project/ix/issues/3/comments","statuses_url":"https://api.github.com/repos/ix-project/ix/statuses/820bb74ff78e74dcf418abe358dd659a3d0b747a","head":{"label":"bernardgut:drivers/i40e","ref":"drivers/i40e","sha":"820bb74ff78e74dcf418abe358dd659a3d0b747a","user":{"login":"bernardgut","id":1610489,"avatar_url":"https://avatars.githubusercontent.com/u/1610489?v=3","gravatar_id":"","url":"https://api.github.com/users/bernardgut","html_url":"https://github.com/bernardgut","followers_url":"https://api.github.com/users/bernardgut/followers","following_url":"https://api.github.com/users/bernardgut/following{/other_user}","gists_url":"https://api.github.com/users/bernardgut/gists{/gist_id}","starred_url":"https://api.github.com/users/bernardgut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernardgut/subscriptions","organizations_url":"https://api.github.com/users/bernardgut/orgs","repos_url":"https://api.github.com/users/bernardgut/repos","events_url":"https://api.github.com/users/bernardgut/events{/privacy}","received_events_url":"https://api.github.com/users/bernardgut/received_events","type":"User","site_admin":false},"repo":{"id":61107531,"name":"ix-1","full_name":"bernardgut/ix-1","owner":{"login":"bernardgut","id":1610489,"avatar_url":"https://avatars.githubusercontent.com/u/1610489?v=3","gravatar_id":"","url":"https://api.github.com/users/bernardgut","html_url":"https://github.com/bernardgut","followers_url":"https://api.github.com/users/bernardgut/followers","following_url":"https://api.github.com/users/bernardgut/following{/other_user}","gists_url":"https://api.github.com/users/bernardgut/gists{/gist_id}","starred_url":"https://api.github.com/users/bernardgut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernardgut/subscriptions","organizations_url":"https://api.github.com/users/bernardgut/orgs","repos_url":"https://api.github.com/users/bernardgut/repos","events_url":"https://api.github.com/users/bernardgut/events{/privacy}","received_events_url":"https://api.github.com/users/bernardgut/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bernardgut/ix-1","description":"IX a protected dataplane operating system project","fork":true,"url":"https://api.github.com/repos/bernardgut/ix-1","forks_url":"https://api.github.com/repos/bernardgut/ix-1/forks","keys_url":"https://api.github.com/repos/bernardgut/ix-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bernardgut/ix-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bernardgut/ix-1/teams","hooks_url":"https://api.github.com/repos/bernardgut/ix-1/hooks","issue_events_url":"https://api.github.com/repos/bernardgut/ix-1/issues/events{/number}","events_url":"https://api.github.com/repos/bernardgut/ix-1/events","assignees_url":"https://api.github.com/repos/bernardgut/ix-1/assignees{/user}","branches_url":"https://api.github.com/repos/bernardgut/ix-1/branches{/branch}","tags_url":"https://api.github.com/repos/bernardgut/ix-1/tags","blobs_url":"https://api.github.com/repos/bernardgut/ix-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bernardgut/ix-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bernardgut/ix-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/bernardgut/ix-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bernardgut/ix-1/statuses/{sha}","languages_url":"https://api.github.com/repos/bernardgut/ix-1/languages","stargazers_url":"https://api.github.com/repos/bernardgut/ix-1/stargazers","contributors_url":"https://api.github.com/repos/bernardgut/ix-1/contributors","subscribers_url":"https://api.github.com/repos/bernardgut/ix-1/subscribers","subscription_url":"https://api.github.com/repos/bernardgut/ix-1/subscription","commits_url":"https://api.github.com/repos/bernardgut/ix-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/bernardgut/ix-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/bernardgut/ix-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/bernardgut/ix-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/bernardgut/ix-1/contents/{+path}","compare_url":"https://api.github.com/repos/bernardgut/ix-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bernardgut/ix-1/merges","archive_url":"https://api.github.com/repos/bernardgut/ix-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bernardgut/ix-1/downloads","issues_url":"https://api.github.com/repos/bernardgut/ix-1/issues{/number}","pulls_url":"https://api.github.com/repos/bernardgut/ix-1/pulls{/number}","milestones_url":"https://api.github.com/repos/bernardgut/ix-1/milestones{/number}","notifications_url":"https://api.github.com/repos/bernardgut/ix-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bernardgut/ix-1/labels{/name}","releases_url":"https://api.github.com/repos/bernardgut/ix-1/releases{/id}","deployments_url":"https://api.github.com/repos/bernardgut/ix-1/deployments","created_at":"2016-06-14T08:56:04Z","updated_at":"2016-06-14T08:56:06Z","pushed_at":"2016-07-18T11:20:18Z","git_url":"git://github.com/bernardgut/ix-1.git","ssh_url":"git@github.com:bernardgut/ix-1.git","clone_url":"https://github.com/bernardgut/ix-1.git","svn_url":"https://github.com/bernardgut/ix-1","homepage":"http://ix-project.github.io/ix/","size":434,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ix-project:master","ref":"master","sha":"bd4dd0ba200413716071561a3c3f2994159c665d","user":{"login":"ix-project","id":16310078,"avatar_url":"https://avatars.githubusercontent.com/u/16310078?v=3","gravatar_id":"","url":"https://api.github.com/users/ix-project","html_url":"https://github.com/ix-project","followers_url":"https://api.github.com/users/ix-project/followers","following_url":"https://api.github.com/users/ix-project/following{/other_user}","gists_url":"https://api.github.com/users/ix-project/gists{/gist_id}","starred_url":"https://api.github.com/users/ix-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ix-project/subscriptions","organizations_url":"https://api.github.com/users/ix-project/orgs","repos_url":"https://api.github.com/users/ix-project/repos","events_url":"https://api.github.com/users/ix-project/events{/privacy}","received_events_url":"https://api.github.com/users/ix-project/received_events","type":"Organization","site_admin":false},"repo":{"id":59220539,"name":"ix","full_name":"ix-project/ix","owner":{"login":"ix-project","id":16310078,"avatar_url":"https://avatars.githubusercontent.com/u/16310078?v=3","gravatar_id":"","url":"https://api.github.com/users/ix-project","html_url":"https://github.com/ix-project","followers_url":"https://api.github.com/users/ix-project/followers","following_url":"https://api.github.com/users/ix-project/following{/other_user}","gists_url":"https://api.github.com/users/ix-project/gists{/gist_id}","starred_url":"https://api.github.com/users/ix-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ix-project/subscriptions","organizations_url":"https://api.github.com/users/ix-project/orgs","repos_url":"https://api.github.com/users/ix-project/repos","events_url":"https://api.github.com/users/ix-project/events{/privacy}","received_events_url":"https://api.github.com/users/ix-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ix-project/ix","description":"IX a protected dataplane operating system project","fork":false,"url":"https://api.github.com/repos/ix-project/ix","forks_url":"https://api.github.com/repos/ix-project/ix/forks","keys_url":"https://api.github.com/repos/ix-project/ix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ix-project/ix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ix-project/ix/teams","hooks_url":"https://api.github.com/repos/ix-project/ix/hooks","issue_events_url":"https://api.github.com/repos/ix-project/ix/issues/events{/number}","events_url":"https://api.github.com/repos/ix-project/ix/events","assignees_url":"https://api.github.com/repos/ix-project/ix/assignees{/user}","branches_url":"https://api.github.com/repos/ix-project/ix/branches{/branch}","tags_url":"https://api.github.com/repos/ix-project/ix/tags","blobs_url":"https://api.github.com/repos/ix-project/ix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ix-project/ix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ix-project/ix/git/refs{/sha}","trees_url":"https://api.github.com/repos/ix-project/ix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ix-project/ix/statuses/{sha}","languages_url":"https://api.github.com/repos/ix-project/ix/languages","stargazers_url":"https://api.github.com/repos/ix-project/ix/stargazers","contributors_url":"https://api.github.com/repos/ix-project/ix/contributors","subscribers_url":"https://api.github.com/repos/ix-project/ix/subscribers","subscription_url":"https://api.github.com/repos/ix-project/ix/subscription","commits_url":"https://api.github.com/repos/ix-project/ix/commits{/sha}","git_commits_url":"https://api.github.com/repos/ix-project/ix/git/commits{/sha}","comments_url":"https://api.github.com/repos/ix-project/ix/comments{/number}","issue_comment_url":"https://api.github.com/repos/ix-project/ix/issues/comments{/number}","contents_url":"https://api.github.com/repos/ix-project/ix/contents/{+path}","compare_url":"https://api.github.com/repos/ix-project/ix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ix-project/ix/merges","archive_url":"https://api.github.com/repos/ix-project/ix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ix-project/ix/downloads","issues_url":"https://api.github.com/repos/ix-project/ix/issues{/number}","pulls_url":"https://api.github.com/repos/ix-project/ix/pulls{/number}","milestones_url":"https://api.github.com/repos/ix-project/ix/milestones{/number}","notifications_url":"https://api.github.com/repos/ix-project/ix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ix-project/ix/labels{/name}","releases_url":"https://api.github.com/repos/ix-project/ix/releases{/id}","deployments_url":"https://api.github.com/repos/ix-project/ix/deployments","created_at":"2016-05-19T15:45:27Z","updated_at":"2016-07-17T03:01:23Z","pushed_at":"2016-07-18T08:34:37Z","git_url":"git://github.com/ix-project/ix.git","ssh_url":"git@github.com:ix-project/ix.git","clone_url":"https://github.com/ix-project/ix.git","svn_url":"https://github.com/ix-project/ix","homepage":"http://ix-project.github.io/ix/","size":408,"stargazers_count":15,"watchers_count":15,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ix-project/ix/pulls/3"},"html":{"href":"https://github.com/ix-project/ix/pull/3"},"issue":{"href":"https://api.github.com/repos/ix-project/ix/issues/3"},"comments":{"href":"https://api.github.com/repos/ix-project/ix/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ix-project/ix/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ix-project/ix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ix-project/ix/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ix-project/ix/statuses/820bb74ff78e74dcf418abe358dd659a3d0b747a"}}}}
{"actor":{"display_login":"prekageo"}}