ip-link: Support printing VF trust setting
This adds a new item to VF lines of a PF, stating whether the VF is trusted or not. Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
parent
5c5a0f3df9
commit
fe9322781e
|
|
@ -380,6 +380,13 @@ static void print_vfinfo(FILE *fp, struct rtattr *vfinfo)
|
||||||
else
|
else
|
||||||
fprintf(fp, ", link-state disable");
|
fprintf(fp, ", link-state disable");
|
||||||
}
|
}
|
||||||
|
if (vf[IFLA_VF_TRUST]) {
|
||||||
|
struct ifla_vf_trust *vf_trust = RTA_DATA(vf[IFLA_VF_TRUST]);
|
||||||
|
|
||||||
|
if (vf_trust->setting != -1)
|
||||||
|
fprintf(fp, ", trust %s",
|
||||||
|
vf_trust->setting ? "on" : "off");
|
||||||
|
}
|
||||||
if (vf[IFLA_VF_STATS] && show_stats)
|
if (vf[IFLA_VF_STATS] && show_stats)
|
||||||
print_vf_stats64(fp, vf[IFLA_VF_STATS]);
|
print_vf_stats64(fp, vf[IFLA_VF_STATS]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue