)]}'
{"os_vif/objects/vif.py":[{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"fe6937d962f079932e50a4f189497cb67c00a497","unresolved":false,"context_lines":[{"line_number":128,"context_line":"@base.VersionedObjectRegistry.register"},{"line_number":129,"context_line":"class VIFHostDevicePCI(VIFBase):"},{"line_number":130,"context_line":"    # For libvirt drivers, Host device PCI assignment"},{"line_number":131,"context_line":"    # \u003chostdev mode\u003d\u0027subsystem\u0027 type\u003d\u0027pci\u0027 managed\u003d\u0027yes\u0027\u003e"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    VERSION \u003d \u00271.0\u0027"},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5a5ae5dd_013c192e","line":131,"range":{"start_line":131,"start_character":55,"end_line":131,"end_character":57},"updated":"2016-02-09 15:17:35.000000000","message":"There should not actually ne any need for this. IIUC, \u003cinterface type\u003d\u0027hostdev\u0027\u003e offers a superset of the functionality that \u003chostdev type\u003d\"pci\"\u003e does, so we can switch over to just using \u003cinterface type\u003d\"hostdev\"\u003e exclusively without problems AFAICT","commit_id":"71d2bd1d27962179d538a2f5068fcc09de637979"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"6011239936af2c0c7b4d1216f38d856f1eb853c0","unresolved":false,"context_lines":[{"line_number":128,"context_line":"@base.VersionedObjectRegistry.register"},{"line_number":129,"context_line":"class VIFHostDevicePCI(VIFBase):"},{"line_number":130,"context_line":"    # For libvirt drivers, Host device PCI assignment"},{"line_number":131,"context_line":"    # \u003chostdev mode\u003d\u0027subsystem\u0027 type\u003d\u0027pci\u0027 managed\u003d\u0027yes\u0027\u003e"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    VERSION \u003d \u00271.0\u0027"},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a57f1b5_b24b19b0","line":131,"range":{"start_line":131,"start_character":55,"end_line":131,"end_character":57},"in_reply_to":"3a57f1b5_6b20724a","updated":"2016-02-10 11:33:43.000000000","message":"Ok, so I think i understand the problem now - essentially the \u003cinterface type\u003d\"hostdev\"\u003e is functionally identical to \u003chostdev\u003e *provided* the device is a traditional ethernet NIC device. What you have is an inifiband device though, so that\u0027s not compatible with the \u003cinterface type\u003d\"hostdev\"\u003e approach.\n\nRather than introducing a new VIF class, I think it would be desirable if we just add an attribute to the existing VIFHostDevice class. I\u0027m thinking an enum initially containing \u0027dev_type\u003dethernet|generic\u0027.   If the device type is \u0027ethernet\u0027, then libvirt would use \u003cinterface type\u003d\"hostdev\"\u003e and if it was \u0027generic\u0027, then we\u0027d use \u003chostdev\u003e.","commit_id":"71d2bd1d27962179d538a2f5068fcc09de637979"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"a6994a0d14a0ebc581e5f284ddac25ff1ded8c05","unresolved":false,"context_lines":[{"line_number":128,"context_line":"@base.VersionedObjectRegistry.register"},{"line_number":129,"context_line":"class VIFHostDevicePCI(VIFBase):"},{"line_number":130,"context_line":"    # For libvirt drivers, Host device PCI assignment"},{"line_number":131,"context_line":"    # \u003chostdev mode\u003d\u0027subsystem\u0027 type\u003d\u0027pci\u0027 managed\u003d\u0027yes\u0027\u003e"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    VERSION \u003d \u00271.0\u0027"},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a57f1b5_63494e31","line":131,"range":{"start_line":131,"start_character":55,"end_line":131,"end_character":57},"in_reply_to":"3a57f1b5_b24b19b0","updated":"2016-02-10 14:27:53.000000000","message":"Done","commit_id":"71d2bd1d27962179d538a2f5068fcc09de637979"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"ba2aea642986b5a500e253a104426eeeae212b25","unresolved":false,"context_lines":[{"line_number":128,"context_line":"@base.VersionedObjectRegistry.register"},{"line_number":129,"context_line":"class VIFHostDevicePCI(VIFBase):"},{"line_number":130,"context_line":"    # For libvirt drivers, Host device PCI assignment"},{"line_number":131,"context_line":"    # \u003chostdev mode\u003d\u0027subsystem\u0027 type\u003d\u0027pci\u0027 managed\u003d\u0027yes\u0027\u003e"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    VERSION \u003d \u00271.0\u0027"},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5a5ae5dd_1c0ec0e5","line":131,"range":{"start_line":131,"start_character":55,"end_line":131,"end_character":57},"in_reply_to":"5a5ae5dd_013c192e","updated":"2016-02-09 15:27:32.000000000","message":"but interface hosdev can\u0027t work with infiniband SR-IOV, so for that case we just adding the VF using \u003chostdev type\u003d\"pci\"\u003e\nalso the pf passthrough patch does the same something similar\nsee \nhttps://review.openstack.org/#/c/262583/19/nova/virt/libvirt/vif.py\n\nI guess the use case is when you don\u0027t want libvirt to set the guest mac/vlan","commit_id":"71d2bd1d27962179d538a2f5068fcc09de637979"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"44b88e2fcc0fc67d683835fb6fab18c46aee1a15","unresolved":false,"context_lines":[{"line_number":128,"context_line":"@base.VersionedObjectRegistry.register"},{"line_number":129,"context_line":"class VIFHostDevicePCI(VIFBase):"},{"line_number":130,"context_line":"    # For libvirt drivers, Host device PCI assignment"},{"line_number":131,"context_line":"    # \u003chostdev mode\u003d\u0027subsystem\u0027 type\u003d\u0027pci\u0027 managed\u003d\u0027yes\u0027\u003e"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    VERSION \u003d \u00271.0\u0027"},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5a5ae5dd_b7c0e72b","line":131,"range":{"start_line":131,"start_character":55,"end_line":131,"end_character":57},"in_reply_to":"5a5ae5dd_1c0ec0e5","updated":"2016-02-09 15:42:46.000000000","message":"Can you elaborate on what does not work ? Internally libvirt turns the \u003cinterface type\u003d\"hostdev\"\u003e into a \u003chostdev\u003e for most of its processing, so aside from setting the mac address they should be functionally identical.","commit_id":"71d2bd1d27962179d538a2f5068fcc09de637979"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"6ec4ce373be962c4cc5076d2c2aeca5377f6cb1a","unresolved":false,"context_lines":[{"line_number":128,"context_line":"@base.VersionedObjectRegistry.register"},{"line_number":129,"context_line":"class VIFHostDevicePCI(VIFBase):"},{"line_number":130,"context_line":"    # For libvirt drivers, Host device PCI assignment"},{"line_number":131,"context_line":"    # \u003chostdev mode\u003d\u0027subsystem\u0027 type\u003d\u0027pci\u0027 managed\u003d\u0027yes\u0027\u003e"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    VERSION \u003d \u00271.0\u0027"},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a57f1b5_4befb6b0","line":131,"range":{"start_line":131,"start_character":55,"end_line":131,"end_character":57},"in_reply_to":"5a5ae5dd_37e71614","updated":"2016-02-09 20:04:24.000000000","message":"yes so one use case is for pf pass-through, which the pf already have mac. \nThe second use case is infiniband with SR-IOV. By using the plug/unplug methods to configure the guid(which similar to mac)/pkey (similar to vlan) by external util.","commit_id":"71d2bd1d27962179d538a2f5068fcc09de637979"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"6ec4ce373be962c4cc5076d2c2aeca5377f6cb1a","unresolved":false,"context_lines":[{"line_number":128,"context_line":"@base.VersionedObjectRegistry.register"},{"line_number":129,"context_line":"class VIFHostDevicePCI(VIFBase):"},{"line_number":130,"context_line":"    # For libvirt drivers, Host device PCI assignment"},{"line_number":131,"context_line":"    # \u003chostdev mode\u003d\u0027subsystem\u0027 type\u003d\u0027pci\u0027 managed\u003d\u0027yes\u0027\u003e"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    VERSION \u003d \u00271.0\u0027"},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a57f1b5_6b20724a","line":131,"range":{"start_line":131,"start_character":55,"end_line":131,"end_character":57},"in_reply_to":"5a5ae5dd_b7c0e72b","updated":"2016-02-09 20:04:24.000000000","message":"Let me re-phrase it. infiniband interface is not support in libvirt. The infiniband the hardware address is GUID which is 64 bit and Ethernet mac is 48 bit. Now in the plug method we are configuring the VF GID by extending the mac to 64 bit.\nThis is done by mellanox utility.","commit_id":"71d2bd1d27962179d538a2f5068fcc09de637979"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"d33fb7036c1feaf67a2521b52f68aa48c432a9af","unresolved":false,"context_lines":[{"line_number":128,"context_line":"@base.VersionedObjectRegistry.register"},{"line_number":129,"context_line":"class VIFHostDevicePCI(VIFBase):"},{"line_number":130,"context_line":"    # For libvirt drivers, Host device PCI assignment"},{"line_number":131,"context_line":"    # \u003chostdev mode\u003d\u0027subsystem\u0027 type\u003d\u0027pci\u0027 managed\u003d\u0027yes\u0027\u003e"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    VERSION \u003d \u00271.0\u0027"},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5a5ae5dd_37e71614","line":131,"range":{"start_line":131,"start_character":55,"end_line":131,"end_character":57},"in_reply_to":"5a5ae5dd_b7c0e72b","updated":"2016-02-09 15:54:43.000000000","message":"if the mac and vlan are not set how is the traffic directed to the vf on the recive path? for the pf that makes sense but for the vf unless there is another agent the programs the fdb entries or mac/vlan filter in the nic to direct traffic to the  the guest im not sure how this works on anything other then the pf. \n\nfor infiniband is there another mechanisum that is used to direct the traffic? sorry im not that familiar with the infiniband protocol.","commit_id":"71d2bd1d27962179d538a2f5068fcc09de637979"},{"author":{"_account_id":7634,"name":"Takashi Natsume","email":"takanattie@gmail.com","username":"natsumet"},"change_message_id":"eab09ed52434ae9f72e0f9bc370d4a85c97bd090","unresolved":false,"context_lines":[{"line_number":129,"context_line":"class VIFHostDevice(VIFBase):"},{"line_number":130,"context_line":"    # For libvirt drivers, this maps to type\u003d\u0027hostdev\u0027"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    VERSION \u003d \u00271.0\u0027"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    fields \u003d {"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_a5940643","line":132,"range":{"start_line":132,"start_character":4,"end_line":132,"end_character":19},"updated":"2016-02-17 04:30:51.000000000","message":"The version should be increased because a new field is added.","commit_id":"6a099ff74104e81d74d76f0a061f7c7df7c12c8b"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"8de205a3452b2763c1a720bc4fedbe97f1ee4d29","unresolved":false,"context_lines":[{"line_number":129,"context_line":"class VIFHostDevice(VIFBase):"},{"line_number":130,"context_line":"    # For libvirt drivers, this maps to type\u003d\u0027hostdev\u0027"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    VERSION \u003d \u00271.0\u0027"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    fields \u003d {"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_1f61b6d3","line":132,"range":{"start_line":132,"start_character":4,"end_line":132,"end_character":19},"in_reply_to":"dae33548_a5940643","updated":"2016-02-17 09:21:29.000000000","message":"We\u0027ve not done any release of os-vif yet, and nothing is using it, so until that time we\u0027re leaving the version at 1.0","commit_id":"6a099ff74104e81d74d76f0a061f7c7df7c12c8b"}],"os_vif/tests/test_fields.py":[{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"a327fbb289fcc381dcadaeee38d1cbc3d6d0c577","unresolved":false,"context_lines":[{"line_number":29,"context_line":"        self.assertEqual(\"\u0027ethernet\u0027\", self.field.stringify(\u0027ethernet\u0027))"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def test_stringify_invalid(self):"},{"line_number":32,"context_line":"        self.assertRaises(ValueError, self.field.stringify, \u0027ethernat\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a57f1b5_c3ee028b","line":32,"updated":"2016-02-10 14:33:53.000000000","message":"In nova we deleted all the enum subtype tests, since they weren\u0027t adding any value over the generic enum tests in ovo. So I think you can just not bother adding this file - the change in test_vif.py is sufficient.","commit_id":"63a87e7b87c174c56ab6c51ea8e97a4bf7f5cfc3"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"b436b18d6786f3c8019e2d3cc4d8f95b6f5a0b9f","unresolved":false,"context_lines":[{"line_number":29,"context_line":"        self.assertEqual(\"\u0027ethernet\u0027\", self.field.stringify(\u0027ethernet\u0027))"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def test_stringify_invalid(self):"},{"line_number":32,"context_line":"        self.assertRaises(ValueError, self.field.stringify, \u0027ethernat\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a57f1b5_6ea5b502","line":32,"in_reply_to":"3a57f1b5_c3ee028b","updated":"2016-02-10 14:39:12.000000000","message":"Done","commit_id":"63a87e7b87c174c56ab6c51ea8e97a4bf7f5cfc3"}]}
