File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,12 @@ extern int ff_fdisused(int fd);
153153
154154extern int ff_getmaxfd (void );
155155
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+
156162/* route api begin */
157163enum FF_ROUTE_CTL {
158164 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 @@ -1687,6 +1687,11 @@ handle_traffic_msg(struct ff_msg *msg)
16871687 msg -> result = 0 ;
16881688}
16891689
1690+ void ff_get_traffic (void * buffer )
1691+ {
1692+ * (struct ff_traffic_args * )buffer = ff_traffic ;
1693+ }
1694+
16901695#ifdef FF_KNI
16911696static inline void
16921697handle_knictl_msg (struct ff_msg * msg )
You can’t perform that action at this time.
0 commit comments