strparser: Remove unused strp_process
Subsystems (3)
RFC 1/1 strparser: Remove unused strp_process
From: "Dr. David Alan Gilbert" <[email protected]>
strp_process() was addded in 2017 in
commit bbb03029a899 ("strparser: Generalize strparser")
but never used.
Remove it.
....but, hmm I'm not sure how much other cleanup needs doing, there's still a comment in strp_init() referencing strp_process and it makes me think there might be other code handling the 'general mode' which strp_process seems to have been added for.
Suggestions?
Dave
Signed-off-by Dr. David Alan Gilbert <[email protected]>
--- Documentation/networking/strparser.rst | 12 ------------ include/net/strparser.h | 3 --- net/strparser/strparser.c | 13 ------------- 3 files changed, 28 deletions(-)
Documentation/networking/strparser.rst +0 -12
@@ -81,18 +81,6 @@ Functions :: - int strp_process(struct strparser *strp, struct sk_buff *orig_skb, - unsigned int orig_offset, size_t orig_len, - size_t max_msg_size, long timeo) - - strp_process is called in general mode for a stream parser to - parse an sk_buff. The number of bytes processed or a negative - error number is returned. Note that strp_process does not - consume the sk_buff. max_msg_size is maximum size the stream - parser will parse. timeo is timeout for completing a message. - - :: - void strp_data_ready(struct strparser *strp); The upper layer calls strp_tcp_data_ready when data is ready on
include/net/strparser.h +0 -3
@@ -163,8 +163,5 @@ void strp_check_rcv(struct strparser *strp);int strp_init (struct strparser *strp,struct sock *sk,const struct strp_callbacks *cb);void strp_data_ready (struct strparser *strp); -int strp_process (struct strparser *strp,struct sk_buff *orig_skb, -unsigned int orig_offset,size_t orig_len, -size_t max_msg_size,long timeo);#endif /* __NET_STRPARSER_H_ */
net/strparser/strparser.c +0 -13
@@ -314,19 +314,6 @@ static int __strp_recv(read_descriptor_t *desc, struct sk_buff *orig_skb,return eaten; } -int strp_process (struct strparser *strp,struct sk_buff *orig_skb, -unsigned int orig_offset,size_t orig_len, -size_t max_msg_size,long timeo) -{ -read_descriptor_t desc;/* Dummy arg to strp_recv */ - - desc.arg.data = strp; - -return __strp_recv (&desc, orig_skb, orig_offset, orig_len, - max_msg_size, timeo); -} -EXPORT_SYMBOL_GPL (strp_process); -static int strp_recv (read_descriptor_t *desc,struct sk_buff *orig_skb,unsigned int orig_offset,size_t orig_len) {
Signature · 1 line
2.49.0