vlandev: dump vlan id in device status
authorFelix Fietkau <nbd@nbd.name>
Thu, 26 Nov 2020 09:20:11 +0000 (10:20 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 26 Nov 2020 09:20:11 +0000 (10:20 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
vlandev.c

index 0c0caab46e083b7395b8147c1c5f3d4c75b53537..595c46118ad01f738dfeb13666debf710c9255b7 100644 (file)
--- a/vlandev.c
+++ b/vlandev.c
@@ -229,6 +229,7 @@ vlandev_dump_info(struct device *dev, struct blob_buf *b)
        mvdev = container_of(dev, struct vlandev_device, dev);
        blobmsg_add_string(b, "parent", mvdev->parent.dev->ifname);
        system_if_dump_info(dev, b);
+       blobmsg_add_u32(b, "vid", mvdev->config.vid);
        vlandev_qos_mapping_dump(b, "ingress_qos_mapping", &mvdev->config.ingress_qos_mapping_list);
        vlandev_qos_mapping_dump(b, "egress_qos_mapping", &mvdev->config.egress_qos_mapping_list);
 }