From 460d80629bc2c7b382f137c968f73ce2be983892 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 17 Nov 2009 09:51:34 -0800 Subject: [PATCH] datapath: Remove unused print_flow() function --- datapath/flow.c | 13 ------------- datapath/flow.h | 2 -- 2 files changed, 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); -- 2.30.2