net/sfc: fix buffer size for flow parse
authorIvan Malov <ivan.malov@oktetlabs.ru>
Fri, 26 Feb 2021 14:10:23 +0000 (17:10 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Feb 2021 15:46:16 +0000 (16:46 +0100)
commit05cc6e33961b41df6cdc37fd429e06c28c78a84e
treed5f817aae73a1f8f78c007cb5071e669da3040b8
parentd5f2880c989fda4c44992dd961c3b241d34973ab
net/sfc: fix buffer size for flow parse

Pass the size of the buffer where the item's mask
is stored and not the indirection pointer size.

Coverity issue: 363735
Fixes: dadff137931c ("net/sfc: support encap flow items in transfer rules")
Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/net/sfc/sfc_mae.c
drivers/net/sfc/sfc_mae.h