Changeset 58254 in vbox for trunk/src/VBox/HostDrivers/VBoxNetAdp/linux
- Timestamp:
- Oct 14, 2015 5:15:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/VBoxNetAdp-linux.c
r58222 r58254 262 262 263 263 /* 264 * To get proper operstate transition to IF_OPER_UP we 265 * need to call netif_carrier_on(), which triggers netlink 266 * notifications that do the work. But first we need to 267 * turn it off here, otherwise that call will do nothing 268 * and we will be stuck in IF_OPER_UNKNOWN. 264 * We treat presence of VBoxNetFlt filter as our "carrier", 265 * see vboxNetFltSetLinkState(). 269 266 * 270 * Do this before registration so that only the state bit 271 * is set, but no state change notifications are generated. 267 * operstates.txt: "On device allocation, networking core 268 * sets the flags equivalent to netif_carrier_ok() and 269 * !netif_dormant()" - so turn carrier off here. 272 270 */ 273 271 netif_carrier_off(pNetDev); … … 279 277 pThis->szName[sizeof(pThis->szName) - 1] = '\0'; 280 278 pThis->u.s.pNetDev = pNetDev; 281 282 /*283 * TODO: We might want to set carrier only when284 * VBoxNetFlt attaches the intnet to us.285 */286 netif_carrier_on(pNetDev);287 288 279 Log2(("vboxNetAdpOsCreate: pThis=%p pThis->szName = %p\n", pThis, pThis->szName)); 289 280 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.