]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - rdma/rdma.c
libnetlink: Add filter function to rtnl_neighdump_req
[mirror_iproute2.git] / rdma / rdma.c
index ab2c96084b0399fb51090150f06ac203f53159ec..010e98371ef098b3d7052bb6725f31a9ec178c7b 100644 (file)
@@ -129,13 +129,14 @@ int main(int argc, char **argv)
                { "batch",              required_argument,      NULL, 'b' },
                { NULL, 0, NULL, 0 }
        };
+       bool show_driver_details = false;
        const char *batch_file = NULL;
        bool pretty_output = false;
        bool show_details = false;
        bool json_output = false;
        bool force = false;
+       struct rd rd = {};
        char *filename;
-       struct rd rd;
        int opt;
        int err;
 
@@ -152,7 +153,10 @@ int main(int argc, char **argv)
                        pretty_output = true;
                        break;
                case 'd':
-                       show_details = true;
+                       if (show_details)
+                               show_driver_details = true;
+                       else
+                               show_details = true;
                        break;
                case 'j':
                        json_output = true;
@@ -180,6 +184,7 @@ int main(int argc, char **argv)
        argv += optind;
 
        rd.show_details = show_details;
+       rd.show_driver_details = show_driver_details;
        rd.json_output = json_output;
        rd.pretty_output = pretty_output;