Thread (9 messages) flat view 9 messages, 2 authors, 2016-08-17
STALE3641d

[iproute PATCH 2/2] ipaddress: Print IFLA_VF_QUERY_RSS_EN setting

From: Phil Sutter <phil@nwl.cc>
Date: 2016-06-01 20:04:09
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/ipaddress.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index 9ac077459f136..bd705dbed60c6 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -364,6 +364,14 @@ 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_STATS] && show_stats)
 		print_vf_stats64(fp, vf[IFLA_VF_STATS]);
 }
-- 
2.8.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help