]> git.droids-corp.org - dpdk.git/commit
net/enic: avoid error message when no advanced filtering
authorHyong Youb Kim <hyonkim@cisco.com>
Tue, 26 Oct 2021 00:04:18 +0000 (17:04 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 3 Nov 2021 18:56:55 +0000 (19:56 +0100)
commitaf397b3c93f82b0803c0890874d7ee3b5127522d
treea830f6f48c86d35e0199308b8963d201e067f9cc
parentbcd68b68415172815e55fc67cf3947c0433baf74
net/enic: avoid error message when no advanced filtering

Probing the availability of Flow Manager API may print the following
error log.

PMD: rte_enic_pmd: Devcmd 88 failed with error code -1

The error indicates a flow manager operation failed and happens when
advanced filtering is disabled on vNIC. It is harmless but confusing
to the user. Since advanced filtering is a prerequisite, check first
if it is available and avoid the error message altogether.

Fixes: ea7768b5bba8 ("net/enic: add flow implementation based on Flow Manager API")
Cc: stable@dpdk.org
Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/base/vnic_dev.c