diff options
author | Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 2016-07-13 20:08:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-14 03:10:14 +0200 |
commit | e7487c86dc5c4a528a7dbd9dc14f453a0de61a84 (patch) | |
tree | fee52720c9c4621d165294c8d48dff6326468c36 /net/sctp/inqueue.c | |
parent | sctp: allow GSO frags to access the chunk too (diff) | |
download | linux-e7487c86dc5c4a528a7dbd9dc14f453a0de61a84.tar.xz linux-e7487c86dc5c4a528a7dbd9dc14f453a0de61a84.zip |
sctp: avoid identifying address family many times for a chunk
Identifying address family operations during rx path is not something
expensive but it's ugly to the eye to have it done multiple times,
specially when we already validated it during initial rx processing.
This patch takes advantage of the now shared sctp_input_cb and make the
pointer to the operations readily available.
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/inqueue.c')
-rw-r--r-- | net/sctp/inqueue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sctp/inqueue.c b/net/sctp/inqueue.c index 147d975b0455..8fc773f9b59a 100644 --- a/net/sctp/inqueue.c +++ b/net/sctp/inqueue.c @@ -224,6 +224,7 @@ new_skb: *head_cb = SCTP_INPUT_CB(chunk->head_skb); cb->chunk = head_cb->chunk; + cb->af = head_cb->af; } } |