datapath: Remove unused print_flow() function
authorJustin Pettit <jpettit@nicira.com>
Tue, 17 Nov 2009 17:51:34 +0000 (09:51 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 17 Nov 2009 17:51:34 +0000 (09:51 -0800)
datapath/flow.c
datapath/flow.h

index 16b576ab674fd527c4b4d30aaec23ea94b8bb34f..b2de023408a5496e979dfe89e86feb696e697d33 100644 (file)
@@ -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));
-}
index a825366fe844767c3604c00695db48f000e32d46..44cc3a607cce5a343ec9a3e8b5b28ae183fb6f90 100644 (file)
@@ -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);