]> git.baikalelectronics.ru Git - kernel.git/commit
netvsc: unshare skb in VF rx handler
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 28 May 2019 18:47:30 +0000 (11:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 18:12:21 +0000 (11:12 -0700)
commit04298ebaf0a1e5af8adf0b1035f6de1805a9caa5
tree63bcc9ed8d15f322df101fb6f2c83b920348da25
parentd080bbf79485bafbb711f5ea3aad791bdb655d43
netvsc: unshare skb in VF rx handler

The netvsc VF skb handler should make sure that skb is not
shared. Similar logic already exists in bonding and team device
drivers.

This is not an issue in practice because the VF devicex
does not send up shared skb's. But the netvsc driver
should do the right thing if it did.

Fixes: 02e633075a17 ("netvsc: transparent VF management")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c