net/ice/base: support DCF query port ETS adminq
authorTing Xu <ting.xu@intel.com>
Thu, 1 Jul 2021 11:41:19 +0000 (19:41 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 6 Jul 2021 02:58:14 +0000 (04:58 +0200)
commit49cae2c4426c2c07aa1b60a0be5f3812d59c2a41
tree2a700e9f310725bcc6a5f9e58e0ec5891b7c8042
parent6b62423face13bf321f7a9b4f6fac4d65a3efb9c
net/ice/base: support DCF query port ETS adminq

In the adminq command query port ETS function, the root node teid is
needed. However, for DCF, the root node is not initialized, which will
cause error when we refer to the variable. In this patch, we will check
whether the root node is available or not first.

Signed-off-by: Ting Xu <ting.xu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_dcb.c