sdk_dpaa: memset local configuration structures before filling them
authorCamelia Groza <camelia.groza@nxp.com>
Wed, 27 Jan 2021 14:03:20 +0000 (16:03 +0200)
committerCamelia Groza <camelia.groza@nxp.com>
Wed, 27 Jan 2021 14:31:39 +0000 (16:31 +0200)
commitb75861ae9f43f73a8a87a66fa12f819e9590d638
treea7da40acca17b3bf2ae1b20fb55aff00ee65cac9
parent926aa3f5d9e5a46e72c484ab4e214efc5e1cd042
sdk_dpaa: memset local configuration structures before filling them

Zero-out local configuration structures before filling them up and
passing them to the QMan. In most scenarios, there is no need to fill up
all fields so some random data might linger. This avoids sending potentially
random data to the QMan.

Applies to congestions groups, class congestion groups and fq
initialization.

Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth.c
drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c
drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.c
drivers/net/ethernet/freescale/sdk_dpaa/offline_port.c