Stephen Hemminger
2018-Apr-20 15:28 UTC
[PATCH v7 net-next 4/4] netvsc: refactor notifier/event handling code to use the failover framework
On Thu, 19 Apr 2018 18:42:04 -0700 Sridhar Samudrala <sridhar.samudrala at intel.com> wrote:> Use the registration/notification framework supported by the generic > failover infrastructure. > > Signed-off-by: Sridhar Samudrala <sridhar.samudrala at intel.com>Do what you want to other devices but leave netvsc alone. Adding these failover ops does not reduce the code size, and really is no benefit. The netvsc device driver needs to be backported to several other distributions and doing this makes that harder. I will NAK patches to change to common code for netvsc especially the three device model. MS worked hard with distro vendors to support transparent mode, ans we really can't have a new model; or do backport. Plus, DPDK is now dependent on existing model.
Michael S. Tsirkin
2018-Apr-20 15:43 UTC
[PATCH v7 net-next 4/4] netvsc: refactor notifier/event handling code to use the failover framework
On Fri, Apr 20, 2018 at 08:28:02AM -0700, Stephen Hemminger wrote:> On Thu, 19 Apr 2018 18:42:04 -0700 > Sridhar Samudrala <sridhar.samudrala at intel.com> wrote: > > > Use the registration/notification framework supported by the generic > > failover infrastructure. > > > > Signed-off-by: Sridhar Samudrala <sridhar.samudrala at intel.com> > > Do what you want to other devices but leave netvsc alone. > Adding these failover ops does not reduce the code size,drivers/net/hyperv/Kconfig | 1 + drivers/net/hyperv/hyperv_net.h | 2 + drivers/net/hyperv/netvsc_drv.c | 208 ++++++++++------------------------------ 3 files changed, 55 insertions(+), 156 deletions(-) 100 lines gone.> and really is > no benefit. The netvsc device driver needs to be backported to several > other distributions and doing this makes that harder. > > I will NAK patches to change to common code for netvscWow.> especially the > three device model.AFAIK these patches do not change netvsc to a three device model.> MS worked hard with distro vendors to support transparent > mode, ans we really can't have a new model;That's why Sridhar worked hard to preserve a 2 device model for netvsc.> or do backport. > > Plus, DPDK is now dependent on existing model.DPDK does the kernel bypass thing, doesn't it? Why does the kernel care? -- MST
David Miller
2018-Apr-20 15:46 UTC
[PATCH v7 net-next 4/4] netvsc: refactor notifier/event handling code to use the failover framework
From: Stephen Hemminger <stephen at networkplumber.org> Date: Fri, 20 Apr 2018 08:28:02 -0700> On Thu, 19 Apr 2018 18:42:04 -0700 > Sridhar Samudrala <sridhar.samudrala at intel.com> wrote: > >> Use the registration/notification framework supported by the generic >> failover infrastructure. >> >> Signed-off-by: Sridhar Samudrala <sridhar.samudrala at intel.com> > > Do what you want to other devices but leave netvsc alone. > Adding these failover ops does not reduce the code size, and really is > no benefit. The netvsc device driver needs to be backported to several > other distributions and doing this makes that harder. > > I will NAK patches to change to common code for netvsc especially the > three device model. MS worked hard with distro vendors to support transparent > mode, ans we really can't have a new model; or do backport. > > Plus, DPDK is now dependent on existing model.Stephen, I understand your situation. But the result we have now is undesirable and it happened because MS worked with distro vendors on this rather than the upstream community and entities with other device with similar needs. Please next time do the latter rather than the former. Thank you.
Samudrala, Sridhar
2018-Apr-20 15:46 UTC
[PATCH v7 net-next 4/4] netvsc: refactor notifier/event handling code to use the failover framework
On 4/20/2018 8:28 AM, Stephen Hemminger wrote:> On Thu, 19 Apr 2018 18:42:04 -0700 > Sridhar Samudrala <sridhar.samudrala at intel.com> wrote: > >> Use the registration/notification framework supported by the generic >> failover infrastructure. >> >> Signed-off-by: Sridhar Samudrala <sridhar.samudrala at intel.com> > Do what you want to other devices but leave netvsc alone. > Adding these failover ops does not reduce the code size, and really is > no benefit. The netvsc device driver needs to be backported to several > other distributions and doing this makes that harder. > > I will NAK patches to change to common code for netvsc especially the > three device model. MS worked hard with distro vendors to support transparent > mode, ans we really can't have a new model; or do backport.failover_ops are specifically added to support both 2-netdev and 3-netdev models This patch doesn't change netvsc model. It still keeps its 2-netdev model. From netvsc, point of view it is just moving some code from netvsc to the failover module and also i think the eventhandling and getbymac routines are more optimal.> Plus, DPDK is now dependent on existing model.
David Miller
2018-Apr-20 15:47 UTC
[PATCH v7 net-next 4/4] netvsc: refactor notifier/event handling code to use the failover framework
From: "Michael S. Tsirkin" <mst at redhat.com> Date: Fri, 20 Apr 2018 18:43:54 +0300> On Fri, Apr 20, 2018 at 08:28:02AM -0700, Stephen Hemminger wrote: >> Plus, DPDK is now dependent on existing model. > > DPDK does the kernel bypass thing, doesn't it? Why does the kernel care?+1
Jiri Pirko
2018-Apr-20 16:00 UTC
[PATCH v7 net-next 4/4] netvsc: refactor notifier/event handling code to use the failover framework
Fri, Apr 20, 2018 at 05:28:02PM CEST, stephen at networkplumber.org wrote:>On Thu, 19 Apr 2018 18:42:04 -0700 >Sridhar Samudrala <sridhar.samudrala at intel.com> wrote: > >> Use the registration/notification framework supported by the generic >> failover infrastructure. >> >> Signed-off-by: Sridhar Samudrala <sridhar.samudrala at intel.com> > >Do what you want to other devices but leave netvsc alone. >Adding these failover ops does not reduce the code size, and really is >no benefit. The netvsc device driver needs to be backported to several >other distributions and doing this makes that harder.We should not care about the backport burden when we are trying to make things right. And things are not right. The current netvsc approach is just plain wrong shortcut. It should have been done in a generic way from the very beginning. We are just trying to fix this situation. Moreover, I believe that part of the fix is to convert netvsc to 3 netdev solution too. 2 netdev model is wrong.> >I will NAK patches to change to common code for netvsc especially the >three device model. MS worked hard with distro vendors to support transparent >mode, ans we really can't have a new model; or do backport. > >Plus, DPDK is now dependent on existing model.Sorry, but nobody here cares about dpdk or other similar oddities.
Stephen Hemminger
2018-Apr-23 17:04 UTC
[PATCH v7 net-next 4/4] netvsc: refactor notifier/event handling code to use the failover framework
On Fri, 20 Apr 2018 18:00:58 +0200 Jiri Pirko <jiri at resnulli.us> wrote:> Fri, Apr 20, 2018 at 05:28:02PM CEST, stephen at networkplumber.org wrote: > >On Thu, 19 Apr 2018 18:42:04 -0700 > >Sridhar Samudrala <sridhar.samudrala at intel.com> wrote: > > > >> Use the registration/notification framework supported by the generic > >> failover infrastructure. > >> > >> Signed-off-by: Sridhar Samudrala <sridhar.samudrala at intel.com> > > > >Do what you want to other devices but leave netvsc alone. > >Adding these failover ops does not reduce the code size, and really is > >no benefit. The netvsc device driver needs to be backported to several > >other distributions and doing this makes that harder. > > We should not care about the backport burden when we are trying to make > things right. And things are not right. The current netvsc approach is > just plain wrong shortcut. It should have been done in a generic way > from the very beginning. We are just trying to fix this situation. > > Moreover, I believe that part of the fix is to convert netvsc to 3 > netdev solution too. 2 netdev model is wrong. > > > > > >I will NAK patches to change to common code for netvsc especially the > >three device model. MS worked hard with distro vendors to support transparent > >mode, ans we really can't have a new model; or do backport. > > > >Plus, DPDK is now dependent on existing model. > > Sorry, but nobody here cares about dpdk or other similar oddities.The network device model is a userspace API, and DPDK is a userspace application. You can't go breaking userspace even if you don't like the application.
Possibly Parallel Threads
- [PATCH v7 net-next 4/4] netvsc: refactor notifier/event handling code to use the failover framework
- [PATCH net-next v11 2/5] netvsc: refactor notifier/event handling code to use the failover framework
- [PATCH net-next v8 4/4] netvsc: refactor notifier/event handling code to use the failover framework
- [PATCH net-next v10 4/4] netvsc: refactor notifier/event handling code to use the failover framework
- [PATCH net-next v12 2/5] netvsc: refactor notifier/event handling code to use the failover framework