linux-cp: Only enable/disable the punt feature on the 0<->1 transition 11/35411/2
authorNeale Ranns <neale@graphiant.com>
Tue, 22 Feb 2022 14:51:08 +0000 (14:51 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Tue, 22 Feb 2022 18:20:34 +0000 (18:20 +0000)
commit09cdea643aa181d833df15b8c96c3a812320761a
tree2b76127569c6408cf692ed047a9438e08297f9ec
parentcb8b4c9486cf5362d8f6558bf59cea20f94a7d6f
linux-cp: Only enable/disable the punt feature on the 0<->1 transition

Type: fix

otherwise the feature is enabled n times for n lcp-pairs and the packets go n times through the feature.

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I8e47e4a293d6e2711f54aa09e9545e5e07728026
src/plugins/linux-cp/lcp_interface.c