summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorAndy Zhou <azhou@ovn.org>2017-07-13 17:29:16 -0700
committerAndy Zhou <azhou@ovn.org>2017-08-03 12:38:32 -0700
commitc7eca9658d4519cf88ddb6dea02efb745f7bdbcb (patch)
tree5057bbb3e51aff35774d4db5bd464ec86eb0a554 /ofproto
parentce15b514a6de816845a46ee7bb74f37aad1a0582 (diff)
downloadopenvswitch-c7eca9658d4519cf88ddb6dea02efb745f7bdbcb.tar.gz
ofproto-dpif: Remove dpif/disable-truncate command.
Use 'dpif/set-dp-features' command instead. Signed-off-by: Andy Zhou <azhou@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif.c21
1 files changed, 0 insertions, 21 deletions
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
@@ -5504,24 +5504,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[],
void *aux OVS_UNUSED)
@@ -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