net/sched: flower: Helper function for vlan ethtype checks
authorBoris Sukholitko <boris.sukholitko@broadcom.com>
Tue, 19 Apr 2022 08:14:30 +0000 (11:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2022 10:09:13 +0000 (11:09 +0100)
commit285ba06b0edb21af8c7702c5771c06392011020d
tree5200330df18135d584944f866c367a676e96dd6b
parente63dd41235072575a190ef3f3e6e618a6dd0ac64
net/sched: flower: Helper function for vlan ethtype checks

There are somewhat repetitive ethertype checks in fl_set_key. Refactor
them into is_vlan_key helper function.

To make the changes clearer, avoid touching identation levels. This is
the job for the next patch in the series.

Signed-off-by: Boris Sukholitko <boris.sukholitko@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c