Lines Matching defs:mac

24 *	Enable learning the mac address of the guest OS interface in
667 static int vxge_mac_list_add(struct vxge_vpath *vpath, struct macInfo *mac)
685 /* Copy the new mac address to the list */
687 memcpy(mac_address, mac->macaddr, ETH_ALEN);
689 new_mac_entry->state = mac->state;
692 if (is_multicast_ether_addr(mac->macaddr))
698 /* Add a mac address to DA table */
700 vxge_add_mac_addr(struct vxgedev *vdev, struct macInfo *mac)
706 if (is_multicast_ether_addr(mac->macaddr))
711 vpath = &vdev->vpaths[mac->vpath_no];
712 status = vxge_hw_vpath_mac_addr_add(vpath->handle, mac->macaddr,
713 mac->macmask, duplicate_mode);
719 if (FALSE == vxge_mac_list_add(vpath, mac))
737 /* Is this mac address already in the list? */
747 /* Any vpath has room to add mac address to its da table? */
751 /* Add this mac address to this vpath */
767 /* Add this mac address to this vpath */
844 "%s: Failed to store the mac address",
1067 static int vxge_mac_list_del(struct vxge_vpath *vpath, struct macInfo *mac)
1073 /* Copy the mac address to delete from the list */
1074 memcpy(mac_address, mac->macaddr, ETH_ALEN);
1082 if (is_multicast_ether_addr(mac->macaddr))
1091 /* delete a mac address from DA table */
1093 vxge_del_mac_addr(struct vxgedev *vdev, struct macInfo *mac)
1098 vpath = &vdev->vpaths[mac->vpath_no];
1099 status = vxge_hw_vpath_mac_addr_delete(vpath->handle, mac->macaddr,
1100 mac->macmask);
1106 vxge_mac_list_del(vpath, mac);
1198 /* Copy the mac address to delete */
1240 /* Copy the mac address to delete */
1309 /* First delete the old mac address from all the vpaths
1310 as we can't specify the index while adding new mac address */
1335 /* Set this mac address to all the vpaths */
1415 /* list all mac addresses from DA table */
1417 vxge_search_mac_addr_in_da_table(struct vxge_vpath *vpath, struct macInfo *mac)
1432 while (!ether_addr_equal(mac->macaddr, macaddr)) {
1442 /* Store all mac addresses from the list to the DA table */
1460 /* does this mac address already exist in da table? */
1464 /* Add this mac address to the DA table */
1745 /* Reprogram the DA table with populated mac addresses */
2907 /* Loop through the mac address list and delete all the entries */
3894 /* Configure mac based steering. */
4615 /* Initialize the mac address list header */
4684 /* Copy the station mac address to the list */