diff mbox

[ovs-dev,RFC,2/5] in-band: don't use system type when opening netdev

Message ID 1468861225-8569-3-git-send-email-cascardo@redhat.com
State RFC
Headers show

Commit Message

Thadeu Lima de Souza Cascardo July 18, 2016, 5 p.m. UTC
A netdev might be already opened with a different type and that can be used
instead. The system type is already the default type that will be used when
there is no netdev opened and the type is not specified.

And as long as the opened netdev supports the required operations, it doesn't
matter its type.
---
 ofproto/in-band.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/ofproto/in-band.c b/ofproto/in-band.c
index e3ee41a..f69e94f 100644
--- a/ofproto/in-band.c
+++ b/ofproto/in-band.c
@@ -134,7 +134,7 @@  refresh_remote(struct in_band *ib, struct in_band_remote *r)
     {
         netdev_close(r->remote_netdev);
 
-        retval = netdev_open(next_hop_dev, "system", &r->remote_netdev);
+        retval = netdev_open(next_hop_dev, NULL, &r->remote_netdev);
         if (retval) {
             VLOG_WARN_RL(&rl, "%s: cannot open netdev %s (next hop "
                          "to controller "IP_FMT"): %s",