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

Function ngbe_enable_rx

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

Source from the content-addressed store, hash-verified

1722}
1723
1724void ngbe_enable_rx(struct ngbe_hw *hw)
1725{
1726 u32 pfdtxgswc;
1727
1728 wr32m(hw, NGBE_MACRXCFG, NGBE_MACRXCFG_ENA, NGBE_MACRXCFG_ENA);
1729 wr32m(hw, NGBE_PBRXCTL, NGBE_PBRXCTL_ENA, NGBE_PBRXCTL_ENA);
1730
1731 if (hw->mac.set_lben) {
1732 pfdtxgswc = rd32(hw, NGBE_PSRCTL);
1733 pfdtxgswc |= NGBE_PSRCTL_LBENA;
1734 wr32(hw, NGBE_PSRCTL, pfdtxgswc);
1735 hw->mac.set_lben = false;
1736 }
1737}
1738
1739/**
1740 * ngbe_set_mac_type - Sets MAC type

Callers 1

ngbe_enable_rx_dmaFunction · 0.85

Calls 3

wr32mFunction · 0.70
rd32Function · 0.70
wr32Function · 0.70

Tested by

no test coverage detected