Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1611693 > unrolled thread
| Started by | Arushi Singhal <arushisinghal19971997@gmail.com> |
|---|---|
| First post | 2017-03-29 10:50 +0200 |
| Last post | 2017-04-07 18:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] net: ipv6: netfilter: Format block comments. Arushi Singhal <arushisinghal19971997@gmail.com> - 2017-03-29 10:50 +0200
Re: [Outreachy kernel] [PATCH] net: ipv6: netfilter: Format block comments. Pablo Neira Ayuso <pablo@netfilter.org> - 2017-04-07 18:20 +0200
| From | Arushi Singhal <arushisinghal19971997@gmail.com> |
|---|---|
| Date | 2017-03-29 10:50 +0200 |
| Subject | [PATCH] net: ipv6: netfilter: Format block comments. |
| Message-ID | <tqhsJ-4jR-1@gated-at.bofh.it> |
Fix checkpatch warnings: WARNING: Block comments use a trailing */ on a separate line WARNING: Block comments use * on subsequent lines Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com> --- net/ipv6/netfilter/ip6_tables.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index b8cb61c27aa1..ac69ce3bfa1e 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c @@ -51,14 +51,14 @@ void *ip6t_alloc_initial_table(const struct xt_table *info) } EXPORT_SYMBOL_GPL(ip6t_alloc_initial_table); -/* - We keep a set of rules for each CPU, so we can avoid write-locking - them in the softirq when updating the counters and therefore - only need to read-lock in the softirq; doing a write_lock_bh() in user - context stops packets coming through and allows user context to read - the counters or update the rules. - - Hence the start of any table is given by get_table() below. */ +/* We keep a set of rules for each CPU, so we can avoid write-locking + * them in the softirq when updating the counters and therefore + * only need to read-lock in the softirq; doing a write_lock_bh() in user + * context stops packets coming through and allows user context to read + * the counters or update the rules. + * + * Hence the start of any table is given by get_table() below. + */ /* Returns whether matches rule or not. */ /* Performance critical - called for every packet */ -- 2.11.0
[toc] | [next] | [standalone]
| From | Pablo Neira Ayuso <pablo@netfilter.org> |
|---|---|
| Date | 2017-04-07 18:20 +0200 |
| Subject | Re: [Outreachy kernel] [PATCH] net: ipv6: netfilter: Format block comments. |
| Message-ID | <ttEMa-18X-11@gated-at.bofh.it> |
| In reply to | #1611693 |
On Wed, Mar 29, 2017 at 02:09:43PM +0530, Arushi Singhal wrote: > Fix checkpatch warnings: > WARNING: Block comments use a trailing */ on a separate line > WARNING: Block comments use * on subsequent lines > > Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com> > --- > net/ipv6/netfilter/ip6_tables.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c > index b8cb61c27aa1..ac69ce3bfa1e 100644 > --- a/net/ipv6/netfilter/ip6_tables.c > +++ b/net/ipv6/netfilter/ip6_tables.c > @@ -51,14 +51,14 @@ void *ip6t_alloc_initial_table(const struct xt_table *info) > } > EXPORT_SYMBOL_GPL(ip6t_alloc_initial_table); > > -/* > - We keep a set of rules for each CPU, so we can avoid write-locking > - them in the softirq when updating the counters and therefore > - only need to read-lock in the softirq; doing a write_lock_bh() in user > - context stops packets coming through and allows user context to read > - the counters or update the rules. > - > - Hence the start of any table is given by get_table() below. */ > +/* We keep a set of rules for each CPU, so we can avoid write-locking > + * them in the softirq when updating the counters and therefore > + * only need to read-lock in the softirq; doing a write_lock_bh() in user > + * context stops packets coming through and allows user context to read > + * the counters or update the rules. > + * > + * Hence the start of any table is given by get_table() below. > + */ This comment is obsolete and should go. We have no set of rules per CPU anymore.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web