On Fri, 17 Nov 2023 09:29:41 +0000 Ferruh Yigit <ferruh.yi...@amd.com> wrote:
> >> I agree using 'l3_len' instead is correct fix. > >> > >> But this requires ABI/API change, > >> plus do we have any reason to keep the padding, discarding it as this > >> patch does is also simpler alternative. > > > > > > Possibly an API version to change the args would work to fix. > > > > rte_ipv4_udptcp_cksum_mbuf() and rte_ipv6_udptcp_cksum_mbuf() are inline > functions, unfortunately we can't version them. > > But those functions already gets IP header as parameter, can't we use IP > header to get the payload size? If so this can be fixed without updating > API. Inlines are easier. Just make a fixed new function and make sure the old one is not used. They shouldn't have been inline in the first place.