{"action":"created","comment":{"url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls/comments/34127331","id":34127331,"diff_hunk":"@@ -0,0 +1,164 @@\n+/*\n+* Copyright (c) 2015 Dell Inc.\n+*\n+* Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n+* not use this file except in compliance with the License. You may obtain\n+* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n+*\n+* THIS CODE IS PROVIDED ON AN  *AS IS* BASIS, WITHOUT WARRANTIES OR\n+* CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT\n+* LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS\n+* FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.\n+*\n+* See the Apache Version 2.0 License for specific language governing\n+* permissions and limitations under the License.\n+*\n+* @file saischeduler.h\n+*\n+* @brief This file contains Qos Scheduler functionality.\n+************************************************************************/\n+\n+#if !defined (__SAISCHEDULER_H_)\n+#define __SAISCHEDULER_H_\n+\n+#include \"sai.h\"\n+#include \"saitypes.h\"\n+\n+/** \\defgroup SAISCHEDULER SAI - Qos scheduler specific API definitions.\n+ *\n+ *  \\{\n+ */\n+\n+/**\n+ * @brief Enum defining scheduling algorithm.\n+ */\n+typedef enum _sai_scheduling_type_t\n+{\n+\n+    /* Strict Scheduling */\n+    SAI_SCHEDULING_STRICT = 0x00000000,\n+ \n+    /* Weighted Round-Robin Scheduling */\n+    SAI_SCHEDULING_WRR = 0x00000001,\n+\n+    /* Deficit Weighted Round-Robin Scheduling */\n+    SAI_SCHEDULING_DWRR = 0x00000002,\n+\n+} sai_scheduling_type_t;\n+\n+/**\n+ * @brief Enum defining scheduler attributes.\n+ */\n+typedef enum _sai_scheduler_attr_t\n+{\n+    /** Scheduling algorithm [sai_scheduling_type_t ], Default WRR*/\n+    SAI_SCHEDULER_ATTR_SCHEDULING_ALGORITHM = 0x00000000,\n+\n+    /** [uint8_t] scheduling algorithm weight, Range [1 - 100]\n+        Valid SAI_SCHEDULER_ATTR_SCHEDULING_ALGORITHM = SAI_SCHEDULING_DWRR, \n+        Default Weight = 1 */\n+    SAI_SCHEDULER_ATTR_SCHEDULING_WEIGHT = 0x00000001,\n+\n+    /* sai_meter_type_t, Default bytes/sec */","path":"sai/inc/saischeduler.h","position":62,"original_position":62,"commit_id":"9175898194ef3bcb9643859120fcc1c0c40b41fe","original_commit_id":"9175898194ef3bcb9643859120fcc1c0c40b41fe","user":{"login":"lguohan","id":2293967,"avatar_url":"https://avatars.githubusercontent.com/u/2293967?v=3","gravatar_id":"","url":"https://api.github.com/users/lguohan","html_url":"https://github.com/lguohan","followers_url":"https://api.github.com/users/lguohan/followers","following_url":"https://api.github.com/users/lguohan/following{/other_user}","gists_url":"https://api.github.com/users/lguohan/gists{/gist_id}","starred_url":"https://api.github.com/users/lguohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lguohan/subscriptions","organizations_url":"https://api.github.com/users/lguohan/orgs","repos_url":"https://api.github.com/users/lguohan/repos","events_url":"https://api.github.com/users/lguohan/events{/privacy}","received_events_url":"https://api.github.com/users/lguohan/received_events","type":"User","site_admin":false},"body":"[sai_meter_type_t]","created_at":"2015-07-08T08:50:31Z","updated_at":"2015-07-08T08:50:31Z","html_url":"https://github.com/opencomputeproject/OCP-Networking-Project-Community-Contributions/pull/122#discussion_r34127331","pull_request_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls/122","_links":{"self":{"href":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls/comments/34127331"},"html":{"href":"https://github.com/opencomputeproject/OCP-Networking-Project-Community-Contributions/pull/122#discussion_r34127331"},"pull_request":{"href":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls/122"}}},"pull_request":{"url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls/122","id":39453216,"html_url":"https://github.com/opencomputeproject/OCP-Networking-Project-Community-Contributions/pull/122","diff_url":"https://github.com/opencomputeproject/OCP-Networking-Project-Community-Contributions/pull/122.diff","patch_url":"https://github.com/opencomputeproject/OCP-Networking-Project-Community-Contributions/pull/122.patch","issue_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/issues/122","number":122,"state":"open","locked":false,"title":"qos proposal header files","user":{"login":"lguohan","id":2293967,"avatar_url":"https://avatars.githubusercontent.com/u/2293967?v=3","gravatar_id":"","url":"https://api.github.com/users/lguohan","html_url":"https://github.com/lguohan","followers_url":"https://api.github.com/users/lguohan/followers","following_url":"https://api.github.com/users/lguohan/following{/other_user}","gists_url":"https://api.github.com/users/lguohan/gists{/gist_id}","starred_url":"https://api.github.com/users/lguohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lguohan/subscriptions","organizations_url":"https://api.github.com/users/lguohan/orgs","repos_url":"https://api.github.com/users/lguohan/repos","events_url":"https://api.github.com/users/lguohan/events{/privacy}","received_events_url":"https://api.github.com/users/lguohan/received_events","type":"User","site_admin":false},"body":"squash multiple commits from ashok into one","created_at":"2015-07-08T08:37:31Z","updated_at":"2015-07-08T08:50:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e8212c6ff277b947d599417bd5d7e416ee08335","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls/122/commits","review_comments_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls/122/comments","review_comment_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/issues/122/comments","statuses_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/statuses/9175898194ef3bcb9643859120fcc1c0c40b41fe","head":{"label":"lguohan:qos","ref":"qos","sha":"9175898194ef3bcb9643859120fcc1c0c40b41fe","user":{"login":"lguohan","id":2293967,"avatar_url":"https://avatars.githubusercontent.com/u/2293967?v=3","gravatar_id":"","url":"https://api.github.com/users/lguohan","html_url":"https://github.com/lguohan","followers_url":"https://api.github.com/users/lguohan/followers","following_url":"https://api.github.com/users/lguohan/following{/other_user}","gists_url":"https://api.github.com/users/lguohan/gists{/gist_id}","starred_url":"https://api.github.com/users/lguohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lguohan/subscriptions","organizations_url":"https://api.github.com/users/lguohan/orgs","repos_url":"https://api.github.com/users/lguohan/repos","events_url":"https://api.github.com/users/lguohan/events{/privacy}","received_events_url":"https://api.github.com/users/lguohan/received_events","type":"User","site_admin":false},"repo":{"id":27297206,"name":"OCP-Networking-Project-Community-Contributions","full_name":"lguohan/OCP-Networking-Project-Community-Contributions","owner":{"login":"lguohan","id":2293967,"avatar_url":"https://avatars.githubusercontent.com/u/2293967?v=3","gravatar_id":"","url":"https://api.github.com/users/lguohan","html_url":"https://github.com/lguohan","followers_url":"https://api.github.com/users/lguohan/followers","following_url":"https://api.github.com/users/lguohan/following{/other_user}","gists_url":"https://api.github.com/users/lguohan/gists{/gist_id}","starred_url":"https://api.github.com/users/lguohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lguohan/subscriptions","organizations_url":"https://api.github.com/users/lguohan/orgs","repos_url":"https://api.github.com/users/lguohan/repos","events_url":"https://api.github.com/users/lguohan/events{/privacy}","received_events_url":"https://api.github.com/users/lguohan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lguohan/OCP-Networking-Project-Community-Contributions","description":"WARNING: This repository will hold software contributions that are being worked on collaboratively by the OCP Networking Community. Code in this repository has not yet been approved and accepted by the OCP Incubation Committee.  Software in this repository should be not be used on production machines and should be treated as you would any Alpha/Beta release or any software that is in development.","fork":true,"url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions","forks_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/forks","keys_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/teams","hooks_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/hooks","issue_events_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/issues/events{/number}","events_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/events","assignees_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/assignees{/user}","branches_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/branches{/branch}","tags_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/tags","blobs_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/git/refs{/sha}","trees_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/statuses/{sha}","languages_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/languages","stargazers_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/stargazers","contributors_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/contributors","subscribers_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/subscribers","subscription_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/subscription","commits_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/commits{/sha}","git_commits_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/git/commits{/sha}","comments_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/comments{/number}","issue_comment_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/issues/comments{/number}","contents_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/contents/{+path}","compare_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/merges","archive_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/downloads","issues_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/issues{/number}","pulls_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/pulls{/number}","milestones_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/milestones{/number}","notifications_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/labels{/name}","releases_url":"https://api.github.com/repos/lguohan/OCP-Networking-Project-Community-Contributions/releases{/id}","created_at":"2014-11-29T09:22:11Z","updated_at":"2015-02-26T17:38:39Z","pushed_at":"2015-07-08T08:33:08Z","git_url":"git://github.com/lguohan/OCP-Networking-Project-Community-Contributions.git","ssh_url":"git@github.com:lguohan/OCP-Networking-Project-Community-Contributions.git","clone_url":"https://github.com/lguohan/OCP-Networking-Project-Community-Contributions.git","svn_url":"https://github.com/lguohan/OCP-Networking-Project-Community-Contributions","homepage":"","size":6322,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"opencomputeproject:master","ref":"master","sha":"de07ee36c75fe8e42e458b37a1d28beac1eeae1c","user":{"login":"opencomputeproject","id":4722382,"avatar_url":"https://avatars.githubusercontent.com/u/4722382?v=3","gravatar_id":"","url":"https://api.github.com/users/opencomputeproject","html_url":"https://github.com/opencomputeproject","followers_url":"https://api.github.com/users/opencomputeproject/followers","following_url":"https://api.github.com/users/opencomputeproject/following{/other_user}","gists_url":"https://api.github.com/users/opencomputeproject/gists{/gist_id}","starred_url":"https://api.github.com/users/opencomputeproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencomputeproject/subscriptions","organizations_url":"https://api.github.com/users/opencomputeproject/orgs","repos_url":"https://api.github.com/users/opencomputeproject/repos","events_url":"https://api.github.com/users/opencomputeproject/events{/privacy}","received_events_url":"https://api.github.com/users/opencomputeproject/received_events","type":"User","site_admin":false},"repo":{"id":27199774,"name":"OCP-Networking-Project-Community-Contributions","full_name":"opencomputeproject/OCP-Networking-Project-Community-Contributions","owner":{"login":"opencomputeproject","id":4722382,"avatar_url":"https://avatars.githubusercontent.com/u/4722382?v=3","gravatar_id":"","url":"https://api.github.com/users/opencomputeproject","html_url":"https://github.com/opencomputeproject","followers_url":"https://api.github.com/users/opencomputeproject/followers","following_url":"https://api.github.com/users/opencomputeproject/following{/other_user}","gists_url":"https://api.github.com/users/opencomputeproject/gists{/gist_id}","starred_url":"https://api.github.com/users/opencomputeproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencomputeproject/subscriptions","organizations_url":"https://api.github.com/users/opencomputeproject/orgs","repos_url":"https://api.github.com/users/opencomputeproject/repos","events_url":"https://api.github.com/users/opencomputeproject/events{/privacy}","received_events_url":"https://api.github.com/users/opencomputeproject/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/opencomputeproject/OCP-Networking-Project-Community-Contributions","description":"WARNING: This repository will hold software contributions that are being worked on collaboratively by the OCP Networking Community. Code in this repository has not yet been approved and accepted by the OCP Incubation Committee.  Software in this repository should be not be used on production machines and should be treated as you would any Alpha/Beta release or any software that is in development.","fork":false,"url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions","forks_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/forks","keys_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/teams","hooks_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/hooks","issue_events_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/issues/events{/number}","events_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/events","assignees_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/assignees{/user}","branches_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/branches{/branch}","tags_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/tags","blobs_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/git/refs{/sha}","trees_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/statuses/{sha}","languages_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/languages","stargazers_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/stargazers","contributors_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/contributors","subscribers_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/subscribers","subscription_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/subscription","commits_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/commits{/sha}","git_commits_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/git/commits{/sha}","comments_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/comments{/number}","issue_comment_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/issues/comments{/number}","contents_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/contents/{+path}","compare_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/merges","archive_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/downloads","issues_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/issues{/number}","pulls_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls{/number}","milestones_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/milestones{/number}","notifications_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/labels{/name}","releases_url":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/releases{/id}","created_at":"2014-11-26T22:53:43Z","updated_at":"2015-05-08T01:51:19Z","pushed_at":"2015-07-08T08:37:31Z","git_url":"git://github.com/opencomputeproject/OCP-Networking-Project-Community-Contributions.git","ssh_url":"git@github.com:opencomputeproject/OCP-Networking-Project-Community-Contributions.git","clone_url":"https://github.com/opencomputeproject/OCP-Networking-Project-Community-Contributions.git","svn_url":"https://github.com/opencomputeproject/OCP-Networking-Project-Community-Contributions","homepage":"","size":9376,"stargazers_count":19,"watchers_count":19,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":20,"forks":38,"open_issues":20,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls/122"},"html":{"href":"https://github.com/opencomputeproject/OCP-Networking-Project-Community-Contributions/pull/122"},"issue":{"href":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/issues/122"},"comments":{"href":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/issues/122/comments"},"review_comments":{"href":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls/122/comments"},"review_comment":{"href":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/pulls/122/commits"},"statuses":{"href":"https://api.github.com/repos/opencomputeproject/OCP-Networking-Project-Community-Contributions/statuses/9175898194ef3bcb9643859120fcc1c0c40b41fe"}}}}