[PATCH] net/tap: add new macpair option for split MAC address

Stephen Hemminger stephen at networkplumber.org
Tue Sep 17 05:36:02 CEST 2024


On Mon, 16 Sep 2024 20:38:51 +0300
Isaac Boukris <iboukris at gmail.com> wrote:

> +		if (mac_pair) {
> +			struct rte_ether_addr *mac;
> +			mac = (struct rte_ether_addr*)ifr.ifr_hwaddr.sa_data;
> +			mac->addr_bytes[3]++;

You need to generate a new MAC to be safe, just incrementing by one can
easily cause address conflicts.


More information about the dev mailing list