From: Krzysztof Gajdemski <songo@debian.org.pl>
To: lvs-devel@vger.kernel.org
Cc: Simon Horman <horms@verge.net.au>
Subject: [PATCH 2/2] ipvsadm: Show 'ops' flag regardless of service persistence
Date: Thu, 21 Mar 2013 11:40:14 +0100 [thread overview]
Message-ID: <20130321104014.GC9563@debian.org.pl> (raw)
In-Reply-To: <cover.1363823448.git.songo@debian.org.pl>
In print_service_entry() 'ops' option is displayed only for services
which have the IP_VS_SVC_F_PERSISTENT flag set. However, it should be
displayed for any VS with one-packet scheduling because OPS can be
also used without persistence.
Signed-off-by: Krzysztof Gajdemski <songo@debian.org.pl>
---
ipvsadm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ipvsadm.c b/ipvsadm.c
index 587bfc1..45a71af 100644
--- a/ipvsadm.c
+++ b/ipvsadm.c
@@ -1517,9 +1517,9 @@ print_service_entry(ipvs_service_entry_t *se, unsigned int format)
printf(" mask %i", se->netmask);
if (se->pe_name[0])
printf(" pe %s", se->pe_name);
- if (se->flags & IP_VS_SVC_F_ONEPACKET)
- printf(" ops");
}
+ if (se->flags & IP_VS_SVC_F_ONEPACKET)
+ printf(" ops");
}
printf("\n");
--
1.7.10.4
prev parent reply other threads:[~2013-03-21 10:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1363823448.git.songo@debian.org.pl>
2013-03-21 10:40 ` [PATCH 1/2] ipvsadm: Fix wrong format of -o option in FMT_RULE listing Krzysztof Gajdemski
2013-03-21 10:40 ` Krzysztof Gajdemski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130321104014.GC9563@debian.org.pl \
--to=songo@debian.org.pl \
--cc=horms@verge.net.au \
--cc=lvs-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.