/linux-5.10/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_repr.c | 27 nfp_repr_inc_tx_stats(struct net_device *netdev, unsigned int len, in nfp_repr_inc_tx_stats() argument 30 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_inc_tx_stats() 46 void nfp_repr_inc_rx_stats(struct net_device *netdev, unsigned int len) in nfp_repr_inc_rx_stats() argument 48 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_inc_rx_stats() 90 nfp_repr_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) in nfp_repr_get_stats64() argument 92 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_get_stats64() 123 nfp_repr_get_host_stats64(const struct net_device *netdev, in nfp_repr_get_host_stats64() argument 126 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_get_host_stats64() 166 static int nfp_repr_change_mtu(struct net_device *netdev, int new_mtu) in nfp_repr_change_mtu() argument 168 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_change_mtu() [all …]
|
/linux-5.10/drivers/net/ethernet/qlogic/qede/ |
D | qede_dcbnl.c | 13 static u8 qede_dcbnl_getstate(struct net_device *netdev) in qede_dcbnl_getstate() argument 15 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getstate() 20 static u8 qede_dcbnl_setstate(struct net_device *netdev, u8 state) in qede_dcbnl_setstate() argument 22 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_setstate() 27 static void qede_dcbnl_getpermhwaddr(struct net_device *netdev, in qede_dcbnl_getpermhwaddr() argument 30 memcpy(perm_addr, netdev->dev_addr, netdev->addr_len); in qede_dcbnl_getpermhwaddr() 33 static void qede_dcbnl_getpgtccfgtx(struct net_device *netdev, int prio, in qede_dcbnl_getpgtccfgtx() argument 37 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getpgtccfgtx() 43 static void qede_dcbnl_getpgbwgcfgtx(struct net_device *netdev, in qede_dcbnl_getpgbwgcfgtx() argument 46 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getpgbwgcfgtx() [all …]
|
/linux-5.10/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_netdev.c | 50 * netdev functionality. 65 static void opa_vnic_get_stats64(struct net_device *netdev, in opa_vnic_get_stats64() argument 68 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev); in opa_vnic_get_stats64() 73 adapter->rn_ops->ndo_get_stats64(netdev, &vstats.netstats); in opa_vnic_get_stats64() 80 struct net_device *netdev) in opa_netdev_start_xmit() argument 82 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev); in opa_netdev_start_xmit() 94 return adapter->rn_ops->ndo_start_xmit(skb, netdev); in opa_netdev_start_xmit() 97 static u16 opa_vnic_select_queue(struct net_device *netdev, struct sk_buff *skb, in opa_vnic_select_queue() argument 100 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev); in opa_vnic_select_queue() 108 rc = adapter->rn_ops->ndo_select_queue(netdev, skb, sb_dev); in opa_vnic_select_queue() [all …]
|
/linux-5.10/drivers/net/ethernet/intel/ice/ |
D | ice_dcb_nl.c | 12 * @netdev: device associated with interface that needs reset 14 static void ice_dcbnl_devreset(struct net_device *netdev) in ice_dcbnl_devreset() argument 16 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_devreset() 22 dev_close(netdev); in ice_dcbnl_devreset() 23 netdev_state_change(netdev); in ice_dcbnl_devreset() 24 dev_open(netdev, NULL); in ice_dcbnl_devreset() 25 netdev_state_change(netdev); in ice_dcbnl_devreset() 31 * @netdev: the relevant netdev 34 static int ice_dcbnl_getets(struct net_device *netdev, struct ieee_ets *ets) in ice_dcbnl_getets() argument 40 pf = ice_netdev_to_pf(netdev); in ice_dcbnl_getets() [all …]
|
/linux-5.10/net/openvswitch/ |
D | vport-internal_dev.c | 19 #include "vport-netdev.h" 27 static struct internal_dev *internal_dev_priv(struct net_device *netdev) in internal_dev_priv() argument 29 return netdev_priv(netdev); in internal_dev_priv() 34 internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) in internal_dev_xmit() argument 40 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit() 44 struct pcpu_sw_netstats *tstats = this_cpu_ptr(netdev->tstats); in internal_dev_xmit() 51 netdev->stats.tx_errors++; in internal_dev_xmit() 56 static int internal_dev_open(struct net_device *netdev) in internal_dev_open() argument 58 netif_start_queue(netdev); in internal_dev_open() 62 static int internal_dev_stop(struct net_device *netdev) in internal_dev_stop() argument [all …]
|
/linux-5.10/drivers/net/ipa/ |
D | ipa_modem.c | 40 static int ipa_open(struct net_device *netdev) in ipa_open() argument 42 struct ipa_priv *priv = netdev_priv(netdev); in ipa_open() 53 netif_start_queue(netdev); in ipa_open() 64 static int ipa_stop(struct net_device *netdev) in ipa_stop() argument 66 struct ipa_priv *priv = netdev_priv(netdev); in ipa_stop() 69 netif_stop_queue(netdev); in ipa_stop() 85 static int ipa_start_xmit(struct sk_buff *skb, struct net_device *netdev) in ipa_start_xmit() argument 87 struct net_device_stats *stats = &netdev->stats; in ipa_start_xmit() 88 struct ipa_priv *priv = netdev_priv(netdev); in ipa_start_xmit() 120 void ipa_modem_skb_rx(struct net_device *netdev, struct sk_buff *skb) in ipa_modem_skb_rx() argument [all …]
|
/linux-5.10/tools/testing/selftests/net/ |
D | netdevice.sh | 19 netdev=$1 21 ip link show "$netdev" |grep -q UP 23 echo "SKIP: $netdev: interface already up" 27 ip link set "$netdev" up 29 echo "FAIL: $netdev: Fail to up interface" 32 echo "PASS: $netdev: set interface up" 43 netdev=$1 51 ip link set dev $netdev address "$MACADDR" 53 echo "FAIL: $netdev: Cannot set MAC address" 55 ip link show $netdev |grep -q "$MACADDR" [all …]
|
/linux-5.10/drivers/net/ethernet/micrel/ |
D | ks8842.c | 157 struct net_device *netdev; member 257 static void ks8842_update_link_status(struct net_device *netdev, in ks8842_update_link_status() argument 262 netif_carrier_on(netdev); in ks8842_update_link_status() 263 netif_wake_queue(netdev); in ks8842_update_link_status() 265 netif_stop_queue(netdev); in ks8842_update_link_status() 266 netif_carrier_off(netdev); in ks8842_update_link_status() 419 static int ks8842_tx_frame_dma(struct sk_buff *skb, struct net_device *netdev) in ks8842_tx_frame_dma() argument 421 struct ks8842_adapter *adapter = netdev_priv(netdev); in ks8842_tx_frame_dma() 426 netdev_dbg(netdev, "%s: TX ongoing\n", __func__); in ks8842_tx_frame_dma() 454 ctl->adesc->callback_param = netdev; in ks8842_tx_frame_dma() [all …]
|
/linux-5.10/drivers/net/usb/ |
D | rtl8150.c | 128 struct net_device *netdev; member 204 netif_device_detach(dev->netdev); in async_set_registers() 265 ether_addr_copy(dev->netdev->dev_addr, node_id); in set_ethernet_addr() 267 eth_hw_addr_random(dev->netdev); in set_ethernet_addr() 268 netdev_notice(dev->netdev, "Assigned a random MAC address: %pM\n", in set_ethernet_addr() 269 dev->netdev->dev_addr); in set_ethernet_addr() 273 static int rtl8150_set_mac_address(struct net_device *netdev, void *p) in rtl8150_set_mac_address() argument 276 rtl8150_t *dev = netdev_priv(netdev); in rtl8150_set_mac_address() 278 if (netif_running(netdev)) in rtl8150_set_mac_address() 281 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in rtl8150_set_mac_address() [all …]
|
/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_main.c | 79 static int change_mac_addr(struct net_device *netdev, const u8 *addr); 146 struct net_device *netdev = nic_dev->netdev; in create_txqs() local 153 nic_dev->txqs = devm_kzalloc(&netdev->dev, txq_size, GFP_KERNEL); in create_txqs() 162 err = hinic_init_txq(&nic_dev->txqs[i], sq, netdev); in create_txqs() 164 netif_err(nic_dev, drv, netdev, in create_txqs() 171 netif_err(nic_dev, drv, netdev, in create_txqs() 190 devm_kfree(&netdev->dev, nic_dev->txqs); in create_txqs() 219 struct net_device *netdev = nic_dev->netdev; in free_txqs() local 231 devm_kfree(&netdev->dev, nic_dev->txqs); in free_txqs() 244 struct net_device *netdev = nic_dev->netdev; in create_rxqs() local [all …]
|
/linux-5.10/drivers/net/ethernet/cortina/ |
D | gemini.c | 109 struct net_device *netdev; member 223 static void gmac_dump_dma_state(struct net_device *netdev); 225 static void gmac_update_config0_reg(struct net_device *netdev, in gmac_update_config0_reg() argument 228 struct gemini_ethernet_port *port = netdev_priv(netdev); in gmac_update_config0_reg() 241 static void gmac_enable_tx_rx(struct net_device *netdev) in gmac_enable_tx_rx() argument 243 struct gemini_ethernet_port *port = netdev_priv(netdev); in gmac_enable_tx_rx() 256 static void gmac_disable_tx_rx(struct net_device *netdev) in gmac_disable_tx_rx() argument 258 struct gemini_ethernet_port *port = netdev_priv(netdev); in gmac_disable_tx_rx() 273 static void gmac_set_flow_control(struct net_device *netdev, bool tx, bool rx) in gmac_set_flow_control() argument 275 struct gemini_ethernet_port *port = netdev_priv(netdev); in gmac_set_flow_control() [all …]
|
/linux-5.10/drivers/net/ethernet/toshiba/ |
D | spider_net_ethtool.c | 37 spider_net_ethtool_get_link_ksettings(struct net_device *netdev, in spider_net_ethtool_get_link_ksettings() argument 41 card = netdev_priv(netdev); in spider_net_ethtool_get_link_ksettings() 59 spider_net_ethtool_get_drvinfo(struct net_device *netdev, in spider_net_ethtool_get_drvinfo() argument 63 card = netdev_priv(netdev); in spider_net_ethtool_get_drvinfo() 76 spider_net_ethtool_get_wol(struct net_device *netdev, in spider_net_ethtool_get_wol() argument 85 spider_net_ethtool_get_msglevel(struct net_device *netdev) in spider_net_ethtool_get_msglevel() argument 88 card = netdev_priv(netdev); in spider_net_ethtool_get_msglevel() 93 spider_net_ethtool_set_msglevel(struct net_device *netdev, in spider_net_ethtool_set_msglevel() argument 97 card = netdev_priv(netdev); in spider_net_ethtool_set_msglevel() 102 spider_net_ethtool_nway_reset(struct net_device *netdev) in spider_net_ethtool_nway_reset() argument [all …]
|
/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
D | bond.c | 21 struct net_device *netdev; member 54 const struct net_device *netdev) in mlx5e_lookup_rep_bond_slave_entry() argument 60 if (cur->netdev == netdev) { in mlx5e_lookup_rep_bond_slave_entry() 80 int mlx5e_rep_bond_enslave(struct mlx5_eswitch *esw, struct net_device *netdev, in mlx5e_rep_bond_enslave() argument 94 /* First netdev becomes slave, no metadata presents the lag_dev. Create one */ in mlx5e_rep_bond_enslave() 119 s_entry->netdev = netdev; in mlx5e_rep_bond_enslave() 120 priv = netdev_priv(netdev); in mlx5e_rep_bond_enslave() 130 netdev_dbg(netdev, "enslave rep vport(%d) lag_dev(%s) metadata(0x%x)\n", in mlx5e_rep_bond_enslave() 145 const struct net_device *netdev, in mlx5e_rep_bond_unslave() argument 160 s_entry = mlx5e_lookup_rep_bond_slave_entry(mdata, netdev); in mlx5e_rep_bond_unslave() [all …]
|
/linux-5.10/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_main.c | 101 static int pch_gbe_mdio_read(struct net_device *netdev, int addr, int reg); 102 static void pch_gbe_mdio_write(struct net_device *netdev, int addr, int reg, 104 static void pch_gbe_set_multi(struct net_device *netdev); 210 static int hwtstamp_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) in hwtstamp_ioctl() argument 213 struct pch_gbe_adapter *adapter = netdev_priv(netdev); in hwtstamp_ioctl() 291 netdev_dbg(adapter->netdev, "hw->mac.addr : %pM\n", hw->mac.addr); in pch_gbe_mac_read_mac_addr() 323 netdev_dbg(adapter->netdev, "index : 0x%x\n", index); in pch_gbe_mac_mar_set() 413 netdev_dbg(adapter->netdev, "mac->fc = %u\n", mac->fc); in pch_gbe_mac_force_mac_fc() 435 netdev_err(adapter->netdev, in pch_gbe_mac_force_mac_fc() 442 netdev_dbg(adapter->netdev, in pch_gbe_mac_force_mac_fc() [all …]
|
D | pch_gbe_ethtool.c | 66 * @netdev: Network interface device structure 72 static int pch_gbe_get_link_ksettings(struct net_device *netdev, in pch_gbe_get_link_ksettings() argument 75 struct pch_gbe_adapter *adapter = netdev_priv(netdev); in pch_gbe_get_link_ksettings() 93 if (!netif_carrier_ok(adapter->netdev)) in pch_gbe_get_link_ksettings() 101 * @netdev: Network interface device structure 107 static int pch_gbe_set_link_ksettings(struct net_device *netdev, in pch_gbe_set_link_ksettings() argument 110 struct pch_gbe_adapter *adapter = netdev_priv(netdev); in pch_gbe_set_link_ksettings() 130 netdev_err(netdev, "Error: mii_ethtool_set_link_ksettings\n"); in pch_gbe_set_link_ksettings() 141 if (netif_running(adapter->netdev)) { in pch_gbe_set_link_ksettings() 152 * @netdev: Network interface device structure [all …]
|
/linux-5.10/drivers/scsi/fcoe/ |
D | fcoe_transport.c | 118 struct net_device *netdev = fcoe_get_netdev(lport); in fcoe_link_speed_update() local 121 if (!__ethtool_get_link_ksettings(netdev, &ecmd)) { in fcoe_link_speed_update() 163 * @netdev: Pointer to the netdev that is associated with the lport 170 struct net_device *netdev) in __fcoe_get_lesb() argument 193 htonl(dev_get_stats(netdev, &temp)->rx_crc_errors); in __fcoe_get_lesb() 205 struct net_device *netdev = fcoe_get_netdev(lport); in fcoe_get_lesb() local 207 __fcoe_get_lesb(lport, fc_lesb, netdev); in fcoe_get_lesb() 220 struct net_device *netdev = fcoe_get_netdev(fip->lp); in fcoe_ctlr_get_lesb() local 224 __fcoe_get_lesb(fip->lp, fc_lesb, netdev); in fcoe_ctlr_get_lesb() 284 * @netdev: the associated net device [all …]
|
/linux-5.10/drivers/net/ethernet/faraday/ |
D | ftgmac100.c | 84 struct net_device *netdev; member 116 struct net_device *netdev = priv->netdev; in ftgmac100_reset_mac() local 133 netdev_err(netdev, "Hardware reset failed\n"); in ftgmac100_reset_mac() 154 netdev_err(priv->netdev, "Unknown speed %d !\n", in ftgmac100_reset_and_config_mac() 189 ether_addr_copy(priv->netdev->dev_addr, mac); in ftgmac100_initial_mac() 206 ether_addr_copy(priv->netdev->dev_addr, mac); in ftgmac100_initial_mac() 209 eth_hw_addr_random(priv->netdev); in ftgmac100_initial_mac() 211 priv->netdev->dev_addr); in ftgmac100_initial_mac() 269 ftgmac100_write_mac_addr(priv, priv->netdev->dev_addr); in ftgmac100_init_hw() 328 if (priv->netdev->flags & IFF_PROMISC) in ftgmac100_start_hw() [all …]
|
D | ftmac100.c | 64 struct net_device *netdev; member 114 struct net_device *netdev = priv->netdev; in ftmac100_reset() local 137 netdev_err(netdev, "software reset failed\n"); in ftmac100_reset() 161 struct net_device *netdev = priv->netdev; in ftmac100_start_hw() local 176 ftmac100_set_mac(priv, netdev->dev_addr); in ftmac100_start_hw() 321 struct net_device *netdev = priv->netdev; in ftmac100_rx_packet_error() local 326 netdev_info(netdev, "rx err\n"); in ftmac100_rx_packet_error() 328 netdev->stats.rx_errors++; in ftmac100_rx_packet_error() 334 netdev_info(netdev, "rx crc err\n"); in ftmac100_rx_packet_error() 336 netdev->stats.rx_crc_errors++; in ftmac100_rx_packet_error() [all …]
|
/linux-5.10/drivers/net/can/usb/ |
D | usb_8dev.c | 127 struct net_device *netdev; member 202 struct net_device *netdev; in usb_8dev_send_cmd() local 204 netdev = priv->netdev; in usb_8dev_send_cmd() 217 netdev_err(netdev, "sending command message failed\n"); in usb_8dev_send_cmd() 225 netdev_err(netdev, "no command message answer\n"); in usb_8dev_send_cmd() 315 static int usb_8dev_set_mode(struct net_device *netdev, enum can_mode mode) in usb_8dev_set_mode() argument 317 struct usb_8dev_priv *priv = netdev_priv(netdev); in usb_8dev_set_mode() 324 netdev_warn(netdev, "couldn't start device"); in usb_8dev_set_mode() 340 struct net_device_stats *stats = &priv->netdev->stats; in usb_8dev_rx_err_msg() 356 skb = alloc_can_err_skb(priv->netdev, &cf); in usb_8dev_rx_err_msg() [all …]
|
D | mcba_usb.c | 77 struct net_device *netdev; member 200 netif_stop_queue(priv->netdev); in mcba_usb_get_free_ctx() 216 netif_wake_queue(ctx->priv->netdev); in mcba_usb_free_ctx() 222 struct net_device *netdev; in mcba_usb_write_bulk_callback() local 226 netdev = ctx->priv->netdev; in mcba_usb_write_bulk_callback() 233 if (!netif_device_present(netdev)) in mcba_usb_write_bulk_callback() 236 netdev->stats.tx_packets++; in mcba_usb_write_bulk_callback() 237 netdev->stats.tx_bytes += ctx->dlc; in mcba_usb_write_bulk_callback() 239 can_led_event(netdev, CAN_LED_EVENT_TX); in mcba_usb_write_bulk_callback() 240 can_get_echo_skb(netdev, ctx->ndx); in mcba_usb_write_bulk_callback() [all …]
|
/linux-5.10/drivers/net/ethernet/qualcomm/emac/ |
D | emac-ethtool.c | 66 static u32 emac_get_msglevel(struct net_device *netdev) in emac_get_msglevel() argument 68 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_msglevel() 73 static void emac_set_msglevel(struct net_device *netdev, u32 data) in emac_set_msglevel() argument 75 struct emac_adapter *adpt = netdev_priv(netdev); in emac_set_msglevel() 80 static int emac_get_sset_count(struct net_device *netdev, int sset) in emac_get_sset_count() argument 92 static void emac_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in emac_get_strings() argument 111 static void emac_get_ethtool_stats(struct net_device *netdev, in emac_get_ethtool_stats() argument 115 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_ethtool_stats() 125 static int emac_nway_reset(struct net_device *netdev) in emac_nway_reset() argument 127 struct phy_device *phydev = netdev->phydev; in emac_nway_reset() [all …]
|
/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ktls.c | 9 static int mlx5e_ktls_add(struct net_device *netdev, struct sock *sk, in mlx5e_ktls_add() argument 14 struct mlx5e_priv *priv = netdev_priv(netdev); in mlx5e_ktls_add() 22 err = mlx5e_ktls_add_tx(netdev, sk, crypto_info, start_offload_tcp_sn); in mlx5e_ktls_add() 24 err = mlx5e_ktls_add_rx(netdev, sk, crypto_info, start_offload_tcp_sn); in mlx5e_ktls_add() 29 static void mlx5e_ktls_del(struct net_device *netdev, in mlx5e_ktls_del() argument 34 mlx5e_ktls_del_tx(netdev, tls_ctx); in mlx5e_ktls_del() 36 mlx5e_ktls_del_rx(netdev, tls_ctx); in mlx5e_ktls_del() 39 static int mlx5e_ktls_resync(struct net_device *netdev, in mlx5e_ktls_resync() argument 46 mlx5e_ktls_rx_resync(netdev, sk, seq, rcd_sn); in mlx5e_ktls_resync() 58 struct net_device *netdev = priv->netdev; in mlx5e_ktls_build_netdev() local [all …]
|
/linux-5.10/net/dcb/ |
D | dcbnl.c | 207 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate() argument 210 /* if (!tb[DCB_ATTR_STATE] || !netdev->dcbnl_ops->getstate) */ in dcbnl_getstate() 211 if (!netdev->dcbnl_ops->getstate) in dcbnl_getstate() 215 netdev->dcbnl_ops->getstate(netdev)); in dcbnl_getstate() 218 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfccfg() argument 230 if (!netdev->dcbnl_ops->getpfccfg) in dcbnl_getpfccfg() 250 netdev->dcbnl_ops->getpfccfg(netdev, i - DCB_PFC_UP_ATTR_0, in dcbnl_getpfccfg() 263 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getperm_hwaddr() argument 268 if (!netdev->dcbnl_ops->getpermhwaddr) in dcbnl_getperm_hwaddr() 272 netdev->dcbnl_ops->getpermhwaddr(netdev, perm_addr); in dcbnl_getperm_hwaddr() [all …]
|
/linux-5.10/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 267 * @netdev: network interface device structure 273 static int iavf_get_link_ksettings(struct net_device *netdev, in iavf_get_link_ksettings() argument 276 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_link_ksettings() 327 * @netdev: network interface device structure 332 static int iavf_get_sset_count(struct net_device *netdev, int sset) in iavf_get_sset_count() argument 345 * @netdev: network interface device structure 351 static void iavf_get_ethtool_stats(struct net_device *netdev, in iavf_get_ethtool_stats() argument 354 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_ethtool_stats() 378 * @netdev: network interface device structure 383 static void iavf_get_priv_flag_strings(struct net_device *netdev, u8 *data) in iavf_get_priv_flag_strings() argument [all …]
|
/linux-5.10/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_ethtool.c | 397 static int hns3_get_sset_count(struct net_device *netdev, int stringset) in hns3_get_sset_count() argument 399 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_sset_count() 461 static void hns3_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in hns3_get_strings() argument 463 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_strings() 513 * @netdev: net device 517 static void hns3_get_stats(struct net_device *netdev, in hns3_get_stats() argument 520 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_stats() 523 if (hns3_nic_resetting(netdev)) { in hns3_get_stats() 524 netdev_err(netdev, "dev resetting, could not get stats\n"); in hns3_get_stats() 529 netdev_err(netdev, "could not get any statistics\n"); in hns3_get_stats() [all …]
|