Is the Tx lookback meaning as VEB mode ore VEPA mode? If so, how about change the API's name to set_switch_mode?
Another comment is: you removed all mac vlan filters before changing The mode, and restore them after changing. How about vlan filters? The Patch for vlan anti-spoof enables it, correct? Thanks JIngjing