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

Function eth_dev_get_overhead_len

dpdk/lib/ethdev/rte_ethdev.c:1233–1244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1231}
1232
1233static uint32_t
1234eth_dev_get_overhead_len(uint32_t max_rx_pktlen, uint16_t max_mtu)
1235{
1236 uint32_t overhead_len;
1237
1238 if (max_mtu != UINT16_MAX && max_rx_pktlen > max_mtu)
1239 overhead_len = max_rx_pktlen - max_mtu;
1240 else
1241 overhead_len = RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN;
1242
1243 return overhead_len;
1244}
1245
1246/* rte_eth_dev_info_get() should be called prior to this function */
1247static int

Callers 3

eth_dev_validate_mtuFunction · 0.70
rte_eth_dev_configureFunction · 0.70
rte_eth_rx_queue_setupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected