@@ -98,25 +98,30 @@ int ixgbe_cna_enable(struct ixgbe_adapter *adapter)
cnadev->vlan_rx_add_vid = netdev->vlan_rx_add_vid;
cnadev->vlan_rx_kill_vid = netdev->vlan_rx_kill_vid;
#endif
ixgbe_set_ethtool_ops(cnadev);
#ifdef CONFIG_DCB
cnadev->dcbnl_ops = netdev->dcbnl_ops;
cnadev->mtu = netdev->mtu;
cnadev->pdev = netdev->pdev;
cnadev->gso_max_size = GSO_MAX_SIZE;
#ifdef __VMKLNX__
cnadev->features = netdev->features | NETIF_F_CNA |
NETIF_F_HW_VLAN_FILTER;
#else
cnadev->features = netdev->features | NETIF_F_CNA;
#endif /*__VMKLNX__*/
/* set the MAC address to SAN mac address */
if (ixgbe_validate_mac_addr(adapter->hw.mac.san_addr) == 0)
memcpy(cnadev->dev_addr,
adapter->hw.mac.san_addr,
cnadev->addr_len);
if (adapter->hw.mac.type == ixgbe_mac_82599EB) {
if (adapter->flags & IXGBE_FLAG_FCOE_ENABLED) {
ixgbe_get_device_caps(&adapter->hw, &device_caps);
if (!(device_caps & IXGBE_DEVICE_CAPS_FCOE_OFFLOADS)) {
cnadev->features |= NETIF_F_FCOE_CRC;