| 1231 | } |
| 1232 | |
| 1233 | static uint32_t |
| 1234 | eth_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 */ |
| 1247 | static int |
no outgoing calls
no test coverage detected