/
phprus
/
github_dpdk
Обзор
Документация
Войти
/
phprus
/
github_dpdk
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
lib/ethdev/ethdev_linux_ethtool.h
35 строк
723 B
David Marchand
ethdev: hide internal ethtool symbol
29 авг 2025, 23:14
29 авг 2025, 23:14
a15db7b
Код
Авторство
О чём код?
/* SPDX-License-Identifier: BSD-3-Clause * Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef ETHDEV_ETHTOOL_H #define ETHDEV_ETHTOOL_H #include <stdint.h> #include <linux/ethtool.h> #include <rte_compat.h> #ifdef __cplusplus extern "C" { #endif /* * Convert bitmap from ETHTOOL_GLINKSETTINGS ethtool_link_settings::link_mode_masks * to bitmap RTE_ETH_LINK_SPEED_* */ __rte_internal uint32_t rte_eth_link_speed_glink(const uint32_t *bitmap, int8_t nwords); /* * Convert bitmap from deprecated ETHTOOL_GSET ethtool_cmd::supported * to bitmap RTE_ETH_LINK_SPEED_* */ __rte_internal uint32_t rte_eth_link_speed_gset(uint32_t legacy_bitmap); #ifdef __cplusplus } #endif #endif /* ETHDEV_ETHTOOL_H */