File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,11 @@ extern int ff_fdisused(int fd);
154
154
155
155
extern int ff_getmaxfd (void );
156
156
157
+ /* Get traffic for QoS or other via API.
158
+ * The size of buffer must >= siezof(struct ff_traffic_args), now is 32 bytes.
159
+ */
160
+ void ff_get_traffic (void * buffer );
161
+
157
162
/* route api begin */
158
163
enum FF_ROUTE_CTL {
159
164
FF_ROUTE_ADD ,
Original file line number Diff line number Diff line change @@ -57,3 +57,4 @@ ff_mbuf_set_vlan_info
57
57
ff_zc_mbuf_get
58
58
ff_zc_mbuf_write
59
59
ff_zc_mbuf_read
60
+ ff_get_traffic
Original file line number Diff line number Diff line change @@ -1704,6 +1704,11 @@ handle_traffic_msg(struct ff_msg *msg)
1704
1704
msg -> result = 0 ;
1705
1705
}
1706
1706
1707
+ void ff_get_traffic (void * buffer )
1708
+ {
1709
+ * (struct ff_traffic_args * )buffer = ff_traffic ;
1710
+ }
1711
+
1707
1712
#ifdef FF_KNI
1708
1713
static inline void
1709
1714
handle_knictl_msg (struct ff_msg * msg )
You can’t perform that action at this time.
0 commit comments