Skip to content

Commit c1c92b6

Browse files
committed
openvswitch: Print device when warning about over MTU packets.
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@nicira.com>
1 parent ddffeb8 commit c1c92b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/openvswitch/vport-netdev.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static int netdev_send(struct vport *vport, struct sk_buff *skb)
158158

159159
if (unlikely(packet_length(skb) > mtu && !skb_is_gso(skb))) {
160160
net_warn_ratelimited("%s: dropped over-mtu packet: %d > %d\n",
161-
ovs_dp_name(vport->dp),
161+
netdev_vport->dev->name,
162162
packet_length(skb), mtu);
163163
goto error;
164164
}

0 commit comments

Comments
 (0)