]> git.baikalelectronics.ru Git - kernel.git/commit
kcm: Remove TCP specific references from kcm and strparser
authorTom Herbert <tom@herbertland.com>
Sun, 28 Aug 2016 21:43:19 +0000 (14:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Aug 2016 03:32:41 +0000 (23:32 -0400)
commit91477f1ed1381d8dc6f0144b5932fafa93fb5f5f
tree09a988530d4c5e17bf47f16f2c624bc93ac14018
parent9ac831b72a4c611af09fe3f87d06cdb6316fe322
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>
include/net/strparser.h
net/kcm/kcmsock.c
net/strparser/strparser.c