]> git.baikalelectronics.ru Git - kernel.git/commit
skbuff: Release nfct refcount on napi stolen or re-used skbs
authorPaul Blakey <paulb@nvidia.com>
Mon, 5 Jul 2021 10:54:51 +0000 (13:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jul 2021 17:26:29 +0000 (10:26 -0700)
commit01eebbaeeb366fd0c2c72fbe6d26c0cd0fdd5452
tree686f5b4862af8b0ca084a45f6bd68a69d598c826
parent1c248aaa500b24ab0a880d67d294308e5f469325
skbuff: Release nfct refcount on napi stolen or re-used skbs

When multiple SKBs are merged to a new skb under napi GRO,
or SKB is re-used by napi, if nfct was set for them in the
driver, it will not be released while freeing their stolen
head state or on re-use.

Release nfct on napi's stolen or re-used SKBs, and
in gro_list_prepare, check conntrack metadata diff.

Fixes: 70da334c62b6 ("net/mlx5e: CT: Handle misses after executing CT action")
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
net/core/skbuff.c