[dpdk-dev] [PATCH 1/4] eal: provide functions to access PCI config
Stephen Hemminger
stephen at networkplumber.org
Thu Jul 9 23:08:32 CEST 2015
On Wed, 17 Jun 2015 14:44:31 +0000
David Marchand <david.marchand at 6wind.com> wrote:
> + if (len == 3 || len > sizeof(pi.pi_data)) {
> + RTE_LOG(ERR, EAL, "%s(): invalid pci read length\n", __func__);
> + goto error;
> + }
>
> A comment on length 3 would help to understand why it is refused.
PCI only supports 1, 2, and 4 byte transactions.
Hopefully someone using this would understand that.
More information about the dev
mailing list