* [PATCH] net: fix description of skb_find_text() according to removed functionality
@ 2017-02-08 7:13 Igor Pylypiv
2017-02-08 8:41 ` Pablo Neira Ayuso
0 siblings, 1 reply; 5+ messages in thread
From: Igor Pylypiv @ 2017-02-08 7:13 UTC (permalink / raw)
To: David Miller; +Cc: Pablo Neira Ayuso, netdev, netfilter-devel, coreteam
I am not planning to to add a new user of this functions.
Use of skb_find_text() was a part of my Linux study and its
description informed me that I can use textsearch_next()
which I cannot. Just want to fix this.
On Tue, Feb 7, 2017 at 7:02 PM, David Miller <davem@davemloft.net> wrote:
>
> How about you make edits to this interface when you add an in-tree
> user as we mentioned in our responses to your previous patch?
>
> Thank you.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Revert "net: Remove state argument from skb_find_text()"
@ 2017-02-07 15:53 David Miller
2017-02-08 2:45 ` [PATCH] net: fix description of skb_find_text() according to removed functionality Igor Pylypiv
0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2017-02-07 15:53 UTC (permalink / raw)
To: igor.pylypiv; +Cc: pablo, netdev, netfilter-devel, coreteam
From: Igor Pylypiv <igor.pylypiv@gmail.com>
Date: Sat, 4 Feb 2017 21:48:30 -0800
> This reverts commit 059a2440fd3cf4ec57735db2c0a90401cde84fca.
>
> Textsearch state parameter should be passed by pointer because
> its resulting value is needed for call to textsearch_next().
>
> Signed-off-by: Igor Pylypiv <igor.pylypiv@gmail.com>
There are no users of this functionality.
Once you add one, you can submit this patch alongside of it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] net: fix description of skb_find_text() according to removed functionality
2017-02-07 15:53 [PATCH] Revert "net: Remove state argument from skb_find_text()" David Miller
@ 2017-02-08 2:45 ` Igor Pylypiv
2017-02-08 3:02 ` David Miller
2017-02-08 8:44 ` Pablo Neira Ayuso
0 siblings, 2 replies; 5+ messages in thread
From: Igor Pylypiv @ 2017-02-08 2:45 UTC (permalink / raw)
To: David S . Miller, Pablo Neira Ayuso; +Cc: netdev, netfilter-devel, coreteam
Textsearch state parameter was moved to local scope of the function.
This eliminates usage of textsearch_next() to find subsequent occurrences.
Fixes: 59a2440fd3cf ("net: Remove state argument from skb_find_text()")
Signed-off-by: Igor Pylypiv <igor.pylypiv@gmail.com>
---
net/core/skbuff.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 9ccba86..90366c5 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -2919,9 +2919,8 @@ static void skb_ts_finish(struct ts_config *conf, struct ts_state *state)
* @config: textsearch configuration
*
* Finds a pattern in the skb data according to the specified
- * textsearch configuration. Use textsearch_next() to retrieve
- * subsequent occurrences of the pattern. Returns the offset
- * to the first occurrence or UINT_MAX if no match was found.
+ * textsearch configuration. Returns the offset to the first
+ * occurrence or UINT_MAX if no match was found.
*/
unsigned int skb_find_text(struct sk_buff *skb, unsigned int from,
unsigned int to, struct ts_config *config)
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] net: fix description of skb_find_text() according to removed functionality
2017-02-08 2:45 ` [PATCH] net: fix description of skb_find_text() according to removed functionality Igor Pylypiv
@ 2017-02-08 3:02 ` David Miller
2017-02-08 8:44 ` Pablo Neira Ayuso
1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2017-02-08 3:02 UTC (permalink / raw)
To: igor.pylypiv; +Cc: pablo, netdev, netfilter-devel, coreteam
How about you make edits to this interface when you add an in-tree
user as we mentioned in our responses to your previous patch?
Thank you.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: fix description of skb_find_text() according to removed functionality
2017-02-08 2:45 ` [PATCH] net: fix description of skb_find_text() according to removed functionality Igor Pylypiv
2017-02-08 3:02 ` David Miller
@ 2017-02-08 8:44 ` Pablo Neira Ayuso
1 sibling, 0 replies; 5+ messages in thread
From: Pablo Neira Ayuso @ 2017-02-08 8:44 UTC (permalink / raw)
To: Igor Pylypiv; +Cc: David S . Miller, netdev, netfilter-devel, coreteam
On Tue, Feb 07, 2017 at 06:45:37PM -0800, Igor Pylypiv wrote:
> Textsearch state parameter was moved to local scope of the function.
> This eliminates usage of textsearch_next() to find subsequent occurrences.
>
> Fixes: 59a2440fd3cf ("net: Remove state argument from skb_find_text()")
> Signed-off-by: Igor Pylypiv <igor.pylypiv@gmail.com>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-02-08 9:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-08 7:13 [PATCH] net: fix description of skb_find_text() according to removed functionality Igor Pylypiv
2017-02-08 8:41 ` Pablo Neira Ayuso
-- strict thread matches above, loose matches on Subject: below --
2017-02-07 15:53 [PATCH] Revert "net: Remove state argument from skb_find_text()" David Miller
2017-02-08 2:45 ` [PATCH] net: fix description of skb_find_text() according to removed functionality Igor Pylypiv
2017-02-08 3:02 ` David Miller
2017-02-08 8:44 ` Pablo Neira Ayuso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.