]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/sched: act_pedit: remove extra check for key type
authorPedro Tammela <pctammela@mojatatu.com>
Fri, 21 Apr 2023 21:25:16 +0000 (18:25 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:02:14 +0000 (16:02 +0200)
commitcb3d30d2a46c02c687b794f18f2a32c6debf89d0
tree14592d6ea582ef4a8bc43c3a2175d88f032f60af
parent6c179b4d0caef6f71abbde27fc20e548e04cfc7f
net/sched: act_pedit: remove extra check for key type

[ Upstream commit 577140180ba28d0d37bc898c7bd6702c83aa106f ]

The netlink parsing already validates the key 'htype'.
Remove the datapath check as it's redundant.

Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 6c02568fd1ae ("net/sched: act_pedit: Parse L3 Header for L4 offset")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sched/act_pedit.c