I saw jtl's report in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=140647
It looked like the promiscuous set had been updated since then, but there were still some of the mentioned issues so I went and stole the algorithm from ixgbe(4) which looks correct to me.