]> git.baikalelectronics.ru Git - kernel.git/commit
skbuff: Fix build with SKB extensions disabled
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 8 Jul 2021 04:10:51 +0000 (21:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jul 2021 07:07:14 +0000 (00:07 -0700)
commitf4097d12c95662c226e07c568f6811f9968f7333
tree45944b574508d870a017e1ce36ed6fa16ba0f664
parent6e67dd5105e01a4de715cab8bc34f8e88c430d29
skbuff: Fix build with SKB extensions disabled

We will fail to build with CONFIG_SKB_EXTENSIONS disabled after
89c04c772a6e ("skbuff: Release nfct refcount on napi stolen or re-used
skbs") since there is an unconditionally use of skb_ext_find() without
an appropriate stub. Simply build the code conditionally and properly
guard against both COFNIG_SKB_EXTENSIONS as well as
CONFIG_NET_TC_SKB_EXT being disabled.

Fixes: Fixes: 89c04c772a6e ("skbuff: Release nfct refcount on napi stolen or re-used skbs")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c