net/mrvl: add link speed capabilities
Return supported link speed capabilities via rte_dev_info_get(). Signed-off-by: Jacek Siuda <jck@semihalf.com> Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
This commit is contained in:
parent
b684847a33
commit
d9e7317e1b
@ -4,4 +4,5 @@
|
|||||||
; Refer to default.ini for the full list of available PMD features.
|
; Refer to default.ini for the full list of available PMD features.
|
||||||
;
|
;
|
||||||
[Features]
|
[Features]
|
||||||
|
Speed capabilities = Y
|
||||||
Link status = Y
|
Link status = Y
|
||||||
|
@ -576,6 +576,11 @@ static void
|
|||||||
mrvl_dev_infos_get(struct rte_eth_dev *dev __rte_unused,
|
mrvl_dev_infos_get(struct rte_eth_dev *dev __rte_unused,
|
||||||
struct rte_eth_dev_info *info)
|
struct rte_eth_dev_info *info)
|
||||||
{
|
{
|
||||||
|
info->speed_capa = ETH_LINK_SPEED_10M |
|
||||||
|
ETH_LINK_SPEED_100M |
|
||||||
|
ETH_LINK_SPEED_1G |
|
||||||
|
ETH_LINK_SPEED_10G;
|
||||||
|
|
||||||
info->max_rx_queues = MRVL_PP2_RXQ_MAX;
|
info->max_rx_queues = MRVL_PP2_RXQ_MAX;
|
||||||
info->max_tx_queues = MRVL_PP2_TXQ_MAX;
|
info->max_tx_queues = MRVL_PP2_TXQ_MAX;
|
||||||
info->max_mac_addrs = MRVL_MAC_ADDRS_MAX;
|
info->max_mac_addrs = MRVL_MAC_ADDRS_MAX;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user