diff options
author | smh <smh@FreeBSD.org> | 2015-12-11 13:12:52 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2015-12-11 13:12:52 +0000 |
commit | cb8a95b34014691af26da1b81f99342db8d66fe9 (patch) | |
tree | 473ea407db961ac384bbd491a72f3cafe105ff51 /sys/dev | |
parent | f530e62d3d1d2b962a3f3c87e722e15595a5285d (diff) | |
download | FreeBSD-src-cb8a95b34014691af26da1b81f99342db8d66fe9.zip FreeBSD-src-cb8a95b34014691af26da1b81f99342db8d66fe9.tar.gz |
MFC r285768: LAA MAC/VLAN filter + success check
Sponsored by: Multiplay
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ixl/if_ixl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ixl/if_ixl.c b/sys/dev/ixl/if_ixl.c index 220a1558..4154164 100644 --- a/sys/dev/ixl/if_ixl.c +++ b/sys/dev/ixl/if_ixl.c @@ -1140,7 +1140,8 @@ ixl_init_locked(struct ixl_pf *pf) bcopy(IF_LLADDR(vsi->ifp), tmpaddr, I40E_ETH_LENGTH_OF_ADDRESS); if (!cmp_etheraddr(hw->mac.addr, tmpaddr) && - i40e_validate_mac_addr(tmpaddr)) { + (i40e_validate_mac_addr(tmpaddr) == I40E_SUCCESS)) { + ixl_del_filter(vsi, hw->mac.addr, IXL_VLAN_ANY); bcopy(tmpaddr, hw->mac.addr, I40E_ETH_LENGTH_OF_ADDRESS); ret = i40e_aq_mac_address_write(hw, @@ -1150,6 +1151,8 @@ ixl_init_locked(struct ixl_pf *pf) device_printf(dev, "LLA address" "change failed!!\n"); return; + } else { + ixl_add_filter(vsi, hw->mac.addr, IXL_VLAN_ANY); } } |