OpenCloudOS-Kernel/drivers/net/ethernet/chelsio
Rahul Lakkireddy 8d174351f2 cxgb4: rework TC filter rule insertion across regions
Chelsio NICs have 3 filter regions, in following order of priority:
1. High Priority (HPFILTER) region (Highest Priority).
2. HASH region.
3. Normal FILTER region (Lowest Priority).

Currently, there's a 1-to-1 mapping between the prio value passed
by TC and the filter region index. However, it's possible to have
multiple TC rules with the same prio value. In this case, if a region
is exhausted, no attempt is made to try inserting the rule in the
next available region.

So, rework and remove the 1-to-1 mapping. Instead, dynamically select
the region to insert the filter rule, as long as the new rule's prio
value doesn't conflict with existing rules across all the 3 regions.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-18 16:39:03 -07:00
..
cxgb net: cxgb2: reject unsupported coalescing params 2020-03-10 16:28:53 -07:00
cxgb3 net: cxgb3: reject unsupported coalescing params 2020-03-10 16:28:53 -07:00
cxgb4 cxgb4: rework TC filter rule insertion across regions 2020-03-18 16:39:03 -07:00
cxgb4vf net: cxgb4vf: reject unsupported coalescing params 2020-03-10 16:28:53 -07:00
libcxgb net/chelsio: Delete drive and module versions 2020-03-03 17:54:54 -08:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00