|
|
4aca6e |
From c4814acb2073e56a0feb085b41c441fe9b275cfc Mon Sep 17 00:00:00 2001
|
|
|
4aca6e |
From: Timothy Redaelli <tredaelli@redhat.com>
|
|
|
4aca6e |
Date: Thu, 9 Feb 2017 18:55:29 +0100
|
|
|
4aca6e |
Subject: [PATCH] ipaddress: Print IFLA_VF_QUERY_RSS_EN setting
|
|
|
4aca6e |
|
|
|
4aca6e |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1264149
|
|
|
4aca6e |
Upstream Status: iproute2.git commit 4fb4a10
|
|
|
4aca6e |
|
|
|
4aca6e |
commit 4fb4a10e120b16c292c215791decccc47dc14604
|
|
|
4aca6e |
Author: Phil Sutter <phil@nwl.cc>
|
|
|
4aca6e |
Date: Mon Nov 14 09:29:54 2016 +0100
|
|
|
4aca6e |
|
|
|
4aca6e |
ipaddress: Print IFLA_VF_QUERY_RSS_EN setting
|
|
|
4aca6e |
|
|
|
4aca6e |
Signed-off-by: Phil Sutter <phil@nwl.cc>
|
|
|
4aca6e |
|
|
|
4aca6e |
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
|
|
|
4aca6e |
---
|
|
|
4aca6e |
ip/ipaddress.c | 16 ++++++++++++++++
|
|
|
4aca6e |
1 file changed, 16 insertions(+)
|
|
|
4aca6e |
|
|
|
4aca6e |
diff --git a/ip/ipaddress.c b/ip/ipaddress.c
|
|
|
4aca6e |
index c8ec779..a38cef0 100644
|
|
|
4aca6e |
--- a/ip/ipaddress.c
|
|
|
4aca6e |
+++ b/ip/ipaddress.c
|
|
|
4aca6e |
@@ -349,6 +349,22 @@ static void print_vfinfo(FILE *fp, struct rtattr *vfinfo)
|
|
|
4aca6e |
fprintf(fp, ", trust %s",
|
|
|
4aca6e |
vf_trust->setting ? "on" : "off");
|
|
|
4aca6e |
}
|
|
|
4aca6e |
+ if (vf[IFLA_VF_RSS_QUERY_EN]) {
|
|
|
4aca6e |
+ struct ifla_vf_rss_query_en *rss_query =
|
|
|
4aca6e |
+ RTA_DATA(vf[IFLA_VF_RSS_QUERY_EN]);
|
|
|
4aca6e |
+
|
|
|
4aca6e |
+ if (rss_query->setting != -1)
|
|
|
4aca6e |
+ fprintf(fp, ", query_rss %s",
|
|
|
4aca6e |
+ rss_query->setting ? "on" : "off");
|
|
|
4aca6e |
+ }
|
|
|
4aca6e |
+ if (vf[IFLA_VF_RSS_QUERY_EN]) {
|
|
|
4aca6e |
+ struct ifla_vf_rss_query_en *rss_query =
|
|
|
4aca6e |
+ RTA_DATA(vf[IFLA_VF_RSS_QUERY_EN]);
|
|
|
4aca6e |
+
|
|
|
4aca6e |
+ if (rss_query->setting != -1)
|
|
|
4aca6e |
+ fprintf(fp, ", query_rss %s",
|
|
|
4aca6e |
+ rss_query->setting ? "on" : "off");
|
|
|
4aca6e |
+ }
|
|
|
4aca6e |
}
|
|
|
4aca6e |
|
|
|
4aca6e |
static void print_num(FILE *fp, unsigned width, uint64_t count)
|
|
|
4aca6e |
--
|
|
|
4aca6e |
1.8.3.1
|
|
|
4aca6e |
|