summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proto_nlmsg.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/proto_nlmsg.c b/proto_nlmsg.c
index f8993e7..f206405 100644
--- a/proto_nlmsg.c
+++ b/proto_nlmsg.c
@@ -242,9 +242,15 @@ static const char *nlmsg_rtnl_type2str(uint16_t type)
static const char *nlmsg_genl_type2str(uint16_t type)
{
switch (type) {
- case GENL_ID_GENERATE: return "id gen";
- case GENL_ID_CTRL: return "id ctrl";
- default: return NULL;
+ case GENL_ID_CTRL: return "nlctrl";
+#if defined(GENL_ID_PCMRAID)
+ case GENL_ID_PCMRAID: return "pcmraid";
+#endif
+#if defined(GENL_ID_VFS_DQUOT)
+ case GENL_ID_VFS_DQUOT: return "vfs dquot";
+#endif
+ /* only dynamic family IDs should be used starting with Linux 4.10 */
+ default: return "dynamic";
}
}
arent370ebb0ef6255132373ed35d13e7b1d8d2eb7003 (diff)
usbnet: pegasus: Use net_device_stats from struct net_devicends-private-remove
Instead of using a private copy of struct net_device_stats in struct pegasus, use stats from struct net_device. Also remove the now unnecessary .ndo_get_stats function. Cc: Petko Manolov <petkan@nucleusys.com> Cc: linux-usb@vger.kernel.org Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-fs-xfs')