Re: [PATCH net-next v2 11/14] netdevsim: Add devlink-trap support

2019-08-14 Thread Ido Schimmel
On Wed, Aug 14, 2019 at 04:59:57PM -0700, Jakub Kicinski wrote: > On Tue, 13 Aug 2019 10:53:57 +0300, Ido Schimmel wrote: > > diff --git a/drivers/net/netdevsim/dev.c b/drivers/net/netdevsim/dev.c > > index 08ca59fc189b..2758d95c8d18 100644 > > --- a/drivers/net/netdevsim/dev.c > > +++ b/drivers/ne

Re: [PATCH net-next v2 11/14] netdevsim: Add devlink-trap support

2019-08-14 Thread Jakub Kicinski
On Tue, 13 Aug 2019 10:53:57 +0300, Ido Schimmel wrote: > diff --git a/drivers/net/netdevsim/dev.c b/drivers/net/netdevsim/dev.c > index 08ca59fc189b..2758d95c8d18 100644 > --- a/drivers/net/netdevsim/dev.c > +++ b/drivers/net/netdevsim/dev.c > @@ -17,11 +17,21 @@ > > #include > #include > +#

[PATCH net-next v2 11/14] netdevsim: Add devlink-trap support

2019-08-13 Thread Ido Schimmel
From: Ido Schimmel Have netdevsim register its trap groups and traps with devlink during initialization and periodically report trapped packets to devlink core. Since netdevsim is not a real device, the trapped packets are emulated using a workqueue that periodically reports a UDP packet with a