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

Function intel_ntb_set_link

dpdk/drivers/raw/ntb/ntb_hw_intel.c:438–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438static int
439intel_ntb_set_link(const struct rte_rawdev *dev, bool up)
440{
441 struct ntb_hw *hw = dev->dev_private;
442 int ret = 0;
443
444 if (is_gen3_ntb(hw))
445 ret = intel_ntb_gen3_set_link(hw, up);
446 else if (is_gen4_ntb(hw))
447 ret = intel_ntb_gen4_set_link(hw, up);
448 else {
449 NTB_LOG(ERR, "Cannot set link for unsupported device.");
450 ret = -ENOTSUP;
451 }
452
453 return ret;
454}
455
456static uint32_t
457intel_ntb_spad_read(const struct rte_rawdev *dev, int spad, bool peer)

Callers

nothing calls this directly

Calls 4

is_gen3_ntbFunction · 0.85
intel_ntb_gen3_set_linkFunction · 0.85
is_gen4_ntbFunction · 0.85
intel_ntb_gen4_set_linkFunction · 0.85

Tested by

no test coverage detected