On Tue, Jul 04, 2017 at 10:55:39AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > Device (dev) object represents struct ib_device to the user space. > > Device properties: > * Device capabilities > * FW version to the device output > * node_guid and sys_image_guid > * node_type > > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- <...> > +} > + > +static void dev_print_node_type(struct nlattr **tb) > +{ > + uint8_t node_type; > + /* > + * FIXME: move to index exported by the kernel > + */ > + static const char *str[] = { > + "UNKNOWN", > + "SWITCH", > + "ROUTER", > + "RNIC", > + "USNIC", > + "USNIC_UDP", > + }; There is a bug here, i forgot to add "CA" to the list of node_types (before SWITCH). Thanks to Or Gerlitz who spotted it. Thanks
Attachment:
signature.asc
Description: PGP signature