netfilter: nft_meta: move sk uid/git handling to helper
authorFlorian Westphal <fw@strlen.de>
Wed, 18 Dec 2019 11:05:15 +0000 (12:05 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 26 Dec 2019 16:41:34 +0000 (17:41 +0100)
commit726b44f044e8e67cbe2209c1a5704aca981be3b2
tree311bd5ea3c2f6ae5d781d7dfe3681b0efbbf3e79
parent4a54594abdbee230a0471aa137b3d5405c897661
netfilter: nft_meta: move sk uid/git handling to helper

Not a hot path.  Also, both have copy&paste case statements,
so use a common helper for both.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_meta.c