Home
last modified time | relevance | path

Searched refs:hds_thresh (Results 1 – 9 of 9) 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.py498 hds_thresh = 1500
503 ksft_pr(f'hds-thresh not supported. Using default: {hds_thresh}')
504 return hds_thresh
505 hds_thresh = rings['hds-thresh']
507 ksft_pr(f"Failed to get rings: {e}. Using default: {hds_thresh}")
509 return hds_thresh
531 hds_thresh = get_hds_thresh(cfg)
539 if pkt_sz > hds_thresh and offset > l2_cut_off:
541 f"Failed run: pkt_sz ({pkt_sz}) > HDS threshold ({hds_thresh}) and "
/linux/tools/testing/selftests/drivers/net/hw/
H A Diou-zcrx.py52 hds_thresh = rings.get('hds-thresh', 0)
60 'hds-thresh': hds_thresh,
80 hds_thresh = rings.get('hds-thresh', 0)
88 'hds-thresh': hds_thresh,
H A Dncdevmem.c469 if (config->_present.hds_thresh) in restore_ring_config()
470 ethtool_rings_set_req_set_hds_thresh(req, config->hds_thresh); in restore_ring_config()
518 if (old->_present.hds_thresh) in configure_headersplit()
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_netdev.c275 if (fbnic_check_split_frames(fbn->xdp_prog, new_mtu, fbn->hds_thresh)) { in fbnic_change_mtu()
278 new_mtu, fbn->hds_thresh); in fbnic_change_mtu()
519 u32 hds_thresh) in fbnic_check_split_frames() argument
527 return mtu + ETH_HLEN > hds_thresh; in fbnic_check_split_frames()
539 fbn->hds_thresh)) { in fbnic_bpf()
774 netdev->cfg->hds_thresh = FBNIC_HDS_THRESH_DEFAULT; in fbnic_netdev_alloc()
775 fbn->hds_thresh = FBNIC_HDS_THRESH_DEFAULT; in fbnic_netdev_alloc()
H A Dfbnic_txrx.c2619 hds = fbn->hds_thresh < FBNIC_HDR_BYTES_MIN; in fbnic_config_drop_mode()
2680 u32 hds_thresh; in fbnic_enable_rcq() local
2686 hdr_split = fbn->hds_thresh < FBNIC_HDR_BYTES_MIN; in fbnic_enable_rcq()
2689 hds_thresh = max(fbn->hds_thresh, FBNIC_HDR_BYTES_MIN); in fbnic_enable_rcq()
2691 FIELD_PREP(FBNIC_QUEUE_RDE_CTL1_MAX_HDR_MASK, hds_thresh) | in fbnic_enable_rcq()
/linux/net/core/
H A Dnetdev_rx_queue.c203 if (dev->cfg->hds_thresh) { in __netif_mp_open_rxq()
/linux/drivers/net/netdevsim/
H A Dnetdev.c163 cfg->hds_thresh > len))) in nsim_start_xmit()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c4853 bp->dev->cfg->hds_thresh = max(BNXT_DEFAULT_RX_COPYBREAK, rx_size); in bnxt_init_ring_params()
4916 bp->dev->cfg_pending->hds_thresh); in bnxt_set_ring_params()
6841 u16 hds_thresh = (u16)bp->dev->cfg_pending->hds_thresh; in bnxt_hwrm_vnic_set_hds() local
6858 req->hds_threshold = cpu_to_le16(hds_thresh); in bnxt_hwrm_vnic_set_hds()