net/bnxt: use macro for getting default VNIC
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Mon, 2 Dec 2019 04:18:09 +0000 (09:48 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:45:23 +0000 (19:45 +0100)
commitfb590010d97549284612c2f31ae3a45b8f9277f7
treedaf27ebde9bf77e9631347586c7abebaa785be80
parent731080ea3637fb788e51c0528632fd793765126f
net/bnxt: use macro for getting default VNIC

BNXT_GET_DEFAULT_VNIC macro returns the default VNIC of the
function and fixed all occurrences of code to use the macro.

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c