]> git.baikalelectronics.ru Git - kernel.git/commit
net: vrf: Fix NAT within a VRF
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 14 Dec 2016 19:06:18 +0000 (11:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Dec 2016 15:45:57 +0000 (10:45 -0500)
commite6cc05a1b725c9d1901308e1cce1faa6bb6a7afe
tree0defffc79178cfbf79c84a94fa8acd9504f4086d
parent098d9670cad12542f6d3d273a0f5d16f9e629c00
net: vrf: Fix NAT within a VRF

Connection tracking with VRF is broken because the pass through the VRF
device drops the connection tracking info. Removing the call to nf_reset
allows DNAT and MASQUERADE to work across interfaces within a VRF.

Fixes: 4d00fabf104d ("net: vrf: Add support for PREROUTING rules on vrf device")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c