Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1421498
| From | Quentin Armitage <quentin@armitage.org.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 5/5] ipvs: log additional sync daemon parameters |
| Date | 2016-06-14 04:00 +0200 |
| Message-ID | <rJLO2-6jG-19@gated-at.bofh.it> (permalink) |
| References | <rJLO1-6jG-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Add new multicast parameters to log messages when sync daemons start.
Commits <e4ff67513096> ("ipvs: add sync_maxlen parameter for the sync
daemon") and <d33288172e72> ("ipvs: add more mcast parameters for the
sync daemon") added additional multicast parameters, but didn't add
them to the log messages when the sync daemons started.
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
---
net/netfilter/ipvs/ip_vs_sync.c | 26 ++++++++++++++++++++++----
1 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c
index dfac9ef..e5f6739 100644
--- a/net/netfilter/ipvs/ip_vs_sync.c
+++ b/net/netfilter/ipvs/ip_vs_sync.c
@@ -1670,8 +1670,17 @@ static int sync_thread_master(void *data)
struct ip_vs_sync_buff *sb;
pr_info("sync thread started: state = MASTER, mcast_ifn = %s, "
- "syncid = %d, id = %d\n",
- ipvs->mcfg.mcast_ifn, ipvs->mcfg.syncid, tinfo->id);
+ "syncid = %d, id = %d, maxlen = %d\n",
+ ipvs->mcfg.mcast_ifn, ipvs->mcfg.syncid,
+ tinfo->id, ipvs->mcfg.sync_maxlen);
+ if (ipvs->mcfg.mcast_af == AF_INET)
+ pr_info(" : group = %pI4, port = %d, ttl = %d\n",
+ &ipvs->mcfg.mcast_group.in, ipvs->mcfg.mcast_port,
+ ipvs->mcfg.mcast_ttl);
+ else
+ pr_info(" : group = %pI6c, port = %d, ttl = %d\n",
+ &ipvs->mcfg.mcast_group.in6, ipvs->mcfg.mcast_port,
+ ipvs->mcfg.mcast_ttl);
for (;;) {
sb = next_sync_buff(ipvs, ms);
@@ -1724,8 +1733,17 @@ static int sync_thread_backup(void *data)
int len;
pr_info("sync thread started: state = BACKUP, mcast_ifn = %s, "
- "syncid = %d, id = %d\n",
- ipvs->bcfg.mcast_ifn, ipvs->bcfg.syncid, tinfo->id);
+ "syncid = %d, id = %d, maxlen = %d\n",
+ ipvs->bcfg.mcast_ifn, ipvs->bcfg.syncid,
+ tinfo->id, ipvs->bcfg.sync_maxlen);
+ if (ipvs->bcfg.mcast_af == AF_INET)
+ pr_info(" : group = %pI4, port = %d, ttl = %d\n",
+ &ipvs->bcfg.mcast_group.in, ipvs->bcfg.mcast_port,
+ ipvs->bcfg.mcast_ttl);
+ else
+ pr_info(" : group = %pI6c, port = %d, ttl = %d\n",
+ &ipvs->bcfg.mcast_group.in6, ipvs->bcfg.mcast_port,
+ ipvs->bcfg.mcast_ttl);
while (!kthread_should_stop()) {
wait_event_interruptible(*sk_sleep(tinfo->sock->sk),
--
1.7.7.6
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/5] ipvs: fix backup sync daemon with IPv6, and minor updates Quentin Armitage <quentin@armitage.org.uk> - 2016-06-14 04:00 +0200
[PATCH 3/5] ipvs: Don't check result < 0 after setting result = 0 Quentin Armitage <quentin@armitage.org.uk> - 2016-06-14 04:00 +0200
[PATCH 2/5] ipvs: Stop calling __dev_get_by_name() repeatedly when starting sync daemon Quentin Armitage <quentin@armitage.org.uk> - 2016-06-14 04:00 +0200
[PATCH 4/5] ipvs: Lock socket before setting SK_CAN_REUSE Quentin Armitage <quentin@armitage.org.uk> - 2016-06-14 04:00 +0200
Re: [PATCH 4/5] ipvs: Lock socket before setting SK_CAN_REUSE Eric Dumazet <eric.dumazet@gmail.com> - 2016-06-14 05:20 +0200
Re: [PATCH 4/5] ipvs: Lock socket before setting SK_CAN_REUSE Eric Dumazet <eric.dumazet@gmail.com> - 2016-06-14 05:20 +0200
[PATCH 5/5] ipvs: log additional sync daemon parameters Quentin Armitage <quentin@armitage.org.uk> - 2016-06-14 04:00 +0200
[PATCH 1/5] ipvs: Enable setting IPv6 multicast address for ipvs sync daemon backup Quentin Armitage <quentin@armitage.org.uk> - 2016-06-14 04:00 +0200
csiph-web