]> asedeno.scripts.mit.edu Git - linux.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)
commit996ed04741467f6d1552440c92988b132a9487ec
tree63bcc9ed8d15f322df101fb6f2c83b920348da25
parentf2696099c6c619aec4fe2b9691f0a81429957e65
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: 0c195567a8f6 ("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