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

Function pdump_enable_by_deviceid

dpdk/lib/pdump/rte_pdump.c:634–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634static int
635pdump_enable_by_deviceid(const char *device_id, uint16_t queue,
636 uint32_t flags, uint32_t snaplen,
637 struct rte_ring *ring,
638 struct rte_mempool *mp,
639 const struct rte_bpf_prm *prm)
640{
641 int ret;
642
643 ret = pdump_validate_ring_mp(ring, mp);
644 if (ret < 0)
645 return ret;
646 ret = pdump_validate_flags(flags);
647 if (ret < 0)
648 return ret;
649
650 if (snaplen == 0)
651 snaplen = UINT32_MAX;
652
653 return pdump_prepare_client_request(device_id, queue, flags, snaplen,
654 ENABLE, ring, mp, prm);
655}
656
657int
658rte_pdump_enable_by_deviceid(char *device_id, uint16_t queue,

Callers 2

Calls 3

pdump_validate_ring_mpFunction · 0.85
pdump_validate_flagsFunction · 0.85

Tested by

no test coverage detected