Home
last modified time | relevance | path

Searched refs:hds_thresh (Results 1 – 11 of 11) sorted by relevance

/linux/tools/testing/selftests/drivers/net/
H A Dhds.py162 hds_thresh = 1
165 hds_thresh = random.randint(1, rings['hds-thresh-max'] - 1)
166 if hds_thresh != rings['hds-thresh']:
170 netnl.rings_set({'header': {'dev-index': cfg.ifindex}, 'hds-thresh': hds_thresh})
177 ksft_eq(hds_thresh, rings['hds-thresh'])
H A Dxdp.py542 hds_thresh = 1500
548 return hds_thresh
549 hds_thresh = rings['hds-thresh']
553 return hds_thresh
575 hds_thresh = get_hds_thresh(cfg)
583 if pkt_sz > hds_thresh and offset > l2_cut_off:
/linux/tools/testing/selftests/drivers/net/hw/
H A Diou-zcrx.py70 hds_thresh = rings.get('hds-thresh', 0)
78 'hds-thresh': hds_thresh,
98 hds_thresh = rings.get('hds-thresh', 0)
106 'hds-thresh': hds_thresh,
H A Dncdevmem.c485 if (config->_present.hds_thresh) in restore_ring_config()
486 ethtool_rings_set_req_set_hds_thresh(req, config->hds_thresh); in restore_ring_config()
534 if (old->_present.hds_thresh) in configure_headersplit()
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_netdev.c280 if (fbnic_check_split_frames(fbn->xdp_prog, new_mtu, fbn->hds_thresh)) { in fbnic_change_mtu()
283 new_mtu, fbn->hds_thresh); in fbnic_change_mtu()
526 u32 hds_thresh) in fbnic_check_split_frames() argument
534 return mtu + ETH_HLEN > hds_thresh; in fbnic_check_split_frames()
546 fbn->hds_thresh)) { in fbnic_bpf()
781 netdev->cfg->hds_thresh = FBNIC_HDS_THRESH_DEFAULT; in fbnic_netdev_alloc()
782 fbn->hds_thresh = FBNIC_HDS_THRESH_DEFAULT; in fbnic_netdev_alloc()
H A Dfbnic_ethtool.c192 swap(clone->hds_thresh, orig->hds_thresh); in fbnic_clone_swap_cfg()
313 kernel_ring->hds_thresh = fbn->hds_thresh; in fbnic_get_ringparam()
324 fbn->hds_thresh = kernel_ring->hds_thresh; in fbnic_set_rings()
365 kernel_ring->hds_thresh)) { in fbnic_set_ringparam()
H A Dfbnic_txrx.c2620 hds = fbn->hds_thresh < FBNIC_HDR_BYTES_MIN; in fbnic_config_drop_mode()
2681 u32 hds_thresh; in fbnic_enable_rcq() local
2687 hdr_split = fbn->hds_thresh < FBNIC_HDR_BYTES_MIN; in fbnic_enable_rcq()
2690 hds_thresh = max(fbn->hds_thresh, FBNIC_HDR_BYTES_MIN); in fbnic_enable_rcq()
2692 FIELD_PREP(FBNIC_QUEUE_RDE_CTL1_MAX_HDR_MASK, hds_thresh) | in fbnic_enable_rcq()
/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_hwrm_lib.c739 u16 hds_thresh = (u16)bn->netdev->cfg_pending->hds_thresh; in bnge_hwrm_vnic_set_hds() local
757 req->hds_threshold = cpu_to_le16(hds_thresh); in bnge_hwrm_vnic_set_hds()
H A Dbnge_netdev.c3357 bn->netdev->cfg_pending->hds_thresh); in bnge_set_ring_params()
3399 bn->netdev->cfg->hds_thresh = max(BNGE_DEFAULT_RX_COPYBREAK, rx_size); in bnge_init_ring_params()
/linux/include/linux/
H A Dethtool.h98 u32 hds_thresh; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_ethtool.c379 kernel_param->hds_thresh = 0; in mlx5e_ethtool_get_ringparam()