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

Function vnic_dev_cmd_no_proxy

dpdk/drivers/net/enic/base/vnic_dev.c:412–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412static int vnic_dev_cmd_no_proxy(struct vnic_dev *vdev,
413 enum vnic_devcmd_cmd cmd, uint64_t *args, int nargs, int wait)
414{
415 int err;
416
417 if (nargs > VNIC_DEVCMD_NARGS) {
418 pr_err("number of args %d exceeds the maximum\n", nargs);
419 return -EINVAL;
420 }
421 memset(vdev->args, 0, sizeof(vdev->args));
422 memcpy(vdev->args, args, nargs * sizeof(args[0]));
423
424 err = _vnic_dev_cmd(vdev, cmd, wait);
425
426 memcpy(args, vdev->args, nargs * sizeof(args[0]));
427
428 return err;
429}
430
431void vnic_dev_cmd_proxy_by_index_start(struct vnic_dev *vdev, uint16_t index)
432{

Callers 2

vnic_dev_cmdFunction · 0.85
vnic_dev_cmd_argsFunction · 0.85

Calls 3

memsetFunction · 0.85
_vnic_dev_cmdFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected