From c7eca9658d4519cf88ddb6dea02efb745f7bdbcb Mon Sep 17 00:00:00 2001 From: Andy Zhou Date: Thu, 13 Jul 2017 17:29:16 -0700 Subject: ofproto-dpif: Remove dpif/disable-truncate command. Use 'dpif/set-dp-features' command instead. Signed-off-by: Andy Zhou Acked-by: Ben Pfaff --- ofproto/ofproto-dpif.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'ofproto') diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 9fe10f8e8..36f0c72c3 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -5503,24 +5503,6 @@ disable_tnl_push_pop(struct unixctl_conn *conn OVS_UNUSED, int argc OVS_UNUSED, } } -static void -disable_datapath_truncate(struct unixctl_conn *conn OVS_UNUSED, - int argc OVS_UNUSED, - const char *argv[] OVS_UNUSED, - void *aux OVS_UNUSED) -{ - const struct shash_node **backers; - int i; - - backers = shash_sort(&all_dpif_backers); - for (i = 0; i < shash_count(&all_dpif_backers); i++) { - struct dpif_backer *backer = backers[i]->data; - backer->rt_support.trunc = false; - } - free(backers); - unixctl_command_reply(conn, "Datapath truncate action diabled"); -} - static void ofproto_unixctl_dpif_show_dp_features(struct unixctl_conn *conn, int argc, const char *argv[], @@ -5598,9 +5580,6 @@ ofproto_unixctl_init(void) unixctl_command_register("ofproto/tnl-push-pop", "[on]|[off]", 1, 1, disable_tnl_push_pop, NULL); - - unixctl_command_register("dpif/disable-truncate", "", 0, 0, - disable_datapath_truncate, NULL); } static odp_port_t -- cgit v1.2.1