From c2cb410b8f848799d783a5b2d9a95e2e13fc9fc5 Mon Sep 17 00:00:00 2001 From: Hans Wippel Date: Wed, 6 Sep 2017 16:15:51 +0200 Subject: [PATCH] zconf: Add VNIC Characteristics support to lsqeth This patch adds the qeth attributes that are used to configure VNIC Characteristics to lsqeth. The output of lsqeth comprises two columns: one for attribute names, one for attribute values. Not all VNIC Characteristics attribute names fit in the corresponding column. Thus, this patch also increases the width of the attribute names column by 2 characters. Signed-off-by: Hans Wippel Reviewed-by: Ursula Braun Signed-off-by: Michael Holzheu --- zconf/qeth/lsqeth.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/zconf/qeth/lsqeth.c b/zconf/qeth/lsqeth.c index 268c9b4a..5de4ded1 100644 --- a/zconf/qeth/lsqeth.c +++ b/zconf/qeth/lsqeth.c @@ -547,6 +547,22 @@ static void setup_rec_long(struct util_rec *rec) util_rec_def(rec, "ipa", UTIL_REC_ALIGN_LEFT, 0, "ipa"); util_rec_def(rec, "vipa", UTIL_REC_ALIGN_LEFT, 0, "vipa"); util_rec_def(rec, "parp", UTIL_REC_ALIGN_LEFT, 0, "parp"); + util_rec_def(rec, "vnicc/bridge_invisible", UTIL_REC_ALIGN_LEFT, 0, + "vnicc/bridge_invisible"); + util_rec_def(rec, "vnicc/flooding", UTIL_REC_ALIGN_LEFT, 0, + "vnicc/flooding"); + util_rec_def(rec, "vnicc/learning", UTIL_REC_ALIGN_LEFT, 0, + "vnicc/learning"); + util_rec_def(rec, "vnicc/learning_timeout", UTIL_REC_ALIGN_LEFT, 0, + "vnicc/learning_timeout"); + util_rec_def(rec, "vnicc/mcast_flooding", UTIL_REC_ALIGN_LEFT, 0, + "vnicc/mcast_flooding"); + util_rec_def(rec, "vnicc/rx_bcast", UTIL_REC_ALIGN_LEFT, 0, + "vnicc/rx_bcast"); + util_rec_def(rec, "vnicc/takeover_learning", UTIL_REC_ALIGN_LEFT, 0, + "vnicc/takeover_learning"); + util_rec_def(rec, "vnicc/takeover_setvmac", UTIL_REC_ALIGN_LEFT, 0, + "vnicc/takeover_setvmac"); } /* @@ -560,7 +576,7 @@ static struct util_rec *setup_rec() rec = util_rec_new_wide("-"); setup_rec_wide(rec); } else { - rec = util_rec_new_long("-", ":", "if_name", 30, 42); + rec = util_rec_new_long("-", ":", "if_name", 32, 40); setup_rec_long(rec); } return rec;