History

net_sched: act_police: add 2 new attributes to support police 64bit rate and peakrate

For high speed adapter like Mellanox CX-5 card, it can reach upto 100 Gbits per second bandwidth. Currently htb already supports 64bit rate in tc utility. However police action rate and peakrate are still limited to 32bit value (upto 32 Gbits per second). Add 2 new attributes TCA_POLICE_RATE64 and TCA_POLICE_RATE64 in kernel for 64bit support so that tc utility can use them for 64bit rate and peakrate value to break the 32bit limit, and still keep the backward binary compatibility.

David Dai committed 7 years ago

Commit d1967e41 parent 95a72332 files · +25 −4Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/pkt_cls.h+2−0
@@ -160,6 +160,8 @@ enum { · 159 unmodified lines
160160 TCA_POLICE_RESULT,
161161 TCA_POLICE_TM,
162162 TCA_POLICE_PAD,
163+ TCA_POLICE_RATE64,
164+ TCA_POLICE_PEAKRATE64,
163165 __TCA_POLICE_MAX
164166 #define TCA_POLICE_RESULT TCA_POLICE_RESULT
165167 };