{"action":"created","comment":{"url":"https://api.github.com/repos/ofiwg/fabtests/pulls/comments/63446276","id":63446276,"diff_hunk":"@@ -0,0 +1,304 @@\n+/*\n+ * Copyright (c) 2013-2015 Intel Corporation.  All rights reserved.\n+ * Copyright (c) 2014-2016, Cisco Systems, Inc. All rights reserved.\n+ *\n+ * This software is available to you under the BSD license\n+ * below:\n+ *\n+ *     Redistribution and use in source and binary forms, with or\n+ *     without modification, are permitted provided that the following\n+ *     conditions are met:\n+ *\n+ *      - Redistributions of source code must retain the above\n+ *        copyright notice, this list of conditions and the following\n+ *        disclaimer.\n+ *\n+ *      - Redistributions in binary form must reproduce the above\n+ *        copyright notice, this list of conditions and the following\n+ *        disclaimer in the documentation and/or other materials\n+ *        provided with the distribution.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AWV\n+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+#include <stdio.h>\n+#include <stdlib.h>\n+#include <getopt.h>\n+#include <string.h>\n+#include <inttypes.h>\n+#include <assert.h>\n+\n+#include <rdma/fi_errno.h>\n+#include <rdma/fi_endpoint.h>\n+#include <rdma/fi_cm.h>\n+\n+#include \"shared.h\"\n+\n+static char *cm_data;\n+static size_t cm_data_size;\n+static struct fi_eq_cm_entry *entry;\n+\n+static int server_setup(void)\n+{\n+\tsize_t opt_size;\n+\tint ret;\n+\n+\tret = ft_start_server();\n+\tif (ret)\n+\t\treturn ret;\n+\n+\topt_size = sizeof(opt_size);\n+\treturn fi_getopt(&pep->fid, FI_OPT_ENDPOINT, FI_OPT_CM_DATA_SIZE,\n+\t\t&cm_data_size, &opt_size);","path":"simple/cm_data.c","position":59,"original_position":59,"commit_id":"149f500d4a233ce0604bc97fdc7985ede1602912","original_commit_id":"149f500d4a233ce0604bc97fdc7985ede1602912","user":{"login":"bturrubiates","id":2322856,"avatar_url":"https://avatars.githubusercontent.com/u/2322856?v=3","gravatar_id":"","url":"https://api.github.com/users/bturrubiates","html_url":"https://github.com/bturrubiates","followers_url":"https://api.github.com/users/bturrubiates/followers","following_url":"https://api.github.com/users/bturrubiates/following{/other_user}","gists_url":"https://api.github.com/users/bturrubiates/gists{/gist_id}","starred_url":"https://api.github.com/users/bturrubiates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bturrubiates/subscriptions","organizations_url":"https://api.github.com/users/bturrubiates/orgs","repos_url":"https://api.github.com/users/bturrubiates/repos","events_url":"https://api.github.com/users/bturrubiates/events{/privacy}","received_events_url":"https://api.github.com/users/bturrubiates/received_events","type":"User","site_admin":false},"body":"> Returning the maximum possible size seems reasonable.\r\n\r\nAlright, I'll update docs. ","created_at":"2016-05-16T23:57:00Z","updated_at":"2016-05-16T23:57:00Z","html_url":"https://github.com/ofiwg/fabtests/pull/518#discussion_r63446276","pull_request_url":"https://api.github.com/repos/ofiwg/fabtests/pulls/518","_links":{"self":{"href":"https://api.github.com/repos/ofiwg/fabtests/pulls/comments/63446276"},"html":{"href":"https://github.com/ofiwg/fabtests/pull/518#discussion_r63446276"},"pull_request":{"href":"https://api.github.com/repos/ofiwg/fabtests/pulls/518"}}},"pull_request":{"url":"https://api.github.com/repos/ofiwg/fabtests/pulls/518","id":68649097,"html_url":"https://github.com/ofiwg/fabtests/pull/518","diff_url":"https://github.com/ofiwg/fabtests/pull/518.diff","patch_url":"https://github.com/ofiwg/fabtests/pull/518.patch","issue_url":"https://api.github.com/repos/ofiwg/fabtests/issues/518","number":518,"state":"open","locked":false,"title":"Add a test to test sending data with fi_connect and fi_accept.","user":{"login":"bturrubiates","id":2322856,"avatar_url":"https://avatars.githubusercontent.com/u/2322856?v=3","gravatar_id":"","url":"https://api.github.com/users/bturrubiates","html_url":"https://github.com/bturrubiates","followers_url":"https://api.github.com/users/bturrubiates/followers","following_url":"https://api.github.com/users/bturrubiates/following{/other_user}","gists_url":"https://api.github.com/users/bturrubiates/gists{/gist_id}","starred_url":"https://api.github.com/users/bturrubiates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bturrubiates/subscriptions","organizations_url":"https://api.github.com/users/bturrubiates/orgs","repos_url":"https://api.github.com/users/bturrubiates/repos","events_url":"https://api.github.com/users/bturrubiates/events{/privacy}","received_events_url":"https://api.github.com/users/bturrubiates/received_events","type":"User","site_admin":false},"body":"Test all powers of two betweeen 1 and the maximum supported provider\r\nsize. This test makes some assumptions:\r\n\r\n- If the max supported cm data size is exceeded, then the client\r\n  provider will return -FI_EINVAL and not attempt to send any data.\r\n- MR is currently not enabled on this test.\r\n- fi_getopt is usable on a passive endpoint.\r\n\r\nThis test is still a work in progress and does not work with the sockets provider.\r\nIt is dependant upon the answer of ofiwg/libfabric#1990.\r\n\r\nI was writing this to help debug ofiwg/libfabric#1914.\r\n\r\n@shefty Does this look like a test worth having? \r\n\r\nSigned-off-by: Ben Turrubiates <bturrubi@cisco.com>","created_at":"2016-05-03T02:02:37Z","updated_at":"2016-05-16T23:57:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fac76264774d07b82652820b060c8e11b5f8fc34","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ofiwg/fabtests/pulls/518/commits","review_comments_url":"https://api.github.com/repos/ofiwg/fabtests/pulls/518/comments","review_comment_url":"https://api.github.com/repos/ofiwg/fabtests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ofiwg/fabtests/issues/518/comments","statuses_url":"https://api.github.com/repos/ofiwg/fabtests/statuses/149f500d4a233ce0604bc97fdc7985ede1602912","head":{"label":"bturrubiates:cm_data","ref":"cm_data","sha":"149f500d4a233ce0604bc97fdc7985ede1602912","user":{"login":"bturrubiates","id":2322856,"avatar_url":"https://avatars.githubusercontent.com/u/2322856?v=3","gravatar_id":"","url":"https://api.github.com/users/bturrubiates","html_url":"https://github.com/bturrubiates","followers_url":"https://api.github.com/users/bturrubiates/followers","following_url":"https://api.github.com/users/bturrubiates/following{/other_user}","gists_url":"https://api.github.com/users/bturrubiates/gists{/gist_id}","starred_url":"https://api.github.com/users/bturrubiates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bturrubiates/subscriptions","organizations_url":"https://api.github.com/users/bturrubiates/orgs","repos_url":"https://api.github.com/users/bturrubiates/repos","events_url":"https://api.github.com/users/bturrubiates/events{/privacy}","received_events_url":"https://api.github.com/users/bturrubiates/received_events","type":"User","site_admin":false},"repo":{"id":29939796,"name":"fabtests","full_name":"bturrubiates/fabtests","owner":{"login":"bturrubiates","id":2322856,"avatar_url":"https://avatars.githubusercontent.com/u/2322856?v=3","gravatar_id":"","url":"https://api.github.com/users/bturrubiates","html_url":"https://github.com/bturrubiates","followers_url":"https://api.github.com/users/bturrubiates/followers","following_url":"https://api.github.com/users/bturrubiates/following{/other_user}","gists_url":"https://api.github.com/users/bturrubiates/gists{/gist_id}","starred_url":"https://api.github.com/users/bturrubiates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bturrubiates/subscriptions","organizations_url":"https://api.github.com/users/bturrubiates/orgs","repos_url":"https://api.github.com/users/bturrubiates/repos","events_url":"https://api.github.com/users/bturrubiates/events{/privacy}","received_events_url":"https://api.github.com/users/bturrubiates/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bturrubiates/fabtests","description":"","fork":true,"url":"https://api.github.com/repos/bturrubiates/fabtests","forks_url":"https://api.github.com/repos/bturrubiates/fabtests/forks","keys_url":"https://api.github.com/repos/bturrubiates/fabtests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bturrubiates/fabtests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bturrubiates/fabtests/teams","hooks_url":"https://api.github.com/repos/bturrubiates/fabtests/hooks","issue_events_url":"https://api.github.com/repos/bturrubiates/fabtests/issues/events{/number}","events_url":"https://api.github.com/repos/bturrubiates/fabtests/events","assignees_url":"https://api.github.com/repos/bturrubiates/fabtests/assignees{/user}","branches_url":"https://api.github.com/repos/bturrubiates/fabtests/branches{/branch}","tags_url":"https://api.github.com/repos/bturrubiates/fabtests/tags","blobs_url":"https://api.github.com/repos/bturrubiates/fabtests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bturrubiates/fabtests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bturrubiates/fabtests/git/refs{/sha}","trees_url":"https://api.github.com/repos/bturrubiates/fabtests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bturrubiates/fabtests/statuses/{sha}","languages_url":"https://api.github.com/repos/bturrubiates/fabtests/languages","stargazers_url":"https://api.github.com/repos/bturrubiates/fabtests/stargazers","contributors_url":"https://api.github.com/repos/bturrubiates/fabtests/contributors","subscribers_url":"https://api.github.com/repos/bturrubiates/fabtests/subscribers","subscription_url":"https://api.github.com/repos/bturrubiates/fabtests/subscription","commits_url":"https://api.github.com/repos/bturrubiates/fabtests/commits{/sha}","git_commits_url":"https://api.github.com/repos/bturrubiates/fabtests/git/commits{/sha}","comments_url":"https://api.github.com/repos/bturrubiates/fabtests/comments{/number}","issue_comment_url":"https://api.github.com/repos/bturrubiates/fabtests/issues/comments{/number}","contents_url":"https://api.github.com/repos/bturrubiates/fabtests/contents/{+path}","compare_url":"https://api.github.com/repos/bturrubiates/fabtests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bturrubiates/fabtests/merges","archive_url":"https://api.github.com/repos/bturrubiates/fabtests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bturrubiates/fabtests/downloads","issues_url":"https://api.github.com/repos/bturrubiates/fabtests/issues{/number}","pulls_url":"https://api.github.com/repos/bturrubiates/fabtests/pulls{/number}","milestones_url":"https://api.github.com/repos/bturrubiates/fabtests/milestones{/number}","notifications_url":"https://api.github.com/repos/bturrubiates/fabtests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bturrubiates/fabtests/labels{/name}","releases_url":"https://api.github.com/repos/bturrubiates/fabtests/releases{/id}","deployments_url":"https://api.github.com/repos/bturrubiates/fabtests/deployments","created_at":"2015-01-27T23:10:13Z","updated_at":"2016-02-05T22:29:41Z","pushed_at":"2016-05-11T20:01:01Z","git_url":"git://github.com/bturrubiates/fabtests.git","ssh_url":"git@github.com:bturrubiates/fabtests.git","clone_url":"https://github.com/bturrubiates/fabtests.git","svn_url":"https://github.com/bturrubiates/fabtests","homepage":null,"size":1925,"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":"ofiwg:master","ref":"master","sha":"2e59aedc6421ffae1ca659eb57edc5300ea8e00b","user":{"login":"ofiwg","id":8459445,"avatar_url":"https://avatars.githubusercontent.com/u/8459445?v=3","gravatar_id":"","url":"https://api.github.com/users/ofiwg","html_url":"https://github.com/ofiwg","followers_url":"https://api.github.com/users/ofiwg/followers","following_url":"https://api.github.com/users/ofiwg/following{/other_user}","gists_url":"https://api.github.com/users/ofiwg/gists{/gist_id}","starred_url":"https://api.github.com/users/ofiwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ofiwg/subscriptions","organizations_url":"https://api.github.com/users/ofiwg/orgs","repos_url":"https://api.github.com/users/ofiwg/repos","events_url":"https://api.github.com/users/ofiwg/events{/privacy}","received_events_url":"https://api.github.com/users/ofiwg/received_events","type":"Organization","site_admin":false},"repo":{"id":22996869,"name":"fabtests","full_name":"ofiwg/fabtests","owner":{"login":"ofiwg","id":8459445,"avatar_url":"https://avatars.githubusercontent.com/u/8459445?v=3","gravatar_id":"","url":"https://api.github.com/users/ofiwg","html_url":"https://github.com/ofiwg","followers_url":"https://api.github.com/users/ofiwg/followers","following_url":"https://api.github.com/users/ofiwg/following{/other_user}","gists_url":"https://api.github.com/users/ofiwg/gists{/gist_id}","starred_url":"https://api.github.com/users/ofiwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ofiwg/subscriptions","organizations_url":"https://api.github.com/users/ofiwg/orgs","repos_url":"https://api.github.com/users/ofiwg/repos","events_url":"https://api.github.com/users/ofiwg/events{/privacy}","received_events_url":"https://api.github.com/users/ofiwg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ofiwg/fabtests","description":"A set of examples that uses Libfabric","fork":false,"url":"https://api.github.com/repos/ofiwg/fabtests","forks_url":"https://api.github.com/repos/ofiwg/fabtests/forks","keys_url":"https://api.github.com/repos/ofiwg/fabtests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ofiwg/fabtests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ofiwg/fabtests/teams","hooks_url":"https://api.github.com/repos/ofiwg/fabtests/hooks","issue_events_url":"https://api.github.com/repos/ofiwg/fabtests/issues/events{/number}","events_url":"https://api.github.com/repos/ofiwg/fabtests/events","assignees_url":"https://api.github.com/repos/ofiwg/fabtests/assignees{/user}","branches_url":"https://api.github.com/repos/ofiwg/fabtests/branches{/branch}","tags_url":"https://api.github.com/repos/ofiwg/fabtests/tags","blobs_url":"https://api.github.com/repos/ofiwg/fabtests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ofiwg/fabtests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ofiwg/fabtests/git/refs{/sha}","trees_url":"https://api.github.com/repos/ofiwg/fabtests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ofiwg/fabtests/statuses/{sha}","languages_url":"https://api.github.com/repos/ofiwg/fabtests/languages","stargazers_url":"https://api.github.com/repos/ofiwg/fabtests/stargazers","contributors_url":"https://api.github.com/repos/ofiwg/fabtests/contributors","subscribers_url":"https://api.github.com/repos/ofiwg/fabtests/subscribers","subscription_url":"https://api.github.com/repos/ofiwg/fabtests/subscription","commits_url":"https://api.github.com/repos/ofiwg/fabtests/commits{/sha}","git_commits_url":"https://api.github.com/repos/ofiwg/fabtests/git/commits{/sha}","comments_url":"https://api.github.com/repos/ofiwg/fabtests/comments{/number}","issue_comment_url":"https://api.github.com/repos/ofiwg/fabtests/issues/comments{/number}","contents_url":"https://api.github.com/repos/ofiwg/fabtests/contents/{+path}","compare_url":"https://api.github.com/repos/ofiwg/fabtests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ofiwg/fabtests/merges","archive_url":"https://api.github.com/repos/ofiwg/fabtests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ofiwg/fabtests/downloads","issues_url":"https://api.github.com/repos/ofiwg/fabtests/issues{/number}","pulls_url":"https://api.github.com/repos/ofiwg/fabtests/pulls{/number}","milestones_url":"https://api.github.com/repos/ofiwg/fabtests/milestones{/number}","notifications_url":"https://api.github.com/repos/ofiwg/fabtests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ofiwg/fabtests/labels{/name}","releases_url":"https://api.github.com/repos/ofiwg/fabtests/releases{/id}","deployments_url":"https://api.github.com/repos/ofiwg/fabtests/deployments","created_at":"2014-08-15T17:13:04Z","updated_at":"2016-05-13T06:33:54Z","pushed_at":"2016-05-16T23:23:31Z","git_url":"git://github.com/ofiwg/fabtests.git","ssh_url":"git@github.com:ofiwg/fabtests.git","clone_url":"https://github.com/ofiwg/fabtests.git","svn_url":"https://github.com/ofiwg/fabtests","homepage":"http://libfabric.org","size":2185,"stargazers_count":15,"watchers_count":15,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":19,"forks":40,"open_issues":19,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ofiwg/fabtests/pulls/518"},"html":{"href":"https://github.com/ofiwg/fabtests/pull/518"},"issue":{"href":"https://api.github.com/repos/ofiwg/fabtests/issues/518"},"comments":{"href":"https://api.github.com/repos/ofiwg/fabtests/issues/518/comments"},"review_comments":{"href":"https://api.github.com/repos/ofiwg/fabtests/pulls/518/comments"},"review_comment":{"href":"https://api.github.com/repos/ofiwg/fabtests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ofiwg/fabtests/pulls/518/commits"},"statuses":{"href":"https://api.github.com/repos/ofiwg/fabtests/statuses/149f500d4a233ce0604bc97fdc7985ede1602912"}}}}