| /linux/drivers/net/ethernet/huawei/hinic3/ |
| H A D | hinic3_netdev_ops.c | 29 static u16 hinic3_qp_irq_change(struct net_device *netdev, in hinic3_qp_irq_change() argument 32 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_qp_irq_change() 45 netdev_err(netdev, "Failed to alloc irqs\n"); in hinic3_qp_irq_change() 65 static void hinic3_config_num_qps(struct net_device *netdev, in hinic3_config_num_qps() argument 68 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_config_num_qps() 80 alloc_num_irq = hinic3_qp_irq_change(netdev, q_params->num_qps); in hinic3_config_num_qps() 83 netdev_warn(netdev, "Can not get enough irqs, adjust num_qps to %u\n", in hinic3_config_num_qps() 88 hinic3_qp_irq_change(netdev, dst_num_irq); in hinic3_config_num_qps() 92 netdev_dbg(netdev, "No need to change irqs, num_qps is %u\n", in hinic3_config_num_qps() 96 static int hinic3_setup_num_qps(struct net_device *netdev) in hinic3_setup_num_qps() argument [all …]
|
| H A D | hinic3_main.c | 35 static void init_intr_coal_param(struct net_device *netdev) in init_intr_coal_param() argument 37 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in init_intr_coal_param() 56 static int hinic3_init_intr_coalesce(struct net_device *netdev) in hinic3_init_intr_coalesce() argument 58 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_init_intr_coalesce() 66 init_intr_coal_param(netdev); in hinic3_init_intr_coalesce() 71 static void hinic3_free_intr_coalesce(struct net_device *netdev) in hinic3_free_intr_coalesce() argument 73 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_free_intr_coalesce() 78 static int hinic3_alloc_txrxqs(struct net_device *netdev) in hinic3_alloc_txrxqs() argument 80 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_alloc_txrxqs() 84 err = hinic3_alloc_txqs(netdev); in hinic3_alloc_txrxqs() [all …]
|
| H A D | hinic3_filter.c | 18 static int hinic3_filter_addr_sync(struct net_device *netdev, u8 *addr) in hinic3_filter_addr_sync() argument 20 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_filter_addr_sync() 26 static int hinic3_filter_addr_unsync(struct net_device *netdev, u8 *addr) in hinic3_filter_addr_unsync() argument 28 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_filter_addr_unsync() 31 if (ether_addr_equal(addr, netdev->dev_addr)) in hinic3_filter_addr_unsync() 38 void hinic3_clean_mac_list_filter(struct net_device *netdev) in hinic3_clean_mac_list_filter() argument 40 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_clean_mac_list_filter() 46 hinic3_filter_addr_unsync(netdev, f->addr); in hinic3_clean_mac_list_filter() 53 hinic3_filter_addr_unsync(netdev, f->addr); in hinic3_clean_mac_list_filter() 71 static void hinic3_add_filter(struct net_device *netdev, in hinic3_add_filter() argument [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A 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() 124 nfp_repr_get_host_stats64(const struct net_device *netdev, in nfp_repr_get_host_stats64() argument 127 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_get_host_stats64() 167 static int nfp_repr_change_mtu(struct net_device *netdev, int new_mtu) in nfp_repr_change_mtu() argument 169 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_change_mtu() [all …]
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A 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/net/core/ |
| H A D | dev_addr_lists_test.c | 15 static int dev_addr_test_sync(struct net_device *netdev, const unsigned char *a) in dev_addr_test_sync() argument 17 struct dev_addr_test_priv *datp = netdev_priv(netdev); in dev_addr_test_sync() 24 static int dev_addr_test_unsync(struct net_device *netdev, in dev_addr_test_unsync() argument 27 struct dev_addr_test_priv *datp = netdev_priv(netdev); in dev_addr_test_unsync() 37 struct net_device *netdev; in dev_addr_test_init() local 40 netdev = alloc_etherdev(sizeof(*datp)); in dev_addr_test_init() 41 KUNIT_ASSERT_TRUE(test, !!netdev); in dev_addr_test_init() 43 test->priv = netdev; in dev_addr_test_init() 44 netdev->netdev_ops = &dummy_netdev_ops; in dev_addr_test_init() 46 err = register_netdev(netdev); in dev_addr_test_init() [all …]
|
| /linux/drivers/infiniband/ulp/opa_vnic/ |
| H A D | opa_vnic_netdev.c | 50 * netdev functionality. 64 static void opa_vnic_get_stats64(struct net_device *netdev, in opa_vnic_get_stats64() argument 67 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev); in opa_vnic_get_stats64() 72 adapter->rn_ops->ndo_get_stats64(netdev, &vstats.netstats); in opa_vnic_get_stats64() 79 struct net_device *netdev) in opa_netdev_start_xmit() argument 81 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev); in opa_netdev_start_xmit() 93 return adapter->rn_ops->ndo_start_xmit(skb, netdev); in opa_netdev_start_xmit() 96 static u16 opa_vnic_select_queue(struct net_device *netdev, struct sk_buff *skb, in opa_vnic_select_queue() argument 99 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev); in opa_vnic_select_queue() 107 rc = adapter->rn_ops->ndo_select_queue(netdev, skb, sb_dev); in opa_vnic_select_queue() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A 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() 21 dev_close(netdev); in ice_dcbnl_devreset() 22 netdev_state_change(netdev); in ice_dcbnl_devreset() 23 dev_open(netdev, NULL); in ice_dcbnl_devreset() 24 netdev_state_change(netdev); in ice_dcbnl_devreset() 29 * @netdev: the relevant netdev 32 static int ice_dcbnl_getets(struct net_device *netdev, struct ieee_ets *ets) in ice_dcbnl_getets() argument 37 pf = ice_netdev_to_pf(netdev); in ice_dcbnl_getets() [all …]
|
| H A D | ice_repr.c | 38 * @netdev: repr netdev to increment stats on 41 void ice_repr_inc_rx_stats(struct net_device *netdev, unsigned int len) in ice_repr_inc_rx_stats() argument 43 struct ice_repr *repr = ice_netdev_to_repr(netdev); in ice_repr_inc_rx_stats() 55 * @netdev: pointer to port representor netdev 59 ice_repr_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) in ice_repr_get_stats64() argument 61 struct ice_netdev_priv *np = netdev_priv(netdev); in ice_repr_get_stats64() 87 * @netdev: pointer to port representor netdev 89 struct ice_repr *ice_netdev_to_repr(const struct net_device *netdev) in ice_netdev_to_repr() argument 91 struct ice_netdev_priv *np = netdev_priv(netdev); in ice_netdev_to_repr() 98 * @netdev: network interface device structure [all …]
|
| /linux/net/openvswitch/ |
| H A 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 42 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit() 46 dev_sw_netstats_tx_add(netdev, 1, len); in internal_dev_xmit() 48 netdev->stats.tx_errors++; in internal_dev_xmit() 53 static int internal_dev_open(struct net_device *netdev) in internal_dev_open() argument 55 netif_start_queue(netdev); in internal_dev_open() 59 static int internal_dev_stop(struct net_device *netdev) in internal_dev_stop() argument [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A 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/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_netdev.c | 71 static int fbnic_open(struct net_device *netdev) in fbnic_open() argument 73 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_open() 85 static int fbnic_stop(struct net_device *netdev) in fbnic_stop() argument 87 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_stop() 104 static int fbnic_uc_sync(struct net_device *netdev, const unsigned char *addr) in fbnic_uc_sync() argument 106 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_uc_sync() 122 static int fbnic_uc_unsync(struct net_device *netdev, const unsigned char *addr) in fbnic_uc_unsync() argument 124 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_uc_unsync() 145 static int fbnic_mc_sync(struct net_device *netdev, const unsigned char *addr) in fbnic_mc_sync() argument 147 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_mc_sync() [all …]
|
| /linux/drivers/net/ethernet/actions/ |
| H A D | owl-emac.c | 63 return priv->netdev->dev.parent; in owl_emac_get_dev() 161 static struct sk_buff *owl_emac_alloc_skb(struct net_device *netdev) in owl_emac_alloc_skb() argument 166 skb = netdev_alloc_skb(netdev, OWL_EMAC_RX_FRAME_MAX_LEN + in owl_emac_alloc_skb() 183 struct net_device *netdev = priv->netdev; in owl_emac_ring_prepare_rx() local 190 skb = owl_emac_alloc_skb(netdev); in owl_emac_ring_prepare_rx() 342 static void owl_emac_set_hw_mac_addr(struct net_device *netdev) in owl_emac_set_hw_mac_addr() argument 344 struct owl_emac_priv *priv = netdev_priv(netdev); in owl_emac_set_hw_mac_addr() 345 const u8 *mac_addr = netdev->dev_addr; in owl_emac_set_hw_mac_addr() 394 static void owl_emac_adjust_link(struct net_device *netdev) in owl_emac_adjust_link() argument 396 struct owl_emac_priv *priv = netdev_priv(netdev); in owl_emac_adjust_link() [all …]
|
| /linux/drivers/net/ethernet/wangxun/libwx/ |
| H A D | wx_vf_common.c | 19 netif_device_detach(wx->netdev); in wxvf_suspend() 40 netif_device_attach(wx->netdev); in wxvf_resume() 49 struct net_device *netdev; in wxvf_remove() local 52 netdev = wx->netdev; in wxvf_remove() 53 unregister_netdev(netdev); in wxvf_remove() 70 if (netif_running(wx->netdev)) in wx_msix_misc_vf() 78 struct net_device *netdev = wx->netdev; in wx_request_msix_irqs_vf() local 87 "%s-TxRx-%d", netdev->name, entry->entry); in wx_request_msix_irqs_vf() 102 NULL, IRQF_ONESHOT, netdev->name, wx); in wx_request_msix_irqs_vf() 141 struct net_device *netdev = wx->netdev; in wx_reset_vf() local [all …]
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_main.c | 77 static int change_mac_addr(struct net_device *netdev, const u8 *addr); 132 struct net_device *netdev = nic_dev->netdev; in create_txqs() local 137 nic_dev->txqs = devm_kcalloc(&netdev->dev, num_txqs, in create_txqs() 147 err = hinic_init_txq(&nic_dev->txqs[i], sq, netdev); in create_txqs() 149 netif_err(nic_dev, drv, netdev, in create_txqs() 156 netif_err(nic_dev, drv, netdev, in create_txqs() 174 devm_kfree(&netdev->dev, nic_dev->txqs); in create_txqs() 204 struct net_device *netdev = nic_dev->netdev; in free_txqs() local 216 devm_kfree(&netdev->dev, nic_dev->txqs); in free_txqs() 229 struct net_device *netdev = nic_dev->netdev; in create_rxqs() local [all …]
|
| /linux/drivers/net/usb/ |
| H A D | rtl8150.c | 134 struct net_device *netdev; member 210 netif_device_detach(dev->netdev); in async_set_registers() 273 eth_hw_addr_set(dev->netdev, node_id); in set_ethernet_addr() 275 eth_hw_addr_random(dev->netdev); in set_ethernet_addr() 276 netdev_notice(dev->netdev, "Assigned a random MAC address: %pM\n", in set_ethernet_addr() 277 dev->netdev->dev_addr); in set_ethernet_addr() 281 static int rtl8150_set_mac_address(struct net_device *netdev, void *p) in rtl8150_set_mac_address() argument 284 rtl8150_t *dev = netdev_priv(netdev); in rtl8150_set_mac_address() 286 if (netif_running(netdev)) in rtl8150_set_mac_address() 289 eth_hw_addr_set(netdev, addr->sa_data); in rtl8150_set_mac_address() [all …]
|
| /linux/drivers/net/ethernet/microchip/lan865x/ |
| H A D | lan865x.c | 41 struct net_device *netdev; member 73 /* Restore the old MAC address low bytes from netdev if the new MAC in lan865x_set_hw_macaddr() 77 priv->netdev->dev_addr); in lan865x_set_hw_macaddr() 89 static int lan865x_set_mac_address(struct net_device *netdev, void *addr) in lan865x_set_mac_address() argument 91 struct lan865x_priv *priv = netdev_priv(netdev); in lan865x_set_mac_address() 95 ret = eth_prepare_mac_addr_change(netdev, addr); in lan865x_set_mac_address() 99 if (ether_addr_equal(address->sa_data, netdev->dev_addr)) in lan865x_set_mac_address() 106 eth_commit_mac_addr_change(netdev, addr); in lan865x_set_mac_address() 139 netdev_for_each_mc_addr(ha, priv->netdev) { in lan865x_set_specific_multicast_addr() 151 netdev_err(priv->netdev, "Failed to write reg_hashh: %d\n", in lan865x_set_specific_multicast_addr() [all …]
|
| /linux/drivers/net/can/usb/ |
| H A D | f81604.c | 134 struct net_device *netdev[F81604_MAX_DEV]; member 139 struct net_device *netdev; member 254 int port = priv->netdev->dev_port; in f81604_sja1000_write() 264 int port = priv->netdev->dev_port; in f81604_sja1000_read() 370 static void f81604_process_rx_packet(struct net_device *netdev, in f81604_process_rx_packet() argument 373 struct net_device_stats *stats = &netdev->stats; in f81604_process_rx_packet() 380 skb = alloc_can_skb(netdev, &cf); in f81604_process_rx_packet() 415 struct net_device *netdev = urb->context; in f81604_read_bulk_callback() local 416 struct f81604_port_priv *priv = netdev_priv(netdev); in f81604_read_bulk_callback() 419 if (!netif_device_present(netdev)) in f81604_read_bulk_callback() [all …]
|
| /linux/kernel/bpf/ |
| H A D | offload.c | 35 struct net_device *netdev; member 45 .key_offset = offsetof(struct bpf_offload_netdev, netdev), 52 static int bpf_dev_offload_check(struct net_device *netdev) in bpf_dev_offload_check() argument 54 if (!netdev) in bpf_dev_offload_check() 56 if (!netdev->netdev_ops->ndo_bpf) in bpf_dev_offload_check() 62 bpf_offload_find_netdev(struct net_device *netdev) in bpf_offload_find_netdev() argument 66 return rhashtable_lookup_fast(&offdevs, &netdev, offdevs_params); in bpf_offload_find_netdev() 70 struct net_device *netdev) in __bpf_offload_dev_netdev_register() argument 79 ondev->netdev = netdev; in __bpf_offload_dev_netdev_register() 86 netdev_warn(netdev, "failed to register for BPF offload\n"); in __bpf_offload_dev_netdev_register() [all …]
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_dcb_nl.c | 29 * @dev: the corresponding netdev 67 * @dev: the corresponding netdev 100 * @netdev: the corresponding netdev 105 static int i40e_dcbnl_ieee_setets(struct net_device *netdev, in i40e_dcbnl_ieee_setets() argument 108 struct i40e_pf *pf = i40e_netdev_to_pf(netdev); in i40e_dcbnl_ieee_setets() 148 * @netdev: the corresponding netdev 153 static int i40e_dcbnl_ieee_setpfc(struct net_device *netdev, in i40e_dcbnl_ieee_setpfc() argument 156 struct i40e_pf *pf = i40e_netdev_to_pf(netdev); in i40e_dcbnl_ieee_setpfc() 187 * @netdev: the corresponding netdev 192 static int i40e_dcbnl_ieee_setapp(struct net_device *netdev, in i40e_dcbnl_ieee_setapp() argument [all …]
|
| /linux/drivers/net/can/usb/etas_es58x/ |
| H A D | es58x_core.c | 169 * @netdev: CAN network device. 175 static void es58x_set_skb_timestamp(struct net_device *netdev, in es58x_set_skb_timestamp() argument 178 struct es58x_device *es58x_dev = es58x_priv(netdev)->es58x_dev; in es58x_set_skb_timestamp() 243 * @netdev: CAN network device. 259 static bool es58x_is_can_state_active(struct net_device *netdev) in es58x_is_can_state_active() argument 261 return es58x_priv(netdev)->can.state < CAN_STATE_BUS_OFF; in es58x_is_can_state_active() 289 * @netdev: CAN network device. 294 static void es58x_can_free_echo_skb_tail(struct net_device *netdev) in es58x_can_free_echo_skb_tail() argument 296 struct es58x_priv *priv = es58x_priv(netdev); in es58x_can_free_echo_skb_tail() 300 can_free_echo_skb(netdev, priv->tx_tail & fifo_mask, &frame_len); in es58x_can_free_echo_skb_tail() [all …]
|
| /linux/drivers/scsi/fcoe/ |
| H A D | fcoe_transport.c | 119 struct net_device *netdev = fcoe_get_netdev(lport); in fcoe_link_speed_update() local 122 if (!__ethtool_get_link_ksettings(netdev, &ecmd)) { in fcoe_link_speed_update() 164 * @netdev: Pointer to the netdev that is associated with the lport 171 struct net_device *netdev) in __fcoe_get_lesb() argument 194 htonl(dev_get_stats(netdev, &temp)->rx_crc_errors); in __fcoe_get_lesb() 206 struct net_device *netdev = fcoe_get_netdev(lport); in fcoe_get_lesb() local 208 __fcoe_get_lesb(lport, fc_lesb, netdev); in fcoe_get_lesb() 221 struct net_device *netdev = fcoe_get_netdev(fip->lp); in fcoe_ctlr_get_lesb() local 225 __fcoe_get_lesb(fip->lp, fc_lesb, netdev); in fcoe_ctlr_get_lesb() 285 * @netdev: the associated net device [all …]
|
| /linux/drivers/net/ethernet/cortina/ |
| H A 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/drivers/net/ethernet/hisilicon/hns3/ |
| H A D | hns3_ethtool.c | 84 static int hns3_get_sset_count(struct net_device *netdev, int stringset); 472 static void hns3_update_limit_promisc_mode(struct net_device *netdev, in hns3_update_limit_promisc_mode() argument 475 struct hnae3_handle *handle = hns3_get_handle(netdev); in hns3_update_limit_promisc_mode() 489 static int hns3_get_sset_count(struct net_device *netdev, int stringset) in hns3_get_sset_count() argument 491 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_sset_count() 540 static void hns3_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in hns3_get_strings() argument 542 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_strings() 596 * @netdev: net device 600 static void hns3_get_stats(struct net_device *netdev, in hns3_get_stats() argument 603 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_stats() [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | vnic_main.c | 14 #include "netdev.h" 40 struct net_device *netdev = vinfo->netdev; in hfi1_vnic_update_stats() local 85 netdev->stats.tx_packets = stats->netstats.tx_packets; in hfi1_vnic_update_stats() 86 netdev->stats.tx_bytes = stats->netstats.tx_bytes; in hfi1_vnic_update_stats() 87 netdev->stats.tx_fifo_errors = stats->netstats.tx_fifo_errors; in hfi1_vnic_update_stats() 88 netdev->stats.tx_carrier_errors = stats->netstats.tx_carrier_errors; in hfi1_vnic_update_stats() 89 netdev->stats.tx_errors = stats->netstats.tx_errors; in hfi1_vnic_update_stats() 90 netdev->stats.tx_dropped = stats->netstats.tx_dropped; in hfi1_vnic_update_stats() 92 netdev->stats.rx_packets = stats->netstats.rx_packets; in hfi1_vnic_update_stats() 93 netdev->stats.rx_bytes = stats->netstats.rx_bytes; in hfi1_vnic_update_stats() [all …]
|