kcm: Remove TCP specific references from kcm and strparser
kcm and strparser need to work with any type of stream socket not just TCP. Eliminate references to TCP and call generic proto_ops functions of read_sock and peek_len. Also in strp_init check if the socket support the proto_ops read_sock and peek_len. Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3203558589
commit
96a5908347
@@ -137,6 +137,6 @@ void strp_stop(struct strparser *strp);
|
||||
void strp_check_rcv(struct strparser *strp);
|
||||
int strp_init(struct strparser *strp, struct sock *csk,
|
||||
struct strp_callbacks *cb);
|
||||
void strp_tcp_data_ready(struct strparser *strp);
|
||||
void strp_data_ready(struct strparser *strp);
|
||||
|
||||
#endif /* __NET_STRPARSER_H_ */
|
||||
|
||||
Reference in New Issue
Block a user