summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner2016-06-02 20:05:42 +0200
committerDavid S. Miller2016-06-04 01:37:21 +0200
commit3acb50c18d8d6650f10919464ade4dcdaf41d62f (patch)
tree174b8c7ef21aaa3e2cddecd81a286976649bd6af /include/linux
parentskbuff: introduce skb_gso_validate_mtu (diff)
downloadkernel-qcow2-linux-3acb50c18d8d6650f10919464ade4dcdaf41d62f.tar.gz
kernel-qcow2-linux-3acb50c18d8d6650f10919464ade4dcdaf41d62f.tar.xz
kernel-qcow2-linux-3acb50c18d8d6650f10919464ade4dcdaf41d62f.zip
sctp: delay as much as possible skb_linearize
This patch is a preparation for the GSO one. In order to successfully handle GSO packets on rx path we must not call skb_linearize, otherwise it defeats any gain GSO may have had. This patch thus delays as much as possible the call to skb_linearize, leaving it to sctp_inq_pop() moment. For that the sanity checks performed now know how to deal with fragments. One positive side-effect of this is that if the socket is backlogged it will have the chance of doing it on backlog processing instead of during softirq. With this move, it's evident that a check for non-linearity in sctp_inq_pop was ineffective and is now removed. Note that a similar check is performed a bit below this one. Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Tested-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions