<div dir="ltr">Hi All,<div>            When i am trying to delete an interface from the application, while traffic is flowing through it, kernel throws the message</div><div><br></div><div>unregister_netdevice: waiting for eth0 to become free. Usage count = 4<br>
</div><div><br></div><div>which means network device usage counter is more that zero and there are 4 references of this device still active, therefore the networking subsystem of the kernel</div><div>defers it, to become the usage counter 0.</div>
<div><br></div><div>Can somebody let me know what are the operations/ events increases the reference count of any network device.</div><div><br></div><div>I looked in to the kernel code and found that a call to</div><div>
&quot;dev_hold&quot; increases the refrence count and</div><div>&quot;dev_put&quot; decreases this. </div><div><br></div><div>thanks,</div><div>Vishwas S</div><div><br></div></div>