Re: [PATCH v3 05/25] net/spnic: add mgmt module

2021-12-29 Thread Yanling Song
On Tue, 28 Dec 2021 07:59:18 -0800 Stephen Hemminger wrote: > On Fri, 24 Dec 2021 16:32:23 +0800 > Yanling Song wrote: > > > +static void nic_event_handler(void *hwdev > > This is one example of something this driver does a lot. > It casts away the hardware device structure to void * then re

Re: [PATCH v3 05/25] net/spnic: add mgmt module

2021-12-28 Thread Stephen Hemminger
On Fri, 24 Dec 2021 16:32:23 +0800 Yanling Song wrote: > +static void nic_event_handler(void *hwdev This is one example of something this driver does a lot. It casts away the hardware device structure to void * then reassigns it to the the hardware structure. This is the classic type unsafe C s

[PATCH v3 05/25] net/spnic: add mgmt module

2021-12-24 Thread Yanling Song
Mgmt module manage the message gerenated from the hardware. This patch implements mgmt module initialization, related event processing and message command definition. Signed-off-by: Yanling Song --- drivers/net/spnic/base/meson.build | 4 +- drivers/net/spnic/base/spnic_cmd.h | 222