This API was announcing duplex capability based on a fixed list of known
link speeds.
It is now unneeded with the new duplex API.

Acked-by: Eelco Chaudron <[email protected]>
Acked-by: Mike Pattrick <[email protected]>
Signed-off-by: David Marchand <[email protected]>
---
 include/openvswitch/netdev.h |  1 -
 lib/netdev.c                 | 10 ----------
 2 files changed, 11 deletions(-)

diff --git a/include/openvswitch/netdev.h b/include/openvswitch/netdev.h
index 56dff57725..8212ffb00e 100644
--- a/include/openvswitch/netdev.h
+++ b/include/openvswitch/netdev.h
@@ -135,7 +135,6 @@ int netdev_get_features(const struct netdev *,
 int netdev_get_speed(const struct netdev *, uint32_t *current, uint32_t *max);
 uint64_t netdev_features_to_bps(enum netdev_features features,
                                 uint64_t default_bps);
-bool netdev_features_is_full_duplex(enum netdev_features features);
 int netdev_get_duplex(const struct netdev *, bool *full_duplex);
 int netdev_set_advertisements(struct netdev *, enum netdev_features advertise);
 void netdev_features_format(struct ds *, enum netdev_features);
diff --git a/lib/netdev.c b/lib/netdev.c
index 82bb13ce04..6a05e9a7e5 100644
--- a/lib/netdev.c
+++ b/lib/netdev.c
@@ -1288,16 +1288,6 @@ netdev_features_to_bps(enum netdev_features features,
                                      : default_bps);
 }
 
-/* Returns true if any of the NETDEV_F_* bits that indicate a full-duplex link
- * are set in 'features', otherwise false. */
-bool
-netdev_features_is_full_duplex(enum netdev_features features)
-{
-    return (features & (NETDEV_F_10MB_FD | NETDEV_F_100MB_FD | NETDEV_F_1GB_FD
-                        | NETDEV_F_10GB_FD | NETDEV_F_40GB_FD
-                        | NETDEV_F_100GB_FD | NETDEV_F_1TB_FD)) != 0;
-}
-
 /* Stores the duplex capability of 'netdev' into 'full_duplex'.
  *
  * Some network devices may not implement support for this function.
-- 
2.51.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to