]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-switch: reduce the size of the if_id bitmap to 64 bits
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 16 Mar 2021 14:55:10 +0000 (16:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2021 22:29:49 +0000 (15:29 -0700)
commit271339751f391f8aa801b75f81274cdc7bba6d89
treee30ecbfd914852e44d01a182d96d085b602e6120
parent38a156bd799df790723eb982f730dc81a6d77fd7
dpaa2-switch: reduce the size of the if_id bitmap to 64 bits

The maximum number of DPAA2 switch interfaces, including the control
interface, is 64. Even though this restriction existed from the first
place, the command structures which use an interface id bitmap were
poorly described and even though a single uint64_t is enough, all of
them used an array of 4 uint64_t's.
Fix this by reducing the size of the interface id field to a single
uint64_t.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpsw-cmd.h
drivers/net/ethernet/freescale/dpaa2/dpsw.c