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

Function em_release_manageability

dpdk/drivers/net/e1000/em_ethdev.c:1293–1307  ·  view source on GitHub ↗

* Give control back to hardware management * controller if there is one. */

Source from the content-addressed store, hash-verified

1291 * controller if there is one.
1292 */
1293static void
1294em_release_manageability(struct e1000_hw *hw)
1295{
1296 uint32_t manc;
1297
1298 if (e1000_enable_mng_pass_thru(hw)) {
1299 manc = E1000_READ_REG(hw, E1000_MANC);
1300
1301 /* re-enable hardware interception of ARP */
1302 manc |= E1000_MANC_ARP_EN;
1303 manc &= ~E1000_MANC_EN_MNG2HOST;
1304
1305 E1000_WRITE_REG(hw, E1000_MANC, manc);
1306 }
1307}
1308
1309static int
1310eth_em_promiscuous_enable(struct rte_eth_dev *dev)

Callers 1

eth_em_closeFunction · 0.85

Calls 1

Tested by

no test coverage detected