Add a new configuration option - skip-hw that controls tc flower flag. Enabling this option, will set skip_hw flag for any inserted flower filter using tc api, This will make tc handle the offloaded flows instead of HW. Default is disabled, which means flows will be inserted to HW.
Signed-off-by: Paul Blakey <[email protected]> Reviewed-by: Roi Dayan <[email protected]> --- vswitchd/bridge.c | 2 ++ vswitchd/vswitch.xml | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index e90a31a..a83da89 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -68,6 +68,7 @@ #include "lib/vswitch-idl.h" #include "xenserver.h" #include "vlan-bitmap.h" +#include "tc.h" VLOG_DEFINE_THIS_MODULE(bridge); @@ -2921,6 +2922,7 @@ bridge_run(void) if (cfg) { netdev_set_flow_api_enabled(smap_get_bool(&cfg->other_config, "hw-offload", false)); + tc_set_skip_hw(smap_get_bool(&cfg->other_config, "skip-hw", false)); dpdk_init(&cfg->other_config); } diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index 9bc9f5f..31fa717 100644 --- a/vswitchd/vswitch.xml +++ b/vswitchd/vswitch.xml @@ -199,6 +199,20 @@ </p> </column> + <column name="other_config" key="skip-hw" + type='{"type": "boolean"}'> + <p> + Set this value to <code>true</code> for flows offloaded using tc flower + flower classifier be handled in software (use skip_hw flower flag). + </p> + <p> + This is only relevant if HW offloading is enabled (hw-offload). + </p> + <p> + The default value is <code>false</code>. + </p> + </column> + <column name="other_config" key="dpdk-lcore-mask" type='{"type": "integer", "minInteger": 1}'> <p> -- 1.8.3.1 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
