does the gen2 driver have functions that convert enumerated values to strings?
for example, something like this:
static const char *atomic_cap_str(enum ibv_atomic_cap atom_cap)
{
switch (atom_cap) {
case IBV_ATOMIC_NONE:
return "ATOMIC_NONE";
case IBV_ATOMIC_HCA:
return "ATOMIC_HCA";
case IBV_ATOMIC_GLOB:
return "ATOMIC_GLOB";
default:
return "Illegal atomic capability";
}
}
Dotan Barak
Software Verification Engineer
Mellanox Technologies LTD
mailto:[EMAIL PROTECTED]
Tel: +972-4-9097200 Ext: 231 Fax: +972-4-9593245
P.O. Box 86 Yokneam 20692 ISRAEL.
Home: +972-4-8289408 Cell: 052-4222383
[ May the fork be with you ]
_______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
