]> git.proxmox.com Git - mirror_ovs.git/commitdiff
netdev-bsd: Fix crash on FreeBSD.
authorOlivier Cochard-Labbé <olivier@cochard.me>
Wed, 11 Jul 2018 09:02:28 +0000 (11:02 +0200)
committerBen Pfaff <blp@ovn.org>
Wed, 11 Jul 2018 18:17:16 +0000 (11:17 -0700)
Working on bug https://github.com/openvswitch/ovs-issues/issues/152, I've
found wrong mapping of netdev functions on FreeBSD.

Signed-off-by: Olivier Cochard <olivier@FreeBSD.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-bsd.c

index c6946f9b91a89b301ae1456bb82a83fe0201b405..a153aa259d8a3f5fcb5dad1df91ce4b95cb8807a 100644 (file)
@@ -65,7 +65,6 @@
 
 VLOG_DEFINE_THIS_MODULE(netdev_bsd);
 
-\f
 struct netdev_rxq_bsd {
     struct netdev_rxq up;
 
@@ -1517,7 +1516,7 @@ netdev_bsd_update_flags(struct netdev *netdev_, enum netdev_flags off,
     NULL, /* get_carrier_resets */                   \
     NULL, /* set_miimon_interval */                  \
     netdev_bsd_get_stats,                            \
-                                                     \
+    NULL, /* get_custom_stats */                     \
     GET_FEATURES,                                    \
     NULL, /* set_advertisement */                    \
     NULL, /* get_pt_mode */                          \