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

Function atl_dev_interrupt_get_status

dpdk/drivers/net/atlantic/atl_ethdev.c:1293–1309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1291
1292
1293static int
1294atl_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.

Callers 1

Calls 2

hw_atl_b0_hw_irq_readFunction · 0.85
atl_disable_intrFunction · 0.85

Tested by

no test coverage detected