| 436 | } |
| 437 | |
| 438 | static int |
| 439 | intel_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 | |
| 456 | static uint32_t |
| 457 | intel_ntb_spad_read(const struct rte_rawdev *dev, int spad, bool peer) |
nothing calls this directly
no test coverage detected