netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] Enable virtio to act as a master for a passthru device
@ 2018-01-03  0:35 Sridhar Samudrala
  2018-01-03  0:35 ` [PATCH net-next 1/2] virtio_net: Introduce VIRTIO_NET_F_MASTER feature bit Sridhar Samudrala
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Sridhar Samudrala @ 2018-01-03  0:35 UTC (permalink / raw)
  To: mst, stephen, netdev, virtualization, virtio-dev,
	jesse.brandeburg, sridhar.samudrala

This patch series enables virtio to switch over to a VF datapath when a VF
netdev is present with the same MAC address. It allows live migration of a VM
with a direct attached VF without the need to setup a bond/team between a
VF and virtio net device in the guest.

The hypervisor needs to unplug the VF device from the guest on the source
host and reset the MAC filter of the VF to initiate failover of datapath to
virtio before starting the migration. After the migration is completed, the
destination hypervisor sets the MAC filter on the VF and plugs it back to
the guest to switch over to VF datapath.

It is based on netvsc implementation and it may be possible to make this code 
generic and move it to a common location that can be shared by netvsc and virtio.

This patch series is based on the discussion initiated by Jesse on this thread.
https://marc.info/?l=linux-virtualization&m=151189725224231&w=2

Sridhar Samudrala (2):
  virtio_net: Introduce VIRTIO_NET_F_MASTER feature bit
  virtio_net: Extend virtio to use VF datapath when available

 drivers/net/virtio_net.c        | 308 +++++++++++++++++++++++++++++++++++++++-
 include/uapi/linux/virtio_net.h |   1 +
 2 files changed, 306 insertions(+), 3 deletions(-)

-- 
2.14.3

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-01-22 19:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-03  0:35 [PATCH net-next 0/2] Enable virtio to act as a master for a passthru device Sridhar Samudrala
2018-01-03  0:35 ` [PATCH net-next 1/2] virtio_net: Introduce VIRTIO_NET_F_MASTER feature bit Sridhar Samudrala
2018-01-03 16:36   ` David Miller
2018-01-03 17:43   ` Michael S. Tsirkin
2018-01-03 18:17     ` Samudrala, Sridhar
2018-01-03  0:35 ` [PATCH net-next 2/2] virtio_net: Extend virtio to use VF datapath when available Sridhar Samudrala
2018-01-03  2:16 ` [PATCH net-next 0/2] Enable virtio to act as a master for a passthru device Jakub Kicinski
2018-01-03 16:59   ` Alexander Duyck
2018-01-03 18:14     ` Samudrala, Sridhar
2018-01-03 18:28       ` Alexander Duyck
2018-01-04  0:22         ` Samudrala, Sridhar
     [not found]           ` <CADGSJ22TXcyJ1iAAtKho7S=jGfUzUsqvAx-HV2XuwV2sLwfR_Q@mail.gmail.com>
     [not found]             ` <b623709f-69ab-b491-3931-7df74745b723@intel.com>
     [not found]               ` <CADGSJ223aJjt6X-dA=pKVP3_5+BOQ==Rd017LqBrBsKWqXiNSw@mail.gmail.com>
     [not found]                 ` <432a4b0a-fadc-3025-b9f6-09fd3e1b384a@intel.com>
     [not found]                   ` <CADGSJ21rDfqzsnd+m5f6w=LqoTY3Bb0p1Pe+_tppdEm_8HysKA@mail.gmail.com>
2018-01-22 19:00                     ` Siwei Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).