projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
190852a
)
nfp: abm: refuse RED offload with harddrop set
author
Jakub Kicinski
<
[email protected]
>
Fri, 9 Nov 2018 03:50:39 +0000
(19:50 -0800)
committer
David S. Miller
<
[email protected]
>
Fri, 9 Nov 2018 04:48:01 +0000
(20:48 -0800)
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 <
[email protected]
>
Reviewed-by: John Hurley <
[email protected]
>
Reviewed-by: Quentin Monnet <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/netronome/nfp/abm/qdisc.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/netronome/nfp/abm/qdisc.c
b/drivers/net/ethernet/netronome/nfp/abm/qdisc.c
index 979afb3ea8555c1715aa0a41d6ebda6ed1e0bd8d..bb05f9ee0401c94bbedf1e667ada55aa9c35cb1f 100644
(file)
--- a/
drivers/net/ethernet/netronome/nfp/abm/qdisc.c
+++ b/
drivers/net/ethernet/netronome/nfp/abm/qdisc.c
@@
-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);