Lines Matching refs:netdev
254 static int i40e_fcoe_ddp_put(struct net_device *netdev, u16 xid) in i40e_fcoe_ddp_put() argument
256 struct i40e_netdev_priv *np = netdev_priv(netdev); in i40e_fcoe_ddp_put()
423 int i40e_fcoe_enable(struct net_device *netdev) in i40e_fcoe_enable() argument
425 struct i40e_netdev_priv *np = netdev_priv(netdev); in i40e_fcoe_enable()
431 netdev_err(netdev, "HW does not support FCoE.\n"); in i40e_fcoe_enable()
436 netdev_err(netdev, "interface does not support FCoE.\n"); in i40e_fcoe_enable()
452 int i40e_fcoe_disable(struct net_device *netdev) in i40e_fcoe_disable() argument
454 struct i40e_netdev_priv *np = netdev_priv(netdev); in i40e_fcoe_disable()
460 netdev_err(netdev, "device does not support FCoE\n"); in i40e_fcoe_disable()
469 netdev_info(netdev, "FCoE disabled\n"); in i40e_fcoe_disable()
549 i40e_fcoe_ddp_put(vsi->netdev, i); in i40e_fcoe_free_ddp_resources()
557 netdev_info(vsi->netdev, "VSI %d,%d FCoE DDP resources released\n", in i40e_fcoe_free_ddp_resources()
604 netdev_info(vsi->netdev, "VSI %d,%d FCoE DDP resources allocated\n", in i40e_fcoe_setup_ddp_resources()
815 static int i40e_fcoe_ddp_setup(struct net_device *netdev, u16 xid, in i40e_fcoe_ddp_setup() argument
820 struct i40e_netdev_priv *np = netdev_priv(netdev); in i40e_fcoe_ddp_setup()
962 static int i40e_fcoe_ddp_get(struct net_device *netdev, u16 xid, in i40e_fcoe_ddp_get() argument
965 return i40e_fcoe_ddp_setup(netdev, xid, sgl, sgc, 0); in i40e_fcoe_ddp_get()
983 static int i40e_fcoe_ddp_target(struct net_device *netdev, u16 xid, in i40e_fcoe_ddp_target() argument
986 return i40e_fcoe_ddp_setup(netdev, xid, sgl, sgc, 1); in i40e_fcoe_ddp_target()
1355 struct net_device *netdev) in i40e_fcoe_xmit_frame() argument
1386 netdev_err(netdev, "SOF/EOF error:%02x - %02x\n", sof, eof); in i40e_fcoe_xmit_frame()
1422 static int i40e_fcoe_change_mtu(struct net_device *netdev, int new_mtu) in i40e_fcoe_change_mtu() argument
1424 netdev_warn(netdev, "MTU change is not supported on FCoE interfaces\n"); in i40e_fcoe_change_mtu()
1434 static int i40e_fcoe_set_features(struct net_device *netdev, in i40e_fcoe_set_features() argument
1437 struct i40e_netdev_priv *np = netdev_priv(netdev); in i40e_fcoe_set_features()
1486 void i40e_fcoe_config_netdev(struct net_device *netdev, struct i40e_vsi *vsi) in i40e_fcoe_config_netdev() argument
1494 netdev->features = (NETIF_F_HW_VLAN_CTAG_TX | in i40e_fcoe_config_netdev()
1498 netdev->vlan_features = netdev->features; in i40e_fcoe_config_netdev()
1499 netdev->vlan_features &= ~(NETIF_F_HW_VLAN_CTAG_TX | in i40e_fcoe_config_netdev()
1502 netdev->fcoe_ddp_xid = I40E_FCOE_DDP_MAX - 1; in i40e_fcoe_config_netdev()
1503 netdev->features |= NETIF_F_ALL_FCOE; in i40e_fcoe_config_netdev()
1504 netdev->vlan_features |= NETIF_F_ALL_FCOE; in i40e_fcoe_config_netdev()
1505 netdev->hw_features |= netdev->features; in i40e_fcoe_config_netdev()
1506 netdev->priv_flags |= IFF_UNICAST_FLT; in i40e_fcoe_config_netdev()
1507 netdev->priv_flags |= IFF_SUPP_NOFCS; in i40e_fcoe_config_netdev()
1509 strlcpy(netdev->name, "fcoe%d", IFNAMSIZ-1); in i40e_fcoe_config_netdev()
1510 netdev->mtu = FCOE_MTU; in i40e_fcoe_config_netdev()
1511 SET_NETDEV_DEV(netdev, &pf->pdev->dev); in i40e_fcoe_config_netdev()
1512 SET_NETDEV_DEVTYPE(netdev, &fcoe_netdev_type); in i40e_fcoe_config_netdev()
1518 netdev->dev_port = 1; in i40e_fcoe_config_netdev()
1527 ether_addr_copy(netdev->dev_addr, hw->mac.san_addr); in i40e_fcoe_config_netdev()
1528 ether_addr_copy(netdev->perm_addr, hw->mac.san_addr); in i40e_fcoe_config_netdev()
1530 netdev->netdev_ops = &i40e_fcoe_netdev_ops; in i40e_fcoe_config_netdev()