mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-06 05:13:18 +00:00
sfc: use flow_rule_is_supp_enc_control_flags()
Change the existing check for unsupported encapsulation control flags, to use the new helper flow_rule_is_supp_enc_control_flags(). No functional change, only compile tested. Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net> Acked-by: Edward Cree <ecree.xilinx@gmail.com> Reviewed-by: Davide Caratti <dcaratti@redhat.com> Link: https://lore.kernel.org/r/20240609173358.193178-3-ast@fiberby.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
b48a1540b7
commit
2ede54f878
@ -387,11 +387,8 @@ static int efx_tc_flower_parse_match(struct efx_nic *efx,
|
||||
struct flow_match_control fm;
|
||||
|
||||
flow_rule_match_enc_control(rule, &fm);
|
||||
if (fm.mask->flags) {
|
||||
NL_SET_ERR_MSG_FMT_MOD(extack, "Unsupported match on enc_control.flags %#x",
|
||||
fm.mask->flags);
|
||||
if (flow_rule_has_enc_control_flags(fm.mask->flags, extack))
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
if (!IS_ALL_ONES(fm.mask->addr_type)) {
|
||||
NL_SET_ERR_MSG_FMT_MOD(extack, "Unsupported enc addr_type mask %u (key %u)",
|
||||
fm.mask->addr_type,
|
||||
|
Loading…
Reference in New Issue
Block a user