| /drivers/net/ethernet/netronome/nfp/ |
| A D | nfp_net_repr.c | 341 netdev->hw_features = NETIF_F_HIGHDMA; in nfp_repr_init() 343 netdev->hw_features |= NETIF_F_RXCSUM; in nfp_repr_init() 347 netdev->hw_features |= NETIF_F_SG; in nfp_repr_init() 352 netdev->hw_features |= NETIF_F_RXHASH; in nfp_repr_init() 355 netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL; in nfp_repr_init() 359 netdev->hw_features |= NETIF_F_GSO_GRE; in nfp_repr_init() 362 netdev->hw_enc_features = netdev->hw_features; in nfp_repr_init() 364 netdev->vlan_features = netdev->hw_features; in nfp_repr_init() 367 netdev->hw_features |= NETIF_F_HW_VLAN_CTAG_RX; in nfp_repr_init() 379 netdev->features = netdev->hw_features; in nfp_repr_init() [all …]
|
| A D | nfp_net_common.c | 2682 netdev->hw_features = NETIF_F_HIGHDMA; in nfp_net_netdev_init() 2684 netdev->hw_features |= NETIF_F_RXCSUM; in nfp_net_netdev_init() 2692 netdev->hw_features |= NETIF_F_SG; in nfp_net_netdev_init() 2699 netdev->hw_features |= NETIF_F_GSO_UDP_L4; in nfp_net_netdev_init() 2704 netdev->hw_features |= NETIF_F_RXHASH; in nfp_net_netdev_init() 2723 netdev->hw_features |= NETIF_F_GSO_GRE; in nfp_net_netdev_init() 2727 netdev->hw_enc_features = netdev->hw_features; in nfp_net_netdev_init() 2729 netdev->vlan_features = netdev->hw_features; in nfp_net_netdev_init() 2732 netdev->hw_features |= NETIF_F_HW_VLAN_CTAG_RX; in nfp_net_netdev_init() 2754 netdev->features = netdev->hw_features; in nfp_net_netdev_init() [all …]
|
| /drivers/net/ethernet/synopsys/ |
| A D | dwc-xlgmac-common.c | 180 netdev->hw_features = NETIF_F_TSO; in xlgmac_init() 181 netdev->hw_features |= NETIF_F_TSO6; in xlgmac_init() 182 netdev->hw_features |= NETIF_F_SG; in xlgmac_init() 183 netdev->hw_features |= NETIF_F_IP_CSUM; in xlgmac_init() 184 netdev->hw_features |= NETIF_F_IPV6_CSUM; in xlgmac_init() 186 netdev->hw_features = NETIF_F_IP_CSUM; in xlgmac_init() 187 netdev->hw_features |= NETIF_F_IPV6_CSUM; in xlgmac_init() 191 netdev->hw_features |= NETIF_F_RXCSUM; in xlgmac_init() 192 netdev->hw_features |= NETIF_F_GRO; in xlgmac_init() 196 netdev->hw_features |= NETIF_F_RXHASH; in xlgmac_init() [all …]
|
| /drivers/net/ethernet/broadcom/bnge/ |
| A D | bnge_netdev.c | 180 netdev->hw_features = NETIF_F_IP_CSUM | in bnge_netdev_alloc() 196 netdev->hw_features |= NETIF_F_GSO_UDP_L4; in bnge_netdev_alloc() 199 netdev->hw_features |= NETIF_F_LRO; in bnge_netdev_alloc() 219 netdev->vlan_features = netdev->hw_features | NETIF_F_HIGHDMA; in bnge_netdev_alloc() 221 netdev->hw_features |= BNGE_HW_FEATURE_VLAN_ALL_RX; in bnge_netdev_alloc() 223 netdev->hw_features |= BNGE_HW_FEATURE_VLAN_ALL_TX; in bnge_netdev_alloc() 226 netdev->hw_features |= NETIF_F_GRO_HW; in bnge_netdev_alloc() 228 netdev->features |= netdev->hw_features | NETIF_F_HIGHDMA; in bnge_netdev_alloc()
|
| /drivers/vdpa/pds/ |
| A 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()
|
| A 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() 848 mgmt->supported_features = le64_to_cpu(vdpa_aux->ident.hw_features); in pds_vdpa_get_mgmt_info()
|
| /drivers/net/ethernet/pensando/ionic/ |
| A D | ionic_lif.c | 1506 old_hw_features = lif->hw_features; in ionic_set_nic_features() 1523 if (lif->hw_features & IONIC_ETH_HW_RX_HASH) in ionic_set_nic_features() 1525 if (lif->hw_features & IONIC_ETH_HW_TX_SG) in ionic_set_nic_features() 1527 if (lif->hw_features & IONIC_ETH_HW_TX_CSUM) in ionic_set_nic_features() 1529 if (lif->hw_features & IONIC_ETH_HW_RX_CSUM) in ionic_set_nic_features() 1531 if (lif->hw_features & IONIC_ETH_HW_TSO) in ionic_set_nic_features() 1595 netdev->hw_features |= NETIF_F_RXHASH; in ionic_init_nic_features() 1596 if (lif->hw_features & IONIC_ETH_HW_TX_SG) in ionic_init_nic_features() 1597 netdev->hw_features |= NETIF_F_SG; in ionic_init_nic_features() 1603 if (lif->hw_features & IONIC_ETH_HW_TSO) in ionic_init_nic_features() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
| A D | ipoib.c | 95 netdev->hw_features |= NETIF_F_SG; in mlx5i_init() 96 netdev->hw_features |= NETIF_F_IP_CSUM; in mlx5i_init() 97 netdev->hw_features |= NETIF_F_IPV6_CSUM; in mlx5i_init() 98 netdev->hw_features |= NETIF_F_GRO; in mlx5i_init() 99 netdev->hw_features |= NETIF_F_TSO; in mlx5i_init() 100 netdev->hw_features |= NETIF_F_TSO6; in mlx5i_init() 101 netdev->hw_features |= NETIF_F_RXCSUM; in mlx5i_init() 102 netdev->hw_features |= NETIF_F_RXHASH; in mlx5i_init() 382 priv->netdev->hw_features &= ~NETIF_F_NTUPLE; in mlx5i_create_flow_steering()
|
| /drivers/net/ethernet/freescale/enetc/ |
| A D | enetc_pf_common.c | 110 ndev->hw_features = NETIF_F_SG | NETIF_F_RXCSUM | in enetc_pf_netdev_setup() 128 if (si->hw_features & ENETC_SI_F_LSO) in enetc_pf_netdev_setup() 132 ndev->hw_features |= NETIF_F_RXHASH; in enetc_pf_netdev_setup() 144 if (si->hw_features & ENETC_SI_F_PSFP && pf->ops->enable_psfp && in enetc_pf_netdev_setup() 148 ndev->hw_features |= NETIF_F_HW_TC; in enetc_pf_netdev_setup()
|
| A 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() 985 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_get_mm_stats() 1003 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_get_mm() 1133 if (!(si->hw_features & ENETC_SI_F_QBU)) in enetc_set_mm()
|
| A D | enetc_pf.c | 325 si->hw_features |= ENETC_SI_F_QBV; in enetc_port_get_caps() 328 si->hw_features |= ENETC_SI_F_QBU; in enetc_port_get_caps() 331 si->hw_features |= ENETC_SI_F_PSFP; in enetc_port_get_caps() 699 if (pf->si->hw_features & ENETC_SI_F_QBV) in enetc_pl_mac_link_up() 756 if (si->hw_features & ENETC_SI_F_QBU) in enetc_pl_mac_link_up() 770 if (si->hw_features & ENETC_SI_F_QBU) in enetc_pl_mac_link_down()
|
| A D | enetc_vf.c | 147 ndev->hw_features = NETIF_F_SG | NETIF_F_RXCSUM | in enetc_vf_netdev_setup() 161 ndev->hw_features |= NETIF_F_RXHASH; in enetc_vf_netdev_setup()
|
| /drivers/net/ethernet/amd/xgbe/ |
| A D | xgbe-main.c | 236 netdev->hw_features = NETIF_F_SG | in xgbe_config_netdev() 248 netdev->hw_features |= NETIF_F_RXHASH; in xgbe_config_netdev() 261 netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL | in xgbe_config_netdev() 273 netdev->features |= netdev->hw_features; in xgbe_config_netdev()
|
| /drivers/net/ethernet/marvell/octeontx2/nic/ |
| A D | otx2_vf.c | 684 netdev->hw_features = NETIF_F_RXCSUM | NETIF_F_IP_CSUM | in otx2vf_probe() 688 netdev->features = netdev->hw_features; in otx2vf_probe() 691 netdev->hw_features |= NETIF_F_HW_VLAN_CTAG_TX | in otx2vf_probe() 693 netdev->features |= netdev->hw_features; in otx2vf_probe() 695 netdev->hw_features |= NETIF_F_NTUPLE; in otx2vf_probe() 696 netdev->hw_features |= NETIF_F_RXALL; in otx2vf_probe() 697 netdev->hw_features |= NETIF_F_HW_TC; in otx2vf_probe()
|
| /drivers/net/wwan/t7xx/ |
| A 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/ |
| A D | rndis_filter.c | 1361 net->hw_features &= ~NETVSC_SUPPORTED_HW_FEATURES; in rndis_netdev_set_hwcaps() 1365 net->hw_features |= NETIF_F_RXCSUM; in rndis_netdev_set_hwcaps() 1366 net->hw_features |= NETIF_F_SG; in rndis_netdev_set_hwcaps() 1367 net->hw_features |= NETIF_F_RXHASH; in rndis_netdev_set_hwcaps() 1371 net->hw_features |= NETIF_F_IP_CSUM; in rndis_netdev_set_hwcaps() 1378 net->hw_features |= NETIF_F_TSO; in rndis_netdev_set_hwcaps() 1391 net->hw_features |= NETIF_F_IPV6_CSUM; in rndis_netdev_set_hwcaps() 1399 net->hw_features |= NETIF_F_TSO6; in rndis_netdev_set_hwcaps() 1412 net->hw_features |= NETIF_F_LRO; in rndis_netdev_set_hwcaps() 1426 net->features &= ~NETVSC_SUPPORTED_HW_FEATURES | net->hw_features; in rndis_netdev_set_hwcaps()
|
| /drivers/net/ethernet/qualcomm/rmnet/ |
| A 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/en_accel/ |
| A 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/marvell/octeon_ep_vf/ |
| A D | octep_vf_main.c | 886 if ((features & netdev->hw_features) != features) in octep_vf_set_features() 1108 netdev->hw_features = NETIF_F_SG; in octep_vf_probe() 1110 netdev->hw_features |= (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM); in octep_vf_probe() 1113 netdev->hw_features |= NETIF_F_RXCSUM; in octep_vf_probe() 1120 netdev->hw_features |= NETIF_F_TSO; in octep_vf_probe() 1124 netdev->features |= netdev->hw_features; in octep_vf_probe()
|
| /drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_rep.c | 900 netdev->hw_features |= NETIF_F_HW_TC; in mlx5e_build_rep_netdev() 902 netdev->hw_features |= NETIF_F_SG; in mlx5e_build_rep_netdev() 903 netdev->hw_features |= NETIF_F_IP_CSUM; in mlx5e_build_rep_netdev() 904 netdev->hw_features |= NETIF_F_IPV6_CSUM; in mlx5e_build_rep_netdev() 905 netdev->hw_features |= NETIF_F_GRO; in mlx5e_build_rep_netdev() 906 netdev->hw_features |= NETIF_F_TSO; in mlx5e_build_rep_netdev() 907 netdev->hw_features |= NETIF_F_TSO6; in mlx5e_build_rep_netdev() 908 netdev->hw_features |= NETIF_F_RXCSUM; in mlx5e_build_rep_netdev() 910 netdev->features |= netdev->hw_features; in mlx5e_build_rep_netdev()
|
| /drivers/net/ethernet/intel/iavf/ |
| A D | iavf_main.c | 4767 netdev_features_t hw_features = 0; in iavf_get_netdev_vlan_hw_features() local 4770 return hw_features; in iavf_get_netdev_vlan_hw_features() 4774 hw_features |= (NETIF_F_HW_VLAN_CTAG_TX | in iavf_get_netdev_vlan_hw_features() 4817 hw_features |= NETIF_F_RXFCS; in iavf_get_netdev_vlan_hw_features() 4819 return hw_features; in iavf_get_netdev_vlan_hw_features() 5215 netdev_features_t hw_features; in iavf_process_config() local 5258 hw_features = hw_enc_features; in iavf_process_config() 5266 hw_features |= NETIF_F_HW_TC; in iavf_process_config() 5269 hw_features |= NETIF_F_GSO_UDP_L4; in iavf_process_config() 5271 netdev->hw_features |= hw_features | hw_vlan_features; in iavf_process_config() [all …]
|
| /drivers/net/ethernet/marvell/octeon_ep/ |
| A D | octep_main.c | 1099 if ((features & dev->hw_features) != features) in octep_set_features() 1491 netdev->hw_features = NETIF_F_SG; in octep_probe() 1493 netdev->hw_features |= (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM); in octep_probe() 1496 netdev->hw_features |= NETIF_F_RXCSUM; in octep_probe() 1510 netdev->hw_features |= NETIF_F_TSO; in octep_probe() 1514 netdev->features |= netdev->hw_features; in octep_probe()
|
| /drivers/net/ethernet/chelsio/cxgb/ |
| A 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() 1044 netdev->hw_features |= NETIF_F_HW_VLAN_CTAG_RX; in init_one() 1048 netdev->hw_features |= NETIF_F_TSO; in init_one() 1054 netdev->hard_header_len += (netdev->hw_features & NETIF_F_TSO) ? in init_one()
|
| /drivers/net/ethernet/intel/fm10k/ |
| A 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/gpu/drm/panfrost/ |
| A D | panfrost_features.h | 127 return test_bit(feat, pfdev->features.hw_features); in panfrost_has_hw_feature()
|