lp:~vilhelm-gray/ubuntu/+source/linux/+git/sf277232

Get this repository:
git clone https://git.launchpad.net/~vilhelm-gray/ubuntu/+source/linux/+git/sf277232
Only William Breathitt Gray can upload to this repository. If you are William Breathitt Gray please log in for upload directions.

Branches

Name Last Modified Last Commit
sf277232 2021-01-27 13:05:28 UTC
hv_netvsc: Fix XDP refcnt for synthetic and VF NICs

Author: Haiyang Zhang
Author Date: 2020-02-06 22:01:05 UTC

hv_netvsc: Fix XDP refcnt for synthetic and VF NICs

BugLink: https://bugs.launchpad.net/bugs/1877654

The caller of XDP_SETUP_PROG has already incremented refcnt in
__bpf_prog_get(), so drivers should only increment refcnt by
num_queues - 1.

To fix the issue, update netvsc_xdp_set() to add the correct number
to refcnt.

Hold a refcnt in netvsc_xdp_set()’s other caller, netvsc_attach().

And, do the same in netvsc_vf_setxdp(). Otherwise, every time when VF is
removed and added from the host side, the refcnt will be decreased by one,
which may cause page fault when unloading xdp program.

Fixes: 351e1581395f ("hv_netvsc: Add XDP support")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 184367dce4f744bde54377203305ccc8889aa79f)
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>

11 of 1 result
This repository contains Public information 
Everyone can see this information.