[dpdk-dev] [PATCH v6 1/2] ethdev: remove get_reg_length callback

Remy Horton remy.horton at intel.com
Mon Jul 4 15:24:08 CEST 2016


On 04/07/2016 12:36, Zyta Szpak wrote:
> From: Zyta Szpak <zr at semihalf.com>
>
> Removes hard-coded assumption that device registers
> are always 32 bits wide. The rte_eth_dev_get_reg_length
> and rte_eth_dev_get_reg_info callbacks did not
> provide register size to the app in any way while is
> needed to allocate correct number of bytes before
> retrieving registers using rte_eth_dev_get_reg.
>
> This commit changes rte_eth_dev_get_reg_info so that
> it can be used to retrieve both the number of registers
> and their width, and removes the now-redundant
> rte_eth_dev_get_reg_length.
>
> Signed-off-by: Zyta Szpak <zr at semihalf.com>

Acked-by: Remy Horton <remy.horton at intel.com>


More information about the dev mailing list