[ovs-dev] [PATCH] datapath: Print device when warning about over MTU packets.

Jesse Gross jesse at nicira.com
Thu Oct 4 20:37:23 UTC 2012


If an attempt is made to transmit a packet that is over the device's
MTU then we log it using the datapath's name.  However, it is much
more helpful to use the device name instead.

Signed-off-by: Jesse Gross <jesse at nicira.com>
---
 datapath/vport-netdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/datapath/vport-netdev.c b/datapath/vport-netdev.c
index 0098554..f1ecfdb 100644
--- a/datapath/vport-netdev.c
+++ b/datapath/vport-netdev.c
@@ -304,7 +304,7 @@ static int netdev_send(struct vport *vport, struct sk_buff *skb)
 
 	if (unlikely(packet_length(skb) > mtu && !skb_is_gso(skb))) {
 		net_warn_ratelimited("%s: dropped over-mtu packet: %d > %d\n",
-				     ovs_dp_name(vport->dp),
+				     netdev_vport->dev->name,
 				     packet_length(skb), mtu);
 		goto error;
 	}
-- 
1.7.9.5




More information about the dev mailing list