Drop "send_openflow_skb: send failed: -3" warning.
authorBen Pfaff <blp@nicira.com>
Mon, 23 Jun 2008 21:08:37 +0000 (14:08 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 23 Jun 2008 21:08:37 +0000 (14:08 -0700)
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

index 20d41cf..00dbac7 100644 (file)
@@ -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