Re: [PATCH dpdk v2] net/tap: add software MAC address filtering

Stephen Hemminger
2026-03-21T02:58:31Z

On Fri, 20 Mar 2026 17:45:24 +0100
Robin Jarry <rjarry@redhat.com> wrote:

> + dst = rte_pktmbuf_mtod(mbuf, struct rte_ether_addr *);
> +
> + if (likely(rte_is_unicast_ether_addr(dst))) {
> + for (i = 0; i < TAP_MAX_MAC_ADDRS; i++) {
> + if (rte_is_same_ether_addr(dst, &data->mac_addrs[i]))
> + return true;
> + }
> + return false;
> + }

Since unused slots are zero, probably need to drop packets with all zero dest.