DPDK 18.11 flow director API

文档

intel X722 网卡控制器的 datesheet 在网上是找不到的.
打英特尔官网客服 4009202200 也是找不到的.

intel X722 模块属于 intel C628 Chipset 的内置功能.
在ethernet-network-adapter-x722-product-brief.pdf中的Adapter Feature章节中的Controller中找到说明.
ethernet-network-adapter-x722-product-brief.pdf

所以, 找到 intel C628 的 datesheet 就可以找到 X722 的全部说明.
搜索 c620-series-chipset-datasheet.pdf 即可!!!
c620-series-chipset-datasheet.pdf

以下说明 为X722 flow director 相关功能:
flow director 匹配模式 上限条数是 8K 条.
定义在:c620-series-chipset-datasheet.pdf的2284页

flow director 数据进入硬件的解析范围 是报文的前480字节.
定义在:c620-series-chipset-datasheet.pdf的2697页中的38.21.1.2 节中有详细说明.

flow director Flexible payload 长度为16字节.
如果报文在硬件上解析识别为 L2 类型, Flexible payload 为 ETH_TYPE 之后
如果报文在硬件上解析识别为 L3 类型, Flexible payload 为 L3 协议头之后
如果报文在硬件上解析识别为 L4 类型, Flexible payload 为 L4 协议头 之后
定义在:c620-series-chipset-datasheet.pdf的2700页中的38.21.1.4 节中有详细说明.

环境

CentOS 7.4

固件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[root@localhost ~]# lshw -c network -businfo
Bus info Device Class Description
=======================================================
pci@0000:03:00.0 enp3s0f0 network I350 Gigabit Network Connection
pci@0000:03:00.1 enp3s0f1 network I350 Gigabit Network Connection
pci@0000:03:00.2 enp3s0f2 network I350 Gigabit Network Connection
pci@0000:03:00.3 enp3s0f3 network I350 Gigabit Network Connection
pci@0000:1a:00.0 enp26s0f0 network Ethernet Connection X722 for 10GbE SFP+
pci@0000:1a:00.1 enp26s0f1 network Ethernet Connection X722 for 10GbE SFP+
pci@0000:1a:00.2 enp26s0f2 network Ethernet Connection X722 for 10GbE SFP+
pci@0000:1a:00.3 enp26s0f3 network Ethernet Connection X722 for 10GbE SFP+
pci@0000:3c:00.0 enp60s0 network Ethernet Controller XL710 for 40GbE backplane
pci@0000:86:00.0 enp134s0 network Ethernet Controller XL710 for 40GbE backplane
[root@localhost ~]#

[root@localhost ~]# ethtool -i enp3s0f1
driver: igb
version: 5.4.0-k
firmware-version: 1.48.0
expansion-rom-version:
bus-info: 0000:03:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no
[root@localhost ~]#

[root@localhost ~]# ethtool -i enp26s0f1
driver: i40e
version: 1.6.27-k
firmware-version: 4.10 0x80001a30 1.2154.0
expansion-rom-version:
bus-info: 0000:1a:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
[root@localhost ~]#

[root@localhost ~]# ethtool -i enp134s0
driver: i40e
version: 1.6.27-k
firmware-version: 5.04 0x800024d1 0.0.0
expansion-rom-version:
bus-info: 0000:86:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
[root@localhost ~]#

演示 API级别的 flow director 功能:

  1. ETH/ipv4/udp/raw spec_1 + mask_1 udp payload 关键字加掩码
  2. ETH/ipv4/udp/raw spec_2 + mask_1 udp payload 关键字变化,但用上一次的掩码
  3. ETH/ipv4/tcp/raw spec_3 + mask_3 tcp payload 关键字 + 掩码

DPDK flow director API

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/queue.h>
#include <netinet/in.h>
#include <setjmp.h>
#include <stdarg.h>
#include <ctype.h>
#include <errno.h>
#include <getopt.h>
#include <signal.h>
#include <stdbool.h>

#include <rte_eal.h>
#include <rte_common.h>
#include <rte_malloc.h>
#include <rte_ether.h>
#include <rte_ethdev.h>
#include <rte_mempool.h>
#include <rte_mbuf.h>
#include <rte_net.h>
#include <rte_flow.h>
#include <rte_cycles.h>

static volatile bool force_quit;
static uint16_t port_id;
static uint16_t nr_queues = 5;
struct rte_mempool *mbuf_pool;
struct rte_flow *flow;
uint64_t queue_pkt[16] ={0};

static inline void
print_ether_addr(const char *what, struct ether_addr *eth_addr)
{
char buf[ETHER_ADDR_FMT_SIZE];
ether_format_addr(buf, ETHER_ADDR_FMT_SIZE, eth_addr);
printf("%s%s", what, buf);
}

static void
main_loop(void)
{
struct rte_mbuf *mbufs[32];
//struct ether_hdr *eth_hdr;
struct rte_flow_error error;
uint16_t nb_rx;
uint16_t i;
uint16_t j;

while (!force_quit) {
for (i = 0; i < nr_queues; i++) {
nb_rx = rte_eth_rx_burst(port_id, i, mbufs, 32);
if (nb_rx) {
for (j = 0; j < nb_rx; j++) {
struct rte_mbuf *m = mbufs[j];
//eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
queue_pkt[i]++;
//print_ether_addr("src=", &eth_hdr->s_addr);
//print_ether_addr(" -> dst=", &eth_hdr->d_addr);
//printf(" : queue=0x%x\n", (unsigned int)i);
rte_pktmbuf_free(m);
}
}
}
}
rte_flow_flush(port_id, &error);
rte_eth_dev_stop(port_id);
rte_eth_dev_close(port_id);
}

#define CHECK_INTERVAL 1000 /* 100ms */
#define MAX_REPEAT_TIMES 90 /* 9s (90 * 100ms) in total */
static void
assert_link_status(void)
{
struct rte_eth_link link;
uint8_t rep_cnt = MAX_REPEAT_TIMES;

memset(&link, 0, sizeof(link));
do {
rte_eth_link_get(port_id, &link);
if (link.link_status == ETH_LINK_UP)
break;
rte_delay_ms(CHECK_INTERVAL);
} while (--rep_cnt);

if (link.link_status == ETH_LINK_DOWN)
rte_exit(EXIT_FAILURE, ":: error: link is still down\n");
}

static void
init_port(void)
{
int ret;
uint16_t i;
struct rte_eth_conf port_conf = {
.rxmode = {
.split_hdr_size = 0,
},
.txmode = {
.offloads =
DEV_TX_OFFLOAD_VLAN_INSERT |
DEV_TX_OFFLOAD_IPV4_CKSUM |
DEV_TX_OFFLOAD_UDP_CKSUM |
DEV_TX_OFFLOAD_TCP_CKSUM |
DEV_TX_OFFLOAD_SCTP_CKSUM |
DEV_TX_OFFLOAD_TCP_TSO,
},
.fdir_conf = {
.mode = RTE_FDIR_MODE_PERFECT,
.pballoc = RTE_FDIR_PBALLOC_64K,
.status = RTE_FDIR_REPORT_STATUS,
},
};
struct rte_eth_txconf txq_conf;
struct rte_eth_rxconf rxq_conf;
struct rte_eth_dev_info dev_info;

rte_eth_dev_info_get(port_id, &dev_info);
port_conf.txmode.offloads &= dev_info.tx_offload_capa;
ret = rte_eth_dev_configure(port_id, nr_queues, nr_queues, &port_conf);
if (ret < 0) {
rte_exit(EXIT_FAILURE,
":: cannot configure device: err=%d, port=%u\n",
ret, port_id);
}

rxq_conf = dev_info.default_rxconf;
rxq_conf.offloads = port_conf.rxmode.offloads;
/* only set Rx queues: something we care only so far */
for (i = 0; i < nr_queues; i++) {
ret = rte_eth_rx_queue_setup(port_id, i, 512,
rte_eth_dev_socket_id(port_id),
&rxq_conf,
mbuf_pool);
if (ret < 0) {
rte_exit(EXIT_FAILURE,
":: Rx queue setup failed: err=%d, port=%u\n",
ret, port_id);
}
}

txq_conf = dev_info.default_txconf;
txq_conf.offloads = port_conf.txmode.offloads;

for (i = 0; i < nr_queues; i++) {
ret = rte_eth_tx_queue_setup(port_id, i, 512,
rte_eth_dev_socket_id(port_id),
&txq_conf);
if (ret < 0) {
rte_exit(EXIT_FAILURE,
":: Tx queue setup failed: err=%d, port=%u\n",
ret, port_id);
}
}

rte_eth_promiscuous_enable(port_id);
ret = rte_eth_dev_start(port_id);
if (ret < 0) {
rte_exit(EXIT_FAILURE,
"rte_eth_dev_start:err=%d, port=%u\n",
ret, port_id);
}
assert_link_status();
printf(":: initializing port: %d done\n", port_id);
}

static void
signal_handler(int signum)
{
if (signum == SIGINT || signum == SIGTERM) {
force_quit = true;
}
}


static int ipv4_tcp_raw(const uint8_t* key, const uint8_t* mask, int len)
{
struct rte_flow *flow = NULL;
struct rte_flow_error error;
struct rte_flow_attr attr;
struct rte_flow_item pattern[10];
struct rte_flow_action action[10];
struct rte_flow_action_queue queue = { .index = 1};// 命中的报文 放在 1号队列

memset(pattern, 0, sizeof(pattern));
memset(action, 0, sizeof(action));
memset(&attr, 0, sizeof(struct rte_flow_attr));

struct rte_flow_item_raw raw_spec = {
.relative = 1,
.reserved = 0,
.offset = 0,
.limit = 0,
.length = len,
.pattern = key,
};

struct rte_flow_item_raw raw_mask = {
.relative = 1,
.search = 1,
.reserved = 0x3fffffff,
.offset = 0xffffffff,
.limit = 0xffff,
.length = 0xffff,
.pattern = mask,
};

attr.ingress = 1;

pattern[0].type = RTE_FLOW_ITEM_TYPE_ETH;
pattern[1].type = RTE_FLOW_ITEM_TYPE_IPV4;
pattern[2].type = RTE_FLOW_ITEM_TYPE_TCP;
pattern[3].type = RTE_FLOW_ITEM_TYPE_RAW;
pattern[3].spec = &raw_spec;
pattern[3].mask = &raw_mask;

action[0].type = RTE_FLOW_ACTION_TYPE_QUEUE;
action[0].conf = &queue;

flow = rte_flow_create(port_id, &attr, pattern, action, &error);
if (!flow)
{
printf("Flow can't be created %d message: %s\n",
error.type,
error.message ? error.message : "(no stated reason)");
rte_exit(EXIT_FAILURE, "error in creating flow");
}

printf("create flow director %p\n", flow);
return 0;
}

static int ipv4_udp_raw(const uint8_t* key, const uint8_t* mask, int len)
{
struct rte_flow *flow = NULL;
struct rte_flow_error error;
struct rte_flow_attr attr;
struct rte_flow_item pattern[10];
struct rte_flow_action action[10];
struct rte_flow_action_queue queue = { .index = 1};// 命中的报文 放在 1号队列

memset(pattern, 0, sizeof(pattern));
memset(action, 0, sizeof(action));
memset(&attr, 0, sizeof(struct rte_flow_attr));

struct rte_flow_item_raw raw_spec = {
.relative = 1,
.reserved = 0,
.offset = 0,
.limit = 0,
.length = len,
.pattern = key,
};

struct rte_flow_item_raw raw_mask = {
.relative = 1,
.search = 1,
.reserved = 0x3fffffff,
.offset = 0xffffffff,
.limit = 0xffff,
.length = 0xffff,
.pattern = mask,
};

attr.ingress = 1;

pattern[0].type = RTE_FLOW_ITEM_TYPE_ETH;
pattern[1].type = RTE_FLOW_ITEM_TYPE_IPV4;
pattern[2].type = RTE_FLOW_ITEM_TYPE_UDP;
pattern[3].type = RTE_FLOW_ITEM_TYPE_RAW;
pattern[3].spec = &raw_spec;
pattern[3].mask = &raw_mask;

action[0].type = RTE_FLOW_ACTION_TYPE_QUEUE;
action[0].conf = &queue;

flow = rte_flow_create(port_id, &attr, pattern, action, &error);
if (!flow)
{
printf("Flow can't be created %d message: %s\n",
error.type,
error.message ? error.message : "(no stated reason)");
rte_exit(EXIT_FAILURE, "error in creating flow");
}

printf("create flow director %p\n", flow);
return 0;
}


int
main(int argc, char **argv)
{
int ret;
uint16_t nr_ports;

ret = rte_eal_init(argc, argv);
if (ret < 0)
rte_exit(EXIT_FAILURE, ":: invalid EAL arguments\n");

force_quit = false;
signal(SIGINT, signal_handler);
signal(SIGTERM, signal_handler);

nr_ports = rte_eth_dev_count_avail();
if (nr_ports == 0)
rte_exit(EXIT_FAILURE, ":: no Ethernet ports found\n");
port_id = 0;
if (nr_ports != 1) {
printf(":: warn: %d ports detected, but we use only one: port %u\n",
nr_ports, port_id);
}
mbuf_pool = rte_pktmbuf_pool_create("mbuf_pool", 4096, 128, 0, RTE_MBUF_DEFAULT_BUF_SIZE, rte_socket_id());
if (mbuf_pool == NULL)
rte_exit(EXIT_FAILURE, "Cannot init mbuf pool\n");

init_port();

// SEQ < 64
const uint8_t pkt_spec_1[] = {0x97, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01};
const uint8_t pkt_mask_1[] = {0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff};
ipv4_udp_raw(pkt_spec_1, pkt_mask_1, sizeof(pkt_spec_1));

// SEQ 16:1
const uint8_t pkt_spec_2[] = {0x97, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02};
const uint8_t pkt_mask_2[] = {0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff};
ipv4_udp_raw(pkt_spec_2, pkt_mask_2, sizeof(pkt_spec_2));

// match with eth.ipv4.tcp.payload is "GET /index.html"
const uint8_t pkt_spec_3[] = {'G', 'E', 'T', ' ', '/', 'i', 'n', 'd', 'e', 'x', '.', 'h', 't', 'm', 'l' };
const uint8_t pkt_mask_3[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
ipv4_tcp_raw(pkt_spec_3, pkt_mask_3, sizeof(pkt_spec_3));

main_loop();
printf("queue_id %d pkt累计:%zu\n", 0, queue_pkt[0]);
printf("queue_id %d pkt累计:%zu\n", 1, queue_pkt[1]);
printf("queue_id %d pkt累计:%zu\n", 2, queue_pkt[2]);
printf("queue_id %d pkt累计:%zu\n", 3, queue_pkt[3]);
return 0;
}

编译

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[root@localhost flow_filtering]# env | grep RTE
RTE_SDK=/root/git/dpdk/dpdk-stable-18.11.11
[root@localhost flow_filtering]#
[root@localhost flow_filtering]# make clean; make ; ./build/flow -l 0-9
CC main.o
LD flow
INSTALL-APP flow
INSTALL-MAP flow.map
EAL: Detected 40 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Probing VFIO support...
EAL: PCI device 0000:03:00.0 on NUMA socket 0
EAL: probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:03:00.1 on NUMA socket 0
EAL: probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:03:00.2 on NUMA socket 0
EAL: probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:03:00.3 on NUMA socket 0
EAL: probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:1a:00.0 on NUMA socket 0
EAL: probe driver: 8086:37d0 net_i40e
EAL: PCI device 0000:1a:00.1 on NUMA socket 0
EAL: probe driver: 8086:37d0 net_i40e
EAL: PCI device 0000:1a:00.2 on NUMA socket 0
EAL: probe driver: 8086:37d0 net_i40e
EAL: PCI device 0000:1a:00.3 on NUMA socket 0
EAL: probe driver: 8086:37d0 net_i40e
EAL: PCI device 0000:3c:00.0 on NUMA socket 0
EAL: probe driver: 8086:1580 net_i40e
EAL: PCI device 0000:86:00.0 on NUMA socket 1
EAL: probe driver: 8086:1580 net_i40e
:: initializing port: 0 done
i40e_flow_set_fdir_flex_pit(): i40e device 0000:1a:00.0 changed global register [0x0026898c]. original: 0x00000000, new: 0x000000a6
create flow director 0x17ff32040
create flow director 0x17ff30740
create flow director 0x17ff2c9c0

^Ci40e_flex_payload_reg_set_default(): i40e device 0000:1a:00.0 changed global register [0x0026898c]. original: 0x000000a6, new: 0x00000000
queue_id 0 pkt累计:0
queue_id 1 pkt累计:0
queue_id 2 pkt累计:0
queue_id 3 pkt累计:0
[root@localhost flow_filtering]#

不足

  1. intel X722 网卡 [ETH/ipv4/udp/raw][ETH/ipv4/tcp/raw], PCTYPE 只允许有一个MASK,
    这类 PCTYPE 只支持 1种掩码, 掩码的长度, 掩码的每一个bit, 都必须一样才能创建 FDIR, 否则提示 掩码 冲突!

举个例子:
需求: 匹配 HTTP 协议中的 GET 与 POST 报文, 存放到1号队列.
环境: 假设 只有 ipv4
网卡 X722
DPDK 18.11

创建一条规则, 类型为 ETH/ipv4/tcp/raw, 在 RTE_FLOW_ITEM_TYPE_RAW 参数 spec, mask, len=sizeof(spec) 配置如下

1
2
const uint8_t pkt_spec_1[] = {0x97, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01};
const uint8_t pkt_mask_1[] = {0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff};

这条规则创建, 没有问题!

再创建一条规则 类型为 ETH/ipv4/tcp/raw, 在 RTE_FLOW_ITEM_TYPE_RAW 参数 spec, mask, len=sizeof(spec) 配置如下

1
2
const uint8_t pkt_spec_1[] = {0x97, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02};
const uint8_t pkt_mask_1[] = {0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe};

这条规则创建, 无法创建!
上面这两条规则的掩码, 只相差1个bit

类似的, 在 testpmd 中 也是无法创建

OK

1
2
3
 ./testpmd -l 0-9 -n 4 -- -i --nb-cores=8 --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect
flow create 0 ingress pattern eth / ipv4 / tcp / raw relative is 1 offset is 0 pattern is 123 / end actions queue index 1 / end
flow create 0 ingress pattern eth / ipv4 / tcp / raw relative is 1 offset is 0 pattern is ABC / end actions queue index 1 / end

ERR

1
2
3
 ./testpmd -l 0-9 -n 4 -- -i --nb-cores=8 --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect
flow create 0 ingress pattern eth / ipv4 / tcp / raw relative is 1 offset is 0 pattern is POST / end actions queue index 1 / end
flow create 0 ingress pattern eth / ipv4 / tcp / raw relative is 1 offset is 0 pattern is AB / end actions queue index 1 / end

i40e 驱动 一个 PCTYPE 只允许有一个MASK

  1. 支持的类型 太少!
    有些特定的业务场景, 就是套着 GTP 层, 需要在 UDP的payload的过滤, X722不支持
    1
    2
    3
    4
    5
    6
    7
    8
    9
    X722 不支持 ETH/ipv4/UDP/GTP/ipv4/TCP/RAW
    X722 不支持 ETH/ipv4/UDP/GTP/ipv4/UDP/RAW
    X722 不支持 ETH/ipv6/UDP/GTP/ipv4/TCP/RAW
    X722 不支持 ETH/ipv6/UDP/GTP/ipv4/UDP/RAW

    X722 不支持 ETH/ipv4/UDP/GTP/ipv6/TCP/RAW
    X722 不支持 ETH/ipv4/UDP/GTP/ipv6/UDP/RAW
    X722 不支持 ETH/ipv6/UDP/GTP/ipv6/TCP/RAW
    X722 不支持 ETH/ipv6/UDP/GTP/ipv6/UDP/RAW

E810 网卡, 支持上面的功能!!!

  1. X722 不支持 FDIR 优先级.
    1
    2
    3
    4
    5
    6
    7
    比如: 优先级1 规则1 输出到 X队列.
    比如: 优先级2 规则2 输出到 X队列.
    比如: 优先级3 规则3 输出到 Y队列.
    优先级X 规则N 动作
    优先级99 没有匹配上的规则, DROP.

    X722 不支持 优先级.

E810 网卡, 支持上面的功能!!!