aboutsummaryrefslogtreecommitdiff
path: root/lib/dpif.c
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-12-22 17:47:15 -0800
committerEthan Jackson <ethan@nicira.com>2012-01-10 14:29:17 -0800
commitc499c75db61f296041d7c39878c4f8cfea7671d5 (patch)
treeebcdf735e14edf4918629c5e41e9e38ff4e658c1 /lib/dpif.c
parent2bcf7df6f7a87d8940deff6fbbc359b0a310a74a (diff)
ofp-print: Remove vestigial 'total_len' argument.
ofp_print_packet() and ofp_packet_to_string() don't use the 'total_len' argument which they require callers to supply. Signed-off-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/dpif.c')
-rw-r--r--lib/dpif.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/dpif.c b/lib/dpif.c
index 9cbf8771..a01b998c 100644
--- a/lib/dpif.c
+++ b/lib/dpif.c
@@ -962,7 +962,7 @@ dpif_execute(struct dpif *dpif,
if (!(error ? VLOG_DROP_WARN(&error_rl) : VLOG_DROP_DBG(&dpmsg_rl))) {
struct ds ds = DS_EMPTY_INITIALIZER;
- char *packet = ofp_packet_to_string(buf->data, buf->size, buf->size);
+ char *packet = ofp_packet_to_string(buf->data, buf->size);
ds_put_format(&ds, "%s: execute ", dpif_name(dpif));
format_odp_actions(&ds, actions, actions_len);
if (error) {
@@ -1098,7 +1098,6 @@ dpif_recv(struct dpif *dpif, struct dpif_upcall *upcall)
char *packet;
packet = ofp_packet_to_string(upcall->packet->data,
- upcall->packet->size,
upcall->packet->size);
ds_init(&flow);