if_em.c (50d3286d9dbd7bec7aef9c7ac76eaa690a760bec) | if_em.c (17885a7bfde9d164e45a9833bb172215c55739f9) |
---|---|
1/****************************************************************************** 2 3 Copyright (c) 2001-2013, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 4338 unchanged lines hidden (view full) --- 4347 /* Setup the Head and Tail Descriptor Pointers */ 4348 E1000_WRITE_REG(hw, E1000_RDH(i), 0); 4349#ifdef DEV_NETMAP 4350 /* 4351 * an init() while a netmap client is active must 4352 * preserve the rx buffers passed to userspace. 4353 */ 4354 if (ifp->if_capenable & IFCAP_NETMAP) | 1/****************************************************************************** 2 3 Copyright (c) 2001-2013, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 4338 unchanged lines hidden (view full) --- 4347 /* Setup the Head and Tail Descriptor Pointers */ 4348 E1000_WRITE_REG(hw, E1000_RDH(i), 0); 4349#ifdef DEV_NETMAP 4350 /* 4351 * an init() while a netmap client is active must 4352 * preserve the rx buffers passed to userspace. 4353 */ 4354 if (ifp->if_capenable & IFCAP_NETMAP) |
4355 rdt -= NA(adapter->ifp)->rx_rings[i].nr_hwavail; | 4355 rdt -= nm_kr_rxspace(&NA(adapter->ifp)->rx_rings[i]); |
4356#endif /* DEV_NETMAP */ 4357 E1000_WRITE_REG(hw, E1000_RDT(i), rdt); 4358 } 4359 4360 /* Set PTHRESH for improved jumbo performance */ 4361 if (((adapter->hw.mac.type == e1000_ich9lan) || 4362 (adapter->hw.mac.type == e1000_pch2lan) || 4363 (adapter->hw.mac.type == e1000_ich10lan)) && --- 1438 unchanged lines hidden --- | 4356#endif /* DEV_NETMAP */ 4357 E1000_WRITE_REG(hw, E1000_RDT(i), rdt); 4358 } 4359 4360 /* Set PTHRESH for improved jumbo performance */ 4361 if (((adapter->hw.mac.type == e1000_ich9lan) || 4362 (adapter->hw.mac.type == e1000_pch2lan) || 4363 (adapter->hw.mac.type == e1000_ich10lan)) && --- 1438 unchanged lines hidden --- |