On Tue, 2015-04-28 at 19:11 -0700, Alexei Starovoitov wrote:
> + if (pkt_dev->flags & F_DO_RX) {
> + local_bh_disable();
> + atomic_add(burst, &pkt_dev->skb->users);
> + do {
> + ret = netif_receive_skb(pkt_dev->skb);
> +
Introduce 'RX' mode for pktgen which generates the packets
using familiar pktgen commands, but feeds them into netif_receive_skb()
instead of ndo_start_xmit().
It can be used to benchmark different kernel RX paths.
Sample script 'pktgen.sh':
!/bin/bash
function pgset() {
local result
echo $1