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

Function em_init_manageability

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

* Bit of a misnomer, what this really means is * to enable OS management of the system... aka * to disable special hardware management features. */

Source from the content-addressed store, hash-verified

1268 * to disable special hardware management features.
1269 */
1270static void
1271em_init_manageability(struct e1000_hw *hw)
1272{
1273 if (e1000_enable_mng_pass_thru(hw)) {
1274 uint32_t manc2h = E1000_READ_REG(hw, E1000_MANC2H);
1275 uint32_t manc = E1000_READ_REG(hw, E1000_MANC);
1276
1277 /* disable hardware interception of ARP */
1278 manc &= ~(E1000_MANC_ARP_EN);
1279
1280 /* enable receiving management packets to the host */
1281 manc |= E1000_MANC_EN_MNG2HOST;
1282 manc2h |= 1 << 5; /* Mng Port 623 */
1283 manc2h |= 1 << 6; /* Mng Port 664 */
1284 E1000_WRITE_REG(hw, E1000_MANC2H, manc2h);
1285 E1000_WRITE_REG(hw, E1000_MANC, manc);
1286 }
1287}
1288
1289/*
1290 * Give control back to hardware management

Callers 1

eth_em_startFunction · 0.85

Calls 1

Tested by

no test coverage detected