net/cxgbe: avoid sending link params change from VF
authorNikhil Vasoya <nikhil.vasoya@chelsio.com>
Mon, 27 Sep 2021 17:56:30 +0000 (23:26 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 30 Sep 2021 15:31:37 +0000 (17:31 +0200)
commit88ba30f0076c58ba076b13c5a2612c6bd6a465f5
tree65cc75dd5e74a88fc93241db9dd52d7624723d31
parent6728fe930588de134a26981c52f64d9fd612be9a
net/cxgbe: avoid sending link params change from VF

VFs are not allowed to change physical link params when a port
module change is detected. The firmware already returns appropriate
permission error when VF tries to change physical link params. But,
make sure to avoid sending the command to firmware from VF in the
first place and prevent flooding firmware debug logs with permission
errors.

Fixes: a83041b1e998 ("net/cxgbe: rework and simplify link handling")
Cc: stable@dpdk.org
Signed-off-by: Nikhil Vasoya <nikhil.vasoya@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/base/t4_hw.c