]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip: vfinfo: remove code duplication for IFLA_VF_RSS_QUERY_EN
authorJulien Fortin <julien@cumulusnetworks.com>
Fri, 16 Dec 2016 16:36:05 +0000 (17:36 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 21 Dec 2016 23:56:39 +0000 (15:56 -0800)
Fixes: 4fb4a10e120b1 ("ipaddress: Print IFLA_VF_QUERY_RSS_EN setting”)
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
Acked-by: Phil Sutter <phil@nwl.cc>
ip/ipaddress.c

index de6487753dd12178cb1bf01064ef5625e304993c..400ebb4de5635952fcadf837d7c9b392db113118 100644 (file)
@@ -414,14 +414,6 @@ static void print_vfinfo(FILE *fp, struct rtattr *vfinfo)
                        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]);
 }