mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
AF_XDP-interaction: Start on new tx and rx batch process code
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
@@ -806,6 +806,21 @@ static void rx_and_process(struct config *cfg,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Use-case: Accurate cyclic Tx and lazy RX-processing
|
||||||
|
*
|
||||||
|
* This processing loop is simulating a Time-Triggered schedule, where
|
||||||
|
* transmitting packets within a small time-window is the most
|
||||||
|
* important task. Picking up frames in RX-queue is less time
|
||||||
|
* critical, as the PCF synchronization packets will have been
|
||||||
|
* timestamped (rx_ktime) by XDP before they got enqueued.
|
||||||
|
*/
|
||||||
|
static void tx_and_rx_batch_process(struct config *cfg,
|
||||||
|
struct xsk_container *xsks)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
static double calc_period(struct stats_record *r, struct stats_record *p)
|
static double calc_period(struct stats_record *r, struct stats_record *p)
|
||||||
{
|
{
|
||||||
double period_ = 0;
|
double period_ = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user