* [GIT PULL nf-next 0/2] IPVS Updates for v3.15
@ 2014-03-07 3:46 Simon Horman
2014-03-07 3:46 ` [PATCH nf-next 1/2] sections, ipvs: Remove useless __read_mostly for ipvs genl_ops Simon Horman
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Simon Horman @ 2014-03-07 3:46 UTC (permalink / raw)
To: Pablo Neira Ayuso
Cc: lvs-devel, netdev, netfilter-devel, Wensong Zhang,
Julian Anastasov, Simon Horman
Hi Pablo,
please consider the following updates for IPVS for v3.15.
It consists of two cleanups.
* Whitespace cleanup from Tingwei Liu
* Section conflict cleanup from Andi Kleen
Please feel free to put Andi's patch into nf instead of nf-next if
you think that is appropriate.
The following changes since commit 0768b3b3d228c5acf2075f40f3d25cda30011d4f:
netfilter: nf_tables: add optional user data area to rules (2014-02-27 16:56:00 +0100)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs-next.git tags/ipvs-for-v3.15
for you to fetch changes up to 411fd527bc3f8357b499c760f7cd03633a0c7de2:
ipvs: Reduce checkpatch noise in ip_vs_lblc.c (2014-03-07 12:36:21 +0900)
----------------------------------------------------------------
IPVS Updates for v3.15
* Cleanup from Tingwei Liu to correct whitespace
* Cleanup from Andi Kleen to avoid a LTO section conflict compile problem
----------------------------------------------------------------
Andi Kleen (1):
sections, ipvs: Remove useless __read_mostly for ipvs genl_ops
Tingwei Liu (1):
ipvs: Reduce checkpatch noise in ip_vs_lblc.c
net/netfilter/ipvs/ip_vs_ctl.c | 2 +-
net/netfilter/ipvs/ip_vs_lblc.c | 13 ++++++-------
2 files changed, 7 insertions(+), 8 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH nf-next 1/2] sections, ipvs: Remove useless __read_mostly for ipvs genl_ops
2014-03-07 3:46 [GIT PULL nf-next 0/2] IPVS Updates for v3.15 Simon Horman
@ 2014-03-07 3:46 ` Simon Horman
2014-03-07 3:46 ` [PATCH nf-next 2/2] ipvs: Reduce checkpatch noise in ip_vs_lblc.c Simon Horman
2014-03-07 10:46 ` [GIT PULL nf-next 0/2] IPVS Updates for v3.15 Pablo Neira Ayuso
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-03-07 3:46 UTC (permalink / raw)
To: Pablo Neira Ayuso
Cc: lvs-devel, netdev, netfilter-devel, Wensong Zhang,
Julian Anastasov, Andi Kleen, Simon Horman, Patrick McHardy
From: Andi Kleen <ak@linux.intel.com>
const __read_mostly does not make any sense, because const
data is already read-only. Remove the __read_mostly
for the ipvs genl_ops. This avoids a LTO
section conflict compile problem.
Cc: Wensong Zhang <wensong@linux-vs.org>
Cc: Simon Horman <horms@verge.net.au>
Cc: Patrick McHardy <kaber@trash.net>
Cc: lvs-devel@vger.kernel.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
---
net/netfilter/ipvs/ip_vs_ctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index 35be035..2a68a38 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -3580,7 +3580,7 @@ out:
}
-static const struct genl_ops ip_vs_genl_ops[] __read_mostly = {
+static const struct genl_ops ip_vs_genl_ops[] = {
{
.cmd = IPVS_CMD_NEW_SERVICE,
.flags = GENL_ADMIN_PERM,
--
1.8.5.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH nf-next 2/2] ipvs: Reduce checkpatch noise in ip_vs_lblc.c
2014-03-07 3:46 [GIT PULL nf-next 0/2] IPVS Updates for v3.15 Simon Horman
2014-03-07 3:46 ` [PATCH nf-next 1/2] sections, ipvs: Remove useless __read_mostly for ipvs genl_ops Simon Horman
@ 2014-03-07 3:46 ` Simon Horman
2014-03-07 10:46 ` [GIT PULL nf-next 0/2] IPVS Updates for v3.15 Pablo Neira Ayuso
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-03-07 3:46 UTC (permalink / raw)
To: Pablo Neira Ayuso
Cc: lvs-devel, netdev, netfilter-devel, Wensong Zhang,
Julian Anastasov, Tingwei Liu, Tingwei Liu, Simon Horman
From: Tingwei Liu <tingw.liu@gmail.com>
Add whitespace after operator and put open brace { on the previous line
Cc: Tingwei Liu <liutingwei@hisense.com>
Cc: lvs-devel@vger.kernel.org
Signed-off-by: Tingwei Liu <tingw.liu@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
---
net/netfilter/ipvs/ip_vs_lblc.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/net/netfilter/ipvs/ip_vs_lblc.c b/net/netfilter/ipvs/ip_vs_lblc.c
index ca056a3..547ff33 100644
--- a/net/netfilter/ipvs/ip_vs_lblc.c
+++ b/net/netfilter/ipvs/ip_vs_lblc.c
@@ -238,7 +238,7 @@ static void ip_vs_lblc_flush(struct ip_vs_service *svc)
spin_lock_bh(&svc->sched_lock);
tbl->dead = 1;
- for (i=0; i<IP_VS_LBLC_TAB_SIZE; i++) {
+ for (i = 0; i < IP_VS_LBLC_TAB_SIZE; i++) {
hlist_for_each_entry_safe(en, next, &tbl->bucket[i], list) {
ip_vs_lblc_del(en);
atomic_dec(&tbl->entries);
@@ -265,7 +265,7 @@ static inline void ip_vs_lblc_full_check(struct ip_vs_service *svc)
unsigned long now = jiffies;
int i, j;
- for (i=0, j=tbl->rover; i<IP_VS_LBLC_TAB_SIZE; i++) {
+ for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) {
j = (j + 1) & IP_VS_LBLC_TAB_MASK;
spin_lock(&svc->sched_lock);
@@ -321,7 +321,7 @@ static void ip_vs_lblc_check_expire(unsigned long data)
if (goal > tbl->max_size/2)
goal = tbl->max_size/2;
- for (i=0, j=tbl->rover; i<IP_VS_LBLC_TAB_SIZE; i++) {
+ for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) {
j = (j + 1) & IP_VS_LBLC_TAB_MASK;
spin_lock(&svc->sched_lock);
@@ -340,7 +340,7 @@ static void ip_vs_lblc_check_expire(unsigned long data)
tbl->rover = j;
out:
- mod_timer(&tbl->periodic_timer, jiffies+CHECK_EXPIRE_INTERVAL);
+ mod_timer(&tbl->periodic_timer, jiffies + CHECK_EXPIRE_INTERVAL);
}
@@ -363,7 +363,7 @@ static int ip_vs_lblc_init_svc(struct ip_vs_service *svc)
/*
* Initialize the hash buckets
*/
- for (i=0; i<IP_VS_LBLC_TAB_SIZE; i++) {
+ for (i = 0; i < IP_VS_LBLC_TAB_SIZE; i++) {
INIT_HLIST_HEAD(&tbl->bucket[i]);
}
tbl->max_size = IP_VS_LBLC_TAB_SIZE*16;
@@ -536,8 +536,7 @@ out:
/*
* IPVS LBLC Scheduler structure
*/
-static struct ip_vs_scheduler ip_vs_lblc_scheduler =
-{
+static struct ip_vs_scheduler ip_vs_lblc_scheduler = {
.name = "lblc",
.refcnt = ATOMIC_INIT(0),
.module = THIS_MODULE,
--
1.8.5.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [GIT PULL nf-next 0/2] IPVS Updates for v3.15
2014-03-07 3:46 [GIT PULL nf-next 0/2] IPVS Updates for v3.15 Simon Horman
2014-03-07 3:46 ` [PATCH nf-next 1/2] sections, ipvs: Remove useless __read_mostly for ipvs genl_ops Simon Horman
2014-03-07 3:46 ` [PATCH nf-next 2/2] ipvs: Reduce checkpatch noise in ip_vs_lblc.c Simon Horman
@ 2014-03-07 10:46 ` Pablo Neira Ayuso
2 siblings, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2014-03-07 10:46 UTC (permalink / raw)
To: Simon Horman
Cc: lvs-devel, netdev, netfilter-devel, Wensong Zhang,
Julian Anastasov
On Fri, Mar 07, 2014 at 12:46:12PM +0900, Simon Horman wrote:
> Hi Pablo,
>
> please consider the following updates for IPVS for v3.15.
>
> It consists of two cleanups.
> * Whitespace cleanup from Tingwei Liu
> * Section conflict cleanup from Andi Kleen
>
> Please feel free to put Andi's patch into nf instead of nf-next if
> you think that is appropriate.
Pulled into nf-next, thanks Simon.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-07 10:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-07 3:46 [GIT PULL nf-next 0/2] IPVS Updates for v3.15 Simon Horman
2014-03-07 3:46 ` [PATCH nf-next 1/2] sections, ipvs: Remove useless __read_mostly for ipvs genl_ops Simon Horman
2014-03-07 3:46 ` [PATCH nf-next 2/2] ipvs: Reduce checkpatch noise in ip_vs_lblc.c Simon Horman
2014-03-07 10:46 ` [GIT PULL nf-next 0/2] IPVS Updates for v3.15 Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).