{"action":"opened","number":1130,"pull_request":{"url":"https://api.github.com/repos/ofiwg/libfabric/pulls/1130","id":39033472,"html_url":"https://github.com/ofiwg/libfabric/pull/1130","diff_url":"https://github.com/ofiwg/libfabric/pull/1130.diff","patch_url":"https://github.com/ofiwg/libfabric/pull/1130.patch","issue_url":"https://api.github.com/repos/ofiwg/libfabric/issues/1130","number":1130,"state":"open","locked":false,"title":"prov/verbs: Ignore address info got from ibacm","user":{"login":"a-ilango","id":8547674,"avatar_url":"https://avatars.githubusercontent.com/u/8547674?v=3","gravatar_id":"","url":"https://api.github.com/users/a-ilango","html_url":"https://github.com/a-ilango","followers_url":"https://api.github.com/users/a-ilango/followers","following_url":"https://api.github.com/users/a-ilango/following{/other_user}","gists_url":"https://api.github.com/users/a-ilango/gists{/gist_id}","starred_url":"https://api.github.com/users/a-ilango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-ilango/subscriptions","organizations_url":"https://api.github.com/users/a-ilango/orgs","repos_url":"https://api.github.com/users/a-ilango/repos","events_url":"https://api.github.com/users/a-ilango/events{/privacy}","received_events_url":"https://api.github.com/users/a-ilango/received_events","type":"User","site_admin":false},"body":"This patch fixes an issue where the server would reject a connection request from\r\nclient if ibacm is running on the client.\r\n\r\nRoot cause: When ibacm service is running, rdma_getaddrinfo returns an \"ib rai\"\r\nthat contains addresses in sockaddr_ib format. The address info present in \r\nrai->connect corresponds to whatever address format that was presented originally\r\nto rdma_getaddrinfo( IPv4 for example). In verbs provider, rdma_getaddrinfo \r\ngets called twice. Once during fi_getinfo and another during endpoint creation.\r\nThe app passes the fi_info got from fi_getinfo to fi_endpoint. This fi_info has \r\nthe addresses in sockaddr_ib format. So when rdma_getaddrinfo gets called again,\r\nthe returned rai->connect has address info in IPv6 (corresponding to sockaddr_ib).\r\nWhen kernel rdma_cm sends a connect request to the server, this rai->connect is \r\npassed along in the header. The server tries to match this connect info with a \r\nlistener. Since rai->connect has sockaddr_ib instead of a sockaddr_in it is unable\r\nto match the request to a listener and sends a reject response.\r\n\r\nFix: Ignore the \"ib rai\" resolved through ibacm and just return regular rai to the\r\napp. The regular rai would still have routing information got from ibacm. A future\r\nTODO is to make this decision based on whether we got called from fi_getinfo or \r\nfi_endpoint.\r\n\r\nSigned-off-by: Arun C Ilango <arun.ilango@intel.com>","created_at":"2015-07-01T22:53:47Z","updated_at":"2015-07-01T22:53:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ofiwg/libfabric/pulls/1130/commits","review_comments_url":"https://api.github.com/repos/ofiwg/libfabric/pulls/1130/comments","review_comment_url":"https://api.github.com/repos/ofiwg/libfabric/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ofiwg/libfabric/issues/1130/comments","statuses_url":"https://api.github.com/repos/ofiwg/libfabric/statuses/73f9c22e54508113f1199cf05d173e92cfb1827f","head":{"label":"a-ilango:acm_fix","ref":"acm_fix","sha":"73f9c22e54508113f1199cf05d173e92cfb1827f","user":{"login":"a-ilango","id":8547674,"avatar_url":"https://avatars.githubusercontent.com/u/8547674?v=3","gravatar_id":"","url":"https://api.github.com/users/a-ilango","html_url":"https://github.com/a-ilango","followers_url":"https://api.github.com/users/a-ilango/followers","following_url":"https://api.github.com/users/a-ilango/following{/other_user}","gists_url":"https://api.github.com/users/a-ilango/gists{/gist_id}","starred_url":"https://api.github.com/users/a-ilango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-ilango/subscriptions","organizations_url":"https://api.github.com/users/a-ilango/orgs","repos_url":"https://api.github.com/users/a-ilango/repos","events_url":"https://api.github.com/users/a-ilango/events{/privacy}","received_events_url":"https://api.github.com/users/a-ilango/received_events","type":"User","site_admin":false},"repo":{"id":24616163,"name":"libfabric","full_name":"a-ilango/libfabric","owner":{"login":"a-ilango","id":8547674,"avatar_url":"https://avatars.githubusercontent.com/u/8547674?v=3","gravatar_id":"","url":"https://api.github.com/users/a-ilango","html_url":"https://github.com/a-ilango","followers_url":"https://api.github.com/users/a-ilango/followers","following_url":"https://api.github.com/users/a-ilango/following{/other_user}","gists_url":"https://api.github.com/users/a-ilango/gists{/gist_id}","starred_url":"https://api.github.com/users/a-ilango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-ilango/subscriptions","organizations_url":"https://api.github.com/users/a-ilango/orgs","repos_url":"https://api.github.com/users/a-ilango/repos","events_url":"https://api.github.com/users/a-ilango/events{/privacy}","received_events_url":"https://api.github.com/users/a-ilango/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/a-ilango/libfabric","description":"Open Fabric Interfaces","fork":true,"url":"https://api.github.com/repos/a-ilango/libfabric","forks_url":"https://api.github.com/repos/a-ilango/libfabric/forks","keys_url":"https://api.github.com/repos/a-ilango/libfabric/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a-ilango/libfabric/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a-ilango/libfabric/teams","hooks_url":"https://api.github.com/repos/a-ilango/libfabric/hooks","issue_events_url":"https://api.github.com/repos/a-ilango/libfabric/issues/events{/number}","events_url":"https://api.github.com/repos/a-ilango/libfabric/events","assignees_url":"https://api.github.com/repos/a-ilango/libfabric/assignees{/user}","branches_url":"https://api.github.com/repos/a-ilango/libfabric/branches{/branch}","tags_url":"https://api.github.com/repos/a-ilango/libfabric/tags","blobs_url":"https://api.github.com/repos/a-ilango/libfabric/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a-ilango/libfabric/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a-ilango/libfabric/git/refs{/sha}","trees_url":"https://api.github.com/repos/a-ilango/libfabric/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a-ilango/libfabric/statuses/{sha}","languages_url":"https://api.github.com/repos/a-ilango/libfabric/languages","stargazers_url":"https://api.github.com/repos/a-ilango/libfabric/stargazers","contributors_url":"https://api.github.com/repos/a-ilango/libfabric/contributors","subscribers_url":"https://api.github.com/repos/a-ilango/libfabric/subscribers","subscription_url":"https://api.github.com/repos/a-ilango/libfabric/subscription","commits_url":"https://api.github.com/repos/a-ilango/libfabric/commits{/sha}","git_commits_url":"https://api.github.com/repos/a-ilango/libfabric/git/commits{/sha}","comments_url":"https://api.github.com/repos/a-ilango/libfabric/comments{/number}","issue_comment_url":"https://api.github.com/repos/a-ilango/libfabric/issues/comments{/number}","contents_url":"https://api.github.com/repos/a-ilango/libfabric/contents/{+path}","compare_url":"https://api.github.com/repos/a-ilango/libfabric/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a-ilango/libfabric/merges","archive_url":"https://api.github.com/repos/a-ilango/libfabric/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a-ilango/libfabric/downloads","issues_url":"https://api.github.com/repos/a-ilango/libfabric/issues{/number}","pulls_url":"https://api.github.com/repos/a-ilango/libfabric/pulls{/number}","milestones_url":"https://api.github.com/repos/a-ilango/libfabric/milestones{/number}","notifications_url":"https://api.github.com/repos/a-ilango/libfabric/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a-ilango/libfabric/labels{/name}","releases_url":"https://api.github.com/repos/a-ilango/libfabric/releases{/id}","created_at":"2014-09-29T22:57:04Z","updated_at":"2015-04-29T22:50:48Z","pushed_at":"2015-07-01T22:51:46Z","git_url":"git://github.com/a-ilango/libfabric.git","ssh_url":"git@github.com:a-ilango/libfabric.git","clone_url":"https://github.com/a-ilango/libfabric.git","svn_url":"https://github.com/a-ilango/libfabric","homepage":null,"size":6238,"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":"8ca684eb3a7ffdf1eda0e8bed358e877ea76f527","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":22996097,"name":"libfabric","full_name":"ofiwg/libfabric","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/libfabric","description":"Open Fabric Interfaces","fork":false,"url":"https://api.github.com/repos/ofiwg/libfabric","forks_url":"https://api.github.com/repos/ofiwg/libfabric/forks","keys_url":"https://api.github.com/repos/ofiwg/libfabric/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ofiwg/libfabric/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ofiwg/libfabric/teams","hooks_url":"https://api.github.com/repos/ofiwg/libfabric/hooks","issue_events_url":"https://api.github.com/repos/ofiwg/libfabric/issues/events{/number}","events_url":"https://api.github.com/repos/ofiwg/libfabric/events","assignees_url":"https://api.github.com/repos/ofiwg/libfabric/assignees{/user}","branches_url":"https://api.github.com/repos/ofiwg/libfabric/branches{/branch}","tags_url":"https://api.github.com/repos/ofiwg/libfabric/tags","blobs_url":"https://api.github.com/repos/ofiwg/libfabric/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ofiwg/libfabric/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ofiwg/libfabric/git/refs{/sha}","trees_url":"https://api.github.com/repos/ofiwg/libfabric/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ofiwg/libfabric/statuses/{sha}","languages_url":"https://api.github.com/repos/ofiwg/libfabric/languages","stargazers_url":"https://api.github.com/repos/ofiwg/libfabric/stargazers","contributors_url":"https://api.github.com/repos/ofiwg/libfabric/contributors","subscribers_url":"https://api.github.com/repos/ofiwg/libfabric/subscribers","subscription_url":"https://api.github.com/repos/ofiwg/libfabric/subscription","commits_url":"https://api.github.com/repos/ofiwg/libfabric/commits{/sha}","git_commits_url":"https://api.github.com/repos/ofiwg/libfabric/git/commits{/sha}","comments_url":"https://api.github.com/repos/ofiwg/libfabric/comments{/number}","issue_comment_url":"https://api.github.com/repos/ofiwg/libfabric/issues/comments{/number}","contents_url":"https://api.github.com/repos/ofiwg/libfabric/contents/{+path}","compare_url":"https://api.github.com/repos/ofiwg/libfabric/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ofiwg/libfabric/merges","archive_url":"https://api.github.com/repos/ofiwg/libfabric/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ofiwg/libfabric/downloads","issues_url":"https://api.github.com/repos/ofiwg/libfabric/issues{/number}","pulls_url":"https://api.github.com/repos/ofiwg/libfabric/pulls{/number}","milestones_url":"https://api.github.com/repos/ofiwg/libfabric/milestones{/number}","notifications_url":"https://api.github.com/repos/ofiwg/libfabric/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ofiwg/libfabric/labels{/name}","releases_url":"https://api.github.com/repos/ofiwg/libfabric/releases{/id}","created_at":"2014-08-15T16:45:53Z","updated_at":"2015-06-26T10:15:20Z","pushed_at":"2015-07-01T22:53:47Z","git_url":"git://github.com/ofiwg/libfabric.git","ssh_url":"git@github.com:ofiwg/libfabric.git","clone_url":"https://github.com/ofiwg/libfabric.git","svn_url":"https://github.com/ofiwg/libfabric","homepage":"http://ofiwg.github.io/libfabric/","size":12016,"stargazers_count":37,"watchers_count":37,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":39,"mirror_url":null,"open_issues_count":60,"forks":39,"open_issues":60,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ofiwg/libfabric/pulls/1130"},"html":{"href":"https://github.com/ofiwg/libfabric/pull/1130"},"issue":{"href":"https://api.github.com/repos/ofiwg/libfabric/issues/1130"},"comments":{"href":"https://api.github.com/repos/ofiwg/libfabric/issues/1130/comments"},"review_comments":{"href":"https://api.github.com/repos/ofiwg/libfabric/pulls/1130/comments"},"review_comment":{"href":"https://api.github.com/repos/ofiwg/libfabric/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ofiwg/libfabric/pulls/1130/commits"},"statuses":{"href":"https://api.github.com/repos/ofiwg/libfabric/statuses/73f9c22e54508113f1199cf05d173e92cfb1827f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":44,"deletions":5,"changed_files":1}}