diff options
author | pkelsey <pkelsey@FreeBSD.org> | 2015-07-15 00:35:50 +0000 |
---|---|---|
committer | pkelsey <pkelsey@FreeBSD.org> | 2015-07-15 00:35:50 +0000 |
commit | 01b9094f41a2a23a33781eb883218f9e68918117 (patch) | |
tree | 2b490af7500974e2ac77a31f4ce924754c3a046b /sys/dev/ixgbe/ixgbe_vf.c | |
parent | f362cc00d222cfef7763d20ba35254fafdc0680f (diff) | |
download | FreeBSD-src-01b9094f41a2a23a33781eb883218f9e68918117.zip FreeBSD-src-01b9094f41a2a23a33781eb883218f9e68918117.tar.gz |
Fix igxbe SRIOV VF (if_ixv) initialization bugs. The MAC address for
an if_ixv instance can now set at creation time, and the receive ring
tail pointer is correctly initialized (previously, things still worked
because the receive ring tail pointer was being fixed up as a side
effect of other activity).
Differential Revision: https://reviews.freebsd.org/D2922
Reviewed by: erj, gnn
Approved by: jmallett (mentor)
Sponsored by: Norse Corp, Inc.
Diffstat (limited to 'sys/dev/ixgbe/ixgbe_vf.c')
-rw-r--r-- | sys/dev/ixgbe/ixgbe_vf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ixgbe/ixgbe_vf.c b/sys/dev/ixgbe/ixgbe_vf.c index 2ce4d32..a00b8be 100644 --- a/sys/dev/ixgbe/ixgbe_vf.c +++ b/sys/dev/ixgbe/ixgbe_vf.c @@ -225,6 +225,8 @@ s32 ixgbe_reset_hw_vf(struct ixgbe_hw *hw) if (ret_val) return ret_val; + msgbuf[0] &= ~IXGBE_VT_MSGTYPE_CTS; + if (msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK) && msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_NACK)) return IXGBE_ERR_INVALID_MAC_ADDR; |