MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ionic_parse_link_speeds

Function ionic_parse_link_speeds

dpdk/drivers/net/ionic/ionic_ethdev.c:835–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833}
834
835static inline uint32_t
836ionic_parse_link_speeds(uint16_t link_speeds)
837{
838 if (link_speeds & RTE_ETH_LINK_SPEED_100G)
839 return 100000;
840 else if (link_speeds & RTE_ETH_LINK_SPEED_50G)
841 return 50000;
842 else if (link_speeds & RTE_ETH_LINK_SPEED_40G)
843 return 40000;
844 else if (link_speeds & RTE_ETH_LINK_SPEED_25G)
845 return 25000;
846 else if (link_speeds & RTE_ETH_LINK_SPEED_10G)
847 return 10000;
848 else
849 return 0;
850}
851
852/*
853 * Configure device link speed and setup link.

Callers 1

ionic_dev_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected