staging: fsl-dpaa2/ethsw: Fix setting port learning/flooding flags
authorRazvan Stefanescu <razvan.stefanescu@nxp.com>
Fri, 5 Jul 2019 14:27:11 +0000 (17:27 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jul 2019 05:34:12 +0000 (07:34 +0200)
commit543ba01d99cc6b4007c1f9a475c1d572c46a5543
treeaf57662012101ec2ad2a29cd32e9f2a26003bb16
parent26a7ae2949a86e1b74e2485d725efb528e2a81bb
staging: fsl-dpaa2/ethsw: Fix setting port learning/flooding flags

ethsw_set_learning()/ethsw_set_flood() use flags parameter as an
enable/disable (1/0) indicator. Previous usage sent incorrect values.

Signed-off-by: Razvan Stefanescu <razvan.stefanescu@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/1562336836-17119-2-git-send-email-ioana.ciornei@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethsw/ethsw.c