search for: netdev_upper_dev_unlink

Displaying 20 results from an estimated 56 matches for "netdev_upper_dev_unlink".

2019 Mar 21
2
[PATCH net v2] failover: allow name change on IFF_UP slave interfaces
...- slave_dev->priv_flags |= IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags |= (IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); > > if (fops && fops->slave_register && > !fops->slave_register(slave_dev, failover_dev)) > return NOTIFY_OK; > > netdev_upper_dev_unlink(slave_dev, failover_dev); > - slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); > err_upper_link: > netdev_rx_handler_unregister(slave_dev); > done: > @@ -121,7 +121,7 @@ int failover_slave_unr...
2019 Mar 21
2
[PATCH net v2] failover: allow name change on IFF_UP slave interfaces
...- slave_dev->priv_flags |= IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags |= (IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); > > if (fops && fops->slave_register && > !fops->slave_register(slave_dev, failover_dev)) > return NOTIFY_OK; > > netdev_upper_dev_unlink(slave_dev, failover_dev); > - slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); > err_upper_link: > netdev_rx_handler_unregister(slave_dev); > done: > @@ -121,7 +121,7 @@ int failover_slave_unr...
2019 Mar 07
0
[PATCH net v2] failover: allow name change on IFF_UP slave interfaces
...e_dev->priv_flags |= IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags |= (IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); > > if (fops && fops->slave_register && > !fops->slave_register(slave_dev, failover_dev)) > return NOTIFY_OK; > > netdev_upper_dev_unlink(slave_dev, failover_dev); > - slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); > err_upper_link: > netdev_rx_handler_unregister(slave_dev); > done: > @@ -121,7 +121,7 @@ int failover_slave_...
2019 Mar 06
0
[RFC PATCH net-next] failover: allow name change on IFF_UP slave interfaces
...t; slave_dev->priv_flags |= IFF_FAILOVER_SLAVE; >+ if (slave_rename_ok) >+ slave_dev->priv_flags |= IFF_SLAVE_RENAME_OK; > > if (fops && fops->slave_register && > !fops->slave_register(slave_dev, failover_dev)) > return NOTIFY_OK; > > netdev_upper_dev_unlink(slave_dev, failover_dev); >- slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; >+ slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); > err_upper_link: > netdev_rx_handler_unregister(slave_dev); > done: >@@ -121,7 +128,7 @@ int failover_slave_unregiste...
2019 Mar 05
0
[RFC PATCH net-next] failover: allow name change on IFF_UP slave interfaces
...e_dev->priv_flags |= IFF_FAILOVER_SLAVE; > + if (slave_rename_ok) > + slave_dev->priv_flags |= IFF_SLAVE_RENAME_OK; > > if (fops && fops->slave_register && > !fops->slave_register(slave_dev, failover_dev)) > return NOTIFY_OK; > > netdev_upper_dev_unlink(slave_dev, failover_dev); > - slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); > err_upper_link: > netdev_rx_handler_unregister(slave_dev); > done: > @@ -121,7 +128,7 @@ int failover_slave_unr...
2019 Mar 21
0
[PATCH net v2] failover: allow name change on IFF_UP slave interfaces
...lags |= IFF_FAILOVER_SLAVE; >> + slave_dev->priv_flags |= (IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); >> >> if (fops && fops->slave_register && >> !fops->slave_register(slave_dev, failover_dev)) >> return NOTIFY_OK; >> >> netdev_upper_dev_unlink(slave_dev, failover_dev); >> - slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; >> + slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); >> err_upper_link: >> netdev_rx_handler_unregister(slave_dev); >> done: >> @@ -121,7 +121,7 @@ i...
2019 Mar 21
0
[PATCH net v2] failover: allow name change on IFF_UP slave interfaces
..._flags |= (IFF_FAILOVER_SLAVE | >>>> IFF_SLAVE_RENAME_OK); >>>> ??????? if (fops && fops->slave_register && >>>> ????????? !fops->slave_register(slave_dev, failover_dev)) >>>> ????????? return NOTIFY_OK; >>>> ??????? netdev_upper_dev_unlink(slave_dev, failover_dev); >>>> -??? slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; >>>> +??? slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | >>>> IFF_SLAVE_RENAME_OK); >>>> ? err_upper_link: >>>> ????? netdev_rx_handler_unreg...
2019 Mar 21
0
[PATCH net v2] failover: allow name change on IFF_UP slave interfaces
...t;> + slave_dev->priv_flags |= (IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); > >> > >> if (fops && fops->slave_register && > >> !fops->slave_register(slave_dev, failover_dev)) > >> return NOTIFY_OK; > >> > >> netdev_upper_dev_unlink(slave_dev, failover_dev); > >> - slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; > >> + slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); > >> err_upper_link: > >> netdev_rx_handler_unregister(slave_dev); > >> done: >...
2019 Apr 09
0
[PATCH net v8] failover: allow name change on IFF_UP slave interfaces
...- slave_dev->priv_flags |= IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags |= (IFF_FAILOVER_SLAVE | IFF_LIVE_RENAME_OK); > > if (fops && fops->slave_register && > !fops->slave_register(slave_dev, failover_dev)) > return NOTIFY_OK; > > netdev_upper_dev_unlink(slave_dev, failover_dev); > - slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_LIVE_RENAME_OK); > err_upper_link: > netdev_rx_handler_unregister(slave_dev); > done: > @@ -121,7 +121,7 @@ int failover_slave_unre...
2019 Apr 08
0
[PATCH net v7] failover: allow name change on IFF_UP slave interfaces
...- slave_dev->priv_flags |= IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags |= (IFF_FAILOVER_SLAVE | IFF_LIVE_RENAME_OK); > > if (fops && fops->slave_register && > !fops->slave_register(slave_dev, failover_dev)) > return NOTIFY_OK; > > netdev_upper_dev_unlink(slave_dev, failover_dev); > - slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_LIVE_RENAME_OK); > err_upper_link: > netdev_rx_handler_unregister(slave_dev); > done: > @@ -121,7 +121,7 @@ int failover_slave_unre...
2019 Mar 05
0
[RFC PATCH net-next] failover: allow name change on IFF_UP slave interfaces
...gt; > + if (slave_rename_ok) > > > + slave_dev->priv_flags |= IFF_SLAVE_RENAME_OK; > > > if (fops && fops->slave_register && > > > !fops->slave_register(slave_dev, failover_dev)) > > > return NOTIFY_OK; > > > netdev_upper_dev_unlink(slave_dev, failover_dev); > > > - slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; > > > + slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_SLAVE_RENAME_OK); > > > err_upper_link: > > > netdev_rx_handler_unregister(slave_dev); > > >...
2018 Apr 06
1
[RFC PATCH net-next v5 2/4] net: Introduce generic bypass module
...pass_netdev, child_netdev); >+ if (ret != 0) >+ goto err_join; >+ >+ call_netdevice_notifiers(NETDEV_JOIN, child_netdev); >+ >+ goto done; >+ >+err_join: >+ dev_set_mtu(child_netdev, orig_mtu); >+err_set_mtu: >+ dev_close(child_netdev); >+err_interface_up: >+ netdev_upper_dev_unlink(child_netdev, bypass_netdev); >+ child_netdev->flags &= ~IFF_SLAVE; >+upper_link_failed: >+ netdev_rx_handler_unregister(child_netdev); >+rx_handler_failed: >+ bypass->ops->unregister_child(bypass_netdev, child_netdev); >+ >+done: >+ return NOTIFY_DONE; >+} &...
2018 Apr 18
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...> + goto done; >> > > > + >> > > > +err_join: >> > > > + dev_set_mtu(slave_netdev, orig_mtu); >> > > > +err_set_mtu: >> > > > + dev_close(slave_netdev); >> > > > +err_interface_up: >> > > > + netdev_upper_dev_unlink(slave_netdev, bypass_netdev); >> > > > + slave_netdev->priv_flags &= ~IFF_BYPASS_SLAVE; >> > > > +upper_link_failed: >> > > > + netdev_rx_handler_unregister(slave_netdev); >> > > > +done: >> > > > + return NOTIFY_DONE...
2018 Apr 18
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...> + goto done; >> > > > + >> > > > +err_join: >> > > > + dev_set_mtu(slave_netdev, orig_mtu); >> > > > +err_set_mtu: >> > > > + dev_close(slave_netdev); >> > > > +err_interface_up: >> > > > + netdev_upper_dev_unlink(slave_netdev, bypass_netdev); >> > > > + slave_netdev->priv_flags &= ~IFF_BYPASS_SLAVE; >> > > > +upper_link_failed: >> > > > + netdev_rx_handler_unregister(slave_netdev); >> > > > +done: >> > > > + return NOTIFY_DONE...
2018 Apr 05
0
[RFC PATCH net-next v5 2/4] net: Introduce generic bypass module
..._mtu; + } + + ret = bypass->ops->join_child(bypass_netdev, child_netdev); + if (ret != 0) + goto err_join; + + call_netdevice_notifiers(NETDEV_JOIN, child_netdev); + + goto done; + +err_join: + dev_set_mtu(child_netdev, orig_mtu); +err_set_mtu: + dev_close(child_netdev); +err_interface_up: + netdev_upper_dev_unlink(child_netdev, bypass_netdev); + child_netdev->flags &= ~IFF_SLAVE; +upper_link_failed: + netdev_rx_handler_unregister(child_netdev); +rx_handler_failed: + bypass->ops->unregister_child(bypass_netdev, child_netdev); + +done: + return NOTIFY_DONE; +} + +int bypass_unregister_child(struct...
2019 Apr 05
2
[PATCH net v6] failover: allow name change on IFF_UP slave interfaces
...slave_dev->priv_flags |= IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags |= (IFF_FAILOVER_SLAVE | IFF_LIVE_NAME_CHANGE); > > if (fops && fops->slave_register && > !fops->slave_register(slave_dev, failover_dev)) > return NOTIFY_OK; > > netdev_upper_dev_unlink(slave_dev, failover_dev); > - slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_LIVE_NAME_CHANGE); > err_upper_link: > netdev_rx_handler_unregister(slave_dev); > done: > @@ -121,7 +121,7 @@ int failover_slave_un...
2019 Apr 05
2
[PATCH net v6] failover: allow name change on IFF_UP slave interfaces
...slave_dev->priv_flags |= IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags |= (IFF_FAILOVER_SLAVE | IFF_LIVE_NAME_CHANGE); > > if (fops && fops->slave_register && > !fops->slave_register(slave_dev, failover_dev)) > return NOTIFY_OK; > > netdev_upper_dev_unlink(slave_dev, failover_dev); > - slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; > + slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_LIVE_NAME_CHANGE); > err_upper_link: > netdev_rx_handler_unregister(slave_dev); > done: > @@ -121,7 +121,7 @@ int failover_slave_un...
2018 May 24
0
[PATCH net-next v12 1/5] net: Introduce generic failover module
...set failover device %s (err = %d)\n", + failover_dev->name, err); + goto err_upper_link; + } + + slave_dev->priv_flags |= IFF_FAILOVER_SLAVE; + + if (fops && fops->slave_register && + !fops->slave_register(slave_dev, failover_dev)) + return NOTIFY_OK; + + netdev_upper_dev_unlink(slave_dev, failover_dev); + slave_dev->priv_flags &= ~IFF_FAILOVER_SLAVE; +err_upper_link: + netdev_rx_handler_unregister(slave_dev); +done: + return NOTIFY_DONE; +} + +/** + * failover_slave_unregister - Unregister a slave netdev + * + * @slave_dev: slave netdev that is being unregistered +...
2018 Apr 18
0
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...netdev->name); >>>> + >>>> + goto done; >>>> + >>>> +err_join: >>>> + dev_set_mtu(slave_netdev, orig_mtu); >>>> +err_set_mtu: >>>> + dev_close(slave_netdev); >>>> +err_interface_up: >>>> + netdev_upper_dev_unlink(slave_netdev, bypass_netdev); >>>> + slave_netdev->priv_flags &= ~IFF_BYPASS_SLAVE; >>>> +upper_link_failed: >>>> + netdev_rx_handler_unregister(slave_netdev); >>>> +done: >>>> + return NOTIFY_DONE; >>>> +} >>>&...
2018 Apr 18
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...>> > + slave_netdev->name); >> > + >> > + goto done; >> > + >> > +err_join: >> > + dev_set_mtu(slave_netdev, orig_mtu); >> > +err_set_mtu: >> > + dev_close(slave_netdev); >> > +err_interface_up: >> > + netdev_upper_dev_unlink(slave_netdev, bypass_netdev); >> > + slave_netdev->priv_flags &= ~IFF_BYPASS_SLAVE; >> > +upper_link_failed: >> > + netdev_rx_handler_unregister(slave_netdev); >> > +done: >> > + return NOTIFY_DONE; >> > +} >> > + >> > +...