| 1160 | } |
| 1161 | |
| 1162 | static 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 | |
| 1176 | static int |
| 1177 | cxgbe_flow_query(struct rte_eth_dev *dev, struct rte_flow *flow, |
no test coverage detected