]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ipaddress: Print IFLA_VF_QUERY_RSS_EN setting
authorPhil Sutter <phil@nwl.cc>
Mon, 14 Nov 2016 08:29:54 +0000 (09:29 +0100)
committerStephen Hemminger <sthemmin@microsoft.com>
Tue, 29 Nov 2016 19:41:58 +0000 (11:41 -0800)
Signed-off-by: Phil Sutter <phil@nwl.cc>
ip/ipaddress.c

index b9cd255f93cbed4be3e89d0795e37e4853d7f44d..50897e6c8e783f58446cdcc32257132517408d6e 100644 (file)
@@ -405,6 +405,22 @@ static void print_vfinfo(FILE *fp, struct rtattr *vfinfo)
                        fprintf(fp, ", trust %s",
                                vf_trust->setting ? "on" : "off");
        }
+       if (vf[IFLA_VF_RSS_QUERY_EN]) {
+               struct ifla_vf_rss_query_en *rss_query =
+                       RTA_DATA(vf[IFLA_VF_RSS_QUERY_EN]);
+
+               if (rss_query->setting != -1)
+                       fprintf(fp, ", query_rss %s",
+                               rss_query->setting ? "on" : "off");
+       }
+       if (vf[IFLA_VF_RSS_QUERY_EN]) {
+               struct ifla_vf_rss_query_en *rss_query =
+                       RTA_DATA(vf[IFLA_VF_RSS_QUERY_EN]);
+
+               if (rss_query->setting != -1)
+                       fprintf(fp, ", query_rss %s",
+                               rss_query->setting ? "on" : "off");
+       }
        if (vf[IFLA_VF_STATS] && show_stats)
                print_vf_stats64(fp, vf[IFLA_VF_STATS]);
 }