aboutsummaryrefslogtreecommitdiff
path: root/datapath
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2009-11-17 09:51:34 -0800
committerJustin Pettit <jpettit@nicira.com>2009-11-17 09:51:34 -0800
commit460d80629bc2c7b382f137c968f73ce2be983892 (patch)
tree263576a8c7e4072a5f47254a4dc5647d4a059f6c /datapath
parentde3f65ea52d60d70b104d852dbc752cb48ccf8f1 (diff)
datapath: Remove unused print_flow() function
Diffstat (limited to 'datapath')
-rw-r--r--datapath/flow.c13
-rw-r--r--datapath/flow.h2
2 files changed, 0 insertions, 15 deletions
diff --git a/datapath/flow.c b/datapath/flow.c
index 16b576ab..b2de0234 100644
--- a/datapath/flow.c
+++ b/datapath/flow.c
@@ -332,16 +332,3 @@ void flow_exit(void)
{
kmem_cache_destroy(flow_cache);
}
-
-void print_flow(const struct odp_flow_key *key)
-{
-#define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
-#define MAC_ARG(x) ((u8*)(x))[0],((u8*)(x))[1],((u8*)(x))[2],((u8*)(x))[3],((u8*)(x))[4],((u8*)(x))[5]
- printk("port%04x:vlan%d mac"MAC_FMT"->"MAC_FMT" "
- "type%04x proto%d ip%x->%x port%d->%d\n",
- key->in_port, ntohs(key->dl_vlan),
- MAC_ARG(key->dl_src), MAC_ARG(key->dl_dst),
- ntohs(key->dl_type), key->nw_proto,
- key->nw_src, key->nw_dst,
- ntohs(key->tp_src), ntohs(key->tp_dst));
-}
diff --git a/datapath/flow.h b/datapath/flow.h
index a825366f..44cc3a60 100644
--- a/datapath/flow.h
+++ b/datapath/flow.h
@@ -49,8 +49,6 @@ void flow_deferred_free_acts(struct sw_flow_actions *);
int flow_extract(struct sk_buff *, u16 in_port, struct odp_flow_key *);
void flow_used(struct sw_flow *, struct sk_buff *);
-void print_flow(const struct odp_flow_key *);
-
int flow_init(void);
void flow_exit(void);