Skip to content

Commit

Permalink
openvswitch: Print device when warning about over MTU packets.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jessegross committed Oct 30, 2012
1 parent ddffeb8 commit c1c92b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/openvswitch/vport-netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,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;
}
Expand Down

0 comments on commit c1c92b6

Please sign in to comment.