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

Function ice_dcf_query_stats

dpdk/drivers/net/ice/ice_dcf.c:1357–1382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1355}
1356
1357int
1358ice_dcf_query_stats(struct ice_dcf_hw *hw,
1359 struct virtchnl_eth_stats *pstats)
1360{
1361 struct virtchnl_queue_select q_stats;
1362 struct dcf_virtchnl_cmd args;
1363 int err;
1364
1365 memset(&q_stats, 0, sizeof(q_stats));
1366 q_stats.vsi_id = hw->vsi_res->vsi_id;
1367
1368 args.v_op = VIRTCHNL_OP_GET_STATS;
1369 args.req_msg = (uint8_t *)&q_stats;
1370 args.req_msglen = sizeof(q_stats);
1371 args.rsp_msglen = sizeof(*pstats);
1372 args.rsp_msgbuf = (uint8_t *)pstats;
1373 args.rsp_buflen = sizeof(*pstats);
1374
1375 err = ice_dcf_execute_virtchnl_cmd(hw, &args);
1376 if (err) {
1377 PMD_DRV_LOG(ERR, "fail to execute command OP_GET_STATS");
1378 return err;
1379 }
1380
1381 return 0;
1382}
1383
1384int
1385ice_dcf_add_del_all_mac_addr(struct ice_dcf_hw *hw,

Callers 3

ice_dcf_stats_getFunction · 0.85
ice_dcf_stats_resetFunction · 0.85
ice_dcf_xstats_getFunction · 0.85

Calls 2

memsetFunction · 0.85

Tested by

no test coverage detected