net/ice/base: log if DDP/FW do not support QinQ
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Apr 2021 00:41:40 +0000 (08:41 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 30 Apr 2021 13:37:04 +0000 (15:37 +0200)
commitdaa2ca4217ec6bf4fafb84f78985014b20cf5444
treeb27713a3a83bfb2848edaef2d4a9731a512be6c4
parent5ade55ab43e6c07a904c03ebe2d796fdea94e7e0
net/ice/base: log if DDP/FW do not support QinQ

Currently if the driver supports QinQ there is no message/information
if the DDP and/or FW don't support QinQ. Add functionality that prints
if the DDP and/or FW don't support QinQ if the driver attempts to
configured DVM. This will make it more obvious to users in the field
that they need to update their DDP and/or FW.

This required a small refactor so some of the existing code could be
shared and used by this new print functionality.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_vlan_mode.c