{"action":"created","issue":{"url":"https://api.github.com/repos/p4lang/p4-spec/issues/614","repository_url":"https://api.github.com/repos/p4lang/p4-spec","labels_url":"https://api.github.com/repos/p4lang/p4-spec/issues/614/labels{/name}","comments_url":"https://api.github.com/repos/p4lang/p4-spec/issues/614/comments","events_url":"https://api.github.com/repos/p4lang/p4-spec/issues/614/events","html_url":"https://github.com/p4lang/p4-spec/issues/614","id":318751825,"number":614,"title":"[PSA] Multiple clones","user":{"login":"samar-abdi","id":24684223,"avatar_url":"https://avatars2.githubusercontent.com/u/24684223?v=4","gravatar_id":"","url":"https://api.github.com/users/samar-abdi","html_url":"https://github.com/samar-abdi","followers_url":"https://api.github.com/users/samar-abdi/followers","following_url":"https://api.github.com/users/samar-abdi/following{/other_user}","gists_url":"https://api.github.com/users/samar-abdi/gists{/gist_id}","starred_url":"https://api.github.com/users/samar-abdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samar-abdi/subscriptions","organizations_url":"https://api.github.com/users/samar-abdi/orgs","repos_url":"https://api.github.com/users/samar-abdi/repos","events_url":"https://api.github.com/users/samar-abdi/events{/privacy}","received_events_url":"https://api.github.com/users/samar-abdi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-29T21:31:26Z","updated_at":"2018-04-30T03:40:01Z","closed_at":null,"author_association":"NONE","body":"The cloning ability in PSA seems to be restricted to only one clone (we have a bool in ingress_output metadata to indicate if packet should be cloned, and a single param for clone session ID).\r\n\r\nWhat if we wanted to create N (>1) clones to different ports, and carrying different metadata?\r\n\r\nRelated, in v1model, does the clone3 extern call create a new clone every time it is called, let's say in multiple table actions? Thanks!"},"comment":{"url":"https://api.github.com/repos/p4lang/p4-spec/issues/comments/385308024","html_url":"https://github.com/p4lang/p4-spec/issues/614#issuecomment-385308024","issue_url":"https://api.github.com/repos/p4lang/p4-spec/issues/614","id":385308024,"user":{"login":"samar-abdi","id":24684223,"avatar_url":"https://avatars2.githubusercontent.com/u/24684223?v=4","gravatar_id":"","url":"https://api.github.com/users/samar-abdi","html_url":"https://github.com/samar-abdi","followers_url":"https://api.github.com/users/samar-abdi/followers","following_url":"https://api.github.com/users/samar-abdi/following{/other_user}","gists_url":"https://api.github.com/users/samar-abdi/gists{/gist_id}","starred_url":"https://api.github.com/users/samar-abdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samar-abdi/subscriptions","organizations_url":"https://api.github.com/users/samar-abdi/orgs","repos_url":"https://api.github.com/users/samar-abdi/repos","events_url":"https://api.github.com/users/samar-abdi/events{/privacy}","received_events_url":"https://api.github.com/users/samar-abdi/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T03:40:01Z","updated_at":"2018-04-30T03:40:01Z","author_association":"NONE","body":"Andy, your suggestions are always brilliant and very welcome, so please don't feel inhibited in any way :)\r\n\r\nMy current struggle with this problem is having to balance the portability of the P4 program with the simplicity of the P4 compiler for each target device. There are multiple ways of expressing this behavior in P4, as you mentioned, but the compiler will inevitably require annotations as guidance to map such a program to a given fixed function architecture. I would like to avoid custom annotations as much as possible.\r\n\r\nA clone group makes the program semantics much more obvious, and can be implemented in the two ways you mentioned, or through a fixed function block without recirculation if the target supports it."}}
{"actor":{"display_login":"samar-abdi"}}