From: Stephen Hemminger <stephen@networkplumber.org>
To: Ophir Munk <ophirmu@mellanox.com>
Cc: dev@dpdk.org, Thomas Monjalon <thomas@monjalon.net>,
Olga Shern <olgas@mellanox.com>,
Pascal Mazon <pascal.mazon@6wind.com>
Subject: Re: [dpdk-dev] [RFC 2/2] net/tap: add eBPF instructions
Date: Thu, 30 Nov 2017 08:54:08 -0800 [thread overview]
Message-ID: <20171130085408.0c7d68c2@xeon-e3> (raw)
In-Reply-To: <1512028870-13597-2-git-send-email-ophirmu@mellanox.com>
On Thu, 30 Nov 2017 08:01:10 +0000
Ophir Munk <ophirmu@mellanox.com> wrote:
> +static struct bpf_insn l2_src_hash_insns[] = {
> + {0xbf, 7, 1, 0, 0x00000000},
> + {0x61, 6, 7, 16, 0x00000000},
> + {0x61, 9, 7, 76, 0x00000000},
> + {0x61, 8, 7, 80, 0x00000000},
> + {0x18, 1, 0, 0, 0xdeadbeef},
> + {0x00, 0, 0, 0, 0x00000000},
> + {0x63, 10, 1, -4, 0x00000000},
> + {0x61, 1, 7, 48, 0x00000000},
> + {0x7b, 10, 1, -56, 0x00000000},
> + {0xbf, 2, 10, 0, 0x00000000},
> + {0x07, 2, 0, 0, 0xfffffffc},
> + {0x18, 1, 1, 0, 0xffffffff},
> + {0x00, 0, 0, 0, 0x00000000},
> + {0x85, 0, 0, 0, 0x00000001},
> + {0x55, 0, 0, 21, 0x00000000},
> + {0xb7, 1, 0, 0, 0x00000a64},
> + {0x6b, 10, 1, -16, 0x00000000},
> + {0x18, 1, 0, 0, 0x69666e6f},
> + {0x00, 0, 0, 0, 0x65727567},
> + {0x7b, 10, 1, -24, 0x00000000},
> + {0x18, 1, 0, 0, 0x6e207369},
> + {0x00, 0, 0, 0, 0x6320746f},
> + {0x7b, 10, 1, -32, 0x00000000},
> + {0x18, 1, 0, 0, 0x20737372},
> + {0x00, 0, 0, 0, 0x2079656b},
> + {0x7b, 10, 1, -40, 0x00000000},
> + {0x18, 1, 0, 0, 0x68736168},
> + {0x00, 0, 0, 0, 0x203a2928},
> + {0x7b, 10, 1, -48, 0x00000000},
> + {0xb7, 7, 0, 0, 0x00000000},
> + {0x73, 10, 7, -14, 0x00000000},
> + {0xbf, 1, 10, 0, 0x00000000},
> + {0x07, 1, 0, 0, 0xffffffd0},
> + {0xb7, 2, 0, 0, 0x00000023},
> + {0x85, 0, 0, 0, 0x00000006},
> + {0x05, 0, 0, 543, 0x00000000},
> + {0xb7, 1, 0, 0, 0x0000000e},
> + {0x61, 2, 7, 20, 0x00000000},
> + {0x15, 2, 0, 10, 0x00000000},
> + {0x61, 2, 7, 28, 0x00000000},
> + {0x55, 2, 0, 8, 0x0000a888},
> + {0xbf, 2, 7, 0, 0x00000000},
> + {0xb7, 7, 0, 0, 0x00000000},
> + {0xbf, 1, 9, 0, 0x00000000},
> + {0x07, 1, 0, 0, 0x00000012},
> + {0x2d, 1, 8, 533, 0x00000000},
> + {0xb7, 1, 0, 0, 0x00000012},
> + {0x69, 6, 9, 16, 0x00000000},
> + {0xbf, 7, 2, 0, 0x00000000},
> + {0x61, 2, 0, 128, 0x00000000},
> + {0xbf, 3, 2, 0, 0x00000000},
> + {0x57, 3, 0, 0, 0x00000001},
> + {0xb7, 4, 0, 0, 0x00000000},
> + {0x1d, 3, 4, 1, 0x00000000},
> + {0x07, 0, 0, 0, 0x00000006},
> + {0x57, 2, 0, 0, 0x00000002},
> + {0x15, 2, 0, 508, 0x00000000},
> + {0x7b, 10, 7, -64, 0x00000000},
> + {0xb7, 7, 0, 0, 0x00000000},
> + {0xbf, 1, 9, 0, 0x00000000},
> + {0x07, 1, 0, 0, 0x0000000c},
> + {0x2d, 1, 8, 517, 0x00000000},
> + {0x71, 1, 0, 0, 0x00000000},
> + {0x67, 1, 0, 0, 0x00000018},
> + {0x71, 6, 0, 1, 0x00000000},
> + {0x67, 6, 0, 0, 0x00000010},
> + {0x4f, 6, 1, 0, 0x00000000},
> + {0x71, 1, 0, 2, 0x00000000},
> + {0x67, 1, 0, 0, 0x00000008},
> + {0x4f, 6, 1, 0, 0x00000000},
> + {0x71, 1, 0, 3, 0x00000000},
> + {0x4f, 6, 1, 0, 0x00000000},
> + {0x71, 5, 9, 6, 0x00000000},
> + {0x67, 5, 0, 0, 0x00000038},
> + {0xc7, 5, 0, 0, 0x00000038},
> + {0xb7, 2, 0, 0, 0x00000000},
> + {0xb7, 3, 0, 0, 0xffffffff},
> + {0xb7, 4, 0, 0, 0x00000000},
> + {0x6d, 5, 3, 1, 0x00000000},
> + {0xbf, 4, 6, 0, 0x00000000},
> + {0x79, 1, 10, -56, 0x00000000},
> + {0xaf, 4, 1, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x00000001},
> + {0x71, 7, 0, 4, 0x00000000},
> + {0xbf, 1, 7, 0, 0x00000000},
> + {0x77, 1, 0, 0, 0x00000007},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x00000039},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000006},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003a},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000005},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003b},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000004},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003c},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000003},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003d},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000002},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003e},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000001},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0x67, 5, 0, 0, 0x0000003f},
> + {0xc7, 5, 0, 0, 0x0000003f},
> + {0x5f, 5, 1, 0, 0x00000000},
> + {0xaf, 4, 5, 0, 0x00000000},
> + {0x57, 7, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 7, 0, 0x00000000},
> + {0x71, 5, 9, 7, 0x00000000},
> + {0x67, 5, 0, 0, 0x00000038},
> + {0xc7, 5, 0, 0, 0x00000038},
> + {0xb7, 6, 0, 0, 0x00000000},
> + {0x6d, 5, 3, 1, 0x00000000},
> + {0xbf, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x71, 7, 0, 5, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000007},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x00000039},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000006},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003a},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000005},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003b},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000004},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003c},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000003},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003d},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000002},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003e},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000001},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0x67, 5, 0, 0, 0x0000003f},
> + {0xc7, 5, 0, 0, 0x0000003f},
> + {0x5f, 5, 1, 0, 0x00000000},
> + {0xaf, 4, 5, 0, 0x00000000},
> + {0x57, 7, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 7, 0, 0x00000000},
> + {0x71, 5, 9, 8, 0x00000000},
> + {0x67, 5, 0, 0, 0x00000038},
> + {0xc7, 5, 0, 0, 0x00000038},
> + {0xb7, 6, 0, 0, 0x00000000},
> + {0x6d, 5, 3, 1, 0x00000000},
> + {0xbf, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x71, 7, 0, 6, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000007},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x00000039},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000006},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003a},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000005},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003b},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000004},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003c},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000003},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003d},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000002},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003e},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000001},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0x67, 5, 0, 0, 0x0000003f},
> + {0xc7, 5, 0, 0, 0x0000003f},
> + {0x5f, 5, 1, 0, 0x00000000},
> + {0xaf, 4, 5, 0, 0x00000000},
> + {0x57, 7, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 7, 0, 0x00000000},
> + {0x71, 5, 9, 9, 0x00000000},
> + {0x67, 5, 0, 0, 0x00000038},
> + {0xc7, 5, 0, 0, 0x00000038},
> + {0xb7, 6, 0, 0, 0x00000000},
> + {0x6d, 5, 3, 1, 0x00000000},
> + {0xbf, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x71, 7, 0, 7, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000007},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x00000039},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000006},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003a},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000005},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003b},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000004},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003c},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000003},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003d},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000002},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003e},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000001},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0x67, 5, 0, 0, 0x0000003f},
> + {0xc7, 5, 0, 0, 0x0000003f},
> + {0x5f, 5, 1, 0, 0x00000000},
> + {0xaf, 4, 5, 0, 0x00000000},
> + {0x57, 7, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 7, 0, 0x00000000},
> + {0x71, 5, 9, 10, 0x00000000},
> + {0x67, 5, 0, 0, 0x00000038},
> + {0xc7, 5, 0, 0, 0x00000038},
> + {0xb7, 6, 0, 0, 0x00000000},
> + {0x6d, 5, 3, 1, 0x00000000},
> + {0xbf, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x71, 7, 0, 8, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000007},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x00000039},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000006},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003a},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000005},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003b},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000004},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003c},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000003},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003d},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000002},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0xbf, 6, 5, 0, 0x00000000},
> + {0x67, 6, 0, 0, 0x0000003e},
> + {0xc7, 6, 0, 0, 0x0000003f},
> + {0x5f, 6, 1, 0, 0x00000000},
> + {0xaf, 4, 6, 0, 0x00000000},
> + {0xbf, 6, 7, 0, 0x00000000},
> + {0x77, 6, 0, 0, 0x00000001},
> + {0x57, 6, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 6, 0, 0x00000000},
> + {0x67, 5, 0, 0, 0x0000003f},
> + {0xc7, 5, 0, 0, 0x0000003f},
> + {0x5f, 5, 1, 0, 0x00000000},
> + {0xaf, 4, 5, 0, 0x00000000},
> + {0x57, 7, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 7, 0, 0x00000000},
> + {0x71, 5, 9, 11, 0x00000000},
> + {0x67, 5, 0, 0, 0x00000038},
> + {0xc7, 5, 0, 0, 0x00000038},
> + {0x6d, 5, 3, 1, 0x00000000},
> + {0xbf, 2, 1, 0, 0x00000000},
> + {0xaf, 4, 2, 0, 0x00000000},
> + {0x71, 2, 0, 9, 0x00000000},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0xbf, 3, 2, 0, 0x00000000},
> + {0x77, 3, 0, 0, 0x00000007},
> + {0x4f, 1, 3, 0, 0x00000000},
> + {0xbf, 3, 5, 0, 0x00000000},
> + {0x67, 3, 0, 0, 0x00000039},
> + {0xc7, 3, 0, 0, 0x0000003f},
> + {0x5f, 3, 1, 0, 0x00000000},
> + {0xaf, 4, 3, 0, 0x00000000},
> + {0xbf, 3, 2, 0, 0x00000000},
> + {0x77, 3, 0, 0, 0x00000006},
> + {0x57, 3, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 3, 0, 0x00000000},
> + {0xbf, 3, 5, 0, 0x00000000},
> + {0x67, 3, 0, 0, 0x0000003a},
> + {0xc7, 3, 0, 0, 0x0000003f},
> + {0x5f, 3, 1, 0, 0x00000000},
> + {0xaf, 4, 3, 0, 0x00000000},
> + {0xbf, 3, 2, 0, 0x00000000},
> + {0x77, 3, 0, 0, 0x00000005},
> + {0x57, 3, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 3, 0, 0x00000000},
> + {0xbf, 3, 5, 0, 0x00000000},
> + {0x67, 3, 0, 0, 0x0000003b},
> + {0xc7, 3, 0, 0, 0x0000003f},
> + {0x5f, 3, 1, 0, 0x00000000},
> + {0xaf, 4, 3, 0, 0x00000000},
> + {0xbf, 3, 2, 0, 0x00000000},
> + {0x77, 3, 0, 0, 0x00000004},
> + {0x57, 3, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 3, 0, 0x00000000},
> + {0xbf, 3, 5, 0, 0x00000000},
> + {0x67, 3, 0, 0, 0x0000003c},
> + {0xc7, 3, 0, 0, 0x0000003f},
> + {0x5f, 3, 1, 0, 0x00000000},
> + {0xaf, 4, 3, 0, 0x00000000},
> + {0xbf, 3, 2, 0, 0x00000000},
> + {0x77, 3, 0, 0, 0x00000003},
> + {0x57, 3, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 3, 0, 0x00000000},
> + {0xbf, 3, 5, 0, 0x00000000},
> + {0x67, 3, 0, 0, 0x0000003d},
> + {0xc7, 3, 0, 0, 0x0000003f},
> + {0x5f, 3, 1, 0, 0x00000000},
> + {0xaf, 4, 3, 0, 0x00000000},
> + {0xbf, 3, 2, 0, 0x00000000},
> + {0x77, 3, 0, 0, 0x00000002},
> + {0x57, 3, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 3, 0, 0x00000000},
> + {0xbf, 3, 5, 0, 0x00000000},
> + {0x67, 3, 0, 0, 0x0000003e},
> + {0xc7, 3, 0, 0, 0x0000003f},
> + {0x5f, 3, 1, 0, 0x00000000},
> + {0xaf, 4, 3, 0, 0x00000000},
> + {0x77, 2, 0, 0, 0x00000001},
> + {0x57, 2, 0, 0, 0x00000001},
> + {0x67, 1, 0, 0, 0x00000001},
> + {0x4f, 1, 2, 0, 0x00000000},
> + {0x67, 5, 0, 0, 0x0000003f},
> + {0xc7, 5, 0, 0, 0x0000003f},
> + {0x5f, 5, 1, 0, 0x00000000},
> + {0xaf, 4, 5, 0, 0x00000000},
> + {0x79, 1, 10, -64, 0x00000000},
> + {0x63, 1, 4, 48, 0x00000000},
> + {0x18, 1, 0, 0, 0x25203d20},
> + {0x00, 0, 0, 0, 0x000a2964},
> + {0x7b, 10, 1, -24, 0x00000000},
> + {0x18, 1, 0, 0, 0x20782520},
> + {0x00, 0, 0, 0, 0x66666f28},
> + {0x7b, 10, 1, -32, 0x00000000},
> + {0x18, 1, 0, 0, 0x6168203a},
> + {0x00, 0, 0, 0, 0x3d206873},
> + {0x7b, 10, 1, -40, 0x00000000},
> + {0x18, 1, 0, 0, 0x68736168},
> + {0x00, 0, 0, 0, 0x29642528},
> + {0x7b, 10, 1, -48, 0x00000000},
> + {0xbf, 1, 10, 0, 0x00000000},
> + {0x07, 1, 0, 0, 0xffffffd0},
> + {0xb7, 2, 0, 0, 0x00000020},
> + {0xb7, 3, 0, 0, 0x00000001},
> + {0xb7, 5, 0, 0, 0x00000006},
> + {0x85, 0, 0, 0, 0x00000006},
> + {0x05, 0, 0, 13, 0x00000000},
> + {0x57, 6, 0, 0, 0x0000ffff},
> + {0x15, 6, 0, 7, 0x0000dd86},
> + {0xb7, 7, 0, 0, 0x00000003},
> + {0x55, 6, 0, 10, 0x00000008},
> + {0x0f, 9, 1, 0, 0x00000000},
> + {0x07, 9, 0, 0, 0x00000014},
> + {0xb7, 7, 0, 0, 0x00000000},
> + {0x2d, 9, 8, 6, 0x00000000},
> + {0x05, 0, 0, 4, 0x00000000},
> + {0x0f, 9, 1, 0, 0x00000000},
> + {0x07, 9, 0, 0, 0x00000028},
> + {0xb7, 7, 0, 0, 0x00000000},
> + {0x2d, 9, 8, 1, 0x00000000},
> + {0xb7, 7, 0, 0, 0x00000003},
> + {0xbf, 0, 7, 0, 0x00000000},
> + {0x95, 0, 0, 0, 0x00000000},
> +};
Loading BPF is a could solution to doing dynamic flow matching.
It needs to be done differently to be accepted.
Putting raw machine instructions in source code is as bad as binary
blobs. You need to provide original source of program and then have
build instructions to create any needed code.
There licensing concerns here as well. Any BPF program inserted
in the kernel must be GPL. So you need to provide source.
Given the license overlap you should also document that in the rte_flow_tap.rst
file.
<
The program that loads the program can be BSD, it just needs to pick
up the BPF firmware file from a compiled ELF image.
next prev parent reply other threads:[~2017-11-30 16:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-30 8:01 [dpdk-dev] [RFC 1/2] net/tap: add eBPF to TAP device Ophir Munk
2017-11-30 8:01 ` [dpdk-dev] [RFC 2/2] net/tap: add eBPF instructions Ophir Munk
2017-11-30 16:54 ` Stephen Hemminger [this message]
2017-11-30 17:05 ` Thomas Monjalon
2017-11-30 17:20 ` Stephen Hemminger
2017-11-30 17:39 ` Thomas Monjalon
2017-12-05 7:59 ` Pascal Mazon
2017-12-13 9:58 ` Ophir Munk
2017-11-30 16:47 ` [dpdk-dev] [RFC 1/2] net/tap: add eBPF to TAP device Stephen Hemminger
2017-11-30 16:54 ` Thomas Monjalon
2017-12-05 7:53 ` Pascal Mazon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171130085408.0c7d68c2@xeon-e3 \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=olgas@mellanox.com \
--cc=ophirmu@mellanox.com \
--cc=pascal.mazon@6wind.com \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).