]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/i40e/i40e_ethdev_vf.c
net/mlx5: fix Tx stats error counter logic
[dpdk.git] / drivers / net / i40e / i40e_ethdev_vf.c
index 58888e9e86b316c7752835dd68e26367bef03a5f..38c3adc00213c5581e0437d246771905c38ca484 100644 (file)
@@ -783,7 +783,7 @@ i40evf_add_mac_addr(struct rte_eth_dev *dev,
        int err;
        struct vf_cmd_info args;
 
-       if (i40e_validate_mac_addr(addr->addr_bytes) != I40E_SUCCESS) {
+       if (is_zero_ether_addr(addr)) {
                PMD_DRV_LOG(ERR, "Invalid mac:%x:%x:%x:%x:%x:%x",
                            addr->addr_bytes[0], addr->addr_bytes[1],
                            addr->addr_bytes[2], addr->addr_bytes[3],