/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_repr.c | 342 netdev->hw_features = NETIF_F_HIGHDMA; in nfp_repr_init() 344 netdev->hw_features |= NETIF_F_RXCSUM; in nfp_repr_init() 346 netdev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM; in nfp_repr_init() 348 netdev->hw_features |= NETIF_F_SG; in nfp_repr_init() 351 netdev->hw_features |= NETIF_F_TSO | NETIF_F_TSO6; in nfp_repr_init() 353 netdev->hw_features |= NETIF_F_RXHASH; in nfp_repr_init() 356 netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL; in nfp_repr_init() 360 netdev->hw_features |= NETIF_F_GSO_GRE; in nfp_repr_init() 363 netdev->hw_enc_features = netdev->hw_features; in nfp_repr_init() 365 netdev->vlan_features = netdev->hw_features; in nfp_repr_init() [all …]
|
D | nfp_net_common.c | 2501 netdev->hw_features = NETIF_F_HIGHDMA; in nfp_net_netdev_init() 2503 netdev->hw_features |= NETIF_F_RXCSUM; in nfp_net_netdev_init() 2507 netdev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM; in nfp_net_netdev_init() 2511 netdev->hw_features |= NETIF_F_SG; in nfp_net_netdev_init() 2516 netdev->hw_features |= NETIF_F_TSO | NETIF_F_TSO6; in nfp_net_netdev_init() 2521 netdev->hw_features |= NETIF_F_RXHASH; in nfp_net_netdev_init() 2525 netdev->hw_features |= NETIF_F_HW_ESP | NETIF_F_HW_ESP_TX_CSUM; in nfp_net_netdev_init() 2530 netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL | in nfp_net_netdev_init() 2540 netdev->hw_features |= NETIF_F_GSO_GRE; in nfp_net_netdev_init() 2544 netdev->hw_enc_features = netdev->hw_features; in nfp_net_netdev_init() [all …]
|
/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac-common.c | 182 netdev->hw_features = NETIF_F_TSO; in xlgmac_init() 183 netdev->hw_features |= NETIF_F_TSO6; in xlgmac_init() 184 netdev->hw_features |= NETIF_F_SG; in xlgmac_init() 185 netdev->hw_features |= NETIF_F_IP_CSUM; in xlgmac_init() 186 netdev->hw_features |= NETIF_F_IPV6_CSUM; in xlgmac_init() 188 netdev->hw_features = NETIF_F_IP_CSUM; in xlgmac_init() 189 netdev->hw_features |= NETIF_F_IPV6_CSUM; in xlgmac_init() 193 netdev->hw_features |= NETIF_F_RXCSUM; in xlgmac_init() 194 netdev->hw_features |= NETIF_F_GRO; in xlgmac_init() 198 netdev->hw_features |= NETIF_F_RXHASH; in xlgmac_init() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
D | ipoib.c | 94 netdev->hw_features |= NETIF_F_SG; in mlx5i_init() 95 netdev->hw_features |= NETIF_F_IP_CSUM; in mlx5i_init() 96 netdev->hw_features |= NETIF_F_IPV6_CSUM; in mlx5i_init() 97 netdev->hw_features |= NETIF_F_GRO; in mlx5i_init() 98 netdev->hw_features |= NETIF_F_TSO; in mlx5i_init() 99 netdev->hw_features |= NETIF_F_TSO6; in mlx5i_init() 100 netdev->hw_features |= NETIF_F_RXCSUM; in mlx5i_init() 101 netdev->hw_features |= NETIF_F_RXHASH; in mlx5i_init() 375 !!(priv->netdev->hw_features & NETIF_F_NTUPLE)); in mlx5i_create_flow_steering() 379 priv->netdev->hw_features &= ~NETIF_F_NTUPLE; in mlx5i_create_flow_steering() [all …]
|
/drivers/vdpa/pds/ |
D | debugfs.c | 179 u64 hw_features; in identity_show() local 187 hw_features = le64_to_cpu(vdpa_aux->ident.hw_features); in identity_show() 188 seq_printf(seq, "hw_features: %#llx\n", hw_features); in identity_show() 189 print_feature_bits_all(seq, hw_features); in identity_show()
|
D | vdpa_dev.c | 304 u64 hw_features; in pds_vdpa_set_driver_features() local 327 hw_features = le64_to_cpu(pdsv->vdpa_aux->ident.hw_features); in pds_vdpa_set_driver_features() 328 if (!(hw_features & BIT_ULL(VIRTIO_NET_F_MAC))) in pds_vdpa_set_driver_features() 834 mgmt->supported_features = le64_to_cpu(vdpa_aux->ident.hw_features); in pds_vdpa_get_mgmt_info()
|
/drivers/net/ethernet/pensando/ionic/ |
D | ionic_lif.c | 1522 old_hw_features = lif->hw_features; in ionic_set_nic_features() 1523 lif->hw_features = le64_to_cpu(ctx.cmd.lif_setattr.features & in ionic_set_nic_features() 1526 if ((old_hw_features ^ lif->hw_features) & IONIC_ETH_HW_RX_HASH) in ionic_set_nic_features() 1533 if (lif->hw_features & IONIC_ETH_HW_VLAN_TX_TAG) in ionic_set_nic_features() 1535 if (lif->hw_features & IONIC_ETH_HW_VLAN_RX_STRIP) in ionic_set_nic_features() 1537 if (lif->hw_features & IONIC_ETH_HW_VLAN_RX_FILTER) in ionic_set_nic_features() 1539 if (lif->hw_features & IONIC_ETH_HW_RX_HASH) in ionic_set_nic_features() 1541 if (lif->hw_features & IONIC_ETH_HW_TX_SG) in ionic_set_nic_features() 1543 if (lif->hw_features & IONIC_ETH_HW_TX_CSUM) in ionic_set_nic_features() 1545 if (lif->hw_features & IONIC_ETH_HW_RX_CSUM) in ionic_set_nic_features() [all …]
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-main.c | 345 netdev->hw_features = NETIF_F_SG | in xgbe_config_netdev() 357 netdev->hw_features |= NETIF_F_RXHASH; in xgbe_config_netdev() 370 netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL | in xgbe_config_netdev() 382 netdev->features |= netdev->hw_features; in xgbe_config_netdev()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_vf.c | 652 netdev->hw_features = NETIF_F_RXCSUM | NETIF_F_IP_CSUM | in otx2vf_probe() 656 netdev->features = netdev->hw_features; in otx2vf_probe() 659 netdev->hw_features |= NETIF_F_HW_VLAN_CTAG_TX | in otx2vf_probe() 661 netdev->features |= netdev->hw_features; in otx2vf_probe() 663 netdev->hw_features |= NETIF_F_NTUPLE; in otx2vf_probe() 664 netdev->hw_features |= NETIF_F_RXALL; in otx2vf_probe() 665 netdev->hw_features |= NETIF_F_HW_TC; in otx2vf_probe()
|
/drivers/net/wwan/t7xx/ |
D | t7xx_netdev.c | 238 dev->hw_features |= NETIF_F_SG; in t7xx_ccmni_wwan_setup() 241 dev->hw_features |= NETIF_F_HW_CSUM; in t7xx_ccmni_wwan_setup() 244 dev->hw_features |= NETIF_F_RXCSUM; in t7xx_ccmni_wwan_setup() 247 dev->hw_features |= NETIF_F_GRO; in t7xx_ccmni_wwan_setup()
|
/drivers/net/hyperv/ |
D | rndis_filter.c | 1370 net->hw_features &= ~NETVSC_SUPPORTED_HW_FEATURES; in rndis_netdev_set_hwcaps() 1374 net->hw_features |= NETIF_F_RXCSUM; in rndis_netdev_set_hwcaps() 1375 net->hw_features |= NETIF_F_SG; in rndis_netdev_set_hwcaps() 1376 net->hw_features |= NETIF_F_RXHASH; in rndis_netdev_set_hwcaps() 1380 net->hw_features |= NETIF_F_IP_CSUM; in rndis_netdev_set_hwcaps() 1387 net->hw_features |= NETIF_F_TSO; in rndis_netdev_set_hwcaps() 1400 net->hw_features |= NETIF_F_IPV6_CSUM; in rndis_netdev_set_hwcaps() 1408 net->hw_features |= NETIF_F_TSO6; in rndis_netdev_set_hwcaps() 1421 net->hw_features |= NETIF_F_LRO; in rndis_netdev_set_hwcaps() 1435 net->features &= ~NETVSC_SUPPORTED_HW_FEATURES | net->hw_features; in rndis_netdev_set_hwcaps()
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ktls.c | 122 netdev->hw_features |= NETIF_F_HW_TLS_TX; in mlx5e_ktls_build_netdev() 127 netdev->hw_features |= NETIF_F_HW_TLS_RX; in mlx5e_ktls_build_netdev()
|
/drivers/net/ethernet/freescale/enetc/ |
D | enetc_ethtool.c | 54 if (hw->port && !!(priv->si->hw_features & ENETC_SI_F_QBU)) in enetc_get_reglen() 103 if (priv->si->hw_features & ENETC_SI_F_QBU) { in enetc_get_regs() 339 if (si->hw_features & ENETC_SI_F_QBU) in enetc_get_pause_stats() 426 if (si->hw_features & ENETC_SI_F_QBU) in enetc_get_eth_mac_stats() 447 if (si->hw_features & ENETC_SI_F_QBU) in enetc_get_eth_ctrl_stats() 471 if (si->hw_features & ENETC_SI_F_QBU) in enetc_get_rmon_stats() 944 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_get_mm_stats() 962 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_get_mm() 1092 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_set_mm()
|
D | enetc_vf.c | 136 ndev->hw_features = NETIF_F_SG | NETIF_F_RXCSUM | in enetc_vf_netdev_setup() 148 ndev->hw_features |= NETIF_F_RXHASH; in enetc_vf_netdev_setup()
|
D | enetc_pf.c | 795 ndev->hw_features = NETIF_F_SG | NETIF_F_RXCSUM | in enetc_pf_netdev_setup() 807 ndev->hw_features |= NETIF_F_RXHASH; in enetc_pf_netdev_setup() 814 if (si->hw_features & ENETC_SI_F_PSFP && !enetc_psfp_enable(priv)) { in enetc_pf_netdev_setup() 817 ndev->hw_features |= NETIF_F_HW_TC; in enetc_pf_netdev_setup() 1019 if (pf->si->hw_features & ENETC_SI_F_QBV) in enetc_pl_mac_link_up() 1076 if (si->hw_features & ENETC_SI_F_QBU) in enetc_pl_mac_link_up() 1090 if (si->hw_features & ENETC_SI_F_QBU) in enetc_pl_mac_link_down()
|
/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_vnd.c | 314 rmnet_dev->hw_features = NETIF_F_RXCSUM; in rmnet_vnd_newlink() 315 rmnet_dev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM; in rmnet_vnd_newlink() 316 rmnet_dev->hw_features |= NETIF_F_SG; in rmnet_vnd_newlink()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_rep.c | 834 netdev->hw_features |= NETIF_F_HW_TC; in mlx5e_build_rep_netdev() 836 netdev->hw_features |= NETIF_F_SG; in mlx5e_build_rep_netdev() 837 netdev->hw_features |= NETIF_F_IP_CSUM; in mlx5e_build_rep_netdev() 838 netdev->hw_features |= NETIF_F_IPV6_CSUM; in mlx5e_build_rep_netdev() 839 netdev->hw_features |= NETIF_F_GRO; in mlx5e_build_rep_netdev() 840 netdev->hw_features |= NETIF_F_TSO; in mlx5e_build_rep_netdev() 841 netdev->hw_features |= NETIF_F_TSO6; in mlx5e_build_rep_netdev() 842 netdev->hw_features |= NETIF_F_RXCSUM; in mlx5e_build_rep_netdev() 844 netdev->features |= netdev->hw_features; in mlx5e_build_rep_netdev()
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_main.c | 4562 netdev_features_t hw_features = 0; in iavf_get_netdev_vlan_hw_features() local 4565 return hw_features; in iavf_get_netdev_vlan_hw_features() 4569 hw_features |= (NETIF_F_HW_VLAN_CTAG_TX | in iavf_get_netdev_vlan_hw_features() 4583 hw_features |= NETIF_F_HW_VLAN_CTAG_RX; in iavf_get_netdev_vlan_hw_features() 4586 hw_features |= NETIF_F_HW_VLAN_STAG_RX; in iavf_get_netdev_vlan_hw_features() 4592 hw_features |= NETIF_F_HW_VLAN_CTAG_RX; in iavf_get_netdev_vlan_hw_features() 4599 hw_features |= NETIF_F_HW_VLAN_CTAG_TX; in iavf_get_netdev_vlan_hw_features() 4602 hw_features |= NETIF_F_HW_VLAN_STAG_TX; in iavf_get_netdev_vlan_hw_features() 4607 hw_features |= NETIF_F_HW_VLAN_CTAG_TX; in iavf_get_netdev_vlan_hw_features() 4611 return hw_features; in iavf_get_netdev_vlan_hw_features() [all …]
|
/drivers/net/ethernet/wangxun/txgbe/ |
D | txgbe_main.c | 632 netdev->hw_features |= netdev->features | NETIF_F_RXALL; in txgbe_probe() 633 netdev->hw_features |= NETIF_F_NTUPLE | NETIF_F_HW_TC; in txgbe_probe() 635 netdev->hw_features |= NETIF_F_GRO; in txgbe_probe()
|
/drivers/net/ethernet/wangxun/ngbe/ |
D | ngbe_main.c | 575 netdev->hw_features |= netdev->features | NETIF_F_RXALL; in ngbe_probe() 576 netdev->hw_features |= NETIF_F_NTUPLE | NETIF_F_HW_TC; in ngbe_probe() 578 netdev->hw_features |= NETIF_F_GRO; in ngbe_probe()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_netdev.c | 3268 dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM; in mlx4_en_init_netdev() 3270 dev->hw_features |= NETIF_F_TSO | NETIF_F_TSO6; in mlx4_en_init_netdev() 3274 dev->hw_features |= NETIF_F_GSO_UDP_TUNNEL | in mlx4_en_init_netdev() 3291 dev->vlan_features = dev->hw_features; in mlx4_en_init_netdev() 3293 dev->hw_features |= NETIF_F_RXCSUM | NETIF_F_RXHASH; in mlx4_en_init_netdev() 3294 dev->features = dev->hw_features | NETIF_F_HIGHDMA | in mlx4_en_init_netdev() 3297 dev->hw_features |= NETIF_F_LOOPBACK | in mlx4_en_init_netdev() 3303 dev->hw_features |= NETIF_F_HW_VLAN_STAG_RX; in mlx4_en_init_netdev() 3312 dev->hw_features |= NETIF_F_HW_VLAN_STAG_TX; in mlx4_en_init_netdev() 3318 dev->hw_features &= ~(NETIF_F_HW_VLAN_CTAG_TX | in mlx4_en_init_netdev() [all …]
|
/drivers/gpu/drm/panfrost/ |
D | panfrost_features.h | 124 return test_bit(feat, pfdev->features.hw_features); in panfrost_has_hw_feature()
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_netdev.c | 1543 netdev_features_t hw_features; in fm10k_alloc_netdev() local 1585 hw_features = dev->features; in fm10k_alloc_netdev() 1588 hw_features |= NETIF_F_HW_L2FW_DOFFLOAD; in fm10k_alloc_netdev() 1603 dev->hw_features |= hw_features; in fm10k_alloc_netdev()
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | cxgb2.c | 189 if (adapter->port[0].dev->hw_features & NETIF_F_TSO) in enable_hw_csum() 1034 netdev->hw_features |= NETIF_F_SG | NETIF_F_IP_CSUM | in init_one() 1043 netdev->hw_features |= NETIF_F_HW_VLAN_CTAG_RX; in init_one() 1047 netdev->hw_features |= NETIF_F_TSO; in init_one() 1053 netdev->hard_header_len += (netdev->hw_features & NETIF_F_TSO) ? in init_one()
|
/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 4377 if (dev->hw_features & NETIF_F_LRO) { in mtk_get_rxnfc() 4383 if (dev->hw_features & NETIF_F_LRO) { in mtk_get_rxnfc() 4391 if (dev->hw_features & NETIF_F_LRO) in mtk_get_rxnfc() 4395 if (dev->hw_features & NETIF_F_LRO) in mtk_get_rxnfc() 4412 if (dev->hw_features & NETIF_F_LRO) in mtk_set_rxnfc() 4416 if (dev->hw_features & NETIF_F_LRO) in mtk_set_rxnfc() 4628 eth->netdev[id]->hw_features = eth->soc->hw_features; in mtk_add_mac() 4630 eth->netdev[id]->hw_features |= NETIF_F_LRO; in mtk_add_mac() 4632 eth->netdev[id]->vlan_features = eth->soc->hw_features & in mtk_add_mac() 4634 eth->netdev[id]->features |= eth->soc->hw_features; in mtk_add_mac() [all …]
|