From b77f53f45240329b2983d0de23783a0c162002d7 Mon Sep 17 00:00:00 2001 From: Ryan Stone Date: Thu, 11 Sep 2014 14:56:57 -0400 Subject: [PATCH 3/6] Don't request a filter for an all-zeros MAC address --- sys/dev/ixl/if_ixlv.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sys/dev/ixl/if_ixlv.c b/sys/dev/ixl/if_ixlv.c index e25ab14..396cd0b 100644 --- a/sys/dev/ixl/if_ixlv.c +++ b/sys/dev/ixl/if_ixlv.c @@ -951,13 +951,14 @@ ixlv_init_locked(struct ixlv_sc *sc) ifp->if_hwassist |= CSUM_OFFLOAD_IPV6; /* Add mac filter for this VF to PF */ - error = ixlv_add_mac_filter(sc, hw->mac.addr, 0); + if (i40e_validate_mac_addr(hw->mac.addr) == I40E_SUCCESS) { + error = ixlv_add_mac_filter(sc, hw->mac.addr, 0); - // send message, then enqueue another task - if (!error || error == EEXIST) { - ixl_vc_enqueue(&sc->vc_mgr, &sc->add_mac_cmd, - IXLV_FLAG_AQ_ADD_MAC_FILTER, ixl_init_cmd_complete, - sc); + // send message, then enqueue another task + if (!error || error == EEXIST) + ixl_vc_enqueue(&sc->vc_mgr, &sc->add_mac_cmd, + IXLV_FLAG_AQ_ADD_MAC_FILTER, ixl_init_cmd_complete, + sc); } /* Setup vlan's if needed */ -- 1.9.3