File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 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);
154154
155155extern int ff_getmaxfd (void );
156156
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+
157162/* route api begin */
158163enum FF_ROUTE_CTL {
159164 FF_ROUTE_ADD ,
Original file line number Diff line number Diff line change @@ -57,3 +57,4 @@ ff_mbuf_set_vlan_info
5757ff_zc_mbuf_get
5858ff_zc_mbuf_write
5959ff_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)
17041704 msg -> result = 0 ;
17051705}
17061706
1707+ void ff_get_traffic (void * buffer )
1708+ {
1709+ * (struct ff_traffic_args * )buffer = ff_traffic ;
1710+ }
1711+
17071712#ifdef FF_KNI
17081713static inline void
17091714handle_knictl_msg (struct ff_msg * msg )
You can’t perform that action at this time.
0 commit comments