Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ethdev: check that at least one FEC mode is specified
[ upstream commit 9fdcf2be070dcd5ea3d845ce798c298c5dfbaa4a ] The behaviour is undefined in the rte_eth_fec_set() function when the fec_capa parameter is equal to zero. Add a check to handle this case. Fixes: b7ccfb0 ("ethdev: introduce FEC API") Signed-off-by: Denis Pryazhennikov <denis.pryazhennikov@arknetworks.am> Acked-by: Ivan Malov <ivan.malov@arknetworks.am> Acked-by: Viacheslav Galaktionov <viacheslav.galaktionov@arknetworks.am> Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
- Loading branch information