Home
last modified time | relevance | path

Searched refs:fl_type (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/drivers/net/hw/
H A Drss_api.py32 def _ethtool_get_cfg(cfg, fl_type, to_nl=False): argument
245 for fl_type in flow_types:
246 one = _ethtool_get_cfg(cfg, fl_type, to_nl=True)
247 ksft_eq(one, cfg_nl["flow-hash"][fl_type],
248 comment="Config for " + fl_type)
272 for fl_type in flow_types:
273 cur = _ethtool_get_cfg(cfg, fl_type)
283 "flow-hash": {fl_type: change_nl}
289 ksft_eq(change_nl, cfg_nl["flow-hash"][fl_type],
291 cfg_ic = _ethtool_get_cfg(cfg, fl_type)
[all …]
H A Drss_ctx.py837 def _set_flow_hash(cfg, fl_type, fields, context=0): argument
839 "flow-hash": {fl_type: fields}}
845 def _get_flow_hash(cfg, fl_type, context=0): argument
850 return rss.get("flow-hash", {}).get(fl_type, set())
872 fl_type = f"tcp{cfg.addr_ipver}"
873 if not _get_flow_hash(cfg, fl_type):
893 orig = _get_flow_hash(cfg, fl_type, context=ctx_id)
894 _set_flow_hash(cfg, fl_type, ip_only, context=ctx_id)
898 orig = _get_flow_hash(cfg, fl_type)
899 _set_flow_hash(cfg, fl_type, ip_only)
[all …]