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

Function vnic_dev_fw_info

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

Source from the content-addressed store, hash-verified

533}
534
535int vnic_dev_fw_info(struct vnic_dev *vdev,
536 struct vnic_devcmd_fw_info **fw_info)
537{
538 char name[RTE_MEMZONE_NAMESIZE];
539 uint64_t a0, a1 = 0;
540 int wait = 1000;
541 int err = 0;
542 static uint32_t instance;
543
544 if (!vdev->fw_info) {
545 snprintf((char *)name, sizeof(name), "vnic_fw_info-%u",
546 instance++);
547 vdev->fw_info = vdev->alloc_consistent(vdev->priv,
548 sizeof(struct vnic_devcmd_fw_info),
549 &vdev->fw_info_pa, (uint8_t *)name);
550 if (!vdev->fw_info)
551 return -ENOMEM;
552 a0 = vdev->fw_info_pa;
553 a1 = sizeof(struct vnic_devcmd_fw_info);
554 err = vnic_dev_cmd(vdev, CMD_MCPU_FW_INFO,
555 &a0, &a1, wait);
556 }
557 *fw_info = vdev->fw_info;
558 return err;
559}
560
561static int vnic_dev_advanced_filters_cap(struct vnic_dev *vdev, uint64_t *args,
562 int nargs)

Callers 1

Calls 2

snprintfFunction · 0.85
vnic_dev_cmdFunction · 0.85

Tested by

no test coverage detected