diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2021-03-16 17:55:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-17 01:29:49 +0300 |
commit | 2b7e3f7d1b7e347c328a88f937acd53b2849534a (patch) | |
tree | e30ecbfd914852e44d01a182d96d085b602e6120 /drivers/net/ethernet/freescale/dpaa2/dpsw-cmd.h | |
parent | 05b363608b5bfb1d55675655bab36486c6df729b (diff) | |
download | linux-2b7e3f7d1b7e347c328a88f937acd53b2849534a.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa2/dpsw-cmd.h')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpsw-cmd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpsw-cmd.h b/drivers/net/ethernet/freescale/dpaa2/dpsw-cmd.h index 2371fd5c40e3..996a59dcd01d 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpsw-cmd.h +++ b/drivers/net/ethernet/freescale/dpaa2/dpsw-cmd.h @@ -340,7 +340,7 @@ struct dpsw_cmd_vlan_manage_if { __le16 vlan_id; __le32 pad1; /* cmd word 1-4 */ - __le64 if_id[4]; + __le64 if_id; }; struct dpsw_cmd_vlan_remove { @@ -386,7 +386,7 @@ struct dpsw_cmd_fdb_multicast_op { u8 mac_addr[6]; __le16 pad2; /* cmd word 2-5 */ - __le64 if_id[4]; + __le64 if_id; }; struct dpsw_cmd_fdb_dump { |