search for: failover_lock

Displaying 14 results from an estimated 14 matches for "failover_lock".

2018 May 24
0
[PATCH net-next v12 1/5] net: Introduce generic failover module
...ed on netvsc driver. + */ + +#include <linux/module.h> +#include <linux/etherdevice.h> +#include <uapi/linux/if_arp.h> +#include <linux/rtnetlink.h> +#include <linux/if_vlan.h> +#include <net/failover.h> + +static LIST_HEAD(failover_list); +static DEFINE_SPINLOCK(failover_lock); + +static struct net_device *failover_get_bymac(u8 *mac, struct failover_ops **ops) +{ + struct net_device *failover_dev; + struct failover *failover; + + spin_lock(&failover_lock); + list_for_each_entry(failover, &failover_list, list) { + failover_dev = rtnl_dereference(failover->fai...
2018 May 25
2
[PATCH net-next v12 1/5] net: Introduce generic failover module
On Thu, 24 May 2018 09:55:13 -0700 Sridhar Samudrala <sridhar.samudrala at intel.com> wrote: > + spin_lock(&failover_lock); Since register is not in fast path, this should be a mutex? > +int failover_slave_unregister(struct net_device *slave_dev) > +{ > + struct net_device *failover_dev; > + struct failover_ops *fops; > + > + if (!netif_is_failover_slave(slave_dev)) > + goto done; > + >...
2018 Apr 20
2
[PATCH v7 net-next 2/4] net: Introduce generic failover module
...de <linux/rtnetlink.h> > +#include <linux/if_vlan.h> > +#include <linux/pci.h> > +#include <net/sch_generic.h> > +#include <uapi/linux/if_arp.h> > +#include <net/failover.h> > + > +static LIST_HEAD(failover_list); > +static DEFINE_SPINLOCK(failover_lock); > + > +static int failover_slave_pre_register(struct net_device *slave_dev, > + struct net_device *failover_dev, > + struct failover_ops *failover_ops) > +{ > + struct failover_info *finfo; > + bool standby; > + > + if (failover_ops) { > + if (!f...
2018 Apr 20
2
[PATCH v7 net-next 2/4] net: Introduce generic failover module
...de <linux/rtnetlink.h> > +#include <linux/if_vlan.h> > +#include <linux/pci.h> > +#include <net/sch_generic.h> > +#include <uapi/linux/if_arp.h> > +#include <net/failover.h> > + > +static LIST_HEAD(failover_list); > +static DEFINE_SPINLOCK(failover_lock); > + > +static int failover_slave_pre_register(struct net_device *slave_dev, > + struct net_device *failover_dev, > + struct failover_ops *failover_ops) > +{ > + struct failover_info *finfo; > + bool standby; > + > + if (failover_ops) { > + if (!f...
2018 Apr 20
0
[PATCH v7 net-next 2/4] net: Introduce generic failover module
...#include <linux/netpoll.h> +#include <linux/rtnetlink.h> +#include <linux/if_vlan.h> +#include <linux/pci.h> +#include <net/sch_generic.h> +#include <uapi/linux/if_arp.h> +#include <net/failover.h> + +static LIST_HEAD(failover_list); +static DEFINE_SPINLOCK(failover_lock); + +static int failover_slave_pre_register(struct net_device *slave_dev, + struct net_device *failover_dev, + struct failover_ops *failover_ops) +{ + struct failover_info *finfo; + bool standby; + + if (failover_ops) { + if (!failover_ops->slave_pre_register) + return -EI...
2018 Apr 20
0
[PATCH v7 net-next 2/4] net: Introduce generic failover module
...;> +#include <linux/if_vlan.h> >> +#include <linux/pci.h> >> +#include <net/sch_generic.h> >> +#include <uapi/linux/if_arp.h> >> +#include <net/failover.h> >> + >> +static LIST_HEAD(failover_list); >> +static DEFINE_SPINLOCK(failover_lock); >> + >> +static int failover_slave_pre_register(struct net_device *slave_dev, >> + struct net_device *failover_dev, >> + struct failover_ops *failover_ops) >> +{ >> + struct failover_info *finfo; >> + bool standby; >> + >>...
2018 Apr 20
13
[PATCH net-next v7 0/4] Enable virtio_net to act as a standby 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_STANDBY that can be used
2018 May 22
7
[PATCH net-next v11 0/5] Enable virtio_net to act as a standby 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 failover module that provides a generic interface for
2018 May 24
11
[PATCH net-next v12 0/5] Enable virtio_net to act as a standby 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 failover module that provides a generic interface for
2019 Mar 06
0
[RFC PATCH net-next] failover: allow name change on IFF_UP slave interfaces
...3/6/2019 1:26 PM, si-wei liu wrote: > > > > On 3/6/2019 4:04 AM, Jiri Pirko wrote: >>> --- a/net/core/failover.c >>> +++ b/net/core/failover.c >>> @@ -16,6 +16,11 @@ >>> >>> static LIST_HEAD(failover_list); >>> static DEFINE_SPINLOCK(failover_lock); >>> +static bool slave_rename_ok = true; >>> + >>> +module_param(slave_rename_ok, bool, (S_IRUGO | S_IWUSR)); >>> +MODULE_PARM_DESC(slave_rename_ok, >>> + "If set allow renaming the slave when failover master is up"); >> No module par...
2019 Mar 06
0
[RFC PATCH net-next] failover: allow name change on IFF_UP slave interfaces
...t;> On 3/6/2019 4:04 AM, Jiri Pirko wrote: >>>>> --- a/net/core/failover.c >>>>> +++ b/net/core/failover.c >>>>> @@ -16,6 +16,11 @@ >>>>> >>>>> static LIST_HEAD(failover_list); >>>>> static DEFINE_SPINLOCK(failover_lock); >>>>> +static bool slave_rename_ok = true; >>>>> + >>>>> +module_param(slave_rename_ok, bool, (S_IRUGO | S_IWUSR)); >>>>> +MODULE_PARM_DESC(slave_rename_ok, >>>>> + "If set allow renaming the slave when failover mas...
2019 Mar 06
0
[RFC PATCH net-next] failover: allow name change on IFF_UP slave interfaces
...> write_seqcount_begin(&devnet_rename_seq); >diff --git a/net/core/failover.c b/net/core/failover.c >index 4a92a98..1fd8bbb 100644 >--- a/net/core/failover.c >+++ b/net/core/failover.c >@@ -16,6 +16,11 @@ > > static LIST_HEAD(failover_list); > static DEFINE_SPINLOCK(failover_lock); >+static bool slave_rename_ok = true; >+ >+module_param(slave_rename_ok, bool, (S_IRUGO | S_IWUSR)); >+MODULE_PARM_DESC(slave_rename_ok, >+ "If set allow renaming the slave when failover master is up"); No module parameters please. If you need to set something do it us...
2019 Mar 05
0
[RFC PATCH net-next] failover: allow name change on IFF_UP slave interfaces
...ite_seqcount_begin(&devnet_rename_seq); > diff --git a/net/core/failover.c b/net/core/failover.c > index 4a92a98..1fd8bbb 100644 > --- a/net/core/failover.c > +++ b/net/core/failover.c > @@ -16,6 +16,11 @@ > > static LIST_HEAD(failover_list); > static DEFINE_SPINLOCK(failover_lock); > +static bool slave_rename_ok = true; > + > +module_param(slave_rename_ok, bool, (S_IRUGO | S_IWUSR)); > +MODULE_PARM_DESC(slave_rename_ok, > + "If set allow renaming the slave when failover master is up"); > > static struct net_device *failover_get_bymac(u8 *...
2019 Mar 05
0
[RFC PATCH net-next] failover: allow name change on IFF_UP slave interfaces
...-git a/net/core/failover.c b/net/core/failover.c > > > index 4a92a98..1fd8bbb 100644 > > > --- a/net/core/failover.c > > > +++ b/net/core/failover.c > > > @@ -16,6 +16,11 @@ > > > static LIST_HEAD(failover_list); > > > static DEFINE_SPINLOCK(failover_lock); > > > +static bool slave_rename_ok = true; > > > + > > > +module_param(slave_rename_ok, bool, (S_IRUGO | S_IWUSR)); > > > +MODULE_PARM_DESC(slave_rename_ok, > > > + "If set allow renaming the slave when failover master is up"); > > &g...