Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1423729
| From | Quentin Armitage <quentin@armitage.org.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next v4 3/3] ipvs: log additional sync daemon parameters |
| Date | 2016-06-16 09:10 +0200 |
| Message-ID | <rKzB8-5e9-15@gated-at.bofh.it> (permalink) |
| References | <rKzB7-5e9-5@gated-at.bofh.it> <rKyOJ-4I9-9@gated-at.bofh.it> <rKzB8-5e9-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Add new multicast parameters to log messages when sync daemons start.
Commit e4ff67513096 ("ipvs: add sync_maxlen parameter for the sync
daemon") and commit 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 | 28 ++++++++++++++++++++++------
1 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c
index 2be99b2..3d0fd99 100644
--- a/net/netfilter/ipvs/ip_vs_sync.c
+++ b/net/netfilter/ipvs/ip_vs_sync.c
@@ -1669,9 +1669,17 @@ static int sync_thread_master(void *data)
struct sock *sk = tinfo->sock->sk;
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);
+ pr_info("sync thread started: state = MASTER, mcast_ifn = %s, syncid = %d, id = %d, maxlen = %u\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 = %u, ttl = %u\n",
+ &ipvs->mcfg.mcast_group.in, ipvs->mcfg.mcast_port,
+ ipvs->mcfg.mcast_ttl);
+ else
+ pr_info("group = %pI6c, port = %u, ttl = %u\n",
+ &ipvs->mcfg.mcast_group.in6, ipvs->mcfg.mcast_port,
+ ipvs->mcfg.mcast_ttl);
for (;;) {
sb = next_sync_buff(ipvs, ms);
@@ -1723,9 +1731,17 @@ static int sync_thread_backup(void *data)
struct netns_ipvs *ipvs = tinfo->ipvs;
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);
+ pr_info("sync thread started: state = BACKUP, mcast_ifn = %s, syncid = %d, id = %d, maxlen = %u\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 = %u, ttl = %u\n",
+ &ipvs->bcfg.mcast_group.in, ipvs->bcfg.mcast_port,
+ ipvs->bcfg.mcast_ttl);
+ else
+ pr_info("group = %pI6c, port = %u, ttl = %u\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 v2 0/5] ipvs: fix backup sync daemon with IPv6, and minor updates Quentin Armitage <quentin@armitage.org.uk> - 2016-06-14 16:30 +0200
[PATCH v2 2/5] ipvs: Stop calling __dev_get_by_name() repeatedly when starting sync daemon Quentin Armitage <quentin@armitage.org.uk> - 2016-06-14 16:30 +0200
[PATCH v2 1/5] ipvs: Enable setting IPv6 multicast address for ipvs sync daemon backup Quentin Armitage <quentin@armitage.org.uk> - 2016-06-14 16:30 +0200
Re: [PATCH v2 0/5] ipvs: fix backup sync daemon with IPv6, and minor updates Julian Anastasov <ja@ssi.bg> - 2016-06-15 07:30 +0200
Re: [PATCH v2 0/5] ipvs: fix backup sync daemon with IPv6, and minor updates Julian Anastasov <ja@ssi.bg> - 2016-06-15 22:00 +0200
[PATCH v3 4/4] ipvs: log additional sync daemon parameters Quentin Armitage <quentin@armitage.org.uk> - 2016-06-15 23:50 +0200
[PATCH v3 0/4] ipvs: fix backup sync daemon with IPv6, and minor updates Quentin Armitage <quentin@armitage.org.uk> - 2016-06-15 23:50 +0200
[PATCH v3 1/4] ipvs: Enable setting IPv6 multicast address for ipvs Quentin Armitage <quentin@armitage.org.uk> - 2016-06-15 23:50 +0200
[PATCH v3 3/4] ipvs: Don't check result < 0 after setting result = 0 Quentin Armitage <quentin@armitage.org.uk> - 2016-06-15 23:50 +0200
[PATCH v3 2/4] ipvs: Stop calling __dev_get_by_name() repeatedly when starting sync daemon Quentin Armitage <quentin@armitage.org.uk> - 2016-06-15 23:50 +0200
Re: [PATCH v3 0/4] ipvs: fix backup sync daemon with IPv6, and minor updates Julian Anastasov <ja@ssi.bg> - 2016-06-16 08:20 +0200
[PATCH v4 net] ipvs: fix bind to link-local mcast IPv6 address in backup Quentin Armitage <quentin@armitage.org.uk> - 2016-06-16 09:10 +0200
Re: [PATCH v4 net] ipvs: fix bind to link-local mcast IPv6 address in backup Julian Anastasov <ja@ssi.bg> - 2016-06-17 08:50 +0200
Re: [PATCH v4 net] ipvs: fix bind to link-local mcast IPv6 address in backup Simon Horman <horms@verge.net.au> - 2016-06-23 03:30 +0200
[PATCH net-next v4 1/3] ipvs: Stop calling __dev_get_by_name() repeatedly when starting sync daemon Quentin Armitage <quentin@armitage.org.uk> - 2016-06-16 09:10 +0200
[PATCH net-next v4 3/3] ipvs: log additional sync daemon parameters Quentin Armitage <quentin@armitage.org.uk> - 2016-06-16 09:10 +0200
[PATCH net-next v4 2/3] ipvs: Don't check result < 0 after setting result = 0 Quentin Armitage <quentin@armitage.org.uk> - 2016-06-16 09:10 +0200
csiph-web