Displaying 8 results from an estimated 8 matches for "virtnet_bypass_destroy".
2018 Apr 06
0
[RFC PATCH net-next v5 3/4] virtio_net: Extend virtio to use VF datapath when available
...er(vi->bypass_netdev, bypass_netdev);
>> +
>> + return 0;
>> +
>> +err_bypass:
>> + unregister_netdev(bypass_netdev);
>> +err_register_netdev:
>> + free_netdev(bypass_netdev);
>> +
>> + return res;
>> +}
>> +
>> +static void virtnet_bypass_destroy(struct virtnet_info *vi)
>> +{
>> + struct net_device *bypass_netdev;
>> + struct virtnet_bypass_info *vbi;
>> + struct net_device *child_netdev;
>> +
>> + bypass_netdev = rcu_dereference(vi->bypass_netdev);
>> + /* no device found, nothing to free */
&g...
2018 Apr 06
2
[RFC PATCH net-next v5 3/4] virtio_net: Extend virtio to use VF datapath when available
...< 0)
>+ goto err_bypass;
>+
>+ rcu_assign_pointer(vi->bypass_netdev, bypass_netdev);
>+
>+ return 0;
>+
>+err_bypass:
>+ unregister_netdev(bypass_netdev);
>+err_register_netdev:
>+ free_netdev(bypass_netdev);
>+
>+ return res;
>+}
>+
>+static void virtnet_bypass_destroy(struct virtnet_info *vi)
>+{
>+ struct net_device *bypass_netdev;
>+ struct virtnet_bypass_info *vbi;
>+ struct net_device *child_netdev;
>+
>+ bypass_netdev = rcu_dereference(vi->bypass_netdev);
>+ /* no device found, nothing to free */
>+ if (!bypass_netdev)
>+ retu...
2018 Apr 06
2
[RFC PATCH net-next v5 3/4] virtio_net: Extend virtio to use VF datapath when available
...< 0)
>+ goto err_bypass;
>+
>+ rcu_assign_pointer(vi->bypass_netdev, bypass_netdev);
>+
>+ return 0;
>+
>+err_bypass:
>+ unregister_netdev(bypass_netdev);
>+err_register_netdev:
>+ free_netdev(bypass_netdev);
>+
>+ return res;
>+}
>+
>+static void virtnet_bypass_destroy(struct virtnet_info *vi)
>+{
>+ struct net_device *bypass_netdev;
>+ struct virtnet_bypass_info *vbi;
>+ struct net_device *child_netdev;
>+
>+ bypass_netdev = rcu_dereference(vi->bypass_netdev);
>+ /* no device found, nothing to free */
>+ if (!bypass_netdev)
>+ retu...
2018 Feb 16
0
[RFC PATCH v3 2/3] virtio_net: Extend virtio to use VF datapath when available
..._off(bypass_netdev);
+
+ vi->bypass_netdev = bypass_netdev;
+
+ /* Change the name of the backup interface to vbkup0
+ * we may need to revisit naming later but this gets it out
+ * of the way for now.
+ */
+ strcpy(backup_netdev->name, "vbkup%d");
+
+ return 0;
+}
+
+static void virtnet_bypass_destroy(struct virtnet_info *vi)
+{
+ struct net_device *bypass_netdev = vi->bypass_netdev;
+ struct virtnet_bypass_info *vbi;
+ struct net_device *child_netdev;
+
+ /* no device found, nothing to free */
+ if (!bypass_netdev)
+ return;
+
+ vbi = netdev_priv(bypass_netdev);
+
+ netif_device_detach(bypa...
2018 Apr 05
0
[RFC PATCH net-next v5 3/4] virtio_net: Extend virtio to use VF datapath when available
...register_instance(virtnet_bypass, bypass_netdev);
+ if (res < 0)
+ goto err_bypass;
+
+ rcu_assign_pointer(vi->bypass_netdev, bypass_netdev);
+
+ return 0;
+
+err_bypass:
+ unregister_netdev(bypass_netdev);
+err_register_netdev:
+ free_netdev(bypass_netdev);
+
+ return res;
+}
+
+static void virtnet_bypass_destroy(struct virtnet_info *vi)
+{
+ struct net_device *bypass_netdev;
+ struct virtnet_bypass_info *vbi;
+ struct net_device *child_netdev;
+
+ bypass_netdev = rcu_dereference(vi->bypass_netdev);
+ /* no device found, nothing to free */
+ if (!bypass_netdev)
+ return;
+
+ vbi = netdev_priv(bypass_net...
2018 Apr 05
6
[RFC PATCH net-next v5 0/4] Enable virtio_net to act as a backup for a passthru device
The main motivation for this patch is to enable cloud service providers
to provide an accelerated datapath to virtio-net enabled VMs in a
transparent manner with no/minimal guest userspace changes. This also
enables hypervisor controlled live migration to be supported with VMs that
have direct attached SR-IOV VF devices.
Patch 1 introduces a new feature bit VIRTIO_NET_F_BACKUP that can be
used
2018 Feb 16
8
[RFC PATCH v3 0/3] Enable virtio_net to act as a backup for a passthru device
Patch 1 introduces a new feature bit VIRTIO_NET_F_BACKUP that can be
used by hypervisor to indicate that virtio_net interface should act as
a backup for another device with the same MAC address.
Ppatch 2 is in response to the community request for a 3 netdev
solution. However, it creates some issues we'll get into in a moment.
It extends virtio_net to use alternate datapath when available
2018 Feb 16
8
[RFC PATCH v3 0/3] Enable virtio_net to act as a backup for a passthru device
Patch 1 introduces a new feature bit VIRTIO_NET_F_BACKUP that can be
used by hypervisor to indicate that virtio_net interface should act as
a backup for another device with the same MAC address.
Ppatch 2 is in response to the community request for a 3 netdev
solution. However, it creates some issues we'll get into in a moment.
It extends virtio_net to use alternate datapath when available