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 <echaudro@redhat.com>
Acked-by: Mike Pattrick <mkp@redhat.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
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);
: 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.