net/bnxt: fix link state operations
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Thu, 18 Mar 2021 09:35:22 +0000 (15:05 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 19 Mar 2021 19:29:55 +0000 (20:29 +0100)
commit586d9da38aaa19bfe2e804c4038c3d0ec0a3ef99
treeb2bbc9afc2f1fe61172b59d8462b41b058d194f2
parent670ab553841b2f2bbf59667465855b0869eea86b
net/bnxt: fix link state operations

VFs does not have the privilege to change link configuration.
But the driver silently returns success to these ethdev callbacks
without actually issuing the HWRM command to bring the link up/down.

Fixes: 5c206086feaa ("net/bnxt: add link state operations")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c