)]}'
{
  "commit": "58406fca57baeb5f9d9a33481622a18e07a0aa5e",
  "tree": "32f05b25d93f7acd398053f2e0a56a59d8274613",
  "parents": [
    "bb3cf1503f1de243d111355d45e86838214c9d4a"
  ],
  "author": {
    "name": "Pablo Neira Ayuso",
    "email": "pablo@netfilter.org",
    "time": "Fri Nov 11 12:32:43 2022 +0100"
  },
  "committer": {
    "name": "Pablo Neira Ayuso",
    "email": "pablo@netfilter.org",
    "time": "Tue Nov 15 16:37:08 2022 +0100"
  },
  "message": "net: pktgen: build skb list and call netif_receive_skb_list()\n\nBuild a batch with 8 skbuffs and inject them via netif_receive_skb_list.\n\nTested with:\n\necho 1 \u003e /proc/sys/net/ipv4/ip_forward\nmodprobe dummy numdummies\u003d1\nip link set up dev dummy0\nip ro add 198.18.0.0/24 dev dummy0 scope link\ncd linux-stk/samples/pktgen/\n./pktgen_bench_xmit_mode_netif_receive.sh -i eth0 -n 1500000 -m xx:xx:xx:xx:xx:xx\n\nwhere xx:xx:xx:xx:xx:xx is the mac address of eth0.\n\nwithout flowtable:\n\nResult: OK: 591472(c591472+d0) usec, 1204224 (60byte,0frags)\n  254496pps 977Mb/sec (977264640bps) errors: 0\n\nwith flowtable:\n\nResult: OK: 364031(c364031+d0) usec, 12001280 (60byte,0frags)\n  4120962pps 15824Mb/sec (15824494080bps) errors: 0\n\n # cat ruleset.nft\n table ip x {\n        flowtable x {\n                hook ingress priority filter\n                devices \u003d { dummy0, eth0 }\n        }\n\n        chain y {\n                type filter hook forward priority filter; policy accept;\n                flow add @x counter packets 4 bytes 184\n                counter packets 64 bytes 2944\n        }\n }\n\nUpdate samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh to set\nup source address different than the one of the ingress interface,\notherwise packets are dropped as martians.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a3d74e2704c42e3bec1aa502b911c1b952a56cf1",
      "old_mode": 33188,
      "old_path": "net/core/pktgen.c",
      "new_id": "71c30433720369b5f5df272a98ac42aadbcec41b",
      "new_mode": 33188,
      "new_path": "net/core/pktgen.c"
    },
    {
      "type": "modify",
      "old_id": "99ec0688b04453dc55f31290f75043d4bc1d8569",
      "old_mode": 33261,
      "old_path": "samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh",
      "new_id": "43ebacddb09a80de53ae29bd1e5aa5ca5041059f",
      "new_mode": 33261,
      "new_path": "samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh"
    }
  ]
}
