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

Function ngbe_disable_rx

dpdk/drivers/net/ngbe/base/ngbe_hw.c:1707–1722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1705}
1706
1707void ngbe_disable_rx(struct ngbe_hw *hw)
1708{
1709 u32 pfdtxgswc;
1710
1711 pfdtxgswc = rd32(hw, NGBE_PSRCTL);
1712 if (pfdtxgswc & NGBE_PSRCTL_LBENA) {
1713 pfdtxgswc &= ~NGBE_PSRCTL_LBENA;
1714 wr32(hw, NGBE_PSRCTL, pfdtxgswc);
1715 hw->mac.set_lben = true;
1716 } else {
1717 hw->mac.set_lben = false;
1718 }
1719
1720 wr32m(hw, NGBE_PBRXCTL, NGBE_PBRXCTL_ENA, 0);
1721 wr32m(hw, NGBE_MACRXCFG, NGBE_MACRXCFG_ENA, 0);
1722}
1723
1724void ngbe_enable_rx(struct ngbe_hw *hw)
1725{

Callers 2

ngbe_stop_hwFunction · 0.85
ngbe_enable_rx_dmaFunction · 0.85

Calls 3

rd32Function · 0.70
wr32Function · 0.70
wr32mFunction · 0.70

Tested by

no test coverage detected