aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_ulp.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2017-06-21 18:25:07 -0700
committerDavid S. Miller <davem@davemloft.net>2017-06-23 13:42:19 -0400
commit6a8ef5428c9fb5b589c2c912889d157abb50dd61 (patch)
treefc279b0539e2cee1e100b74ebae62d26b7361135 /net/ipv4/tcp_ulp.c
parent9f82fca9422eab3877ab2b697ccc5eef44c63b54 (diff)
downloadlinux-6a8ef5428c9fb5b589c2c912889d157abb50dd61.tar.gz
linux-6a8ef5428c9fb5b589c2c912889d157abb50dd61.tar.bz2
linux-6a8ef5428c9fb5b589c2c912889d157abb50dd61.zip
nfp: bpf: release the reference on offloaded programs
The xdp_prog member of the adapter's data path structure is used for XDP in driver mode. In case a XDP program is loaded with in HW-only mode, we need to store it somewhere else. Add a new XDP prog pointer in the main structure and use that when we need to know whether any XDP program is loaded, not only a driver mode one. Only release our reference on adapter free instead of immediately after netdev unregister to allow offload to be disabled first. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ulp.c')
0 files changed, 0 insertions, 0 deletions