vxlan: interpret IP headers for ECN correctly
authorJiri Benc <jbenc@redhat.com>
Mon, 7 Dec 2015 15:29:08 +0000 (16:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2015 22:06:33 +0000 (17:06 -0500)
commitce212d0f6f5523ca9eb8020267f1aa4eb6869ba8
tree80497628b988f99fad1f22a9d240778a473622eb
parent0c9cd7c4339c4b9a423e32732e8345387c56af1f
vxlan: interpret IP headers for ECN correctly

When looking for outer IP header, use the actual socket address family, not
the address family of the default destination which is not set for metadata
based interfaces (and doesn't have to match the address family of the
received packet even if it was set).

Fix also the misleading comment.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c