diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2016-02-25 11:49:34 -0600 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2016-02-25 11:53:24 -0600 |
commit | bf84078177d30933ed730b4ff0d86b51a5de5d36 (patch) | |
tree | 032225362683b24abb60a57d817e9c6c2d60b8c0 /sys/dev/ixgbe/ixgbe_vf.c | |
parent | 70e9380803fa0356966c7a9425df6eca0c5459f1 (diff) | |
download | FreeBSD-src-bf84078177d30933ed730b4ff0d86b51a5de5d36.zip FreeBSD-src-bf84078177d30933ed730b4ff0d86b51a5de5d36.tar.gz |
Import of Intel ix-3.1.14 driver.
This is intended to fix the loss of link uppon applying certain settings to the interface.
Ticket #5913
Diffstat (limited to 'sys/dev/ixgbe/ixgbe_vf.c')
-rw-r--r-- | sys/dev/ixgbe/ixgbe_vf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ixgbe/ixgbe_vf.c b/sys/dev/ixgbe/ixgbe_vf.c index 2ce4d32..ee3d325 100644 --- a/sys/dev/ixgbe/ixgbe_vf.c +++ b/sys/dev/ixgbe/ixgbe_vf.c @@ -229,7 +229,9 @@ s32 ixgbe_reset_hw_vf(struct ixgbe_hw *hw) msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_NACK)) return IXGBE_ERR_INVALID_MAC_ADDR; - memcpy(hw->mac.perm_addr, addr, IXGBE_ETH_LENGTH_OF_ADDRESS); + if (msgbuf[0] == (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK)) + memcpy(hw->mac.perm_addr, addr, IXGBE_ETH_LENGTH_OF_ADDRESS); + hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; return ret_val; |