[PATCH] net/pcap: support MTU set
Stephen Hemminger
stephen at networkplumber.org
Thu Mar 17 19:20:47 CET 2022
On Thu, 17 Mar 2022 19:43:47 +0200
ido g <ido at cgstowernetworks.com> wrote:
> + if (unlikely(header.caplen > dev->data->mtu)) {
> + pcap_q->rx_stat.err_pkts++;
> + rte_pktmbuf_free(mbuf);
> + break;
> + }
MTU should only be enforced on transmit.
Other real network devices allow oversized packets.
Since the pcap file is something user provides, if you don't want that then use something
to filter the file.
More information about the dev
mailing list