net/bnxt: set a VNIC as default only once
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Sat, 29 Sep 2018 02:00:03 +0000 (19:00 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 11 Oct 2018 16:53:48 +0000 (18:53 +0200)
commit5bf10cdb67db5ee7308cc752b51f0f12dcdcb0e8
treecd23df18c41938fd791b5db5b205fe13f544282b
parent50d3c51baecc5906cd72de549cc99b5c283aee96
net/bnxt: set a VNIC as default only once

If a vnic is configured as default and the setting has not changed,
there is no need to issue this setting again to the FW.

Fixes: db678d5c2b54 ("net/bnxt: add HWRM VNIC configure")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_hwrm.c