Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1464923 > unrolled thread
| Started by | Xunlei Pang <xlpang@redhat.com> |
|---|---|
| First post | 2016-08-18 06:40 +0200 |
| Last post | 2016-08-19 09:00 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] fib_trie: Fix the description of pos and bits Xunlei Pang <xlpang@redhat.com> - 2016-08-18 06:40 +0200
Re: [PATCH] fib_trie: Fix the description of pos and bits Alexander Duyck <alexander.duyck@gmail.com> - 2016-08-19 06:30 +0200
Re: [PATCH] fib_trie: Fix the description of pos and bits David Miller <davem@davemloft.net> - 2016-08-19 09:00 +0200
| From | Xunlei Pang <xlpang@redhat.com> |
|---|---|
| Date | 2016-08-18 06:40 +0200 |
| Subject | [PATCH] fib_trie: Fix the description of pos and bits |
| Message-ID | <s7nhv-332-7@gated-at.bofh.it> |
1) Fix one typo: s/tn/tp/ 2) Fix the description about the "u" bits. Signed-off-by: Xunlei Pang <xlpang@redhat.com> --- net/ipv4/fib_trie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index d07fc07..eb7c5d1 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c @@ -249,7 +249,7 @@ static inline unsigned long get_index(t_key key, struct key_vector *kv) * index into the parent's child array. That is, they will be used to find * 'n' among tp's children. * - * The bits from (n->pos + n->bits) to (tn->pos - 1) - "S" - are skipped bits + * The bits from (n->pos + n->bits) to (tp->pos - 1) - "S" - are skipped bits * for the node n. * * All the bits we have seen so far are significant to the node n. The rest @@ -258,7 +258,7 @@ static inline unsigned long get_index(t_key key, struct key_vector *kv) * The bits from (n->pos) to (n->pos + n->bits - 1) - "C" - are the index into * n's child array, and will of course be different for each child. * - * The rest of the bits, from 0 to (n->pos + n->bits), are completely unknown + * The rest of the bits, from 0 to (n->pos -1) - "u" - are completely unknown * at this point. */ -- 1.8.3.1
[toc] | [next] | [standalone]
| From | Alexander Duyck <alexander.duyck@gmail.com> |
|---|---|
| Date | 2016-08-19 06:30 +0200 |
| Message-ID | <s7JBn-QG-3@gated-at.bofh.it> |
| In reply to | #1464923 |
On Wed, Aug 17, 2016 at 9:33 PM, Xunlei Pang <xlpang@redhat.com> wrote: > 1) Fix one typo: s/tn/tp/ > 2) Fix the description about the "u" bits. > > Signed-off-by: Xunlei Pang <xlpang@redhat.com> > --- > net/ipv4/fib_trie.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c > index d07fc07..eb7c5d1 100644 > --- a/net/ipv4/fib_trie.c > +++ b/net/ipv4/fib_trie.c > @@ -249,7 +249,7 @@ static inline unsigned long get_index(t_key key, struct key_vector *kv) > * index into the parent's child array. That is, they will be used to find > * 'n' among tp's children. > * > - * The bits from (n->pos + n->bits) to (tn->pos - 1) - "S" - are skipped bits > + * The bits from (n->pos + n->bits) to (tp->pos - 1) - "S" - are skipped bits > * for the node n. > * > * All the bits we have seen so far are significant to the node n. The rest > @@ -258,7 +258,7 @@ static inline unsigned long get_index(t_key key, struct key_vector *kv) > * The bits from (n->pos) to (n->pos + n->bits - 1) - "C" - are the index into > * n's child array, and will of course be different for each child. > * > - * The rest of the bits, from 0 to (n->pos + n->bits), are completely unknown > + * The rest of the bits, from 0 to (n->pos -1) - "u" - are completely unknown > * at this point. > */ > These comment fixes all look correct. Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
[toc] | [prev] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2016-08-19 09:00 +0200 |
| Message-ID | <s7LWx-2b5-1@gated-at.bofh.it> |
| In reply to | #1464923 |
From: Xunlei Pang <xlpang@redhat.com> Date: Thu, 18 Aug 2016 12:33:28 +0800 > 1) Fix one typo: s/tn/tp/ > 2) Fix the description about the "u" bits. > > Signed-off-by: Xunlei Pang <xlpang@redhat.com> Applied.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web