MCPcopy Create free account
hub / github.com/F-Stack/f-stack / __cxgbe_flow_query

Function __cxgbe_flow_query

dpdk/drivers/net/cxgbe/cxgbe_flow.c:1162–1174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1160}
1161
1162static int __cxgbe_flow_query(struct rte_flow *flow, u64 *count,
1163 u64 *byte_count)
1164{
1165 struct adapter *adap = ethdev2adap(flow->dev);
1166 struct ch_filter_specification fs = flow->f->fs;
1167 unsigned int fidx = flow->fidx;
1168 int ret = 0;
1169
1170 ret = cxgbe_get_filter_count(adap, fidx, count, fs.cap, 0);
1171 if (ret)
1172 return ret;
1173 return cxgbe_get_filter_count(adap, fidx, byte_count, fs.cap, 1);
1174}
1175
1176static int
1177cxgbe_flow_query(struct rte_eth_dev *dev, struct rte_flow *flow,

Callers 1

cxgbe_flow_queryFunction · 0.85

Calls 2

ethdev2adapFunction · 0.85
cxgbe_get_filter_countFunction · 0.85

Tested by

no test coverage detected