Re: [RFC 2/2] netvsc: use RCU for VF net device reference

2016-08-15 Thread Vitaly Kuznetsov
Stephen Hemminger writes: > Rather than keeping a pointer, a flag, and reference count, use RCU and > existing > device reference count to protect the synthetic to VF relationship. Thanks! I like the idea. Some nitpicks below ... > > One other change is that injected packets must be accounted

[RFC 2/2] netvsc: use RCU for VF net device reference

2016-08-14 Thread Stephen Hemminger
Rather than keeping a pointer, a flag, and reference count, use RCU and existing device reference count to protect the synthetic to VF relationship. One other change is that injected packets must be accounted for on the synthetic device otherwise the statistics will be lost. The VF device driver