net/pcap: truncate packet if it is too large
authorZhike Wang <wangzhike@jd.com>
Mon, 9 Dec 2019 01:53:09 +0000 (09:53 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:45:23 +0000 (19:45 +0100)
commita09f61159ad0f4449a61c6325eb5bda4be1bb5cd
tree90d5e30009ffbacba02c1ab28f963fbd32831944
parentc11562a1215aaff6651f9c59ef91ad0a53292571
net/pcap: truncate packet if it is too large

Previously large packet would be dropped, instead now it is better to
keep it via truncating it.

Signed-off-by: Zhike Wang <wangzhike@jd.com>
Reviewed-by: Cian Ferriter <cian.ferriter@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pcap/rte_eth_pcap.c