diff options
author | David S. Miller | 2019-08-18 23:13:23 +0200 |
---|---|---|
committer | David S. Miller | 2019-08-18 23:13:23 +0200 |
commit | 5cbe9102ae2398c0f410fd4f832d9f038e751a29 (patch) | |
tree | 717dbcde06dcd1d5e1f672e3235a190037315c70 /drivers/net/ethernet/netronome/nfp/flower/qos_conf.c | |
parent | wimax/i2400m: fix a memory leak bug (diff) | |
parent | netfilter: nf_tables: map basechain priority to hardware priority (diff) | |
download | kernel-qcow2-linux-5cbe9102ae2398c0f410fd4f832d9f038e751a29.tar.gz kernel-qcow2-linux-5cbe9102ae2398c0f410fd4f832d9f038e751a29.tar.xz kernel-qcow2-linux-5cbe9102ae2398c0f410fd4f832d9f038e751a29.zip |
Merge branch 'flow_offload-hardware-priority-fixes'
Pablo Neira Ayuso says:
====================
flow_offload hardware priority fixes
This patchset contains two updates for the flow_offload users:
1) Pass the major tc priority to drivers so they do not have to
lshift it. This is a preparation patch for the fix coming in
patch #2.
2) Set the hardware priority from the netfilter basechain priority,
some drivers break when using the existing hardware priority
number that is set to zero.
v5: fix patch 2/2 to address a clang warning and to simplify
the priority mapping.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/flower/qos_conf.c')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/flower/qos_conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c b/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c index 86e968cd5ffd..124a43dc136a 100644 --- a/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c +++ b/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c @@ -93,7 +93,7 @@ nfp_flower_install_rate_limiter(struct nfp_app *app, struct net_device *netdev, return -EOPNOTSUPP; } - if (flow->common.prio != (1 << 16)) { + if (flow->common.prio != 1) { NL_SET_ERR_MSG_MOD(extack, "unsupported offload: qos rate limit offload requires highest priority"); return -EOPNOTSUPP; } |