git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/hns3: get device specifications from firmware
[dpdk.git]
/
drivers
/
net
/
ixgbe
/
ixgbe_pf.c
diff --git
a/drivers/net/ixgbe/ixgbe_pf.c
b/drivers/net/ixgbe/ixgbe_pf.c
index
afae21f
..
67b5bef
100644
(file)
--- a/
drivers/net/ixgbe/ixgbe_pf.c
+++ b/
drivers/net/ixgbe/ixgbe_pf.c
@@
-783,8
+783,10
@@
ixgbe_set_vf_macvlan_msg(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf)
hw->mac.ops.set_rar(hw, vf_info[vf].mac_count,
new_mac, vf, IXGBE_RAH_AV);
} else {
hw->mac.ops.set_rar(hw, vf_info[vf].mac_count,
new_mac, vf, IXGBE_RAH_AV);
} else {
- hw->mac.ops.clear_rar(hw, vf_info[vf].mac_count);
- vf_info[vf].mac_count = 0;
+ if (vf_info[vf].mac_count) {
+ hw->mac.ops.clear_rar(hw, vf_info[vf].mac_count);
+ vf_info[vf].mac_count = 0;
+ }
}
return 0;
}
}
return 0;
}