datapath: Backport: vxlan: interpret IP headers for ECN correctly
authorPravin B Shelar <pshelar@nicira.com>
Tue, 8 Dec 2015 02:23:21 +0000 (18:23 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 8 Dec 2015 17:48:31 +0000 (09:48 -0800)
commit839c723379c5bc6beb678aa97fe4a33d05358f4b
tree796f222ed5a6f6a07276f18aff3d4d29077d4de4
parent9e066fe1896bf3a02850fe229afa9ee42c3e1bbf
datapath: Backport: vxlan: interpret IP headers for ECN correctly

Upstream commit:
    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>
Upstream: ce212d0f6f5 ("vxlan: interpret IP headers for ECN correctly")
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@kernel.org>
datapath/linux/compat/vxlan.c