[PATCH v2 11/18] net/r8169: implement Rx path
Stephen Hemminger
stephen at networkplumber.org
Thu Oct 17 18:11:20 CEST 2024
On Thu, 17 Oct 2024 14:31:53 +0800
Howard Wang <howard_wang at realsil.com.cn> wrote:
> +/*
> + * The overhead from MTU to max frame size.
> + * Considering VLAN so a tag needs to be counted.
> + */
> +#define RTL_ETH_OVERHEAD (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + VLAN_TAG_SIZE)
> +
> +#define ETH_HLEN 14
> +#define VLAN_HLEN 4
> +#define Jumbo_Frame_9k (9 * 1024 - ETH_HLEN - VLAN_HLEN - RTE_ETHER_CRC_LEN)
You might want to consider using the defines in rte_ether.h
Also please don't use CamelCase unless it is coming from some other place
(ie cloning of headers from base code).
More information about the dev
mailing list