FreeBSD/sys/dev/ixl/if_ixlv.c
/*
** Find the filter with matching MAC address
*/
Find the filter with matching MAC address
Find the filter with matching MAC address
static struct ixlv_mac_filter *
ixlv_find_mac_filter(struct ixlv_sc *sc, u8 *macaddr)
{
	struct ixlv_mac_filter	*f;
	bool				match = FALSE;
	SLIST_FOREACH(f, sc->mac_filters, next) {
		if (cmp_etheraddr(f->macaddr, macaddr)) {
			match = TRUE;
			break;
		}
	}	
	if (!match)
		f = NULL;
	return (f);
}
static struct ixlv_mac_filter * ixlv_find_mac_filter ( struct ixlv_sc * sc , u8 * macaddr ) { struct ixlv_mac_filter * f ; bool match = FALSE ; SLIST_FOREACH ( f , sc -> mac_filters , next ) { if ( cmp_etheraddr ( f -> macaddr , macaddr ) ) { match = TRUE ; break ; } } if ( ! match ) f = NULL ; return ( f ) ; }
Find the filter with matching MAC address
Find the filter with matching MAC address