[ovs-git] [openvswitch/ovs] 29736c: netdev-linux: Do not log a warning if the device i...

GitHub noreply at github.com
Thu Jul 7 01:26:02 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 29736cc0764b317f1130966c1b269ea4b5d3b44d
      https://github.com/openvswitch/ovs/commit/29736cc0764b317f1130966c1b269ea4b5d3b44d
  Author: Daniele Di Proietto <diproiettod at vmware.com>
  Date:   2016-07-06 (Wed, 06 Jul 2016)

  Changed paths:
    M lib/netdev-linux.c

  Log Message:
  -----------
  netdev-linux: Do not log a warning if the device is down.

In the userspace datapath we use tap devices as internal netdev.  The
datapath doesn't consider whether a device is up or down before sending
to it, and so far this hasn't been a problem.

Since Linux upstream commit 1bd4978a88ac("tun: honor IFF_UP in
tun_get_user()"), included in 4.4, writing to a tap device that is not
up sets errno to EIO.  This commit avoids printing a warning in this
case.

This fixes a failures in the system-userspace-testsuites.

Reported-by: Joe Stringer <joe at ovn.org>
Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>
Acked-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list