From: Ben Pfaff Date: Mon, 23 Jun 2008 21:08:37 +0000 (-0700) Subject: Drop "send_openflow_skb: send failed: -3" warning. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc96a226a91a588e255cbc697ba6318ee6bfb805;p=openvswitch 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. --- 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