|  | 
lvs-devel
 | 
| To: | lvs-devel@xxxxxxxxxxxxxxx | 
|---|---|
| Subject: | [PATCH 2/2] ipvsadm: Show 'ops' flag regardless of service persistence | 
| Cc: | Simon Horman <horms@xxxxxxxxxxxx> | 
| From: | Krzysztof Gajdemski <songo@xxxxxxxxxxxxx> | 
| Date: | Thu, 21 Mar 2013 11:40:14 +0100 | 
| 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@xxxxxxxxxxxxx>
---
 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
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
 | 
| <Prev in Thread] | Current Thread | [Next in Thread> | 
|---|---|---|
| 
 | ||
| Previous by Date: | [PATCH 1/2] ipvsadm: Fix wrong format of -o option in FMT_RULE listing, Krzysztof Gajdemski | 
|---|---|
| Next by Date: | [PATCH net-next 03/19] ipvs: add ip_vs_dest_hold and ip_vs_dest_put, Julian Anastasov | 
| Previous by Thread: | [PATCH 1/2] ipvsadm: Fix wrong format of -o option in FMT_RULE listing, Krzysztof Gajdemski | 
| Next by Thread: | [PATCH net-next 00/19] IPVS optimizations, part 2, Julian Anastasov | 
| Indexes: | [Date] [Thread] [Top] [All Lists] |