nfp: abm: refuse RED offload with harddrop set
RED Qdisc will now inform the drivers about the state of the harddrop flag. Refuse to offload in case harddrop is set. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: John Hurley <john.hurley@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
190852a55e
commit
6e5a716f42
@ -83,6 +83,11 @@ nfp_abm_red_check_params(struct nfp_abm_link *alink,
|
||||
opt->parent, opt->handle);
|
||||
return false;
|
||||
}
|
||||
if (opt->set.is_harddrop) {
|
||||
nfp_warn(cpp, "RED offload failed - harddrop is not supported (p:%08x h:%08x)\n",
|
||||
opt->parent, opt->handle);
|
||||
return false;
|
||||
}
|
||||
if (opt->set.min != opt->set.max) {
|
||||
nfp_warn(cpp, "RED offload failed - unsupported min/max parameters (p:%08x h:%08x)\n",
|
||||
opt->parent, opt->handle);
|
||||
|
Loading…
Reference in New Issue
Block a user