Searched hist:"990 e4839" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_vcap_impl.c | 990e4839 Fri Nov 11 07:05:16 CST 2022 Steen Hegelund <steen.hegelund@microchip.com> net: microchip: sparx5: Add/delete rules in sorted order
This adds a sorting criteria to rule insertion and deletion.
The criteria is (in the listed order):
- Rule size (largest size first) - User (based on an enumerated user value) - Priority (highest priority first, aka lowest value)
When a rule is deleted the other rules may need to be moved to fill the gap to use the available VCAP address space in the best possible way.
Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/openbmc/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api.c | 990e4839 Fri Nov 11 07:05:16 CST 2022 Steen Hegelund <steen.hegelund@microchip.com> net: microchip: sparx5: Add/delete rules in sorted order
This adds a sorting criteria to rule insertion and deletion.
The criteria is (in the listed order):
- Rule size (largest size first) - User (based on an enumerated user value) - Priority (highest priority first, aka lowest value)
When a rule is deleted the other rules may need to be moved to fill the gap to use the available VCAP address space in the best possible way.
Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|