[dpdk-dev] [PATCH 05/12] mbuf: add new Rx checksum mbuf flags

Stephen Hemminger stephen at networkplumber.org
Thu Jul 21 23:22:08 CEST 2016


On Thu, 21 Jul 2016 10:08:23 +0200
Olivier Matz <olivier.matz at 6wind.com> wrote:

> +/**
> + * Deprecated.
> + * Checking this flag alone is deprecated: check the 2 bits of
> + * PKT_RX_L4_CKSUM_MASK.
> + * This flag was set when the L4 checksum of a packet was detected as
> + * wrong by the hardware.
> + */
> +#define PKT_RX_L4_CKSUM_BAD  (1ULL << 3)
> +
> +/**
> + * Deprecated.
> + * Checking this flag alone is deprecated: check the 2 bits of
> + * PKT_RX_IP_CKSUM_MASK.
> + * This flag was set when the IP checksum of a packet was detected as
> + * wrong by the hardware.
> + */
> +#define PKT_RX_IP_CKSUM_BAD  (1ULL << 4)

I think you should use the GCC deprecated attribute, not sure how though


More information about the dev mailing list