From 4fb4a10e120b16c292c215791decccc47dc14604 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 14 Nov 2016 09:29:54 +0100 Subject: [PATCH] ipaddress: Print IFLA_VF_QUERY_RSS_EN setting Signed-off-by: Phil Sutter --- ip/ipaddress.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index b9cd255f..50897e6c 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -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]); }