From bc96a226a91a588e255cbc697ba6318ee6bfb805 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 23 Jun 2008 14:08:37 -0700 Subject: [PATCH] Drop "send_openflow_skb: send failed: -3" warning. This message appeared in the normal course of OpenFlow usage when a packet arrived on an OpenFlow interface and no secure channel was running, or if packets arrived too fast for the secure channel to process them. It confused more people than it assisted, so drop it. --- datapath/datapath.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/datapath/datapath.c b/datapath/datapath.c index 20d41cf9..00dbac7c 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -201,13 +201,9 @@ alloc_openflow_skb(struct datapath *dp, size_t openflow_len, uint8_t type, static int send_openflow_skb(struct sk_buff *skb, const struct sender *sender) { - int err = (sender - ? genlmsg_unicast(skb, sender->pid) - : genlmsg_multicast(skb, 0, mc_group.id, GFP_ATOMIC)); - if (err && net_ratelimit()) - printk(KERN_WARNING "send_openflow_skb: send failed: %d\n", - err); - return err; + return (sender + ? genlmsg_unicast(skb, sender->pid) + : genlmsg_multicast(skb, 0, mc_group.id, GFP_ATOMIC)); } /* Generates a unique datapath id. It incorporates the datapath index -- 2.30.2