Skip to content

Commit 3cc7283

Browse files
author
Shani Peretz
committed
Revert "net/mlx5: align PF and VF/SF MAC address handling"
This reverts commit c070455.
1 parent a7e0208 commit 3cc7283

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/net/mlx5/linux/mlx5_os.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,8 +1582,7 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,
15821582
eth_dev->rx_queue_count = mlx5_rx_queue_count;
15831583
/* Register MAC address. */
15841584
claim_zero(mlx5_mac_addr_add(eth_dev, &mac, 0, 0));
1585-
/* Sync mac addresses for PF or VF/SF if vf_nl_en is true */
1586-
if ((!sh->dev_cap.vf && !sh->dev_cap.sf) || sh->config.vf_nl_en)
1585+
if (sh->dev_cap.vf && sh->config.vf_nl_en)
15871586
mlx5_nl_mac_addr_sync(priv->nl_socket_route,
15881587
mlx5_ifindex(eth_dev),
15891588
eth_dev->data->mac_addrs,

drivers/net/mlx5/mlx5_trigger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ mlx5_traffic_enable(struct rte_eth_dev *dev)
17301730
for (i = 0; i != MLX5_MAX_MAC_ADDRESSES; ++i) {
17311731
struct rte_ether_addr *mac = &dev->data->mac_addrs[i];
17321732

1733-
if (!memcmp(mac, &cmp, sizeof(*mac)) || rte_is_multicast_ether_addr(mac))
1733+
if (!memcmp(mac, &cmp, sizeof(*mac)))
17341734
continue;
17351735
memcpy(&unicast.hdr.dst_addr.addr_bytes,
17361736
mac->addr_bytes,

0 commit comments

Comments
 (0)