Loading drivers/net/benet/be.h +1 −0 Original line number Diff line number Diff line Loading @@ -221,6 +221,7 @@ struct be_rx_obj { }; #define BE_NUM_MSIX_VECTORS 2 /* 1 each for Tx and Rx */ #define BE_INVALID_PMAC_ID 0xffffffff struct be_adapter { struct pci_dev *pdev; struct net_device *netdev; Loading drivers/net/benet/be_main.c +4 −2 Original line number Diff line number Diff line Loading @@ -656,6 +656,7 @@ static int be_set_vf_mac(struct net_device *netdev, int vf, u8 *mac) if (!is_valid_ether_addr(mac) || (vf >= num_vfs)) return -EINVAL; if (adapter->vf_pmac_id[vf] != BE_INVALID_PMAC_ID) status = be_cmd_pmac_del(adapter, adapter->vf_if_handle[vf], adapter->vf_pmac_id[vf]); Loading Loading @@ -1910,6 +1911,7 @@ static int be_setup(struct be_adapter *adapter) "Interface Create failed for VF %d\n", vf); goto if_destroy; } adapter->vf_pmac_id[vf] = BE_INVALID_PMAC_ID; vf++; } } else if (!be_physfn(adapter)) { Loading Loading
drivers/net/benet/be.h +1 −0 Original line number Diff line number Diff line Loading @@ -221,6 +221,7 @@ struct be_rx_obj { }; #define BE_NUM_MSIX_VECTORS 2 /* 1 each for Tx and Rx */ #define BE_INVALID_PMAC_ID 0xffffffff struct be_adapter { struct pci_dev *pdev; struct net_device *netdev; Loading
drivers/net/benet/be_main.c +4 −2 Original line number Diff line number Diff line Loading @@ -656,6 +656,7 @@ static int be_set_vf_mac(struct net_device *netdev, int vf, u8 *mac) if (!is_valid_ether_addr(mac) || (vf >= num_vfs)) return -EINVAL; if (adapter->vf_pmac_id[vf] != BE_INVALID_PMAC_ID) status = be_cmd_pmac_del(adapter, adapter->vf_if_handle[vf], adapter->vf_pmac_id[vf]); Loading Loading @@ -1910,6 +1911,7 @@ static int be_setup(struct be_adapter *adapter) "Interface Create failed for VF %d\n", vf); goto if_destroy; } adapter->vf_pmac_id[vf] = BE_INVALID_PMAC_ID; vf++; } } else if (!be_physfn(adapter)) { Loading