net/ixgbe/base: fix check for NACK
authorXiao Wang <xiao.w.wang@intel.com>
Sun, 25 Sep 2016 08:59:55 +0000 (16:59 +0800)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
commit644a79d9314147a4ea8a2931cd5206aa53047fac
treee8f33f4c21986b8425d6ffc0aa15495716ee7ec1
parent3e150d721d01dacc4ea2c33e849177485ef81fd5
net/ixgbe/base: fix check for NACK

Previously we checked return buffer for
(IXGBE_VF_SET_MACVLAN | IXGBE_VT_MSGTYPE_NACK), but this would not
work if index is not 0 and as a result NACK will not be detected.

Fixes: af75078fece3 ("first public release")

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ixgbe/base/ixgbe_vf.c