net: add function to calculate IPv4 header length
authorMichael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
Mon, 12 Oct 2020 14:55:46 +0000 (16:55 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:48:17 +0000 (19:48 +0200)
commit9863627f52b87f71351c01a6040cf3c68cae8a33
treec09c943af89a116bfa28f8b6242a69487f189b74
parente37bbe212d48a7375a6239478a114829d05692b5
net: add function to calculate IPv4 header length

Add a function to calculate the length of an IPv4 header as suggested
on the mailing list [1]. Call where appropriate.

[1] https://mails.dpdk.org/archives/dev/2020-October/184471.html

Suggested-by: Thomas Monjalon <thomas@monjalon.net>
Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/5tswap.c
app/test-pmd/csumonly.c
drivers/net/hinic/hinic_pmd_tx.c
drivers/net/tap/rte_eth_tap.c
drivers/net/vmxnet3/vmxnet3_rxtx.c
examples/l3fwd/l3fwd_em.c
lib/librte_net/rte_ip.h
lib/librte_net/rte_net.c
lib/librte_vhost/virtio_net.c