]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: only check for ECN if peer is using it
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Wed, 13 Jul 2016 18:09:00 +0000 (15:09 -0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2016 01:10:14 +0000 (18:10 -0700)
commitc43416aeab842384f2364904ac3df3e1e3840c88
tree9ebae306004e92e2a188d933dedf889c8e66a681
parentd3c9528acafab44dcd6f717329d55068686dad8e
sctp: only check for ECN if peer is using it

Currently only read-only checks are performed up to the point on where
we check if peer is ECN capable, checks which we can avoid otherwise.
The flag ecn_ce_done is only used to perform this check once per
incoming packet, and nothing more.

Thus this patch moves the peer check up.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_statefuns.c