perftest
perftest copied to clipboard
Integer overflow issue
Is there any way to fix the integer overflow issue here? It's preventing me from enabling some warning flags in my project.
// cppcheck-suppress integerOverflow
uint32_t vlan_header = htonl(VLAN_TPID << 16 |
((vlan_pcp & 0x7) << 13) | VLAN_VID | VLAN_CFI << 12);;
suggested fix: https://github.com/linux-rdma/perftest/pull/250 can you please review?