Allow a policer action to enforce a rate-limit based on packets-per-second, configurable using a packet-per-second rate and burst parameters. e.g. tc filter add dev tap1 parent ffff: u32 match \ u32 0 0 police pkts_rate 3000 pkts_burst 1000 Testing was unable to uncover a performance impact of this change on existing features.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -190,6 +190,8 @@ enum { · 189 unmodified lines | ||
| 190 | 190 | TCA_POLICE_PAD, |
| 191 | 191 | TCA_POLICE_RATE64, |
| 192 | 192 | TCA_POLICE_PEAKRATE64, |
| 193 | + TCA_POLICE_PKTRATE64, | |
| 194 | + TCA_POLICE_PKTBURST64, | |
| 193 | 195 | __TCA_POLICE_MAX |
| 194 | 196 | #define TCA_POLICE_RESULT TCA_POLICE_RESULT |
| 195 | 197 | }; |