-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdrv_intel.cc
36 lines (31 loc) · 1.02 KB
/
drv_intel.cc
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
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* See the COPYRIGHT file distributed with this work for additional
* information regarding copyright ownership.
*/
#include "parser.h"
static RegexParser intel_generic(
{ "ixgbe", "igb" },
RegexParser::total_nomatch(),
{ "^(rx|tx)_queue_(\\d+)_(bytes|packets)$", { 1, 3, 2 } }
);
static RegexParser intel_ice(
{ "ice" },
{ "^(rx|tx)_(bytes|unicast|broadcast|multicast)$", { 1, 2 } },
{ "^(rx|tx)_queue_(\\d+)_(bytes|packets)$", { 1, 3, 2 } }
);
static RegexParser intel_i40e(
{ "i40e" },
RegexParser::total_generic(),
{ "^(rx|tx)-(\\d+)\\.(?:\\1_)?(bytes|packets)$", { 1, 3, 2 } }
);
static RegexParser intel_iavf(
{ "iavf" },
{ "^(rx|tx)_(bytes|unicast|broadcast|multicast)$", { 1, 2 } },
{ "^(rx|tx)-(\\d+)\\.(?:\\1_)?(bytes|packets)$", { 1, 3, 2 } }
);