net/sfc: check ID overflow in action port ID
authorIvan Malov <ivan.malov@oktetlabs.ru>
Thu, 27 May 2021 14:27:22 +0000 (17:27 +0300)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 7 Jul 2021 09:54:21 +0000 (11:54 +0200)
commitfb3c4efb65be520082a34c0afb85d492ff093c82
tree9349c2ccf74ee2da8cf7a29e3f0e4386c5bfe608
parentd96dccbc27ce3189f1192a72ff4d7fa2580beb6b
net/sfc: check ID overflow in action port ID

The container in the action configuration is U32,
but the ID is U16, and overflow check is missing.

Fixes: 1fb65e4dae8a ("net/sfc: support flow action port ID 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