| 1291 | |
| 1292 | |
| 1293 | static int |
| 1294 | atl_dev_interrupt_get_status(struct rte_eth_dev *dev) |
| 1295 | { |
| 1296 | struct atl_interrupt *intr = |
| 1297 | ATL_DEV_PRIVATE_TO_INTR(dev->data->dev_private); |
| 1298 | struct aq_hw_s *hw = ATL_DEV_PRIVATE_TO_HW(dev->data->dev_private); |
| 1299 | u64 cause = 0; |
| 1300 | |
| 1301 | hw_atl_b0_hw_irq_read(hw, &cause); |
| 1302 | |
| 1303 | atl_disable_intr(hw); |
| 1304 | |
| 1305 | if (cause & BIT(ATL_IRQ_CAUSE_LINK)) |
| 1306 | intr->flags |= ATL_FLAG_NEED_LINK_UPDATE; |
| 1307 | |
| 1308 | return 0; |
| 1309 | } |
| 1310 | |
| 1311 | /** |
| 1312 | * It gets and then prints the link status. |
no test coverage detected