[PATCH v2 2/6] server: Introduce a get_class_fnid helper.